/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --rose-primary: #C2185B;
  --rose-primary-rgb: 194, 24, 91;
  --sky-pale: #E0F2FE;
  --ink: #101820;
  --slate: #5B6B76;
  --porcelain: #FCFBF9;
  --rose-deep: #7A1039;
  --line: #D7E4EA;

  /* derived tints for the shade-guide motif (light -> dark, like a real VITA-style scale) */
  --shade-1: #F6E9EE;
  --shade-2: #EFC9D8;
  --shade-3: #E29CB8;
  --shade-4: #D06E98;
  --shade-5: #C2185B;
  --shade-6: #8F1345;
  --shade-7: #5C0C2C;

  --font-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-body: "General Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;

  --container-max: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 2px solid var(--rose-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-primary);
  font-weight: 500;
}

.section-bg-sky { background: var(--sky-pale); }
.section-bg-porcelain { background: var(--porcelain); }

section { padding-block: clamp(3.5rem, 8vw, 7rem); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-top: 0.5rem;
  line-height: 1.15;
}
.section-head p {
  margin-top: 0.9rem;
  color: var(--slate);
  font-size: 1.0625rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--rose-primary);
  color: var(--porcelain);
}
.btn-primary:hover { background: var(--rose-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--rose-primary); color: var(--rose-primary); }

.btn-on-dark {
  background: var(--porcelain);
  color: var(--rose-deep);
}
.btn-on-dark:hover { background: var(--sky-pale); }

.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.875rem; }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Nav
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 1.25rem;
  transition: background 0.3s var(--ease-out), padding 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-nav.is-scrolled {
  background: rgba(252, 251, 249, 0.92);
  backdrop-filter: blur(10px);
  padding-block: 0.85rem;
  box-shadow: 0 1px 0 var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo svg { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  gap: 2.1rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 0.25rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--rose-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.tray-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.2s var(--ease-out);
}
.tray-btn:hover { border-color: var(--rose-primary); }
.tray-btn svg { width: 19px; height: 19px; }
.tray-count {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--rose-primary);
  color: var(--porcelain);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 3px;
  transition: transform 0.2s var(--ease-out);
}
.tray-count[data-count="0"] { display: none; }
.tray-count.bump { animation: bump 0.35s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 84vw);
  background: var(--porcelain);
  z-index: 200;
  padding: 1.75rem var(--gutter);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: -8px 0 30px rgba(16, 24, 32, 0.08);
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-drawer ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.nav-drawer a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 32, 0.35);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 3rem;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
}
.hero-copy h1 {
  font-size: clamp(2.75rem, 5vw, 5.5rem);
  line-height: 1.04;
  margin-top: 0.9rem;
}
.hero-copy .eyebrow { display: inline-block; margin-bottom: 0; }
.hero-copy p.lede {
  margin-top: 1.4rem;
  max-width: 44ch;
  font-size: 1.125rem;
  color: var(--slate);
}
.hero-ctas {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-ctas .link-cta {
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.hero-ctas .link-cta:hover { border-color: var(--ink); }

.hero-visual {
  position: relative;
}
.hero-visual-frame {
  position: relative;
  background: var(--sky-pale);
  border-radius: 16px;
  aspect-ratio: 4 / 4.6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-visual-frame svg { width: 74%; }

.trust-strip {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.trust-item { display: flex; flex-direction: column; gap: 0.15rem; }
.trust-item .num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
}
.trust-item .label {
  font-size: 0.8125rem;
  color: var(--slate);
}

/* shade guide strip — signature motif */
.shade-strip {
  display: flex;
  gap: 6px;
  margin-top: 1.25rem;
}
.shade-swatch {
  flex: 1;
  height: 34px;
  border-radius: 6px;
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.shade-strip.is-visible .shade-swatch { opacity: 1; transform: translateY(0); }
.shade-swatch .code {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.03em;
  color: var(--slate);
}
.shade-strip.divider {
  max-width: 340px;
  margin-inline: auto;
}
.shade-strip.divider .code { display: none; }

/* stagger transition delays for shade swatches */
.shade-swatch:nth-child(1) { transition-delay: 0ms; }
.shade-swatch:nth-child(2) { transition-delay: 60ms; }
.shade-swatch:nth-child(3) { transition-delay: 120ms; }
.shade-swatch:nth-child(4) { transition-delay: 180ms; }
.shade-swatch:nth-child(5) { transition-delay: 240ms; }
.shade-swatch:nth-child(6) { transition-delay: 300ms; }
.shade-swatch:nth-child(7) { transition-delay: 360ms; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Treatment picker
   ========================================================================== */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.treatment-card {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  position: relative;
}
.treatment-card:hover {
  border-color: var(--rose-primary);
  box-shadow: 0 12px 28px -18px rgba(var(--rose-primary-rgb), 0.35);
}
.treatment-card .card-visual {
  aspect-ratio: 1 / 0.85;
  background: var(--sky-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.treatment-card .card-visual svg { width: 58%; }
.treatment-card h3 { font-size: 1.25rem; }
.treatment-card .desc { color: var(--slate); font-size: 0.9375rem; }
.treatment-card .price-line {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}
.treatment-card .price-line .fee { color: var(--slate); }
.treatment-card .reserve-btn { margin-top: 0.25rem; }
.treatment-card .reserve-btn.is-added {
  background: var(--ink);
}
.card-shade-hint {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  display: flex;
  gap: 3px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.treatment-card:hover .card-shade-hint { opacity: 1; transform: translateY(0); }
.card-shade-hint span {
  width: 9px; height: 9px;
  border-radius: 2px;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: var(--porcelain);
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  font-size: 0.875rem;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--shade-2); }

/* ==========================================================================
   How it works
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.step .step-num {
  font-family: var(--font-mono);
  color: var(--rose-primary);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}
.step h3 {
  font-size: 1.15rem;
  margin-top: 0.6rem;
}
.step p {
  margin-top: 0.5rem;
  color: var(--slate);
  font-size: 0.9375rem;
}
.step-connector {
  height: 1px;
  background: var(--line);
  margin-top: 1.2rem;
  position: relative;
}
.step-connector::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--line);
}

/* ==========================================================================
   Technology / materials
   ========================================================================== */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.tech-copy p.lede {
  color: var(--slate);
  font-size: 1.0625rem;
  max-width: 46ch;
}
.spec-list {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.spec-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.spec-row .spec-key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--rose-primary);
}
.spec-row .spec-val { color: var(--ink); }
.tech-visual {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
}
.tech-visual svg { width: 100%; }

/* ==========================================================================
   Case gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
  background: var(--sky-pale);
}
.gallery-item svg { width: 100%; height: 100%; }
.gallery-tag {
  position: absolute;
  left: 0.9rem; bottom: 0.9rem;
  background: rgba(16, 24, 32, 0.78);
  color: var(--porcelain);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.6rem;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.gallery-tag .dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.testimonial .rating { display: flex; gap: 3px; }
.testimonial .rating svg { width: 13px; height: 13px; color: var(--rose-primary); }
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.45;
  font-weight: 500;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--slate);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--rose-deep);
  color: var(--porcelain);
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  max-width: 32ch;
}
.cta-band .eyebrow { color: var(--shade-2); }
.cta-tray-summary {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--shade-1);
  margin-top: 0.6rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--porcelain);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(252, 251, 249, 0.12);
}
.footer-brand .logo { color: var(--porcelain); }
.footer-brand p {
  margin-top: 1rem;
  color: rgba(252, 251, 249, 0.6);
  font-size: 0.9375rem;
  max-width: 32ch;
}
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.4rem; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(252, 251, 249, 0.18);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s var(--ease-out);
}
.footer-social a:hover { border-color: var(--rose-primary); }
.footer-social svg { width: 15px; height: 15px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(252, 251, 249, 0.5);
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: rgba(252, 251, 249, 0.85); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--porcelain); }
.footer-col address { font-style: normal; color: rgba(252, 251, 249, 0.85); font-size: 0.9375rem; line-height: 1.7; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-top: 1.75rem;
  flex-wrap: wrap;
}
.footer-fine-print {
  font-size: 0.8125rem;
  color: rgba(252, 251, 249, 0.45);
  max-width: 62ch;
  line-height: 1.6;
}
.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(252, 251, 249, 0.45);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .treatment-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-primary.btn-sm { display: none; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin-inline: auto; width: 100%; }
  .hero { padding-top: 5.5rem; }
  .tech-layout { grid-template-columns: 1fr; }
  .tech-visual { order: -1; }
}

@media (max-width: 640px) {
  .treatment-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .spec-row { grid-template-columns: 100px 1fr; }
}
