/* =====================================================================
   Dra. Beatriz Quirol — Advocacia
   Direção: editorial carvão + ouro (#F1AF09 / #FBD269) + off-white.
   CSS local, mobile-first, fontes de sistema. Sem build / CDN.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

:root {
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* Paleta da ref: ouro + carvão + off-white */
  --paper:      #F7F6F2;
  --paper-2:    #EEECE6;
  --paper-3:    #E2DFD7;
  --white:      #FFFFFF;
  --ink:        #141414;
  --ink-soft:   #5A5A5A;
  --charcoal:   #1A1A1A;
  --charcoal-2: #242424;
  --gold:       #F1AF09;
  --gold-soft:  #FBD269;
  --gold-deep:  #C48C07;
  --gold-pale:  #F7E7B0;
  --line:       rgba(20, 20, 20, .10);
  --line-strong:rgba(20, 20, 20, .18);

  --shadow-sm: 0 6px 18px -10px rgba(0, 0, 0, .14);
  --shadow-md: 0 18px 44px -24px rgba(0, 0, 0, .22);
  --shadow-lg: 0 32px 64px -32px rgba(0, 0, 0, .30);

  --wrap: 1080px;
  --radius: 16px;
  --radius-sm: 12px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  /* espaço para a barra fixa de WhatsApp no mobile */
  padding-bottom: 76px;
}

body::selection {
  color: var(--ink);
  background: var(--gold-soft);
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 48px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--gold);
  flex: none;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
}

h1 { font-size: clamp(2.05rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.12rem; }

.lede {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 40ch;
  line-height: 1.65;
}

.muted { color: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, .94);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 22px -16px rgba(0, 0, 0, .18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--charcoal);
  color: var(--gold);
  border: 1.5px solid var(--gold);
  font-family: var(--serif);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: .88rem;
  color: var(--ink-soft);
  transition: color .2s ease;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 22px -12px rgba(241, 175, 9, .55);
}

.btn-primary:hover {
  background: var(--gold-soft);
  box-shadow: 0 12px 28px -12px rgba(241, 175, 9, .65);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

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

.btn-light {
  background: var(--gold);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--gold-soft);
  box-shadow: var(--shadow-sm);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 28px 0 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -15% -30% 40%;
  height: 65%;
  background:
    radial-gradient(closest-side, rgba(241, 175, 9, .16), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-copy h1 {
  margin: 12px 0 14px;
}

.hero-copy h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 180px);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem;
  color: var(--ink-soft);
}

.hero-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* Hero art — foto profissional local */
.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-photo {
  position: relative;
  width: min(100%, 340px);
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--charcoal);
  aspect-ratio: 4 / 5;
  border: 2px solid var(--gold);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  pointer-events: none;
  z-index: 1;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.panel-float {
  position: relative;
  z-index: 2;
  margin: -22px auto 0;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-md);
  max-width: 220px;
  width: calc(100% - 24px);
}

.panel-float strong {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.panel-float span {
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ---------- Areas / approach ---------- */
.areas {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

.section-head {
  max-width: 540px;
  margin-bottom: 28px;
}

.section-head h2 { margin: 10px 0 12px; }
.section-head p { color: var(--ink-soft); max-width: 48ch; font-size: .98rem; }

.cards {
  display: grid;
  gap: 12px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(241, 175, 9, .35);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: linear-gradient(145deg, var(--gold-pale), var(--gold-soft));
  color: var(--ink);
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card h3 { margin-bottom: 6px; }
.card p {
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.note-box {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(241, 175, 9, .5);
  background: rgba(251, 210, 105, .12);
  color: var(--ink-soft);
  font-size: .88rem;
}

.note-box strong {
  color: var(--ink);
  font-weight: 600;
}

.cards-areas {
  grid-template-columns: 1fr;
}

.about-photo {
  margin: 0 0 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
  background: var(--charcoal);
  aspect-ratio: 4 / 3;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.contact-list .value br {
  display: block;
}

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}

.about-panel {
  background: var(--charcoal);
  color: var(--paper);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(241, 175, 9, .28);
}

.about-panel::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  right: -50px;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 175, 9, .18), transparent 70%);
  pointer-events: none;
}

.about-panel .eyebrow {
  color: var(--gold-soft);
}

.about-panel .eyebrow::before { background: var(--gold); }

.about-panel h2 {
  color: var(--white);
  margin: 12px 0 12px;
}

.about-panel p {
  color: rgba(255, 255, 255, .72);
  max-width: 42ch;
  position: relative;
  z-index: 1;
  font-size: .95rem;
}

.about-stats {
  display: grid;
  gap: 0;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.stat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.stat:last-child { border-bottom: 1px solid rgba(255, 255, 255, .1); }

.stat-num {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--gold);
  min-width: 2.2ch;
  line-height: 1.2;
}

.stat-text {
  font-size: .9rem;
  color: rgba(255, 255, 255, .72);
  line-height: 1.45;
}

.about-copy h2 { margin: 10px 0 12px; }

.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 12px;
  max-width: 50ch;
  font-size: .96rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: .8rem;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Contato ---------- */
.contact {
  background:
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}

.contact-card {
  display: grid;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.contact-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--gold-soft));
}

.contact-copy h2 { margin: 10px 0 12px; }
.contact-copy p {
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 18px;
  font-size: .96rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 160px);
}

.contact-side {
  background:
    linear-gradient(160deg, var(--paper-2), var(--paper-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.contact-side h3 {
  font-size: 1.02rem;
  margin-bottom: 12px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list li {
  display: grid;
  gap: 2px;
}

.contact-list .label {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

.contact-list .value {
  font-size: .94rem;
  color: var(--ink);
  line-height: 1.45;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, .68);
  padding: 32px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: .88rem;
  max-width: 36ch;
  line-height: 1.5;
}

.footer-note {
  margin-top: 14px;
  font-size: .74rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .48);
  max-width: 70ch;
}

/* ---------- Mobile CTA bar ---------- */
.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: flex;
}

.mobile-cta .btn {
  width: 100%;
  box-shadow: 0 14px 36px -10px rgba(0, 0, 0, .35);
}

/* ---------- Tablet+ ---------- */
@media (min-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 40px)); }
  .section { padding: 56px 0; }
  .hero { padding: 36px 0 48px; }
  .hero-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  .hero-actions .btn,
  .contact-actions .btn {
    flex: 0 1 auto;
    min-width: 0;
  }
  .panel-float {
    position: absolute;
    right: 0;
    bottom: 12%;
    margin: 0;
    width: auto;
    max-width: 190px;
  }
  .hero-art {
    display: flex;
    justify-content: center;
  }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cards-areas { grid-template-columns: repeat(2, 1fr); }
  .contact-card { padding: 28px 26px; }
}

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .mobile-cta { display: none; }
  .about-grid { grid-template-columns: 1.05fr .95fr; gap: 28px; }
  .contact-card { grid-template-columns: 1.2fr .8fr; align-items: stretch; gap: 24px; }
  .footer-grid {
    grid-template-columns: 1.4fr .8fr;
    align-items: end;
  }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .about-panel { padding: 28px 26px; }
}

@media (min-width: 960px) {
  .wrap { width: min(var(--wrap), calc(100% - 56px)); }
  .section { padding: 72px 0; }
  .hero {
    padding: 44px 0 56px;
  }
  .hero-grid {
    grid-template-columns: 1.08fr .92fr;
    gap: 40px;
  }
  .hero-photo { width: min(100%, 380px); }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cards-areas { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 22px 20px; }
  .panel-float {
    right: -4px;
    max-width: 200px;
  }
}

/* Telas bem estreitas */
@media (max-width: 380px) {
  .brand-text span { display: none; }
  .wrap { width: calc(100% - 24px); }
  h1 { font-size: 1.85rem; }
  .hero-photo { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:hover,
  .card:hover { transform: none; }
}
