/* ===========================================================
   Dra. Ana Alice Siqueira — Cirurgiã-Dentista
   =========================================================== */

:root {
  --cream: #fdf8f4;
  --cream-2: #f6efe9;
  --brown-900: #4a2818;
  --brown-800: #5e3524;
  --brown-700: #6b3f2a;
  --brown-600: #7b5a3f;
  --copper: #b36c46;
  --copper-light: #c98a62;
  --grad: linear-gradient(90deg, #5e3524 0%, #8a4f33 55%, #b36c46 100%);
  --grad-footer: linear-gradient(100deg, #5e3524 0%, #b36c46 55%, #a8633f 100%);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Raleway", system-ui, sans-serif;
  --grotesk: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mont: "Montserrat", system-ui, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --radius: 26px;
  --gutter: clamp(16px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--brown-800);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, ul, figure { margin: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95em 2.6em;
  border-radius: 999px;
  font-family: var(--grotesk);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 22px -10px rgba(74, 40, 24, .55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::after { /* brilho que passa no hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover, .btn:focus-visible { transform: translateY(-3px) scale(1.06); box-shadow: 0 16px 28px -12px rgba(74, 40, 24, .6); }
.btn:hover::after, .btn:focus-visible::after { animation-duration: 1.2s; }
.btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.btn--grad {
  background: linear-gradient(45deg, #5e3524, #8a4f33, #b36c46, #c98a62, #b36c46, #8a4f33, #5e3524);
  background-size: 400% 100%;
  color: #fff;
  animation: brilho 6s linear infinite;
}
@keyframes brilho { from { background-position: 0% 0; } to { background-position: 100% 0; } }

/* reflexo de luz que atravessa o botão de tempos em tempos */
.btn::after { animation: reflexo 4.5s var(--ease) infinite; }
@keyframes reflexo { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* "respirar" — usado nos CTAs principais */
.btn--pulse { animation: brilho 6s linear infinite, crescer 2.2s ease-in-out infinite; }
@keyframes crescer { 0%, 100% { scale: 1; } 50% { scale: 1.05; } }
.btn--light::after { background: linear-gradient(110deg, transparent 30%, rgba(179,108,70,.22) 50%, transparent 70%); }
.btn--light { background: #fff; color: var(--brown-800); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.btn--xl {
  font-family: var(--mont); font-weight: 600;
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  letter-spacing: .02em;
  padding: .75em 3.4em;
  border-radius: 28px;
}
.btn--xl::before { /* sublinhado do "EU QUERO" */
  content: ""; position: absolute; left: 22%; right: 22%; bottom: .62em;
  height: 1px; background: rgba(255,255,255,.8);
}

/* ---------- Traços de giz ---------- */
.chalk { position: absolute; pointer-events: none; fill: none; stroke: #fff; stroke-linecap: round; }
.chalk path { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.8s var(--ease) forwards; }
.chalk path:nth-child(2) { animation-delay: .15s; }
.chalk path:nth-child(3) { animation-delay: .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: #c9bfb5 url("assets/bg-hero.webp") center top / cover no-repeat;
  color: #fff;
}
.hero::before { /* escurece o topo para dar leitura ao nome */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 45%;
  background: linear-gradient(to bottom, rgba(40, 24, 16, .45), transparent);
}
.chalk--arcs {
  top: 0; right: -4%;
  width: min(62%, 560px);
  stroke-width: 2.4; opacity: .75;
}
.chalk--arcs path:nth-child(1) { stroke-width: 3.2; }

.hero__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 11vw, 90px) var(--gutter) 0;
}
.hero__title { position: relative; z-index: 2; text-align: center; }
.hero__role {
  font-family: var(--grotesk);
  font-size: clamp(1rem, 3.2vw, 1.5rem);
  letter-spacing: .01em;
  margin-bottom: -.15em;
}
.hero__name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4.6rem, 21vw, 8.6rem);
  line-height: .95;
  letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(40, 24, 16, .18);
}
.hero__name span {
  display: block;
  font-family: var(--grotesk);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: 0;
  text-align: right;
  padding-right: 12%;
  margin-top: .1em;
}
.hero__photo {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin: clamp(-10px, -2vw, 0px) auto 0;
}
.hero__photo img { width: 100%; }
.chalk--dashes { width: 22%; stroke-width: 5; opacity: .9; top: 58%; }
.chalk--left  { left: -14%; }
.chalk--right { right: -14%; top: 64%; }

@media (min-width: 900px) {
  .hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    min-height: min(100svh, 980px);
    padding-top: 40px;
  }
  .hero__title { text-align: left; align-self: center; padding-bottom: 10vh; }
  .hero__name span { text-align: left; padding: 0 0 0 1.4em; }
  .hero__photo { align-self: end; width: 100%; max-width: 540px; margin: 0 0 0 auto; }
  .hero__photo img { width: auto; max-height: calc(min(100svh, 980px) - 60px); margin-left: auto; }
  .hero__name { font-size: clamp(6rem, 9vw, 9rem); }
}

/* ===========================================================
   SERVIÇOS
   =========================================================== */
.services {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(64px, 12vw, 130px) var(--gutter);
  display: grid;
  gap: clamp(40px, 8vw, 80px);
}

.card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  padding: clamp(14px, 2.4vw, 22px);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(74, 40, 24, .35);
}
.card__body { padding: clamp(6px, 2vw, 18px); position: relative; z-index: 1; }
.card__title {
  font-family: var(--grotesk);
  font-weight: 400;
  font-size: clamp(1.25rem, 4vw, 2rem);
  line-height: 1.1;
}
.card__title em {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 1;
  margin-left: -.04em;
  letter-spacing: -.01em;
}
.card__text {
  font-family: var(--grotesk);
  font-size: clamp(.95rem, 2.8vw, 1.35rem);
  line-height: 1.2;
  margin: .9em 0 1.4em;
  max-width: 16ch;
}
.card__media { border-radius: calc(var(--radius) - 8px); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Card claro (Clareamento) */
.card--light {
  background:
    linear-gradient(135deg, #f1edea, #e7e2de) padding-box,
    linear-gradient(135deg, #b36c46, #6b3f2a 50%, #b36c46) border-box;
  border: 2px solid transparent;
}
.card--light .card__title { color: var(--brown-800); }
.card--light .card__title em {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.card--light .card__text { color: var(--copper); }
.card--light .card__text::first-line { color: var(--brown-700); }
.card__media--whitening { background: #e3d6d0; aspect-ratio: 1 / 1; }
.card__media--whitening img { object-position: center 18%; transform: scale(1.12); transform-origin: center 30%; }

/* Card marrom (Restauração) */
.card--brown {
  background: var(--brown-600);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.75);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  overflow: hidden;
}
.card--brown .card__title em { font-size: clamp(2.3rem, 8.2vw, 4.2rem); }
.card__media--resin { aspect-ratio: 5 / 4; }
.card__swirl {
  position: absolute; left: 49%; top: 50%;
  width: clamp(28px, 6vw, 54px); transform: translate(-50%, -50%);
  height: 90%;
  fill: none; stroke: rgba(255,255,255,.85); stroke-width: 2.4;
  pointer-events: none;
}
.card--brown .btn { margin-left: auto; display: flex; width: fit-content; }

/* Card contorno (demais serviços) */
.card--outline {
  background:
    linear-gradient(var(--cream), var(--cream)) padding-box,
    linear-gradient(135deg, #b36c46, #6b3f2a 50%, #b36c46) border-box;
  border: 2px solid transparent;
  box-shadow: none;
  grid-template-columns: 1fr;
  padding: clamp(28px, 6vw, 48px) clamp(18px, 4vw, 40px);
}
.card__list {
  list-style: none; padding: 0;
  font-family: var(--grotesk);
  font-size: clamp(1.02rem, 3.2vw, 1.55rem);
  line-height: 1.25;
  display: grid; gap: .45em;
  margin-bottom: 1.8em;
}
.card__list li { color: var(--brown-800); position: relative; padding-left: 1em; }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .38em; height: .38em; border-radius: 50%;
  background: var(--grad);
}
.card__list span { color: var(--copper); }
.card--outline .btn { padding-inline: 3.2em; }
.card__tooth {
  position: absolute; right: clamp(8px, 4vw, 40px); bottom: clamp(8px, 3vw, 28px);
  width: clamp(120px, 30vw, 230px);
  fill: none; stroke: var(--brown-700); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  opacity: .9;
}

@media (max-width: 560px) {
  .card__text { margin: .7em 0 1.1em; }
  .btn:not(.btn--xl) { padding: .9em 1.8em; letter-spacing: .24em; font-size: .64rem; }
  .card--light { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .card__title em { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .card--brown .card__title em { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .card--brown .card__body { padding-left: 14px; }
  .card__swirl { left: 51%; }
  .card--outline { padding-bottom: 150px; }
  .card--outline .btn { padding-inline: 2.6em; }
  .card__tooth { width: 44%; }
}

/* ===========================================================
   MISSÃO
   =========================================================== */
.mission {
  position: relative;
  overflow: hidden;
  background: #cfc4b9 url("assets/bg-missao.webp") center / cover no-repeat;
  color: #fff;
}
.mission::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(58, 34, 22, .55) 0%, rgba(58, 34, 22, .28) 45%, transparent 75%);
}
.mission__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 110px) var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}
.mission__text { align-self: start; position: relative; z-index: 2; padding-bottom: 40px; }
.mission__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.8rem, 10vw, 5.6rem);
  line-height: 1;
  margin-bottom: .55em;
  letter-spacing: -.01em;
}
.mission__text p {
  font-size: clamp(1.05rem, 3.6vw, 2rem);
  line-height: 1.45;
  max-width: 22ch;
  text-shadow: 0 1px 16px rgba(40, 24, 16, .35);
}
.mission__photo { margin-left: -18%; }
.mission__photo img { width: 100%; }

@media (max-width: 640px) {
  .mission__inner { grid-template-columns: 1fr; }
  .mission__text { padding-bottom: 0; }
  .mission__text p { max-width: 24ch; }
  .mission__photo { margin: -40px 0 0 auto; width: 78%; }
  .mission::before { background: linear-gradient(180deg, rgba(58, 34, 22, .55) 0%, rgba(58, 34, 22, .2) 50%, transparent 80%); }
}

/* ===========================================================
   SOBRE
   =========================================================== */
.about {
  padding: clamp(64px, 12vw, 130px) var(--gutter) clamp(40px, 8vw, 90px);
}
.about__inner { max-width: 760px; margin: 0 auto; }
.about p {
  font-size: clamp(1.08rem, 3.2vw, 1.75rem);
  line-height: 1.5;
  color: var(--brown-800);
}
.about__quote {
  margin-top: 1.2em !important;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 4.6vw, 2.4rem) !important;
  line-height: 1.2 !important;
  color: var(--copper) !important;
}

/* ===========================================================
   CTA
   =========================================================== */
.cta {
  text-align: center;
  padding: clamp(40px, 8vw, 80px) var(--gutter) clamp(56px, 10vw, 100px);
}
.cta__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 6.4vw, 3.4rem);
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
  padding: 0 .1em;
}
.cta__text {
  font-family: var(--grotesk);
  font-size: clamp(.98rem, 2.8vw, 1.3rem);
  line-height: 1.35;
  max-width: 44ch;
  margin: .6em auto 1.6em;
  color: var(--brown-700);
}

/* ===========================================================
   RODAPÉ
   =========================================================== */
.footer {
  background: var(--grad-footer);
  color: #fff;
  font-family: var(--mont);
}
.footer__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px var(--gutter) calc(28px + env(safe-area-inset-bottom));
}
.footer__follow { font-size: clamp(.95rem, 2.4vw, 1.2rem); letter-spacing: -.01em; }
.footer__follow a { text-decoration: none; }
.footer__follow a:hover { text-decoration: underline; }
.footer__ig {
  display: inline-flex; margin-top: 16px;
  width: 52px; height: 52px;
  transition: transform .3s var(--ease);
}
.footer__ig:hover { transform: translateY(-3px) scale(1.05); }
.footer__ig svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 2; }
.footer__ig .fill { fill: #fff; stroke: none; }
.footer hr { border: 0; border-top: 1px solid rgba(255,255,255,.55); margin: 36px 0 18px; }
.footer__legal { font-size: .88rem; }
.footer__legal strong { white-space: nowrap; }
.footer__copy { font-size: .76rem; opacity: .75; margin-top: 4px; }

/* ---------- Barra fixa de agendamento ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(253, 248, 244, .78);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  border-top: 1px solid rgba(179, 108, 70, .25);
  box-shadow: 0 -6px 24px -8px rgba(74, 40, 24, .25);
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.bar__inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
}
.bar__brand { display: grid; line-height: 1.15; min-width: 0; }
.bar__name {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.25rem, 4.4vw, 1.7rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.bar__role { font-family: var(--mont); font-size: clamp(.62rem, 2.4vw, .74rem); color: var(--brown-700); white-space: nowrap; }
.bar__btn { gap: .7em; letter-spacing: .14em; font-weight: 700; padding: 1.05em 1.8em; }
.bar__btn svg { width: 1.5em; height: 1.5em; fill: currentColor; flex: none; }
.js .bar:not(.is-shown) { transform: translateY(110%); opacity: 0; pointer-events: none; }
.footer__inner { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

@media (max-width: 400px) {
  .bar__role { display: none; }
  .bar__btn { padding: 1em 1.3em; letter-spacing: .08em; }
}

/* ===========================================================
   ANIMAÇÕES DE ENTRADA (scroll)
   =========================================================== */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity .9s var(--ease) var(--d, 0ms),
    transform .9s var(--ease) var(--d, 0ms);
  will-change: opacity, transform;
}
.js .reveal--up-lg { transform: translate3d(0, 70px, 0); transition-duration: 1.2s; }
.js .reveal--left  { transform: translate3d(-40px, 0, 0); }
.js .reveal--right { transform: translate3d(40px, 0, 0); }
.js .reveal--zoom  { transform: scale(.94); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* depois de aparecer, o botão volta a ter o hover rápido */
.js .btn.reveal.is-done { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }

/* desenho do dente */
.js .draw path { stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.2s var(--ease) .3s; }
.js .draw.is-visible path { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .draw path { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; transition: none !important; }
  .chalk path { animation: none; stroke-dashoffset: 0; }
  .btn, .btn::after, .btn--pulse { animation: none !important; }
}
