/* =========================================================
   Dra. Kely Tavares — Link da Bio
   Premium · Harmonização Orofacial + Endodontia · Fortaleza/CE
   ========================================================= */

:root {
  /* surfaces */
  --ivory:      #FBF6EF;
  --champagne:  #F3E7D6;
  --sand:       #E9D9C4;
  --white:      #FFFFFF;

  /* brand */
  --rose:       #C98B7C;
  --rose-deep:  #B26F60;
  --rose-text:  #9C5546;   /* darker rose for text on light (AA 4.5:1) */
  --mauve:      #A87E84;
  --gold:       #C2A06B;
  --gold-soft:  #DFC79B;

  /* ink */
  --cocoa:      #3B2E27;
  --cocoa-2:    #5C4A40;
  --cocoa-soft: #7C6857;
  --hair:       rgba(122, 92, 70, .16);

  --wa:         #2BB673;

  /* type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* radius / shadow */
  --r:    20px;
  --r-lg: 26px;
  --sh-sm: 0 6px 20px -10px rgba(80, 55, 40, .25);
  --sh:    0 22px 50px -28px rgba(80, 55, 40, .45);
  --sh-gold: 0 24px 60px -26px rgba(170, 130, 70, .55);

  --shell: 480px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--cocoa);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: fixed; top: -120px; left: 16px; z-index: 100;
  background: var(--cocoa); color: #fff; padding: 12px 18px; border-radius: 10px; transition: top .25s;
}
.skip-link:focus { top: 16px; }

/* ---------- AMBIENT BACKGROUND ---------- */
.atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.atmosphere::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% -5%, #F7ECDD 0%, rgba(247,236,221,0) 60%),
    radial-gradient(80% 60% at 50% 110%, #F0E1CC 0%, rgba(240,225,204,0) 55%),
    var(--ivory);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob-1 { width: 360px; height: 360px; top: -90px; right: -120px; background: radial-gradient(circle, #EAC9B6, transparent 70%); }
.blob-2 { width: 420px; height: 420px; top: 38%; left: -180px; background: radial-gradient(circle, #E7D2BE, transparent 70%); }
.blob-3 { width: 380px; height: 380px; bottom: -120px; right: -120px; background: radial-gradient(circle, #E3C9C0, transparent 70%); }
.grain {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(120,90,60,.06) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ---------- SHELL ---------- */
.shell {
  width: 100%; max-width: var(--shell); margin-inline: auto;
  padding: clamp(28px, 7vw, 48px) clamp(18px, 5vw, 26px) 40px;
  display: flex; flex-direction: column;
}

/* ---------- HERO ---------- */
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-mark { height: 40px; width: auto; margin-bottom: clamp(18px, 5vw, 28px); opacity: .96; }

.hero-portrait { position: relative; width: clamp(168px, 46vw, 210px); margin-bottom: 22px; }
.hero-frame {
  position: relative; border-radius: 50% 50% 48% 48% / 56% 56% 44% 44%;
  overflow: hidden; aspect-ratio: 4/4.6;
  border: 5px solid rgba(255,255,255,.85);
  box-shadow: var(--sh), 0 0 0 1px rgba(194,160,107,.35);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* signature: delicate facial-contour line in gold */
.contour {
  position: absolute; top: -16px; right: -34px; width: 96px; height: 130px;
  color: var(--gold); opacity: .45; z-index: -1; transform: rotate(4deg);
}
.contour svg { width: 100%; height: 100%; }

.hero-name { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.05; letter-spacing: -.01em; }
.hero-role {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.05rem, 4.4vw, 1.3rem); color: var(--rose-text); margin-top: 8px;
}
.hero-role .sep { color: var(--gold); font-style: normal; margin: 0 6px; }
.hero-auth {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 12px;
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cocoa-soft);
}
.hero-auth .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.hero-lead {
  margin: 18px auto 0; max-width: 38ch; color: var(--cocoa-2);
  font-size: clamp(.98rem, 3.6vw, 1.06rem);
}
.hero-seal {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-size: .76rem; font-weight: 500; letter-spacing: .02em; color: var(--cocoa-2);
  background: rgba(255,255,255,.6); border: 1px solid var(--hair);
  padding: 9px 16px; border-radius: 100px; backdrop-filter: blur(8px);
  box-shadow: var(--sh-sm);
}
.hero-seal .ico-spark { width: 15px; height: 15px; color: var(--gold); fill: var(--gold); stroke: none; flex-shrink: 0; }

/* ---------- DIVIDER ---------- */
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: clamp(26px, 7vw, 38px) 0; }
.divider span { height: 1px; width: 54px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.divider i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); border-radius: 1px; opacity: .8; }

/* ---------- LINKS / CARDS ---------- */
.links { display: flex; flex-direction: column; gap: 16px; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }

.card {
  position: relative; border-radius: var(--r-lg); padding: 24px 22px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--sh-sm);
  backdrop-filter: blur(14px) saturate(1.05);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.card-icon {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon .ico { width: 26px; height: 26px; }
.icon-gold { background: linear-gradient(140deg, var(--gold-soft), var(--gold)); color: #fff; box-shadow: 0 10px 22px -10px rgba(194,160,107,.8); }
.icon-gold .ico { fill: rgba(255,255,255,.25); }
.icon-rose { background: rgba(201,139,124,.14); color: var(--rose-deep); border: 1px solid rgba(201,139,124,.28); }
.icon-rose .ico { fill: rgba(201,139,124,.16); }
.icon-ig { background: rgba(168,126,132,.14); color: var(--mauve); border: 1px solid rgba(168,126,132,.28); }

.card-title { font-family: var(--serif); font-weight: 600; font-size: 1.42rem; line-height: 1.15; }
.card-sub { color: var(--rose-text); font-weight: 500; font-size: .96rem; margin-top: 4px; }
.card-text { color: var(--cocoa-2); font-size: .94rem; margin-top: 10px; }

/* HOF nobre card */
.card--hof {
  background: linear-gradient(155deg, rgba(255,250,242,.92) 0%, rgba(244,228,206,.92) 55%, rgba(238,214,196,.92) 100%);
  border: 1px solid rgba(194,160,107,.45);
  box-shadow: var(--sh-gold);
  padding: 28px 24px;
  overflow: hidden;
}
.card--hof .card-glow {
  position: absolute; top: -60px; right: -40px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(223,199,155,.7), transparent 65%); filter: blur(8px); pointer-events: none;
}
.card--hof .card-title { font-size: 1.6rem; }

/* badges (endo) */
.badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.badges li {
  font-size: .72rem; font-weight: 500; color: var(--cocoa-2);
  background: rgba(255,255,255,.6); border: 1px solid var(--hair);
  padding: 6px 11px; border-radius: 100px;
}

/* ---------- BUTTONS ---------- */
.btn {
  margin-top: 20px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 54px; padding: 15px 22px; border-radius: 16px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: .005em;
  cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .3s, background .3s, color .3s;
}
.btn .ico-arrow { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover .ico-arrow { transform: translateX(4px); }
.btn:active { transform: scale(.98); }

.btn-gold {
  background: linear-gradient(135deg, #D8BC8A 0%, #C2A06B 100%); color: var(--cocoa);
  box-shadow: 0 16px 32px -14px rgba(170,130,70,.85);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -16px rgba(170,130,70,.95); }

.btn-soft {
  background: rgba(201,139,124,.12); color: var(--rose-text); border: 1.5px solid rgba(201,139,124,.5);
}
.btn-soft:hover { background: var(--rose-text); color: #fff; border-color: var(--rose-text); transform: translateY(-3px); box-shadow: var(--sh-sm); }

.btn-ghost {
  background: rgba(255,255,255,.5); color: var(--cocoa); border: 1px solid var(--hair);
}
.btn-ghost:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--sh-sm); }

.btn-wa {
  background: linear-gradient(135deg, #9C5A4A 0%, #7A4636 100%); color: #fff;
  box-shadow: 0 16px 32px -14px rgba(120,70,55,.85);
}
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 24px 46px -16px rgba(150,90,75,.95); }
.btn-wa .ico-wa { width: 20px; height: 20px; fill: #fff; }

.card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.card--hof:hover { box-shadow: var(--sh-gold), 0 0 0 1px rgba(194,160,107,.5); }

/* ---------- WHATSAPP CONCIERGE ---------- */
.card--wa { background: rgba(255,255,255,.66); border-color: rgba(194,160,107,.3); }
.wa-head { display: flex; align-items: center; gap: 14px; }
.wa-avatar { position: relative; flex-shrink: 0; }
.wa-avatar img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--sh-sm); }
.wa-online { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--wa); border: 2px solid #fff; }
.wa-id { line-height: 1.2; }
.wa-status { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--cocoa-soft); margin-top: 2px; }
.wa-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(43,182,115,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(43,182,115,.5); } 50% { box-shadow: 0 0 0 6px rgba(43,182,115,0); } }
.wa-phone { display: block; text-align: center; margin-top: 12px; font-size: .8rem; letter-spacing: .04em; color: var(--cocoa-soft); }

/* ---------- AUTHORITY PILLARS ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pillar {
  background: rgba(255,255,255,.5); border: 1px solid var(--hair); border-radius: var(--r);
  padding: 20px 18px; text-align: center; backdrop-filter: blur(8px);
}
.pillar-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(194,160,107,.14); color: var(--gold); margin-bottom: 12px; }
.pillar-ico .ico { width: 22px; height: 22px; }
.pillar h3 { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; }
.pillar p { font-size: .82rem; color: var(--cocoa-soft); margin-top: 5px; line-height: 1.5; }

/* ---------- FOOTER SIGNATURE ---------- */
.signature { text-align: center; margin-top: clamp(30px, 8vw, 44px); }
.sig-mark { height: 36px; width: auto; margin: 0 auto 16px; opacity: .9; }
.sig-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: .82rem; color: var(--cocoa-2); }
.sig-info a:hover { color: var(--rose-deep); }
.sig-info li { position: relative; }
.sig-info li + li::before { content: "·"; position: absolute; left: -10px; color: var(--gold); }
.sig-tagline { font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--cocoa); margin-top: 16px; }
.sig-credit {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hair);
  font-size: .76rem; color: var(--cocoa-soft);
}
.sig-credit .ico { width: 15px; height: 15px; color: var(--gold); fill: rgba(194,160,107,.2); }
.sig-credit strong { color: var(--cocoa); font-weight: 600; }
.sig-credit a { color: var(--cocoa); border-bottom: 1px solid transparent; transition: border-color .25s; }
.sig-credit a:hover { border-color: var(--gold); }
.sig-credit span { width: 100%; font-size: .72rem; opacity: .85; }

/* ---------- WHATSAPP CHAT WIDGET ---------- */
.wa-widget { position: fixed; right: 20px; bottom: 20px; z-index: 80; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.wa-fab {
  position: relative; width: 60px; height: 60px; border: 0; border-radius: 50%;
  background: linear-gradient(145deg, #2bd96f, #1fb45c); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 16px 34px -10px rgba(37,211,102,.6), 0 4px 12px rgba(60,40,30,.18);
  transition: transform .25s; animation: waPop .5s .9s both;
}
.wa-fab:hover { transform: scale(1.07); }
.wa-fab-icon { width: 32px; height: 32px; fill: #fff; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: waRing 2.6s ease-out infinite; }
@keyframes waRing { 0% { transform: scale(1); opacity: .5; } 80%,100% { transform: scale(1.6); opacity: 0; } }
@keyframes waPop { from { transform: scale(0); } to { transform: scale(1); } }
.wa-fab-badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
  background: #E0594A; color: #fff; border: 2px solid var(--ivory); border-radius: 100px;
  font-size: .7rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
  animation: waBadge 1.7s ease-in-out infinite;
}
@keyframes waBadge { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.wa-widget.open .wa-fab-badge { display: none; }

.wa-pop {
  position: absolute; right: 0; bottom: 74px; width: 320px; max-width: calc(100vw - 36px);
  background: #ECE5DD; border-radius: 20px; overflow: hidden;
  box-shadow: var(--sh), 0 8px 22px rgba(60,40,30,.18);
  transform: translateY(14px) scale(.95); transform-origin: bottom right; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s cubic-bezier(.2,.8,.2,1);
}
.wa-widget.open .wa-pop { opacity: 1; transform: none; pointer-events: auto; }
.wa-pop-head { display: flex; align-items: center; gap: 11px; padding: 13px 14px; background: linear-gradient(135deg, #1f8f54, #137a43); color: #fff; }
.wa-pop-avatar { position: relative; flex-shrink: 0; }
.wa-pop-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.4); }
.wa-pop-online { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #4ade80; border: 2px solid #137a43; }
.wa-pop-id { line-height: 1.25; }
.wa-pop-id strong { display: block; font-family: var(--sans); font-size: .95rem; font-weight: 600; }
.wa-pop-status { font-size: .74rem; opacity: .92; display: inline-flex; align-items: center; gap: 5px; }
.wa-pop-status i { width: 7px; height: 7px; border-radius: 50%; background: #8affc0; animation: pulse 2s infinite; }
.wa-pop-close { margin-left: auto; color: #fff; opacity: .85; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: transparent; border: 0; cursor: pointer; }
.wa-pop-close svg { width: 18px; height: 18px; }
.wa-pop-close:hover { background: rgba(255,255,255,.16); opacity: 1; }
.wa-pop-body {
  padding: 16px 14px 8px; min-height: 84px; background-color: #ECE5DD;
  background-image: radial-gradient(rgba(120,90,70,.06) 1px, transparent 1px); background-size: 18px 18px;
}
.wa-typing { display: inline-flex; gap: 4px; align-items: center; background: #fff; border-radius: 4px 14px 14px 14px; padding: 13px 14px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b8b8b8; animation: waType 1.2s infinite; }
.wa-typing span:nth-child(2) { animation-delay: .2s; }
.wa-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes waType { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.wa-typing.hide { display: none; }
.wa-bubble { position: relative; background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 13px 18px; box-shadow: 0 1px 1px rgba(0,0,0,.08); max-width: 92%; font-size: .9rem; color: #3b3b3b; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.wa-bubble.show { opacity: 1; transform: none; }
.wa-bubble p { margin-bottom: 6px; }
.wa-bubble p:last-of-type { margin-bottom: 0; }
.wa-bubble time { position: absolute; right: 10px; bottom: 5px; font-size: .6rem; color: #9bb3a5; }
.wa-pop-cta { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 8px 12px 14px; padding: 13px; background: var(--wa); color: #fff; border-radius: 12px; font-weight: 600; font-size: .96rem; box-shadow: 0 8px 18px -8px rgba(43,182,115,.7); transition: background .25s, transform .2s; }
.wa-pop-cta .ico-wa { width: 20px; height: 20px; fill: #fff; }
.wa-pop-cta:hover { background: #229c63; transform: translateY(-2px); }

.wa-teaser {
  position: absolute; right: 0; bottom: 74px; display: flex; align-items: center; gap: 10px;
  width: 262px; max-width: calc(100vw - 84px); text-align: left; font-family: var(--sans);
  background: #fff; border: 1px solid var(--hair); border-radius: 16px 16px 4px 16px; padding: 10px 28px 10px 10px;
  box-shadow: var(--sh-sm); cursor: pointer;
  transform: translateY(10px) scale(.92); opacity: 0; pointer-events: none;
  transition: opacity .35s, transform .35s cubic-bezier(.2,.8,.2,1);
}
.wa-teaser.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-widget.open .wa-teaser { opacity: 0 !important; transform: translateY(10px) scale(.92) !important; pointer-events: none; }
.wa-teaser img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.wa-teaser-text { font-size: .8rem; color: var(--cocoa-2); line-height: 1.34; }
.wa-teaser-text strong { display: block; font-size: .78rem; color: var(--rose-text); margin-bottom: 1px; }
.wa-teaser-close { position: absolute; top: 5px; right: 7px; font-size: 1.1rem; line-height: 1; color: var(--cocoa-soft); width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; }
.wa-teaser-close:hover { color: var(--cocoa); background: rgba(0,0,0,.05); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 360px) {
  .pillars { grid-template-columns: 1fr; }
  .badges li { font-size: .68rem; }
}
@media (min-width: 600px) {
  .shell { padding-top: 56px; }
  .hero-portrait { width: 220px; }
}

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