/* ─────────────────────────────────────────────────────────────
   SKINCLINIC — Page composition (business dark shadcn)
   ───────────────────────────────────────────────────────────── */

body { overflow-x: hidden; }
main { position: relative; z-index: 1; }

/* ── Navigation ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: hsl(var(--background) / 0.7);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid hsl(var(--border));
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.brand {
  display: flex; align-items: center; gap: 0.625rem;
  color: hsl(var(--foreground));
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  border: 1px solid hsl(var(--border));
}
.brand-text { display: grid; line-height: 1.05; }
.brand-text .name {
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-text .sub {
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}
.nav-links {
  display: none;
  list-style: none; padding: 0; margin: 0;
  gap: 0.1rem;
}
@media (min-width: 880px) { .nav-links { display: flex; } }
.nav-links a {
  display: inline-flex; align-items: center;
  height: 2rem;
  padding-inline: 0.75rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  border-radius: calc(var(--radius) - 2px);
  transition: color 160ms, background 160ms;
}
.nav-links a:hover { color: hsl(var(--foreground)); background: hsl(var(--accent)); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

/* ── Hero / split-screen ─────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100svh - var(--nav-h));
  border-bottom: 1px solid hsl(var(--border));
}
@media (min-width: 1024px) {
  .hero-split { grid-template-columns: minmax(360px, 420px) 1fr; }
}

/* Left panel — brand / value prop */
.brand-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid hsl(var(--border));
  display: flex; flex-direction: column;
  gap: 1.5rem;
  background:
    linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--card)) 100%);
  position: relative;
}
.brand-panel-status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.brand-panel-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: hsl(var(--success));
  box-shadow: 0 0 0 4px hsl(var(--success) / 0.18);
}
.brand-panel h1 {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.brand-panel p.lede {
  font-size: 0.95rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}

/* Stats stack */
.brand-stats {
  display: grid; gap: 0;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}
.brand-stat {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
}
.brand-stat:last-child { border-bottom: none; }
.brand-stat .l {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.brand-stat .v {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  letter-spacing: -0.01em;
}
.brand-stat .v sup { color: hsl(var(--primary)); font-size: 0.7em; vertical-align: 0.4em; margin-left: 1px; }

/* Trust strip in brand panel */
.brand-trust {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}

/* Contact block */
.brand-contact {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  display: grid; gap: 0.5rem;
  font-size: 0.85rem;
}
.brand-contact .row { display: grid; grid-template-columns: 60px 1fr; gap: 0.5rem; align-items: baseline; }
.brand-contact .l { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: hsl(var(--muted-foreground)); }
.brand-contact .v { color: hsl(var(--foreground)); }
.brand-contact .v a:hover { color: hsl(var(--primary)); }

/* Right pane — booking */
.booking-pane {
  padding: clamp(1rem, 2.5vw, 2rem);
  display: flex; align-items: stretch; justify-content: center;
  background: hsl(var(--background));
  position: relative;
}
.booking-pane-inner {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
}

/* ── Section header ──────────────────────────────────── */
.section-head {
  display: grid; gap: 0.6rem;
  max-width: 720px;
  margin-bottom: 2.5rem;
}
.section-head.center { justify-items: center; text-align: center; margin-inline: auto; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.section-head p {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 60ch;
}

/* ── Product / treatment cards (homepage listing) ────── */
.products-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

.product {
  position: relative;
  display: flex; flex-direction: column;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 180ms, transform 240ms;
}
.product:hover { border-color: hsl(var(--primary) / 0.5); }
.product:hover .product-thumb img { transform: scale(1.05); }

.product-thumb {
  aspect-ratio: 5/3;
  overflow: hidden;
  background: hsl(var(--muted));
  position: relative;
}
.product-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22,1,0.36,1);
  filter: saturate(0.92);
}
.product-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, hsl(var(--background) / 0.55) 100%);
  pointer-events: none;
}
.product-thumb .badges {
  position: absolute; left: 0.75rem; top: 0.75rem;
  display: flex; gap: 0.4rem; z-index: 2;
}
.product-thumb .badges .badge {
  background: hsl(var(--background) / 0.65);
  backdrop-filter: blur(6px);
}
.product-thumb .duration {
  position: absolute; right: 0.75rem; bottom: 0.75rem; z-index: 2;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: hsl(var(--foreground));
  background: hsl(var(--background) / 0.65);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
}

.product-body { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-body h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.product-body p { font-size: 0.85rem; color: hsl(var(--muted-foreground)); line-height: 1.55; margin: 0; flex: 1; }
.product-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.1rem;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.4);
}
.product-foot .price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
}
.product-foot .actions { display: flex; gap: 0.4rem; }

/* ── Pricing grid (Tretmani section) ─────────────────── */
.pricing-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-card {
  position: relative;
  padding: 1.25rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  display: grid; gap: 0.5rem;
  transition: border-color 160ms, background 160ms;
}
.pricing-card:hover { border-color: hsl(var(--primary) / 0.4); }
.pricing-card .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.pricing-card h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.pricing-card .meta {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  font-variant-numeric: tabular-nums;
}
.pricing-card p { font-size: 0.85rem; color: hsl(var(--muted-foreground)); margin: 0; line-height: 1.55; }
.pricing-card .price-row {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border));
  display: flex; align-items: center; justify-content: space-between;
}
.pricing-card .price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.pricing-card a.book-link {
  font-size: 0.8rem;
  color: hsl(var(--primary));
  display: inline-flex; gap: 0.3rem; align-items: center;
}

/* ── Feature row ─────────────────────────────────────── */
.feature-row {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .feature-row { grid-template-columns: 1fr 1fr; } }
.feature-row.reverse > div:first-child { order: 2; }
@media (max-width: 899px) { .feature-row.reverse > div:first-child { order: 0; } }
.feature-row h2 { margin-bottom: 0.5rem; }
.feature-row > div > p { color: hsl(var(--muted-foreground)); line-height: 1.65; font-size: 0.95rem; }

.feature-list {
  list-style: none; padding: 0; margin: 1.25rem 0 0;
  display: grid; gap: 0.6rem;
}
.feature-list li {
  display: grid; grid-template-columns: 18px 1fr; gap: 0.6rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.86);
  line-height: 1.55;
}
.feature-list li::before {
  content: "→"; align-self: start;
  color: hsl(var(--primary));
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.65;
}

.feature-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}
.feature-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }

/* ── Stats band ──────────────────────────────────────── */
.stats-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}
@media (min-width: 700px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stats-band > div {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid hsl(var(--border));
  display: grid; gap: 0.25rem;
}
.stats-band > div:last-child { border-right: none; }
@media (max-width: 699px) { .stats-band > div:nth-child(2n) { border-right: none; } }
.stats-band .v {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats-band .v sup { color: hsl(var(--primary)); font-size: 0.55em; vertical-align: 0.6em; }
.stats-band .l {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: hsl(var(--muted-foreground));
}

/* ── Reels / Vertical video carousel (9:16) ──────────── */
.reels-section {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  position: relative;
  overflow: hidden;
}
.reels-section::before {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(hsl(var(--background)) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--background)) 1px, transparent 1px);
  background-size: 56px 56px;
}
.reels-head {
  position: relative;
  padding: 2rem var(--container-gutter) 0;
  max-width: var(--container-max);
  margin-inline: auto;
}
.reels-head .kicker {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}
.reels-head h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: hsl(var(--background));
}
.reels-head p {
  margin-top: 0.5rem;
  max-width: 56ch;
  font-size: 0.9rem;
  color: hsl(var(--background) / 0.65);
  line-height: 1.55;
}
.reels-track {
  position: relative;
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 var(--container-gutter) 1.5rem;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--background) / 0.3) transparent;
}
.reels-track::-webkit-scrollbar { height: 6px; }
.reels-track::-webkit-scrollbar-thumb { background: hsl(var(--background) / 0.25); border-radius: 4px; }
.reels-track::-webkit-scrollbar-track { background: transparent; }

.reel {
  flex-shrink: 0;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 9 / 16;
  width: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(var(--background) / 0.18);
  background: hsl(var(--background) / 0.05);
  cursor: pointer;
  transition: transform 240ms cubic-bezier(0.22,1,0.36,1);
}
@media (min-width: 768px)  { .reel { width: 240px; } }
@media (min-width: 1100px) { .reel { width: 280px; } }
.reel:hover { transform: scale(1.02); }
.reel img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}
.reel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, hsl(var(--background) / 0.18) 0%, transparent 30%, hsl(var(--background) / 0.85) 100%);
  pointer-events: none;
}
.reel .badge-9x16 {
  position: absolute; right: 0.6rem; top: 0.6rem;
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: hsl(var(--background));
  background: hsl(var(--background) / 0.18);
  border: 1px solid hsl(var(--background) / 0.3);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 3;
}
.reel .play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  z-index: 2;
}
.reel .play .play-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 8px 28px hsl(var(--background) / 0.5);
  transition: transform 180ms;
}
.reel:hover .play .play-btn { transform: scale(1.08); }
.reel .play .play-btn svg { width: 18px; height: 18px; transform: translateX(1px); }

.reel-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.85rem 0.9rem 0.95rem;
  z-index: 3;
  color: hsl(var(--background));
}
.reel-meta .role {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}
.reel-meta .name {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.reel-meta .quote {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: hsl(var(--background) / 0.75);
  line-height: 1.45;
}

/* ── Gallery ─────────────────────────────────────────── */
.gallery-masonry { column-count: 2; column-gap: 0.5rem; }
@media (min-width: 700px)  { .gallery-masonry { column-count: 3; column-gap: 0.75rem; } }
@media (min-width: 1100px) { .gallery-masonry { column-count: 4; column-gap: 0.75rem; } }
.gallery-masonry .item {
  display: block;
  margin-bottom: 0.75rem;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
}
.gallery-masonry img {
  width: 100%; height: auto; display: block;
  transition: transform 600ms cubic-bezier(0.22,1,0.36,1);
  filter: saturate(0.9);
}
.gallery-masonry .item:hover img { transform: scale(1.04); }

/* ── Team ────────────────────────────────────────────── */
.team-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.doctor {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  align-items: start;
}
.doctor-portrait {
  width: 88px; aspect-ratio: 1;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
}
.doctor-portrait img { width:100%; height:100%; object-fit: cover; }
.doctor h3 { font-size: 1rem; font-weight: 600; }
.doctor .role { font-size: 0.7rem; color: hsl(var(--muted-foreground)); margin: 0.2rem 0 0.5rem; letter-spacing: 0.04em; }
.doctor p { font-size: 0.85rem; color: hsl(var(--muted-foreground)); line-height: 1.6; margin: 0; }
.doctor .tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }

/* ── CTA / Contact ───────────────────────────────────── */
.cta {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}
.cta-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) { .cta-grid { grid-template-columns: 1.4fr 1fr; } }
.cta h2 { margin-bottom: 0.5rem; }
.cta p { color: hsl(var(--muted-foreground)); font-size: 0.95rem; line-height: 1.65; }

.cta-info {
  display: grid; gap: 0;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}
.cta-row {
  display: grid; grid-template-columns: 88px 1fr; gap: 0.75rem;
  align-items: baseline;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
}
.cta-row:last-child { border-bottom: none; }
.cta-row .l { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.cta-row .v { font-size: 0.9rem; color: hsl(var(--foreground)); font-variant-numeric: tabular-nums; }
.cta-row .v a:hover { color: hsl(var(--primary)); }

/* ── Footer ──────────────────────────────────────────── */
footer {
  padding-block: 2.5rem 1.25rem;
  border-top: 1px solid hsl(var(--border));
  margin-top: 3rem;
}
.footer-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 2rem;
}
.footer-grid h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; font-size: 0.8125rem; color: hsl(var(--foreground) / 0.7); }
.footer-grid a:hover { color: hsl(var(--primary)); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border));
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ── Reveal ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms cubic-bezier(0.22,1,0.36,1), transform 600ms cubic-bezier(0.22,1,0.36,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 60ms; }
.reveal[data-d="2"] { transition-delay: 120ms; }
.reveal[data-d="3"] { transition-delay: 180ms; }

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