/* =========================================================
   Dra. Carolina Sant'Ana — Advocacia Previdenciária
   Design tokens derived from the client's own brand material
   (gold + dusty rose + ivory, serif display, Belo Horizonte)
   ========================================================= */

:root {
  --cream: #F7F3EC;
  --cream-2: #F1EADC;
  --ink: #241F1B;
  --ink-soft: #55504A;
  --gold: #A9812E;
  --gold-deep: #8A6A22;
  --rose: #C17C72;
  --sand: #EFE7D8;
  --line: #DDD2BC;
  --white: #FFFFFF;

  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Lora', Georgia, serif;
  --ui: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1120px;
  --radius: 2px;
  --shadow: 0 20px 60px -25px rgba(36, 31, 27, 0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

section { position: relative; }

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--gold-deep);
  outline-offset: 3px;
}

/* -------------------- utility type -------------------- */

.eyebrow {
  font-family: var(--ui);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--rose);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before,
.section-head.center .eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--rose); }

.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 2.7rem);
  font-weight: 500;
}

.section-head .lede {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-label {
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--gold-deep);
}

/* -------------------- buttons -------------------- */

.btn {
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 52px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { flex: none; }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: #34291a; }

.btn-whatsapp {
  background: #25D366;
  color: #0b3b1f;
}
.btn-whatsapp:hover { background: #21bd5a; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-ghost-gold {
  background: transparent;
  color: var(--gold-deep);
  border-color: var(--gold);
}
.btn-ghost-gold:hover { background: var(--gold); color: var(--white); }

.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* -------------------- header -------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
/* blur lives on an isolated pseudo-layer so this element never becomes a
   containing block for fixed descendants (.main-nav needs the viewport) */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 243, 236, 0.9);
  backdrop-filter: blur(10px);
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(0,0,0,.4);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gold-deep);
  flex: none;
}

.brand-text { line-height: 1.15; }
.brand-name { font-size: 17px; font-weight: 600; }
.brand-role { font-family: var(--ui); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

.nav-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); top: 0; }

.main-nav {
  position: fixed;
  inset: 0;
  top: 69px;
  background: var(--cream);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.main-nav.is-open { transform: translateX(0); }

.main-nav a {
  font-family: var(--ui);
  font-size: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  display: block;
}

.main-nav .nav-cta { margin-top: 20px; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    inset: auto;
    transform: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    gap: 30px;
  }
  .main-nav a {
    border-bottom: none;
    padding: 4px 0;
    font-size: 13.5px;
    letter-spacing: .03em;
    position: relative;
  }
  .main-nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
  }
  .main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
  .main-nav .nav-cta {
    margin-top: 0;
    background: var(--ink);
    color: var(--cream);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 13px;
  }
}

/* -------------------- hero -------------------- */

.hero {
  overflow: hidden;
  padding-top: 28px;
}

.hero-grid {
  display: grid;
  gap: 40px;
}

.hero-copy { padding: 10px 0 0; position: relative; z-index: 2; }

.hero-copy .eyebrow { color: var(--gold-deep); }
.hero-copy .eyebrow::before { background: var(--gold-deep); }

.hero h1 {
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 500;
}

.hero .lede {
  font-family: var(--body);
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 22px 0 30px;
  max-width: 46ch;
}

.hero-photo {
  position: relative;
  z-index: 1;
  display: none;
}
.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.hero-photo-frame {
  position: relative;
  isolation: isolate;
}
.hero-photo-frame::before {
  content: '';
  position: absolute;
  top: 18px; left: -18px;
  right: 18px; bottom: -18px;
  border: 1px solid var(--gold);
  z-index: -1;
}

.hero-waves {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 620px;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 32px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--ink);
  font-weight: 600;
}
.hero-stat span {
  font-family: var(--ui);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .hero { padding-top: 60px; }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 60px;
  }
  .hero-photo { display: block; }
  .hero-photo-frame::before { top: 26px; left: -26px; right: 26px; bottom: -26px; }
}

/* -------------------- about -------------------- */

.about { padding: 90px 0; }
.about-grid {
  display: grid;
  gap: 44px;
}
.about-photo {
  position: relative;
}
.about-photo img { border-radius: var(--radius); }
.about-quote {
  background: var(--ink);
  color: var(--cream);
  padding: 26px 28px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  margin-top: -50px;
  margin-right: 24px;
  position: relative;
  z-index: 2;
}
.about-quote cite {
  display: block;
  font-family: var(--ui);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  margin-top: 14px;
}

.about-body .cred-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.about-body .cred-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: var(--ui);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.about-body .cred-list svg { flex: none; margin-top: 3px; color: var(--gold); }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: start; }
  .about-quote { margin-right: 40px; }
}

/* -------------------- areas -------------------- */

.areas { padding: 90px 0; background: var(--sand); }

.areas-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.area-card {
  background: var(--cream);
  padding: 30px 26px;
  border: 1px solid var(--line);
  scroll-margin-top: 90px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.area-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.area-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.area-card h3 {
  font-size: 1.28rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.area-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

@media (min-width: 680px) {
  .areas-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1020px) {
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
}

/* -------------------- diferenciais -------------------- */

.diff { padding: 90px 0; }
.diff-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}
.diff-item { display: flex; gap: 18px; }
.diff-num {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--gold);
  font-style: italic;
  flex: none;
  width: 36px;
}
.diff-item h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 600; }
.diff-item p { color: var(--ink-soft); font-size: 0.96rem; }

@media (min-width: 760px) {
  .diff-grid { grid-template-columns: 1fr 1fr; column-gap: 50px; row-gap: 40px; }
}

/* -------------------- atendimento / location -------------------- */

.atendimento {
  padding: 90px 0;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  position: relative;
}
.atendimento .eyebrow { color: var(--rose); }
.atendimento .eyebrow::before { background: var(--rose); }
.atendimento h2 { color: var(--cream); }
.atendimento .lede { color: #cfc7ba; }

.atendimento-grid {
  display: grid;
  gap: 34px;
}
.atendimento-card {
  border: 1px solid rgba(247,243,236,0.18);
  padding: 28px;
}
.atendimento-card h3 {
  color: var(--cream);
  font-size: 1.2rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.atendimento-card h3 svg { color: var(--gold); flex: none; }
.atendimento-card p { color: #cfc7ba; font-size: 0.97rem; }
.atendimento-card .note {
  margin-top: 14px;
  font-family: var(--ui);
  font-size: 12px;
  color: var(--rose);
  letter-spacing: 0.02em;
}

@media (min-width: 800px) {
  .atendimento-grid { grid-template-columns: 1fr 1fr; }
}

/* -------------------- contact / cta band -------------------- */

.cta-band {
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 18px; }
.cta-band .lede { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 34px; }
.cta-band .btn-row { justify-content: center; }
.verse {
  margin-top: 46px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-deep);
}
.verse cite {
  display: block;
  font-family: var(--ui);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* -------------------- footer -------------------- */

.site-footer {
  background: var(--sand);
  border-top: 1px solid var(--line);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  gap: 40px;
}
.footer-brand .brand-mark { border-color: var(--gold); }
.footer-brand p { color: var(--ink-soft); font-size: .92rem; margin-top: 16px; max-width: 40ch; }

.footer-col h4 {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a {
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-col a:hover { color: var(--gold-deep); }
.footer-col svg { flex: none; color: var(--gold); }

.footer-missing {
  margin-top: 10px;
  font-family: var(--ui);
  font-size: 11.5px;
  color: var(--rose);
  border: 1px dashed var(--rose);
  padding: 6px 10px;
  display: inline-block;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-family: var(--ui);
  font-size: 12px;
  color: var(--ink-soft);
}

@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* -------------------- floating whatsapp -------------------- */

.float-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.45);
  transition: transform .2s ease;
}
.float-whatsapp:hover { transform: scale(1.06); }

/* -------------------- reveal on scroll -------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* -------------------- skip link -------------------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 100;
  font-family: var(--ui);
  font-size: 13px;
}
.skip-link:focus {
  left: 20px;
  top: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
