/*
Theme Name: MTavares Advocacia
Theme URI: https://mtavares.adv.br
Author: MTavares
Description: Tema institucional responsivo para a MTavares Advocacia.
Version: 1.0.0
Text Domain: mtavares
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Lora:wght@500;600&display=swap');

:root {
  --black: #000;
  --paper: #e3dbca;
  --gold: #c0a262;
  --white: #fff;
  --content: 1110px;
  --pad: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.site-shell { width: 100%; overflow: hidden; }
.container { width: min(var(--content), calc(100% - (var(--pad) * 2))); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 94px;
  color: var(--white);
  background: rgba(0,0,0,.9);
}
.site-header.is-scrolled { background: rgba(0,0,0,.97);}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  height: 100%;
  margin-inline: 0;
  padding-inline: clamp(24px, 3.6vw, 52px);
}
.brand { display: block; width: 207px; }
.brand img { width: 207px; height: 65px; object-fit: contain; object-position: left center; }
.primary-nav { position: absolute; left: 50%; transform: translateX(-50%); }
.primary-nav ul { display: flex; gap: 35px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { position: relative; font-size: 14px; text-transform: uppercase; white-space: nowrap; }
.primary-nav a::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }
.menu-toggle { display: none; margin-left: auto; padding: 10px 0 10px 10px; color: inherit; border: 0; background: none; }
.menu-toggle > span:not(.screen-reader-text) { display: block; width: 27px; height: 1px; margin: 6px 0; background: currentColor; transition: opacity .2s, transform .2s; }
.menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-header--light { position: absolute; color: var(--black); background: var(--white); }
.site-header--light.is-scrolled { position: fixed; color: var(--black); background: rgba(255,255,255,.97); }
.site-header--light .primary-nav .current-menu-item > a,
.site-header--light .primary-nav .current_page_item > a { color: var(--gold); }
.site-header--about .primary-nav a[href*="/sobre"],
.site-header--areas .primary-nav a[href*="/areas-de-atuacao"],
.site-header--contact .primary-nav a[href*="/contato"] { color: var(--gold); }

.hero, .why { color: var(--white); background: var(--black); }
.hero { min-height: 688px; padding: 94px 0 48px; }
.hero-inner { display: grid; grid-template-columns: 1fr 608px; gap: 58px; align-items: center; min-height: 545px; }
.hero-copy { padding-bottom: 20px; }
.hero h1 { max-width: 530px; margin: 0 0 36px; color: var(--gold); font-family: "Lora", serif; font-size: 40px; font-weight: 500; line-height: 1.30; }
.hero-image { width: 608px; height: 495px; object-fit: contain; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px 0 25px;
  color: var(--white);
  border-radius: 5px;
  background: var(--gold);
  font-size: 16px;
  font-weight: 600;
  transition: filter .2s, transform .2s;
}
.button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.button--hero { width: 300px; }
.arrow { font-family: Arial, sans-serif; font-size: 21px; font-weight: 400; line-height: 1; }
.section-rule { width: min(var(--content), calc(100% - (var(--pad) * 2))); height: 1px; margin: 0 auto; border: 0; background: rgba(255,255,255,.12); }

.why { min-height: 726px; padding: 80px 0 100px; }
.section-title { margin: 0; font-family: "Lora", serif; font-size: 40px; font-weight: 500; line-height: 1.3; text-align: center; }
.why .section-title { max-width: 620px; margin-inline: auto; color: var(--gold); }
.why-grid { display: grid; grid-template-columns: repeat(2, 475px); justify-content: center; gap: 30px; margin-top: 65px; }
.why-card { position: relative; min-height: 300px; padding: 50px 48px 45px; color: var(--black); background: var(--paper); font-size: 16px; line-height: 1.45; }
.why-card ul { margin: 0; padding-left: 18px; }
.why-card p { margin: 0; }
.card-link { position: absolute; right: 32px; bottom: 27px; left: 48px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.card-link .plus { font-size: 30px; font-weight: 300; line-height: .7; }

.practice { padding: 96px 0 75px; background: var(--paper); }
.practice .section-title { margin-bottom: 72px; }
.practice-track { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(0,0,0,.15); border-bottom: 1px solid rgba(0,0,0,.15); }
.practice-card { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; height: 400px; padding: 40px 30px; border-right: 1px solid rgba(0,0,0,.15); }
.practice-card:first-child { border-left: 1px solid rgba(0,0,0,.15); }
.practice-card img { width: 160px; height: 160px; object-fit: contain; }
.practice-card h3 { margin: 75px 0 0; font-family: "Lora", serif; font-size: 20px; font-weight: 500; line-height: 1.2; }
.carousel-dots { display: none; }

.difference { padding: 86px 0 0; background: var(--white); }
.difference-inner { display: grid; grid-template-columns: 225px 725px; justify-content: space-between; align-items: center; }
.difference-copy h2 { margin: 0 0 36px; font-family: "Lora", serif; font-size: 40px; font-weight: 500; line-height: 1.18; }
.difference .button { width: 255px; }
.difference-image { width: 725px; height: 429px; object-fit: cover; }

.commitment { display: grid; place-items: center; padding: 145px var(--pad); background: var(--white); }
.commitment p { max-width: 1020px; margin: 0; font-family: "Lora", serif; font-size: 40px; font-weight: 600; line-height: 1.3; text-align: center; }

.about-intro { padding: 176px 0 106px; background: var(--white); }
.about-container { width: min(1114px, calc(100% - (var(--pad) * 2))); max-width: none; }
.about-intro h1 {
  max-width: 735px;
  margin: 0 auto 94px;
  font-family: "Lora", serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.22;
}
.about-founder { display: grid; grid-template-columns: 450px minmax(0, 1fr); gap: 150px; align-items: center; }
.about-founder__image { width: 431px; height: auto; object-fit: cover; }
.about-founder__copy h2 { margin: 0 0 27px; color: var(--gold); font-family: "Lora", serif; font-size: 30px; font-weight: 500; }
.about-founder__copy p { margin: 0 0 25px; font-size: 18px; line-height: 1.42; }
.about-founder__copy p:last-child { margin-bottom: 0; }

.about-pillars { padding-bottom: 86px; background: var(--white); }
.about-pillars__grid { display: grid; grid-template-columns: repeat(2, 1fr); width: min(1325px, calc(100% - 48px)); max-width: none; background: var(--paper); }
.about-pillar { position: relative; min-height: 363px; padding: 70px 72px; border-right: 1px solid rgba(0,0,0,.1); border-bottom: 1px solid rgba(0,0,0,.1); }
.about-pillar:nth-child(2n) { border-right: 0; }
.about-pillar:nth-last-child(-n+2) { border-bottom: 0; }
.about-pillar h2 { margin: 0 0 26px; font-family: "Lora", serif; font-size: 30px; font-weight: 500; }
.about-pillar p { max-width: 450px; margin: 0; font-size: 16px; line-height: 1.45; }
.about-pillar__link { position: absolute; right: 70px; bottom: 40px; left: 72px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
.about-pillar__link span:last-child { font-size: 25px; font-weight: 300; }

.about-differentials { padding: 0 0 130px; background: var(--white); }
.about-differentials__inner { max-width: 910px; }
.about-differentials h2 { margin: 0 0 72px; font-family: "Lora", serif; font-size: 40px; font-weight: 500; text-align: center; }
.about-differentials__lists { display: grid; grid-template-columns: repeat(2, 1fr); gap: 70px; }
.about-differentials ul { margin: 0; padding-left: 21px; font-size: 16px; line-height: 1.45; }
.about-differentials li { margin-bottom: 10px; padding-left: 2px; }

.contact-page { padding: 176px 0 105px; background: var(--white); }
.contact-container { width: min(950px, calc(100% - (var(--pad) * 2))); max-width: none; }
.contact-page h1 {
  max-width: 765px;
  margin: 0 auto 115px;
  font-family: "Lora", serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.22;
}
.contact-content { display: grid; grid-template-columns: 424px minmax(0, 1fr); gap: 130px; align-items: center; }
.contact-image { width: 424px; height: 560px; object-fit: cover; }
.contact-details h2 { margin: 0 0 25px; color: var(--gold); font-family: "Lora", serif; font-size: 30px; font-weight: 500; line-height: 1.2; }
.contact-details p { margin: 0 0 20px; font-size: 16px; line-height: 1.45; }
.contact-details p:last-child { margin-bottom: 0; }
.contact-details a:hover,
.contact-details a:focus-visible { color: var(--gold); }

.areas-page { padding-top: 94px; }
.area-section { display: grid; place-items: center; min-height: 445px; padding: 85px var(--pad); background: var(--white); }
.area-section__inner { width: min(600px, 100%); text-align: center; }
.area-section h1 { margin: 0 0 28px; color: var(--gold); font-family: "Lora", serif; font-size: 40px; font-weight: 500; line-height: 1.18; }
.area-section p { margin: 0 auto; font-size: 16px; line-height: 1.45; text-align: center; }
.area-section .button { width: 255px; margin-top: 66px; border: 0; cursor: pointer; }
.area-section--trabalhista { min-height: 680px; color: var(--white); background: var(--black); }
.area-section--trabalhista .area-section__inner { width: min(850px, 100%); }
.area-section--trabalhista p { width: min(600px, 100%); }
.area-section--patrimonial { background: var(--paper); }
.area-section--patrimonial h1,
.area-section--familia h1 { color: var(--black); }
.area-section__list { columns: 3; column-gap: 60px; margin: 55px 0 0; padding: 0; font-size: 16px; line-height: 1.55; text-align: left; list-style-position: inside; }
.area-section__list li { break-inside: avoid; }

body.has-open-modal { overflow: hidden; }
.area-modal[hidden] { display: none; }
.area-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.75); }
.area-modal__panel { position: relative; width: min(650px, 100%); max-height: min(720px, calc(100vh - 48px)); overflow-y: auto; padding: 65px 70px; background: var(--paper); box-shadow: 0 25px 80px rgba(0,0,0,.3); }
.area-modal__panel h2 { margin: 0 45px 30px 0; color: var(--black); font-family: "Lora", serif; font-size: 32px; font-weight: 500; line-height: 1.2; }
.area-modal__panel p { margin: 0 0 20px; font-size: 16px; line-height: 1.55; }
.area-modal__panel p:last-child { margin-bottom: 0; }
.area-modal__panel ul { margin: -4px 0 24px; padding-left: 22px; font-size: 16px; line-height: 1.55; }
.area-modal__panel li { margin-bottom: 8px; }
.area-modal__close { position: absolute; top: 20px; right: 24px; width: 42px; height: 42px; padding: 0; color: var(--black); border: 0; background: transparent; font-family: Arial, sans-serif; font-size: 38px; font-weight: 300; line-height: 1; cursor: pointer; }
.area-modal__close:focus-visible,
.area-modal-trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.site-footer { color: var(--white); background: var(--black); }
.footer-main { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 100px; min-height: 255px; }
.socials { display: flex; gap: 14px; }
.socials a { display: block; width: 48px; height: 48px; border-radius: 50%; transition: opacity .2s, transform .2s; }
.socials img { width: 48px; height: 48px; }
.socials a:hover { opacity: .75; transform: translateY(-2px); }
.footer-nav { display: grid; gap: 12px; color: var(--gold); font-family: "Lora", serif; font-size: 18px; }
.footer-contact { display: grid; gap: 25px; min-width: 255px; }
.phone { display: inline-flex; align-items: center; gap: 14px; color: var(--gold); font-family: "Lora", serif; font-size: 16px; }
.phone img { flex: 0 0 auto; width: 48px; height: 48px; }
.footer-contact .button { width: 255px; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; padding: 19px 0 25px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); font-size: 10px; }
.floating-whatsapp {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 250;
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  transition: filter .2s, transform .2s;
}
.floating-whatsapp img { width: 100%; height: 100%; }
.floating-whatsapp:hover { filter: brightness(1.05); transform: translateY(-2px); }
.floating-whatsapp:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

@media (max-width: 1180px) {
  :root { --content: 960px; }
  .hero-inner { grid-template-columns: 1fr 50%; }
  .hero-image { width: 100%; height: auto; }
  .difference-inner { grid-template-columns: 220px minmax(0, 650px); gap: 45px; }
  .difference-image { width: 100%; height: auto; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 475px)); }
  .about-founder { grid-template-columns: 54% minmax(0, 1fr); gap: 55px; }
  .about-founder__image { width: 100%; height: auto; }
}

@media (max-width: 767px) {
  :root { --pad: 22px; }
  html { scroll-padding-top: 76px; }
  .site-header { height: 76px; }
  .header-inner { padding-inline: var(--pad); }
  .brand, .brand img { width: 157px; height: 50px; }
  .menu-toggle { display: block; cursor: pointer; }
  .primary-nav { position: fixed; inset: 76px 0 auto; transform: none; padding: 100px; background: rgba(0,0,0,.98); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .primary-nav.is-open { opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; gap: 35px; align-items: center; }
  .hero { min-height: auto; padding: 76px 0 55px; }
  .hero-inner { display: flex; flex-direction: column; gap: 35px; min-height: 0; padding-top: 52px; }
  .hero-copy { width: 100%; padding: 0; }
  .hero h1 { margin-bottom: 28px; font-size: 30px; line-height: 1.28; }
  .hero-image { display: none; }
  .button--hero { width: 100%; }
  .section-rule { width: calc(100% - 44px); }
  .why { min-height: 0; padding: 0px 0 70px 0; }
  .section-title { font-size: 30px; }
  .why-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 45px; }
  .why-card { min-height: 285px; padding: 38px 30px 62px; }
  .card-link { right: 25px; left: 30px; }
  .practice { padding: 70px 0; }
  .practice .section-title { margin-bottom: 45px; }
  .practice-viewport { overflow: hidden; touch-action: pan-y; }
  .practice-track { display: flex; width: 100%; border-top: 0; border-bottom: 0; transition: transform .4s ease; }
  .practice-card { flex: 0 0 86%; height: 447px; padding: 42px 25px; border-top: 1px solid rgba(0,0,0,.15); border-right: 0; border-bottom: 1px solid rgba(0,0,0,.15); border-left: 1px solid rgba(0,0,0,.15); }
  .practice-card:last-child { border-right: 1px solid rgba(0,0,0,.15); }
  .carousel-dots { display: flex; justify-content: center; gap: 9px; margin-top: 25px; }
  .carousel-dot { width: 8px; height: 8px; padding: 0; border: 1px solid #000; border-radius: 50%; background: transparent; }
  .carousel-dot.is-active { background: #000; }
  .difference { min-height: 0; padding: 70px 0 0; }
  .difference-inner { display: flex; flex-direction: column; align-items: stretch; gap: 44px; }
  .difference-copy h2 { margin-bottom: 28px; font-size: 30px; }
  .difference .button { width: 100%; }
  .commitment { min-height: 0; padding-block: 55px; }
  .commitment p { font-size: 25px; line-height: 1.35; }
  .site-header--light .primary-nav { color: var(--white); background: rgba(0,0,0,.98); }
  .about-intro { padding: 128px 0 72px; }
  .about-intro h1 { margin-bottom: 58px; font-size: 25px; line-height: 1.3; }
  .about-founder { grid-template-columns: 1fr; gap: 38px; }
  .about-founder__image { width: 100%; height: auto; }
  .about-founder__copy h2 { margin-bottom: 20px; font-size: 26px; }
  .about-founder__copy p { font-size: 16px; }
  .about-pillars { padding-bottom: 70px; }
  .about-pillars__grid { grid-template-columns: 1fr; }
  .about-pillar { min-height: 300px; padding: 45px 30px 75px; border-right: 0; border-bottom: 1px solid rgba(0,0,0,.1); }
  .about-pillar:nth-last-child(-n+2) { border-bottom: 1px solid rgba(0,0,0,.1); }
  .about-pillar:last-child { border-bottom: 0; }
  .about-pillar h2 { margin-bottom: 20px; font-size: 30px; }
  .about-pillar__link { right: 30px; bottom: 35px; left: 30px; }
  .about-differentials { padding-bottom: 85px; }
  .about-differentials h2 { margin-bottom: 45px; font-size: 33px; }
  .about-differentials__lists { grid-template-columns: 1fr; gap: 0; }
  .contact-page { padding: 128px 0 72px; }
  .contact-page h1 { margin-bottom: 58px; font-size: 26px; line-height: 1.3; }
  .contact-content { grid-template-columns: 1fr; gap: 38px; }
  .contact-image { order: 2; width: 100%; height: auto; }
  .contact-details { order: 1; }
  .contact-details h2 { font-size: 26px; }
  .contact-details p { font-size: 14px; }
  .areas-page { padding-top: 76px; }
  .area-section { min-height: 400px; padding-block: 72px; }
  .area-section h1 { font-size: 32px; }
  .area-section p { font-size: 16px; }
  .area-section .button { width: 100%; margin-top: 48px; }
  .area-section--trabalhista { min-height: 0; }
  .area-section__list { columns: 1; margin-top: 38px; font-size: 16px; margin-left: 20%; }
  .area-modal { padding: 16px; }
  .area-modal__panel { max-height: calc(100vh - 32px); padding: 58px 28px 38px; }
  .area-modal__panel h2 { margin-right: 30px; font-size: 27px; }
  .area-modal__panel p { font-size: 14px; }
  .area-modal__panel ul { font-size: 14px; }
  .area-modal__close { position: fixed; z-index: 1; top: 30px; right: 32px; }
  .footer-main { grid-template-columns: 1fr; justify-items: center; gap: 38px; padding-block: 60px; text-align: center; }
  .socials { justify-content: center; }
  .footer-nav { justify-items: center; font-size: 21px; }
  .footer-contact { justify-items: center; width: 100%; min-width: 0; }
  .footer-contact .button { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .floating-whatsapp { right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); width: 62px; height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
