:root {
  --green: #1f3d30;
  --green-dark: #16291f;
  --gold: #c9a961;
  --gold-l: #e0c88c;
  --cream: #faf8f3;
  --cream-2: #f1ece0;
  --text: #262622;
  --muted: #6e6d64;
  --serif: 'Cormorant Garamond', serif;
  --ease: cubic-bezier(.19, 1, .22, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Lenis */
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body.is-loading { overflow: hidden; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
em { font-style: italic; color: var(--gold); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Button — liquid fill */
.btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  isolation: isolate;
  background: var(--green);
  color: var(--gold);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color .5s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gold);
  transform: translateY(101%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.btn:hover { color: var(--green-dark); }
.btn:hover::before { transform: translateY(0); border-radius: 0; }

/* Preloader */
.preloader { position: fixed; inset: 0; z-index: 100; color: var(--gold-l); }
.pre-panel { position: absolute; left: 0; right: 0; height: 50%; background: var(--green); }
.pre-top { top: 0; }
.pre-bottom { bottom: 0; }
.pre-center {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center;
  gap: 10px; text-align: center;
}
.pre-logo { width: min(130px, 30vw); opacity: 0; scale: .85; }
.pre-line { width: min(240px, 56vw); }
.line-path { stroke-dasharray: 340; stroke-dashoffset: 340; }
.pre-name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--cream);
  letter-spacing: .02em;
  overflow: hidden;
  padding-bottom: .1em;
}
.pre-name span, .pre-name em { display: inline-block; transform: translateY(110%); }
.pre-count { font-size: .8rem; letter-spacing: .3em; opacity: .6; color: var(--cream); }

/* Progress bar + grain */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 95; }
.progress i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 20px max(24px, calc((100vw - 1140px) / 2 + 24px));
  transition: background .25s, padding .3s, box-shadow .3s;
}
.nav.scrolled {
  background: var(--cream);
  padding-block: 12px;
  box-shadow: 0 1px 0 rgba(31, 61, 48, .08);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .02em;
}
.logo .badge { width: 40px; height: 40px; flex-shrink: 0; }
.logo .badge img { width: 100%; height: 100%; object-fit: contain; }
.logo > span:not(.badge) { color: var(--green); font-weight: 700; }
.nav nav { display: none; }
.nav nav a { position: relative; font-size: .95rem; color: var(--muted); transition: color .3s; }
.nav nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav nav a:hover { color: var(--text); }
.nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (min-width: 768px) { .nav nav { display: flex; gap: 32px; } }
@media (max-width: 480px) {
  .logo { font-size: 1.2rem; gap: 8px; }
  .logo .badge { width: 32px; height: 32px; }
  .nav .btn { padding: 10px 18px; font-size: .82rem; }
}

/* Hero */
.hero { text-align: center; padding: 130px 0 56px; }
.hero-tag {
  display: inline-block; margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; color: var(--green); font-weight: 600;
}
.hero h1 { font-size: clamp(2.1rem, 6.2vw, 4.4rem); margin: 0 auto 22px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .12em; }
.hero-title .line > span { display: block; }
.hero p { max-width: 560px; margin: 0 auto 32px; color: var(--muted); font-size: 1.05rem; }
.hero-img {
  margin: 56px auto 0; max-width: 480px; aspect-ratio: 3/4;
  border-radius: 16px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--cream-2), #e3ded0);
}
.hero-img img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }

/* Marquee */
.marquee {
  background: var(--green); color: var(--gold);
  padding: 22px 0; overflow: hidden;
  transform: rotate(-1.4deg) scale(1.03); margin: 10px 0 30px; position: relative; z-index: 2;
}
.marquee-track {
  display: flex; width: max-content; gap: 36px; align-items: center;
  font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.6rem); white-space: nowrap; will-change: transform;
}
.marquee-track i { font-style: normal; font-size: .6em; color: var(--gold-l); opacity: .7; }

/* Section headings */
.section-tag {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  color: var(--green); font-weight: 600; margin-bottom: 10px; display: block; text-align: center;
}
.section-title { text-align: center; font-size: clamp(1.8rem, 3.5vw, 2.6rem); max-width: 720px; margin: 0 auto 48px; }
.split-title .ln { display: block; overflow: hidden; padding-bottom: .1em; }
.split-title .ln > span { display: block; }

/* Services */
.services { padding: 80px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.service-card {
  background: #fff; border-radius: 14px; padding: 32px 24px; border: 1px solid #ece6d6;
  transition: translate .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
}
.service-card:hover { translate: 0 -6px; box-shadow: 0 18px 40px -18px rgba(31, 61, 48, .25); border-color: var(--gold); }
.service-card .icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--cream-2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 1.3rem; color: var(--gold);
  transition: background .4s, color .4s, rotate .6s var(--ease);
}
.service-card:hover .icon { background: var(--green); color: var(--gold); rotate: 90deg; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .92rem; }
.treatments-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 8px; }
.tab-input { display: none; }
.tab-btn {
  order: 1; width: 260px; padding: 18px 20px; border-radius: 999px;
  border: 1px solid var(--green); color: var(--green); font-weight: 500; font-size: 1.05rem;
  text-align: center; cursor: pointer; background: transparent; transition: background .3s, color .3s;
}
.tab-input:checked + .tab-btn { background: var(--green); color: var(--gold); }
.tab-panel { order: 3; flex: 0 0 100%; display: none; margin-top: 32px; }
#tab-odonto:checked ~ #panel-odonto,
#tab-estetica:checked ~ #panel-estetica { display: block; }
.panel-cta { text-align: center; margin-top: 40px; }

/* Why */
.why { background: var(--cream-2); padding: 90px 0; }
.about-text {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35;
  text-align: center; max-width: 760px; margin: 0 auto 64px; color: var(--green);
}
.about-text .w { display: inline-block; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; text-align: center; }
.why-item .num { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 4rem); color: var(--green); font-weight: 700; line-height: 1; margin-bottom: 10px; font-variant-numeric: lining-nums; }
.why-item h4 { font-size: 1.05rem; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: .9rem; }

/* Results */
.testimonial { padding: 90px 0; text-align: center; overflow: hidden; }
.testimonial-carousel {
  width: 100%; overflow: hidden; margin: 0 auto 56px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.testimonial-track { display: flex; width: max-content; gap: 16px; will-change: transform; }
.testimonial-track img { flex: 0 0 auto; height: 320px; width: auto; border-radius: 12px; }
@media (max-width: 640px) { .testimonial-track img { height: 230px; } }
.testimonial blockquote {
  font-size: clamp(1.4rem, 3vw, 2rem); max-width: 720px; margin: 0 auto; color: var(--text); font-weight: 500;
}

/* CTA */
.cta {
  position: relative; overflow: hidden;
  background: var(--green); color: #fff; border-radius: 20px;
  padding: 80px 32px; text-align: center; margin: 0 0 90px;
}
.cta > *:not(.cta-word) { position: relative; z-index: 1; }
.cta-word {
  position: absolute; left: 50%; top: 50%; z-index: 0;
  font-family: var(--serif); font-weight: 700; line-height: 1; white-space: nowrap;
  font-size: clamp(9rem, 32vw, 26rem);
  color: transparent; -webkit-text-stroke: 1px rgba(201, 169, 97, .28);
  pointer-events: none; user-select: none;
}
.cta h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 16px; }
.cta p { color: #d9dcc9; max-width: 480px; margin: 0 auto 28px; }
.cta .btn { background: var(--gold); color: var(--green-dark); }
.cta .btn::before { background: var(--cream); }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cta-buttons .btn { width: 260px; padding: 14px 20px; text-align: center; white-space: normal; }

/* Footer */
footer { padding: 40px 0; text-align: center; color: var(--muted); font-size: .85rem; border-top: 1px solid #ece6d6; }
footer .logo { margin-bottom: 12px; }

/* Initial hidden states (only when motion is on) */
html:not(.no-motion) .reveal-line { opacity: 0; transform: translateY(24px); }
html:not(.no-motion) .hero-img { opacity: 0; transform: translateY(40px); }
html:not(.no-motion) .service-card.pre { opacity: 0; }
html.no-motion .preloader { display: none; }
html.no-motion .testimonial-carousel { overflow-x: auto; }
html.no-motion .marquee-track { animation: none; }
html.no-motion .grain { animation: none; }
html.no-motion .btn::before { transition: none; }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }
