/* ═══════════════════════════════════════════
   Dra. Erika Chaul · Médica Geriatra
   erikachaulgeriatra.com.br
   ═══════════════════════════════════════════ */

/* ── RESET ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }

/* ── TOKENS ──────────────────────────────── */
:root {
  --burgundy:    #71293b;
  --burgundy-dk: #561e2d;
  --blushing:    #ddb6ad;
  --blushing-lt: #f2eae7;
  --fern:        #8c9d85;
  --navy:        #1f3850;
  --navy-lt:     #2a4d6e;
  --linen:       #eaddda;
  --linen-lt:    #f8f4f2;
  --white:       #ffffff;
  --dark:        #1a1a1a;
  --body:        #444444;
  --muted:       #777777;

  --serif: 'Noto Serif Display', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', system-ui, -apple-system, sans-serif;

  --max-w:    1200px;
  --radius:   12px;
  --radius-lg: 24px;
  --shadow:   0 4px 24px rgba(113,41,59,.08);
  --shadow-lg:0 12px 56px rgba(113,41,59,.14);
  --hdr-h:    72px;
  --trans:    .25s ease;
}

/* ── UTILITIES ──────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.text-center { text-align: center; }

.eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: .85rem;
}
.eyebrow--light { color: var(--blushing); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 1rem;
}
.section-title--white { color: var(--white); }

.section-sub {
  font-size: 1.025rem;
  color: var(--muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 3rem;
  line-height: 1.75;
}

/* ── BUTTONS ──────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.85rem;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .03em;
  border: 2px solid transparent;
  transition: transform var(--trans), box-shadow var(--trans),
              background var(--trans), color var(--trans), border-color var(--trans);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { flex-shrink: 0; }
.btn--primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}
.btn--primary:hover {
  background: var(--burgundy-dk);
  border-color: var(--burgundy-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(113,41,59,.3);
}
.btn--outline {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn--outline:hover { background: var(--burgundy); color: var(--white); }

.btn--white {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--white);
}
.btn--white:hover { background: var(--linen); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); }

/* ── HEADER ──────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--hdr-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221,182,173,.18);
  transition: box-shadow var(--trans);
}
.header.scrolled { box-shadow: var(--shadow); }

.hdr-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.hdr-logo { display: flex; align-items: center; }
.hdr-logo img { height: 50px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav a.link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--dark);
  transition: color var(--trans);
  position: relative;
}
.nav a.link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1.5px;
  background: var(--burgundy);
  transition: right var(--trans);
}
.nav a.link:hover { color: var(--burgundy); }
.nav a.link:hover::after { right: 0; }

.btn-nav {
  background: var(--burgundy);
  color: var(--white);
  padding: .55rem 1.3rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  transition: background var(--trans), transform var(--trans);
}
.btn-nav:hover { background: var(--burgundy-dk); transform: translateY(-1px); }

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

/* ── HERO ──────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: var(--hdr-h);
}
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem clamp(2rem,5vw,5rem) 5rem clamp(1.5rem,6vw,5.5rem);
  background: var(--linen-lt);
}
.hero__pre {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1.15rem;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 1.4rem;
}
.hero__title em { font-style: italic; color: var(--burgundy); }
.hero__lead {
  font-size: 1.05rem;
  color: var(--body);
  max-width: 460px;
  line-height: 1.78;
  margin-bottom: 2.25rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__photo {
  position: relative;
  overflow: hidden;
  background: var(--blushing-lt);
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* Elegant diagonal trim */
.hero__photo::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 100%;
  background: var(--linen-lt);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 1;
}

/* ── TRUST STRIP ──────────────────────── */
.trust-strip {
  background: var(--navy);
  padding: 1rem 0;
  overflow: hidden;
}
.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem 1.5rem;
}
.trust-item { font-size: .78rem; color: rgba(221,182,173,.75); }
.trust-item strong { color: var(--white); }
.trust-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(221,182,173,.35);
  flex-shrink: 0;
}

/* ── SOBRE ──────────────────────────── */
.sobre {
  padding: clamp(4.5rem,9vw,8rem) 0;
  background: var(--white);
}
.sobre__grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: clamp(2.5rem,6vw,5.5rem);
  align-items: center;
}
.sobre__img-wrap { position: relative; }
.sobre__img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}
.sobre__img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* Decorative border offset */
.sobre__img-wrap::before {
  content: '';
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 2px solid var(--linen);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.sobre__badge {
  position: absolute;
  bottom: 2rem; right: -1.75rem;
  background: var(--burgundy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.sobre__badge-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  display: block;
}
.sobre__badge-label {
  font-size: .68rem;
  opacity: .8;
  line-height: 1.4;
  display: block;
  margin-top: .15rem;
}
.sobre__body { display: flex; flex-direction: column; gap: 1.35rem; }
.sobre__text { font-size: 1rem; color: var(--body); line-height: 1.8; }
.sobre__quote {
  border-left: 3px solid var(--blushing);
  padding: 1rem 1.25rem;
  background: var(--linen-lt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.sobre__quote p {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy);
  font-style: italic;
  line-height: 1.65;
}

.creds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.cred {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: var(--linen-lt);
  border: 1px solid var(--linen);
  padding: .9rem 1rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--burgundy);
}
.cred__icon { font-size: 1.2rem; flex-shrink: 0; }
.cred__title { font-size: .82rem; font-weight: 600; color: var(--navy); display: block; }
.cred__sub { font-size: .75rem; color: var(--muted); display: block; }

/* ── SERVIÇOS ──────────────────────────── */
.servicos {
  padding: clamp(4.5rem,9vw,8rem) 0;
  background: var(--linen-lt);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.35rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid var(--linen);
  position: relative;
  transition: transform var(--trans), box-shadow var(--trans);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card--featured {
  background: var(--burgundy);
  border-color: var(--burgundy);
}
.card--featured .card__title { color: var(--white); }
.card--featured .card__text  { color: rgba(255,255,255,.78); }
.card--featured .card__icon  { background: rgba(255,255,255,.12); color: var(--blushing); }
.card__icon {
  width: 52px; height: 52px;
  background: var(--linen);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--burgundy);
  margin-bottom: 1.25rem;
}
.card__badge {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: var(--blushing);
  color: var(--burgundy);
  font-size: .65rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 50px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.card__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: .75rem;
  font-weight: 500;
}
.card__text { font-size: .9rem; color: var(--muted); line-height: 1.72; }

/* ── VIDEO ──────────────────────────── */
.video-sec {
  padding: clamp(4.5rem,9vw,8rem) 0;
  background: var(--navy);
}
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2.75rem;
  box-shadow: var(--shadow-lg);
}
.video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ── CTA BAND ──────────────────────────── */
.cta-band {
  padding: clamp(3.5rem,7vw,6rem) 0;
  background: var(--burgundy);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}
.cta-band__title {
  font-family: var(--serif);
  font-size: clamp(1.65rem,3vw,2.4rem);
  color: var(--white);
  font-weight: 500;
  margin-bottom: .65rem;
}
.cta-band__sub { color: rgba(255,255,255,.72); font-size: .98rem; line-height: 1.7; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 1rem; flex-shrink: 0; }

/* ── BLOG TEASER ──────────────────────── */
.blog-teaser {
  padding: clamp(4.5rem,9vw,8rem) 0;
  background: var(--white);
}
.blog-card {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: var(--linen-lt);
  border: 1px solid var(--linen);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 780px;
  margin-inline: auto;
}
.blog-card__emoji { font-size: 3.5rem; flex-shrink: 0; }
.blog-card__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: .6rem;
}
.blog-card__text { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; line-height: 1.72; }

/* ── CONTATO ──────────────────────────── */
.contato {
  padding: clamp(4.5rem,9vw,8rem) 0;
  background: var(--linen-lt);
}
.contato__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem,5vw,5rem);
  align-items: start;
}
.contato__items { display: flex; flex-direction: column; gap: 1.35rem; margin-top: .75rem; }
.contato__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contato__ico {
  width: 46px; height: 46px;
  background: var(--white);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.contato__item strong { display: block; font-size: .875rem; color: var(--navy); margin-bottom: .2rem; }
.contato__item p, .contato__item a { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.contato__item a:hover { color: var(--burgundy); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
  min-height: 340px;
}

/* ── FOOTER ──────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding: 4.5rem 0 3rem;
}
.footer__mono {
  font-family: var(--serif);
  font-size: 2.8rem;
  color: var(--blushing);
  line-height: 1;
  margin-bottom: .2rem;
}
.footer__dname { font-family: var(--serif); font-size: 1.05rem; color: var(--white); margin-bottom: .1rem; }
.footer__spec {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blushing);
  margin-bottom: .85rem;
}
.footer__reg { font-size: .74rem; line-height: 1.75; opacity: .55; }

.footer__col h4 {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blushing);
  margin-bottom: 1rem;
}
.footer__col a {
  display: block;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .6rem;
  transition: color var(--trans);
}
.footer__col a:hover { color: var(--white); }

.footer__bar {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.35rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .78rem;
}

/* ── WHATSAPP FLOAT ──────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  width: 58px; height: 58px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.42);
  z-index: 150;
  transition: transform var(--trans), box-shadow var(--trans);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,.5); }

/* ── MOBILE NAV OVERLAY ──────────────────────── */
.nav.open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  inset: var(--hdr-h) 0 0 0;
  background: rgba(255,255,255,.99);
  padding: 2.5rem 2rem;
  gap: 1.75rem;
  overflow-y: auto;
}
.nav.open .btn-nav { display: inline-flex; margin-top: .5rem; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .sobre__grid { grid-template-columns: 1fr 1fr; }
  .sobre__badge { right: -.75rem; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__photo { order: -1; height: 65vw; min-height: 280px; }
  .hero__photo::before { display: none; }
  .hero__copy { padding: 3.5rem 1.5rem; }
  .sobre__grid { grid-template-columns: 1fr; }
  .sobre__img-wrap::before { display: none; }
  .sobre__badge { bottom: 1.25rem; right: .75rem; }
  .contato__grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bar { justify-content: center; text-align: center; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .creds-grid { grid-template-columns: 1fr; }
  .blog-card { flex-direction: column; gap: 1.5rem; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .trust-dot { display: none; }
}
