/* ===================================================================
   COPPOLA & ZAMPIERI ADVOCACIA — Direito de Família
   Sistema de tokens
   =================================================================== */

:root {
  /* Cor */
  --navy:        #0F2436;   /* autoridade, texto principal, header */
  --navy-mid:    #1C3A52;   /* hovers, acentos secundários */
  --paper:       #F7F4EE;   /* fundo quente, "papel" */
  --paper-deep:  #EFEAE0;   /* fundo de seções alternadas */
  --brass:       #8C7355;   /* bronze envelhecido, calor humano */
  --brass-light: #B79C7C;
  --olive:       #3D4D42;   /* selo / distinção pontual */
  --ink-soft:    #4A5560;   /* texto secundário sobre paper */
  --line:        rgba(15, 36, 54, 0.12);
  --line-strong: rgba(15, 36, 54, 0.22);
  --white:       #FFFFFF;

  /* Tipografia */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --wrap: 1180px;
  --radius: 2px;
  --transition: 220ms ease;
}

/* ===================================================================
   RESET
   =================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea {
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ===================================================================
   COMPONENTES COMPARTILHADOS
   =================================================================== */

.chapter-mark {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 14px;
  position: relative;
  padding-left: 22px;
}
.chapter-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--brass);
}
.chapter-mark--center {
  padding-left: 0;
  text-align: center;
  display: block;
}
.chapter-mark--center::before { display: none; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 22px;
}

.section-title-center {
  text-align: center;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 18px;
}

.section-sub {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.section-temas .section-sub { margin: 0 auto 56px; text-align: center; }
.section-cuidados .section-sub { margin-top: 12px; }

.lead-paragraph {
  font-size: 1.18rem;
  color: var(--navy-mid);
  margin-bottom: 18px;
}

.section p {
  color: var(--ink-soft);
  max-width: 640px;
}
.section p + p { margin-top: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--paper);
}
.btn-primary:hover { background: var(--navy-mid); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--navy); background: var(--white); }

.btn-text {
  color: var(--navy-mid);
  font-weight: 600;
  text-underline-offset: 4px;
  padding: 15px 4px;
}
.btn-text:hover { text-decoration: underline; }

.btn-block { width: 100%; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   HEADER
   =================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(15, 36, 54, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-seal {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.brand-name em {
  font-style: italic;
  color: var(--brass);
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--navy-mid);
  transition: color var(--transition);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after { transform: scaleX(1); }

.nav-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  transition: var(--transition);
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--paper);
  border-top: 1px solid var(--line);
  overflow: hidden;
  max-height: 0;
  transition: max-height 320ms ease;
}
.mobile-nav.is-open { max-height: 400px; }
.mobile-nav a {
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 500;
}

/* ===================================================================
   HERO
   =================================================================== */

.hero {
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 80px;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 26px;
  letter-spacing: -0.01em;
}

.hero-em {
  font-style: italic;
  color: var(--brass);
}

.hero-lede {
  font-size: 1.12rem;
  color: var(--navy-mid);
  max-width: 520px;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(28%) sepia(6%) saturate(85%);
}
.hero-media-frame {
  position: absolute;
  top: 18px;
  left: 18px;
  right: -18px;
  bottom: -18px;
  border: 1px solid var(--brass);
  z-index: -1;
}

.hero-strip {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ===================================================================
   SEÇÕES — base
   =================================================================== */

.section {
  padding: 100px 0;
}

/* ===================================================================
   INTRO (Capítulo I)
   =================================================================== */

.section-intro {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 72px;
}

.intro-label-col h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  position: sticky;
  top: 120px;
}

.intro-body-col {
  max-width: 680px;
}

.intro-figures {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.figure-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.figure-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--navy);
}
.figure-cap {
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 220px;
}

/* ===================================================================
   TEMAS (Capítulo II)
   =================================================================== */

.section-temas {
  background: var(--paper);
}

.tema-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tema-card {
  background: var(--paper);
  padding: 40px 34px;
  position: relative;
}

.tema-index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--brass);
  display: block;
  margin-bottom: 18px;
}

.tema-card h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}

.tema-card p {
  font-size: 0.95rem;
  max-width: none;
}

/* ===================================================================
   GALERIA
   =================================================================== */

.section-galeria {
  padding: 0;
  background: var(--white);
}

.galeria-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr;
  gap: 0;
}

.galeria-item {
  position: relative;
  overflow: hidden;
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 600ms ease;
}
.galeria-item:hover img { transform: scale(1.04); }

.galeria-item--tall { grid-row: span 1; }

.galeria-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
  background: linear-gradient(180deg, transparent, rgba(15,36,54,0.78));
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ===================================================================
   PROCESSO (Capítulo III)
   =================================================================== */

.section-processo {
  background: var(--paper-deep);
}

.processo-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 72px;
}

.processo-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 22px;
}

.processo-timeline {
  position: relative;
  border-left: 1px solid var(--line-strong);
  padding-left: 44px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.processo-timeline li {
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: -50px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper-deep);
  border: 2px solid var(--brass);
}

.processo-timeline h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.processo-timeline p {
  font-size: 0.97rem;
  max-width: 540px;
}

/* ===================================================================
   CUIDADOS (Capítulo IV)
   =================================================================== */

.section-cuidados {
  background: var(--navy);
  color: var(--paper);
}
.section-cuidados h2,
.section-cuidados .chapter-mark {
  color: var(--paper);
}
.section-cuidados .chapter-mark::before { background: var(--brass-light); }
.section-cuidados .chapter-mark { color: var(--brass-light); }
.section-cuidados .section-sub { color: rgba(247,244,238,0.7); }

.cuidados-grid {
  display: block;
}

.cuidados-header {
  max-width: 620px;
  margin-bottom: 56px;
}
.cuidados-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.cuidados-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}

.cuidado-item {
  border-top: 1px solid rgba(247,244,238,0.18);
  padding-top: 24px;
}

.cuidado-item h3 {
  color: var(--paper);
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.cuidado-item p {
  color: rgba(247,244,238,0.68);
  font-size: 0.95rem;
}

/* ===================================================================
   SOBRE
   =================================================================== */

.section-sobre {
  background: var(--white);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 72px;
  align-items: center;
}

.sobre-media img {
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(25%);
  border-radius: var(--radius);
}

.sobre-text h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  margin-bottom: 22px;
}

.sobre-valores {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sobre-valores li {
  position: relative;
  padding-left: 24px;
  color: var(--navy-mid);
  font-size: 0.97rem;
}
.sobre-valores li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass);
}

/* ===================================================================
   CONTATO
   =================================================================== */

.section-contato {
  background: var(--paper-deep);
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 64px;
}

.contato-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 20px;
}

.contato-info {
  display: flex;
  gap: 48px;
  margin-top: 36px;
}

.contato-info-item h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
  margin-bottom: 10px;
}
.contato-info-item p {
  font-size: 0.97rem;
  color: var(--navy-mid);
}

.contato-card {
  background: var(--white);
  padding: 44px;
  border: 1px solid var(--line);
}

.contato-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.contato-card p {
  font-size: 0.93rem;
  margin-bottom: 28px;
}

.contato-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contato-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-mid);
}

.contato-form input,
.contato-form textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--paper);
  resize: vertical;
  transition: border-color var(--transition);
}
.contato-form input:focus,
.contato-form textarea:focus {
  border-color: var(--brass);
  outline: none;
}

.contato-form button {
  margin-top: 8px;
}

/* ===================================================================
   FOOTER
   =================================================================== */

.site-footer {
  background: var(--navy);
  color: rgba(247,244,238,0.7);
  padding: 60px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 28px 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-row: 1;
}
.footer-brand .brand-seal {
  border-color: rgba(247,244,238,0.3);
  color: var(--paper);
}
.footer-brand .brand-name {
  color: var(--paper);
}
.footer-brand .brand-sub { color: rgba(247,244,238,0.55); }

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  grid-row: 1;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--paper); }

.footer-note {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  line-height: 1.7;
  border-top: 1px solid rgba(247,244,238,0.15);
  padding-top: 28px;
  max-width: 720px;
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: rgba(247,244,238,0.45);
}

/* ===================================================================
   RESPONSIVO
   =================================================================== */

@media (max-width: 1024px) {
  .wrap { padding: 0 24px; }

  .main-nav { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 56px;
  }
  .hero-media { max-width: 420px; margin: 0 auto; }

  .intro-grid,
  .processo-grid,
  .sobre-grid,
  .contato-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .intro-label-col h2 { position: static; }
  .sobre-media { max-width: 360px; margin: 0 auto; }

  .tema-list { grid-template-columns: repeat(2, 1fr); }

  .galeria-grid { grid-template-columns: 1fr 1fr; }
  .galeria-item--tall { grid-column: span 2; aspect-ratio: 16/9; }

  .cuidados-list { grid-template-columns: 1fr; gap: 32px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }

  .header-inner { height: 70px; }
  .brand-name { font-size: 1.02rem; }
  .brand-seal { width: 36px; height: 36px; font-size: 0.72rem; }

  .hero { padding-top: 40px; }
  .hero-text h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { gap: 18px; }
  .hero-media-frame { display: none; }

  .intro-figures { flex-direction: column; gap: 24px; }

  .tema-list { grid-template-columns: 1fr; }

  .galeria-grid { grid-template-columns: 1fr; }
  .galeria-item--tall { grid-column: auto; aspect-ratio: 16/9; }

  .contato-card { padding: 30px 24px; }
  .contato-info { flex-direction: column; gap: 24px; }

  .footer-note { font-size: 0.8rem; }
}