:root {
  --ivory: #f8f5ef;
  --paper: #fffdf9;
  --ink: #18351f;
  --cacao: #315b1c;
  --terracotta: #6f9f22;
  --sand: #e5eadb;
  --line: rgba(24, 53, 31, .16);
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 110px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -60px; padding: 10px 16px; background: var(--ink); color: white; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header { position: absolute; z-index: 20; width: 100%; top: 0; left: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 112px; display: flex; align-items: center; gap: 30px; border-bottom: 1px solid rgba(24,53,31,.15); }
.brand { width: 245px; flex: 0 0 auto; }
.brand img { width: 100%; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 32px; margin-left: auto; }
.main-nav a { font-size: .88rem; font-weight: 600; }
.main-nav a:hover { color: var(--terracotta); }
.nav-cta { margin-left: 6px; }
.menu-button { display: none; margin-left: auto; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 50%; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.menu-button span:not(.sr-only) { width: 18px; height: 1.5px; background: var(--ink); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border: 1px solid var(--ink); background: var(--ink); color: white; font-weight: 700; font-size: .9rem; letter-spacing: .01em; transition: background .2s, color .2s, transform .2s; }
.button:hover { background: var(--terracotta); border-color: var(--terracotta); transform: translateY(-2px); }
.button-small { min-height: 44px; padding: 0 20px; font-size: .82rem; }
.button-outline { background: transparent; color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid currentColor; padding: 8px 0; font-weight: 700; font-size: .9rem; }
.eyebrow { margin: 0 0 18px; color: var(--terracotta); text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: .73rem; }
.eyebrow.light { color: #b8d577; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(3.2rem, 6vw, 6.4rem); }
h1 em { color: var(--cacao); font-weight: 500; }
h2 { margin-bottom: 22px; font-size: clamp(2.4rem, 4.5vw, 4.6rem); }

.hero { position: relative; min-height: 820px; overflow: hidden; background: var(--paper); }
.hero-media { position: absolute; inset: 0 0 0 46%; background: linear-gradient(90deg, var(--paper) 0%, transparent 28%), url("consulta-slim-center-logo-en-filipina.png") center / cover no-repeat; }
.hero-grid { display: grid; grid-template-columns: 56% 44%; align-items: center; min-height: 820px; position: relative; }
.hero-copy { padding: 56px 0 34px; }
.hero-text { max-width: 590px; margin-bottom: 32px; color: rgba(24,50,44,.76); font-size: 1.12rem; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.trust-note { display: flex; gap: 15px; align-items: center; max-width: 430px; margin-top: 58px; padding-top: 22px; border-top: 1px solid var(--line); }
.trust-note strong { font-family: var(--serif); color: var(--cacao); font-size: 1.7rem; white-space: nowrap; }
.trust-note span { font-size: .84rem; line-height: 1.45; }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; align-items: start; }
.intro-copy { padding-top: 46px; color: rgba(24,50,44,.72); font-size: 1.08rem; }
.intro-copy .signature { margin: 34px 0 0; font-family: var(--serif); color: var(--cacao); font-size: 1.35rem; font-style: italic; }
.services { background: var(--ink); color: white; }
.section-top { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: end; margin-bottom: 46px; }
.section-top h2 { max-width: 660px; margin-bottom: 0; }
.section-top > p { margin-bottom: 12px; color: rgba(255,255,255,.62); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { min-width: 0; overflow: hidden; background: var(--paper); color: var(--ink); }
.service-photo { aspect-ratio: 4 / 3; overflow: hidden; background: #dfe7d8; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-photo img { transform: scale(1.025); }
.service-content { padding: 28px; }
.service-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; color: var(--terracotta); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.service-content h3 { margin-bottom: 12px; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; line-height: 1.16; }
.service-content p { min-height: 94px; margin-bottom: 24px; color: rgba(24,53,31,.7); font-size: .9rem; }
.service-button { display: flex; justify-content: space-between; align-items: center; min-height: 50px; padding: 0 17px; background: var(--cacao); color: white; font-size: .82rem; font-weight: 700; }
.service-button:hover { background: var(--terracotta); }
.service-button.outline { background: transparent; border: 1px solid var(--cacao); color: var(--cacao); }
.service-button.outline:hover { background: var(--cacao); color: white; }
.booking-note { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 55px; border-top: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
.booking-note > div { padding: 28px 28px 25px; border-right: 1px solid rgba(255,255,255,.2); }
.booking-note > div:last-child { border-right: 0; }
.booking-number { display: block; margin-bottom: 18px; color: #b8d577; font-family: var(--serif); }
.booking-note strong { display: block; margin-bottom: 7px; font-size: .92rem; }
.booking-note p { margin: 0; color: rgba(255,255,255,.58); font-size: .78rem; line-height: 1.45; }

.appointment { background: var(--paper); }
.appointment-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 8vw; align-items: start; }
.appointment-copy { position: sticky; top: 36px; }
.appointment-copy > p:not(.eyebrow) { max-width: 490px; color: rgba(24,53,31,.7); font-size: 1.02rem; }
.appointment-help { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); }
.appointment-help strong, .appointment-help a { display: block; }
.appointment-help strong { margin-bottom: 4px; font-family: var(--serif); font-size: 1.18rem; font-weight: 500; }
.appointment-help a { color: var(--terracotta); font-weight: 700; }
.appointment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 42px; background: var(--ivory); border: 1px solid var(--line); }
.field { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: .82rem; font-weight: 700; }
.field label span { color: rgba(24,53,31,.5); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid rgba(24,53,31,.22); border-radius: 0; outline: none; background: white; color: var(--ink); font: inherit; font-size: .92rem; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(111,159,34,.12); }
.appointment-form .button { width: 100%; cursor: pointer; }
.form-note { margin: -6px 0 0; color: rgba(24,53,31,.58); font-size: .78rem; line-height: 1.45; text-align: center; }

.products { background: var(--paper); }
.featured-products { padding: 165px 0 92px; overflow: hidden; }
.products-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8vw; align-items: end; margin-bottom: 58px; }
.products-heading h2 { max-width: 760px; margin-bottom: 0; font-size: clamp(2.6rem, 4vw, 4.25rem); }
.products-heading > div:last-child { padding-bottom: 9px; color: rgba(24,50,44,.7); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.product-section-heading { grid-column: 1 / -1; padding: 58px 0 8px; border-top: 1px solid var(--line); margin-top: 24px; }
.product-section-heading .eyebrow { margin-bottom: 8px; }
.product-section-heading h2 { margin: 0; font-size: clamp(2.5rem, 4vw, 4rem); }
.product-grid .carousel-card { min-width: 0; height: 100%; }
.product-grid .product-info { min-height: 300px; }
.product-details { margin: 0 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-details summary { padding: 12px 0; color: var(--cacao); cursor: pointer; font-size: .78rem; font-weight: 700; }
.product-details p { margin: 0; padding: 0 0 14px; color: rgba(24,53,31,.7); font-size: .82rem; line-height: 1.55; text-align: justify; text-justify: inter-word; hyphens: auto; }
.product-details[open] summary { color: var(--terracotta); }
.carousel-shell { position: relative; }
.product-carousel { display: flex; gap: 22px; padding: 10px 3px 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-inline: contain; }
.product-carousel::-webkit-scrollbar { display: none; }
.product-carousel:focus-visible { outline: 3px solid rgba(111,159,34,.35); outline-offset: 6px; }
.product-card { min-width: 0; }
.carousel-card { flex: 0 0 calc((100% - 66px) / 4); min-width: 250px; overflow: hidden; scroll-snap-align: start; background: white; border: 1px solid rgba(24,53,31,.1); box-shadow: 0 15px 42px rgba(24,53,31,.09); }
.product-image { position: relative; display: block; aspect-ratio: 4 / 4.7; overflow: hidden; background: #f6f4ef; }
.product-image img { width: 100%; height: 100%; padding: 12px; object-fit: contain; transition: transform .5s ease; }
.product-image.clean img { object-fit: contain; background: white; }
.product-card:hover .product-image img { transform: scale(1.025); }
.sale-badge { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 7px 11px; background: var(--terracotta); color: white; text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; font-weight: 700; }
.product-info { display: flex; min-height: 250px; padding: 22px; flex-direction: column; }
.product-category { margin-bottom: 5px; color: var(--terracotta); text-transform: uppercase; letter-spacing: .12em; font-size: .67rem; font-weight: 700; }
.product-info h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 1.55rem; font-weight: 500; line-height: 1.18; }
.product-presentation { margin-bottom: 22px; color: rgba(24,53,31,.62); font-size: .86rem; }
.variant-picker { margin: 4px 0 18px; }
.variant-picker > span { display: block; margin-bottom: 8px; color: rgba(24,53,31,.7); font-size: .76rem; font-weight: 700; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-option { min-height: 38px; padding: 7px 11px; border: 1px solid rgba(24,53,31,.25); background: white; color: var(--ink); cursor: pointer; font-size: .75rem; font-weight: 700; transition: background .2s, border-color .2s, color .2s; }
.variant-option:hover, .variant-option:focus-visible { border-color: var(--terracotta); outline: none; }
.variant-option.selected { border-color: var(--cacao); background: var(--cacao); color: white; }
.product-buy[aria-disabled="true"] { background: #809087; cursor: default; }
.product-buy { display: flex; justify-content: space-between; align-items: center; min-height: 50px; padding: 0 15px; margin-top: auto; background: #138c82; color: white; font-size: .78rem; font-weight: 700; }
.product-buy:hover { background: var(--cacao); }
.carousel-arrow { position: absolute; z-index: 4; top: 39%; width: 54px; height: 54px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #138c82; color: white; box-shadow: 0 10px 28px rgba(0,0,0,.18); cursor: pointer; font-family: Georgia, serif; font-size: 2.2rem; line-height: 1; transition: background .2s, transform .2s; }
.carousel-arrow:hover { background: var(--cacao); transform: scale(1.05); }
.carousel-prev { left: -27px; }
.carousel-next { right: -27px; }
.carousel-progress { width: min(180px, 45%); height: 4px; margin: 24px auto 0; overflow: hidden; background: rgba(24,53,31,.13); }
.carousel-progress span { display: block; width: 20%; height: 100%; background: #138c82; transform-origin: left; transition: width .2s; }
.carousel-footnote { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 28px 0 0; color: rgba(24,53,31,.7); font-size: .78rem; letter-spacing: .09em; text-align: center; text-transform: uppercase; }
.carousel-footnote::before, .carousel-footnote::after { width: min(22vw, 260px); height: 1px; content: ""; background: rgba(111,159,34,.45); }

.testimonial { background: #f4efe6; }
.testimonial-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(38px, 7vw, 90px); align-items: center; }
.testimonial-visual { padding: 18px; background: white; box-shadow: 0 20px 55px rgba(24,53,31,.1); }
.testimonial-visual img { display: block; width: 100%; height: auto; }
.testimonial-copy h2 { font-size: clamp(2.35rem, 4vw, 4rem); }
.testimonial-copy > p:not(.eyebrow) { color: rgba(24,53,31,.76); line-height: 1.75; }
.testimonial-copy .testimonial-attribution { margin-top: 25px; color: var(--cacao); font-weight: 700; }

.about { padding-top: 0; }
.about-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 9vw; padding: 75px; background: var(--cacao); color: white; }
.about-card h2 { margin-bottom: 0; font-size: clamp(2.5rem, 4vw, 4.2rem); }
.about-copy { padding-top: 38px; color: rgba(255,255,255,.72); }
.light-link { color: white; margin-top: 18px; }

.cta-section { padding: 105px 0; background: var(--paper); text-align: center; }
.cta-inner { max-width: 760px; }
.cta-inner p:not(.eyebrow) { max-width: 570px; margin: 0 auto 30px; color: rgba(24,50,44,.7); }

.site-footer { padding: 70px 0 28px; background: #102817; color: white; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.footer-brand { display: inline-flex; align-items: center; padding: 10px 14px; margin-bottom: 20px; background: white; border-radius: 4px; }
.footer-logo { width: 230px; }
.footer-grid p, .footer-grid a { display: block; color: rgba(255,255,255,.62); font-size: .86rem; }
.footer-grid h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: #b8d577; }
.footer-grid a:hover { color: white; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 35px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.45); font-size: .73rem; }
.whatsapp { position: fixed; z-index: 25; right: 24px; bottom: 24px; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #25d366; color: white; box-shadow: 0 14px 34px rgba(0,0,0,.2); line-height: 0; }
.whatsapp svg { display: block; width: 31px; height: 31px; fill: currentColor; flex: 0 0 31px; }

.reveal { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .container { width: min(calc(100% - 32px), 720px); }
  .section { padding: 78px 0; }
  .nav-wrap { min-height: 92px; }
  .brand { width: 210px; }
  .menu-button { display: flex; }
  .nav-cta { display: none; }
  .main-nav { position: absolute; display: none; top: 92px; left: 16px; right: 16px; margin: 0; padding: 22px; background: var(--paper); box-shadow: 0 16px 36px rgba(0,0,0,.1); flex-direction: column; align-items: flex-start; gap: 18px; }
  .main-nav.open { display: flex; }
  .hero { min-height: auto; padding-bottom: 0; }
  .hero-grid { grid-template-columns: 1fr; min-height: 720px; align-items: end; }
  .hero-media { inset: 0; background: linear-gradient(90deg, rgba(255,253,249,.97) 0%, rgba(255,253,249,.9) 48%, rgba(255,253,249,.16) 100%), url("consulta-slim-center-logo-en-filipina.png") 65% center / cover no-repeat; opacity: .86; }
  .hero-copy { padding: 50px 0 60px; }
  .hero-text { max-width: 520px; }
  .intro-grid, .about-card, .testimonial-card { grid-template-columns: 1fr; gap: 35px; }
  .intro-copy { padding-top: 0; }
  .section-top { grid-template-columns: 1fr; gap: 20px; }
  .products-heading { grid-template-columns: 1fr; gap: 20px; }
  .featured-products { padding-top: 135px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel-card { flex-basis: calc((100% - 22px) / 2); }
  .carousel-prev { left: -10px; }
  .carousel-next { right: -10px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-content p { min-height: 0; }
  .appointment-grid { grid-template-columns: 1fr; gap: 36px; }
  .appointment-copy { position: static; }
  .about-card { padding: 52px 40px; }
  .about-copy { padding-top: 0; }
}

@media (max-width: 600px) {
  h1 { font-size: clamp(3rem, 14vw, 4.2rem); }
  h2 { font-size: clamp(2.35rem, 11vw, 3.3rem); }
  .hero-grid { min-height: 760px; }
  .hero-media { inset: 0; background: linear-gradient(0deg, var(--paper) 2%, rgba(255,253,249,.93) 43%, rgba(255,253,249,.08) 74%), url("consulta-slim-center-logo-en-filipina.png") center top / 100% auto no-repeat; opacity: 1; }
  .hero-copy { padding: 310px 0 48px; }
  .hero-text { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .trust-note { margin-top: 36px; }
  .featured-products { padding: 120px 0 65px; }
  .products-heading { margin-bottom: 34px; }
  .product-grid { grid-template-columns: 1fr; gap: 22px; }
  .product-grid .product-info { min-height: 0; }
  .product-section-heading { padding-top: 42px; }
  .carousel-footnote::before, .carousel-footnote::after { display: none; }
  .appointment-form { grid-template-columns: 1fr; padding: 30px 22px; }
  .field-full { grid-column: auto; }
  .about-card { width: 100%; padding: 46px 24px; }
  .booking-note { grid-template-columns: 1fr; }
  .booking-note > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .booking-note > div:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .whatsapp { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

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