/* =========================================================
   TORRES & MORORÓ ADVOGADOS — Design System
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors — dourado da logo + charcoal escuro (evita azul-marinho genérico) */
  --charcoal: #14181F;
  --charcoal-light: #1F2530;
  --charcoal-darker: #0C0F14;
  --gold: #C09C54;
  --gold-light: #D4B876;
  --gold-dark: #9C7C3F;
  --white: #FFFFFF;
  --off-white: #F7F5F1;

  /* Neutrals */
  --ink: #23262B;
  --muted: #5C6068;
  --border: #E4E1DA;

  /* Shadows */
  --shadow: 0 8px 30px rgba(20, 24, 31, .10);
  --shadow-lg: 0 20px 55px rgba(20, 24, 31, .18);

  /* Radius — mais reto/institucional que o padrão "orgânico", mas com leve suavização */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  /* Spacing */
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  /* Type */
  --font-display: 'Merriweather', serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.28;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 4.8vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.3vw, 1.6rem); }

p { color: var(--muted); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 5vw;
  position: relative;
  z-index: 1;
}

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.72); }

.section-head { max-width: 700px; margin-bottom: var(--space-5); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-eyebrow {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-2);
}
.section-dark .section-eyebrow { color: var(--gold-light); }

.section-title em { font-style: italic; color: var(--gold-dark); font-weight: 500; }
.section-dark .section-title em { color: var(--gold-light); }

.section-body { font-size: 1.05rem; color: var(--muted); margin-top: var(--space-2); }

.gold-line { width: 56px; height: 2px; background: var(--gold); margin: var(--space-3) 0; }
.gold-line.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 1rem 2.1rem;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--gold); color: var(--charcoal-darker); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--gold-light); box-shadow: var(--shadow-lg); }

.btn-outline { background: transparent; color: var(--charcoal); border: 2px solid var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

.btn-white { background: var(--white); color: var(--charcoal); }
.btn-white:hover { background: var(--off-white); }

.btn-ghost-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-ghost-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1FB855; box-shadow: var(--shadow-lg); }

.btn-sm { padding: .7rem 1.5rem; font-size: .78rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge-charcoal { background: var(--charcoal); color: var(--white); }
.badge-gold { background: var(--gold); color: var(--charcoal-darker); }
.badge-outline { background: var(--white); color: var(--charcoal); border: 1px solid var(--border); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--charcoal); padding: 0 5vw; }
.header-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 96px;
}
.header-logo img { height: 46px; width: auto; }

.nav-links { display: flex; align-items: center; gap: var(--space-4); }
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  color: rgba(255,255,255,.82); font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  padding: .5rem 0; transition: color .2s;
}
.nav-links a.nav-link:hover, .nav-links a.nav-link.active { color: var(--gold-light); }

.header-cta { display: flex; align-items: center; gap: var(--space-3); }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 26px; padding: 0; }
.hamburger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 96px 0 0 0; background: var(--charcoal); z-index: 99;
  padding: var(--space-4) 6vw; display: none; flex-direction: column; gap: var(--space-2); overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--white); font-size: 1.1rem; font-weight: 600; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-menu .btn { align-self: flex-start; margin-top: var(--space-2); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(12,15,20,.95) 0%, rgba(20,24,31,.85) 45%, rgba(20,24,31,.55) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: var(--space-6) 5vw; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: var(--space-3);
}
.hero-title { color: var(--white); margin-bottom: var(--space-3); }
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 580px; margin-bottom: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.hero-trust-item { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: rgba(255,255,255,.85); }
.hero-trust-item svg { width: 18px; height: 18px; color: var(--gold-light); flex-shrink: 0; }

.hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-5); align-items: center; }
.hero-split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.hero-split-media img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   CARDS
   ========================================================= */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* 5-card problem grid: last row (2 cards) stretches to fill the same width
   as the 3-card row above, instead of leaving a gap on the right. */
#problema .card-grid { grid-template-columns: repeat(6, 1fr); }
#problema .card-grid > .card-problem { grid-column: span 2; }
#problema .card-grid > .card-problem:nth-child(4),
#problema .card-grid > .card-problem:nth-child(5) { grid-column: span 3; }

.card-problem {
  background: var(--charcoal); border: 1px solid var(--charcoal-light); border-radius: var(--radius);
  padding: var(--space-3); box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.card-problem::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.card-problem:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 55px rgba(192,156,84,.25), var(--shadow-lg);
  border-color: var(--gold);
}
.card-problem:hover::before { transform: scaleX(1); }
.card-problem-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); background: rgba(192,156,84,.16); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-2);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .3s, color .3s;
}
.card-problem:hover .card-problem-icon { transform: scale(1.15) rotate(-6deg); background: var(--gold); color: var(--charcoal-darker); }
.card-problem-icon svg { width: 24px; height: 24px; }
.card-problem p { font-size: .95rem; color: rgba(255,255,255,.88); }

.card-area {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.card-area:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 24px 55px rgba(192,156,84,.22), var(--shadow-lg); }
.card-area-head { background: var(--charcoal); padding: var(--space-4) var(--space-3); color: var(--white); }
.card-area-head h3 { color: var(--white); margin-bottom: .6rem; }
.card-area-head p { color: rgba(255,255,255,.78); font-size: .92rem; }
.card-area-body { padding: var(--space-3); flex: 1; display: flex; flex-direction: column; }
.card-area-list { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-3); }
.card-area-list li { display: flex; gap: .7rem; font-size: .92rem; color: var(--ink); }
.card-area-list li strong { color: var(--charcoal); }
.card-area-list li::before { content: ''; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-top: .55rem; }
.card-area-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: .5rem;
  color: var(--gold-dark); font-weight: 700; font-size: .82rem; letter-spacing: .02em; transition: gap .25s;
}
.card-area-link:hover { gap: .8rem; }

.card-feature {
  background: var(--white); border-radius: var(--radius); padding: var(--space-3);
  box-shadow: var(--shadow); border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.card-feature::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.card-feature:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 55px rgba(192,156,84,.2), var(--shadow-lg);
  border-color: var(--gold);
}
.card-feature:hover::before { transform: scaleX(1); }
.card-feature-icon {
  width: 50px; height: 50px; border-radius: var(--radius-sm); background: rgba(192,156,84,.12); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-2);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .3s, color .3s;
}
.card-feature:hover .card-feature-icon { transform: scale(1.15) rotate(-6deg); background: var(--gold); color: var(--charcoal-darker); }
.card-feature-icon svg { width: 24px; height: 24px; }
.card-feature h4 { font-size: 1.05rem; color: var(--charcoal); margin-bottom: .5rem; }
.card-feature p { font-size: .88rem; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }

/* ---------- LP service detail blocks ---------- */
.service-block { display: grid; grid-template-columns: .55fr 1.45fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.service-block:last-child { border-bottom: none; }
.service-block h3 { color: var(--charcoal); margin-bottom: .7rem; }
.service-block p { font-size: .97rem; }
.service-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: var(--gold); line-height: 1; }

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq-accordion { display: flex; flex-direction: column; gap: var(--space-2); max-width: 800px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: 1.3rem 1.6rem; text-align: left; font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--charcoal);
}
.faq-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(192,156,84,.14); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 400;
  transition: transform .3s, background .3s, color .3s;
}
.faq-question[aria-expanded="true"] .faq-icon { background: var(--gold); color: var(--white); transform: rotate(45deg); }
.faq-answer { padding: 0 1.6rem 1.5rem; animation: faqFade .25s ease; }
.faq-answer p { font-size: .95rem; }
@keyframes faqFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   FORM
   ========================================================= */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); max-width: 640px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 1rem 1.2rem; border-radius: var(--radius); border: 1.5px solid var(--border);
  background: var(--white); font-size: .92rem; transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: var(--space-1); }

.contact-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); margin-top: var(--space-4); }
.contact-info-item { background: var(--white); border-radius: var(--radius); padding: var(--space-3); border: 1px solid var(--border); display: flex; gap: var(--space-2); align-items: flex-start; }
.contact-info-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(192,156,84,.12); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-item h4 { font-size: .9rem; color: var(--charcoal); margin-bottom: .3rem; }
.contact-info-item p, .contact-info-item a { font-size: .9rem; }
.contact-info-item a { color: var(--gold-dark); font-weight: 600; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--charcoal-darker); color: rgba(255,255,255,.68); padding: var(--space-6) 0 var(--space-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-4); padding-bottom: var(--space-5); }
.footer-logo img { height: 42px; margin-bottom: var(--space-2); }
.footer-about { font-size: .88rem; max-width: 320px; margin-bottom: var(--space-3); }
.footer-col h5 { color: var(--white); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--space-2); }
.footer-col a, .footer-col p { display: block; font-size: .88rem; padding: .4rem 0; transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: var(--space-3); font-size: .8rem; text-align: center; }

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.whatsapp-float {
  position: fixed; bottom: var(--space-3); right: var(--space-3); z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; transition: transform .25s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; color: var(--white); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-stagger.visible { opacity: 1; transform: translateY(0); }

/* ---------- Decorative side motif (emblem, low-opacity, lateral) ---------- */
.motif-host { position: relative; overflow: hidden; }
.side-motif {
  position: absolute; top: 50%; width: 22vw; max-width: 320px; aspect-ratio: 155/133;
  transform: translateY(-50%); background-image: url('../img/emblem-gold.png');
  background-repeat: no-repeat; background-size: contain; opacity: .09; pointer-events: none; z-index: 0;
}
.side-motif.motif-left { left: -4vw; }
.side-motif.motif-right { right: -4vw; }
@media (max-width: 960px) { .side-motif { width: 38vw; opacity: .07 !important; } }

/* =========================================================
   MISC / UTILITIES
   ========================================================= */
.placeholder-info { color: #9C4A1F; background: rgba(156,74,31,.08); padding: .1rem .4rem; border-radius: 4px; font-weight: 700; }
.center-text { text-align: center; }
.mt-lg { margin-top: var(--space-5); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .header-cta .btn-primary { display: none; }
  .hamburger { display: flex; }

  .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
  #problema .card-grid > .card-problem,
  #problema .card-grid > .card-problem:nth-child(4),
  #problema .card-grid > .card-problem:nth-child(5) { grid-column: span 1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }

  .hero-split { grid-template-columns: 1fr; gap: var(--space-3); }
  .hero-split-media { order: -1; aspect-ratio: 16/10; }

  .service-block { grid-template-columns: 1fr; gap: var(--space-2); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-5) 0; }
  .hero-content { padding: var(--space-5) 6vw; }
}
