/* =========================================================
   Dra. Cibele Patrício — Odontologia Especializada
   Palette derived from her brand: warm taupe (hero), terracotta, gold
   ========================================================= */

:root {
  --taupe:       #b5a898;
  --taupe-light: #c6bfb1;
  --taupe-dark:  #9f8f7b;
  --cream:       #f7f1e8;
  --cream-2:     #fbf8f2;
  --ink:         #2f2a25;
  --ink-soft:    #5d5448;
  --terra:       #bf6230;
  --terra-dark:  #a44f24;
  --gold:        #b08d57;
  --gold-soft:   #c9a96e;
  --white:       #ffffff;
  --espresso:    #2b2622;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-script:  'Great Vibes', cursive;

  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 6px 20px rgba(47, 42, 37, .08);
  --shadow-md: 0 18px 50px rgba(47, 42, 37, .14);
  --shadow-lg: 0 30px 80px rgba(47, 42, 37, .20);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }
section { position: relative; }
.section-pad { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--terra);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--gold);
}
.eyebrow.center::after {
  content: ""; width: 32px; height: 1px; background: var(--gold);
}
.eyebrow.center { justify-content: center; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; color: var(--ink); letter-spacing: .005em; }
h2.title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: .55rem 0 1rem; }
.script-accent { font-family: var(--font-script); color: var(--gold); font-weight: 400; }
.lead { color: var(--ink-soft); font-size: clamp(1rem, 1.4vw, 1.12rem); }

.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .92rem; letter-spacing: .02em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--terra); color: var(--white); box-shadow: 0 12px 30px rgba(191, 98, 48, .35); }
.btn--primary:hover { background: var(--terra-dark); transform: translateY(-3px); box-shadow: 0 18px 38px rgba(191, 98, 48, .42); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(47,42,37,.28); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-3px); }
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 12px 30px rgba(176,141,87,.32); }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-3px); }
.btn--light { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ---------- Brand / Logo (inline, recolorable via currentColor) ---------- */
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--gold); }
.brand__img { height: 56px; width: auto; display: block; }
.header.scrolled .brand__img { height: 50px; transition: height .4s var(--ease); }
.footer .brand__img { height: 100px; }
.brand__mark { width: 40px; height: auto; flex: none; color: inherit; }
.brand__mark .tooth { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark .cp { fill: currentColor; font-family: var(--font-script); font-size: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-script); font-size: 1.5rem; color: var(--ink); line-height: .9; }
.brand__tag {
  font-family: var(--font-body); font-size: .55rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  margin-top: .28rem;
}

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header.scrolled { background: rgba(251, 248, 242, .9); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); height: 66px; }
.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a {
  font-size: .9rem; font-weight: 500; color: var(--ink); position: relative; padding: .3rem 0;
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--terra); transition: width .35s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--terra); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

.nav__cta { display: inline-flex; }
.nav__cta.mobile { display: none; }
.hamburger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; z-index: 70; }
.hamburger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 28px; }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (blended into matching taupe) ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 900px);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  /* warm champagne backdrop — the cut-out Dra. stands against it */
  background:
    radial-gradient(120% 125% at 72% 10%, #f9f3e7 0%, #eee0c8 50%, #e1cfb0 100%);
}
/* soft warm light glow behind her */
.hero::before {
  content: ""; position: absolute; right: 3%; top: 5%; width: 56%; height: 90%;
  background: radial-gradient(closest-side, rgba(255,251,242,.6), rgba(255,251,242,0) 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto;
  display: flex; align-items: center;
}
.hero__copy { padding: 3.5rem 0; max-width: 520px; }
/* cut-out figure anchored to the bottom-right of the section */
.hero__photo {
  position: absolute; bottom: 0; z-index: 1; pointer-events: none;
  right: max(2vw, calc(50% - var(--maxw) / 2 + 0.5rem));
  height: min(84%, 780px);
}
.hero__photo img {
  height: 100%; width: auto; display: block;
  filter: drop-shadow(0 22px 34px rgba(70, 52, 33, .22));
}
.hero__copy h1 {
  font-size: clamp(2.8rem, 6.4vw, 5rem);
  margin: .4rem 0 .2rem;
  color: var(--espresso);
}
.hero__copy h1 .script {
  display: block; font-family: var(--font-script); font-weight: 400;
  color: var(--terra-dark); font-size: .62em; line-height: 1; margin-bottom: -.15em;
}
.hero__tagline {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  color: var(--ink); font-style: italic; margin-bottom: 1rem;
}
.hero__copy p.lead { color: #4a4137; max-width: 480px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero__stats { display: flex; gap: 2.2rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero__stat .num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--terra-dark); line-height: 1; }
.hero__stat .lbl { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: .35rem; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  z-index: 3; color: var(--ink-soft); font-size: .68rem; letter-spacing: .25em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.hero__scroll .mouse { width: 22px; height: 36px; border: 2px solid var(--ink-soft); border-radius: 12px; position: relative; }
.hero__scroll .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; background: var(--ink-soft); border-radius: 2px; transform: translateX(-50%); animation: scrollWheel 1.6s infinite; }
@keyframes scrollWheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 10px); } 100% { opacity: 0; } }

/* ---------- About / Sobre ---------- */
.about { background: var(--cream-2); }
.about__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.about__media .frame {
  position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--gold);
  border-radius: var(--radius); z-index: -1;
}
.about__media .badge {
  position: absolute; right: -14px; bottom: 28px; background: var(--espresso); color: var(--cream);
  padding: 1.1rem 1.3rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); text-align: center;
}
.about__media .badge b { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-soft); display: block; line-height: 1; }
.about__media .badge span { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; }
.about__text p + p { margin-top: 1rem; }
.about__text .lead { margin-bottom: 1.3rem; }
.credentials { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.4rem; margin-top: 1.8rem; }
.credentials li { display: flex; align-items: flex-start; gap: .7rem; font-size: .92rem; color: var(--ink); }
.credentials svg { width: 22px; height: 22px; color: var(--terra); flex: none; margin-top: 1px; }
.signature { font-family: var(--font-script); font-size: 2.1rem; color: var(--gold); margin-top: 1.6rem; }

/* ---------- Specialties ---------- */
.specialties { background: linear-gradient(180deg, var(--cream) 0%, #f1e8da 100%); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 3rem; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 2.1rem 1.8rem;
  box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  position: relative; overflow: hidden; border: 1px solid rgba(176,141,87,.12);
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--terra);
  transition: width .45s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card:hover::after { width: 100%; }
.card__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f6ede0, #efe2cf); color: var(--terra); margin-bottom: 1.2rem;
  transition: background .4s, color .4s, transform .4s var(--ease);
}
.card:hover .card__icon { background: var(--terra); color: #fff; transform: rotate(-6deg) scale(1.05); }
.card__icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.card p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Humanized care band ---------- */
.care { background: var(--espresso); color: var(--cream); overflow: hidden; }
.care__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem,5vw,4.5rem); }
.care__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.care h2 { color: var(--cream); }
.care .eyebrow { color: var(--gold-soft); }
.care .eyebrow::before { background: var(--gold-soft); }
.care p { color: #d9cfc1; }
.care__quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem,2.6vw,2.1rem); line-height: 1.3; color: var(--cream); margin: 1rem 0 1.4rem; }
.care__quote::first-letter { color: var(--gold-soft); }

/* ---------- Gallery ---------- */
.gallery { background: var(--cream-2); }
/* Masonry: every photo shown in full (natural aspect ratio), never cropped */
.gallery__grid { columns: 3 300px; column-gap: 1.2rem; margin-top: 3rem; }
.g-item {
  position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  break-inside: avoid; margin: 0 0 1.2rem; background: #efe7da;
}
.g-item img { width: 100%; height: auto; display: block; transition: transform .8s var(--ease); }
.g-item:hover img { transform: scale(1.04); }
.g-item::after {
  content: attr(data-cap); position: absolute; inset: auto 0 0 0; padding: 1.5rem 1.2rem .95rem;
  background: linear-gradient(transparent, rgba(43,38,34,.8)); color: #fff; font-size: .82rem;
  letter-spacing: .04em; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease);
}
.g-item:hover::after { opacity: 1; transform: translateY(0); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, #f1e8da 0%, var(--cream) 100%); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: stretch; }
.contact__info { display: flex; flex-direction: column; }
.contact__list { margin-top: 1.8rem; display: grid; gap: 1.1rem; }
.contact__list a, .contact__list div { display: flex; align-items: flex-start; gap: 1rem; }
.contact__list .ic {
  width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: var(--white); color: var(--terra); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), background .3s, color .3s;
}
.contact__list a:hover .ic { background: var(--terra); color: #fff; transform: translateY(-3px); }
.contact__list .ic svg { width: 22px; height: 22px; }
.contact__list b { display: block; font-family: var(--font-body); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.contact__list span.val { font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.contact__cta { margin-top: 2rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.contact__map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-height: 360px; background: linear-gradient(135deg, #ece2d3, #ddcfba); }
.contact__map iframe { position: relative; z-index: 2; width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(.2) contrast(1.02); }
.map-fallback {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .55rem; text-align: center; padding: 2rem;
}
.map-fallback svg { width: 40px; height: 40px; color: var(--terra); }
.map-fallback strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }
.map-fallback span { font-size: .9rem; color: var(--ink-soft); margin-bottom: .6rem; }

/* ---------- Footer ---------- */
.footer { background: var(--espresso); color: #cfc6ba; padding: 4rem 0 1.6rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand__name { color: var(--cream); }
.footer .brand { color: var(--gold-soft); }
.footer p { font-size: .9rem; max-width: 320px; margin-top: 1.1rem; }
.footer h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.1rem; }
.footer__links a, .footer__contact a, .footer__contact div { display: block; font-size: .92rem; padding: .3rem 0; transition: color .3s, padding .3s; }
.footer__links a:hover { color: var(--cream); padding-left: .3rem; }
.footer__social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .3s, transform .3s; }
.footer__social a:hover { background: var(--gold); transform: translateY(-3px); }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .78rem; color: #9b9183; }
.footer__bottom a { color: var(--gold-soft); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 80;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.5);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: waPulse 2.6s infinite;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 40px rgba(37,211,102,.6); }
@keyframes waPulse { 0% { box-shadow: 0 12px 30px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.45);} 70% { box-shadow: 0 12px 30px rgba(37,211,102,.5), 0 0 0 18px rgba(37,211,102,0);} 100% { box-shadow: 0 12px 30px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0);} }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
.reveal[data-d="4"] { transition-delay: .4s; }
.reveal[data-d="5"] { transition-delay: .5s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .nav__cta.desktop { display: none; }
  .hamburger { display: block; }

  /* Mobile slide-down menu */
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fbf8f2; backdrop-filter: blur(14px);
    flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.4rem 1.8rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .5s var(--ease); pointer-events: none;
  }
  body.menu-open .nav { transform: translateY(0); pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__links a { padding: 1rem .2rem; border-bottom: 1px solid rgba(47,42,37,.08); font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav__cta.mobile { display: inline-flex; margin-top: 1.2rem; }

  .hero { min-height: auto; flex-direction: column; padding-bottom: 0; text-align: center; }
  .hero__photo {
    position: static; order: 1; right: auto; height: auto;
    width: 100%; max-width: 330px; margin: .5rem auto 0;
  }
  .hero__photo img { height: auto; width: 100%; }
  .hero__inner { order: 2; }
  .hero__copy { max-width: 100%; margin-inline: auto; padding: 1.2rem 0 2.4rem; }
  .hero__actions, .hero__stats { justify-content: center; }
  .eyebrow { justify-content: center; }
  .hero__scroll { display: none; }

  .about__grid, .care__grid, .contact__grid { grid-template-columns: 1fr; }
  .care__media { order: 2; }
  .about__media { max-width: 440px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .nav__cta.mobile { display: none; }
  .brand__img { height: 46px; }
  .footer .brand__img { height: 84px; }
  body { font-size: 15px; }
  .container { width: min(100% - 2rem, var(--maxw)); }
  .cards { grid-template-columns: 1fr; }
  .credentials { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.5rem; }
  .hero__stat .num { font-size: 1.8rem; }
  .gallery__grid { columns: 1; }
  .footer__top { grid-template-columns: 1fr; }
  .about__media .badge { right: 10px; }
  .btn { width: 100%; }
  .hero__actions, .contact__cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
