/* ============================================================
   CONVERGE RADIANCE — MAIN STYLESHEET
   ============================================================ */

/* ── 0. RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-dark);
  background: var(--color-bg-cream);
  line-height: var(--leading-normal);
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ── 1. UTILITIES ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-pad-h);
}

.section {
  padding-block: var(--section-pad-v);
}
.section--cream    { background: var(--color-bg-cream); }
.section--offwhite { background: var(--color-bg-offwhite); }
.section--dark     { background: var(--color-primary); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: var(--weight-semi);
  font-size: var(--text-sm);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background  var(--duration-mid) var(--ease-out),
    color       var(--duration-mid) var(--ease-out),
    transform   var(--duration-fast) var(--ease-out),
    box-shadow  var(--duration-mid) var(--ease-out),
    border-color var(--duration-mid) var(--ease-out);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
}
.btn:hover      { transform: translateY(-2px); }
.btn:active     { transform: translateY(0); }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 4px 20px rgba(92, 34, 25, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-primary);
  color: var(--color-text-white);
}

.btn--white {
  background: var(--color-bg-white);
  color: var(--color-primary);
  border-color: var(--color-bg-white);
}
.btn--white:hover { background: var(--color-primary-pale); }

.btn--ghost-white {
  background: transparent;
  color: var(--color-text-white);
  border-color: rgba(255,255,255,0.7);
}
.btn--ghost-white:hover {
  background: var(--color-text-white);
  color: var(--color-primary);
}

.btn--cosmetology { background: var(--color-cosmetology); color: #fff; border-color: var(--color-cosmetology); }
.btn--trichology  { background: var(--color-trichology);  color: #fff; border-color: var(--color-trichology); }
.btn--dermatology { background: var(--color-dermatology); color: #fff; border-color: var(--color-dermatology); }

/* ── 2. TYPOGRAPHY HELPERS ───────────────────────────────── */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}
.section-label--light { color: var(--color-gold-light); }

.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-primary);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}
.section-heading--centered { text-align: center; }
.section-heading--light    { color: var(--color-text-white); }

.section-intro {
  font-size: var(--text-md);
  color: var(--color-text-mid);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin-bottom: var(--space-lg);
}
.section-intro--centered { margin-inline: auto; text-align: center; }
.section-intro--light    { color: var(--color-text-white-dim); }

/* ── 3. SCROLL REVEAL ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}
.reveal--visible {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }

/* ── 4. SITE HEADER ──────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--header-height);
  background: rgba(245, 240, 232, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    background    var(--duration-mid) var(--ease-out),
    border-color  var(--duration-mid) var(--ease-out),
    box-shadow    var(--duration-mid) var(--ease-out);
}
.site-header.scrolled {
  background: rgba(245, 240, 232, 0.97);
  border-color: rgba(123, 50, 40, 0.1);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Nav + subscribe badge cluster right, logo stays left */
.header-nav { margin-left: auto; }

.header-logo img { height: 52px; width: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-mid);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: color var(--duration-fast), background var(--duration-fast);
}
.nav-link:hover { color: var(--color-primary); background: var(--color-primary-pale); }

.nav-link--back {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  letter-spacing: var(--tracking-wide);
}
.nav-link--back:hover { color: var(--color-text-mid); background: none; }

.nav-list .nav-link.nav-cta {
  background: var(--color-primary);
  color: var(--color-text-white);
  font-weight: var(--weight-semi);
}
.nav-list .nav-link.nav-cta:hover { background: var(--color-primary-dark); }

/* Subscribe badge — pinned to the right end of the header */
.nav-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  transition: transform var(--duration-fast), opacity var(--duration-fast);
}
.nav-subscribe img {
  display: block;
  width: auto;
  height: 62px;
  object-fit: contain;
}
.nav-subscribe:hover { transform: translateY(-1px); opacity: .85; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--duration-mid) var(--ease-out), opacity var(--duration-mid);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 5. HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--color-bg-cream);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  background-image: url('../assets/photos/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
}

.hero-bg-geometry {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.geo-line {
  position: absolute;
  top: -20%;
  width: 1px;
  height: 140%;
  background: var(--color-pink-accent);
  transform-origin: center top;
  transform: rotate(var(--geo-angle));
}
.geo-line--1 { right: 18%; opacity: 0.30; }
.geo-line--2 { right: 26%; opacity: 0.14; }
.geo-line--3 { right: 13%; opacity: 0.10; }
.geo-line--4 { right: 34%; opacity: 0.08; }

.hero-hex-watermark {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  clip-path: var(--clip-hex);
  background: var(--color-primary);
  opacity: 0.035;
}
.hero-hex-watermark-2 {
  position: absolute;
  right: 180px;
  bottom: -100px;
  width: 280px;
  height: 280px;
  clip-path: var(--clip-hex);
  background: var(--color-gold);
  opacity: 0.04;
}

.hero-inner {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding-block: var(--space-2xl);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-pad-h);
}

.hero-content { max-width: 600px; }

.hero-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.hero-headline-wrap {
  min-height: 6rem;
  margin-bottom: var(--space-md);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  color: var(--color-primary);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.hero-tagline-trio {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.hero-tagline-trio span {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold);
  font-style: italic;
}
.hero-tagline-trio span:not(:last-child)::after {
  content: '·';
  margin-left: var(--space-sm);
  color: var(--color-text-light);
  font-style: normal;
}

.hero-sub {
  font-size: var(--text-md);
  color: var(--color-text-mid);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
}

/* Hero visual panel */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-hex-frame {
  position: relative;
  width: 360px;
  height: 360px;
  clip-path: var(--clip-hex);
  background: linear-gradient(135deg, var(--color-primary-pale), var(--color-bg-cream));
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 16px 48px rgba(123, 50, 40, 0.20));
}
.hero-hex-frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  clip-path: var(--clip-hex);
  background: var(--color-bg-cream);
}
.hero-logo-mark {
  position: relative;
  z-index: 1;
  width: 220px;
  height: auto;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-dot {
  width: 6px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  opacity: 0.2;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.15; transform: scaleY(1); }
  50%       { opacity: 0.4;  transform: scaleY(0.6); }
}

/* ── 6. ABOUT ────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-text .section-heading { margin-bottom: var(--space-md); }

.about-body p {
  font-size: var(--text-md);
  color: var(--color-text-mid);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-sm);
}

.stat-row {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.stat-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  box-shadow: var(--shadow-card);
  flex: 1;
  min-width: 100px;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-primary);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--color-text-light);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  overflow-wrap: break-word;
  hyphens: auto;
}

/* About visual — hex grid decoration */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-product-triangle {
  position: relative;
  width: 380px;
  height: 400px;
}

.about-product-triangle .hex-grid-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.tri-img {
  position: absolute;
  width: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tri-img img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
}

/* Center — upright, in front */
.tri-img--top {
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
/* Left — rotated out */
.tri-img--bot-left {
  bottom: 90px;
  left: 5px;
  transform: rotate(-22deg);
  transform-origin: bottom center;
  z-index: 2;
}
/* Right — rotated out */
.tri-img--bot-right {
  bottom: 90px;
  right: 5px;
  transform: rotate(22deg);
  transform-origin: bottom center;
  z-index: 2;
}

.hex-grid-deco {
  position: relative;
  width: 380px;
  height: 380px;
}
.hex-grid-deco::before {
  content: '';
  position: absolute;
  top: 10%; left: 10%;
  width: 80%; height: 80%;
  clip-path: var(--clip-hex);
  background: linear-gradient(135deg, var(--color-primary-pale), var(--color-gold-pale));
}
.hex-grid-deco::after {
  content: '';
  position: absolute;
  top: 25%; left: 25%;
  width: 50%; height: 50%;
  clip-path: var(--clip-hex);
  background: var(--color-primary);
  opacity: 0.12;
}

/* ── 7. PHILOSOPHY ───────────────────────────────────────── */
.philosophy-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.pillar-card {
  background: var(--color-bg-white);
  border: 1px solid rgba(123, 50, 40, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition:
    transform     var(--duration-mid) var(--ease-out),
    box-shadow    var(--duration-mid) var(--ease-out),
    border-color  var(--duration-mid) var(--ease-out);
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(123, 50, 40, 0.18);
}
.pillar-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}
.pillar-icon svg {
  width: 24px; height: 24px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pillar-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: 8px;
}
.pillar-text {
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  line-height: var(--leading-relaxed);
}

.gold-rule {
  height: 2px;
  width: 60px;
  background: var(--color-gold);
  margin: var(--space-md) auto;
  border-radius: var(--radius-full);
}

/* ── 8. APPROACH ─────────────────────────────────────────── */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.approach-item {
  position: relative;
  padding-left: var(--space-lg);
  border-left: 2px solid rgba(200, 148, 26, 0.4);
  transition: border-color var(--duration-mid);
}
.approach-item:hover { border-color: var(--color-gold); }

.approach-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
  user-select: none;
}
.approach-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-white);
  margin-bottom: 10px;
}
.approach-text {
  font-size: var(--text-sm);
  color: var(--color-text-white-dim);
  line-height: var(--leading-relaxed);
}

/* ── 9. SEGMENT TABS ─────────────────────────────────────── */
.segment-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.segment-tab {
  flex: 1;
  min-width: 200px;
  max-width: 340px;
  background: var(--color-bg-white);
  border: 2px solid rgba(123, 50, 40, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  text-align: left;
  transition:
    transform     var(--duration-mid) var(--ease-out),
    box-shadow    var(--duration-mid) var(--ease-out),
    border-color  var(--duration-mid) var(--ease-out),
    background    var(--duration-mid) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.segment-tab:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.segment-tab:hover.segment-tab--cosmetology { border-color: var(--color-cosmetology); }
.segment-tab:hover.segment-tab--trichology  { border-color: var(--color-trichology); }
.segment-tab:hover.segment-tab--dermatology { border-color: var(--color-dermatology); }

.tab-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  clip-path: var(--clip-hex);
  flex-shrink: 0;
}
.segment-tab--cosmetology .tab-icon { background: var(--color-cosmetology-bg); }
.segment-tab--trichology  .tab-icon { background: var(--color-trichology-bg); }
.segment-tab--dermatology .tab-icon { background: var(--color-dermatology-bg); }
.tab-icon svg {
  width: 18px; height: 18px;
  fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.segment-tab--cosmetology .tab-icon svg { stroke: var(--color-cosmetology); }
.segment-tab--trichology  .tab-icon svg { stroke: var(--color-trichology); }
.segment-tab--dermatology .tab-icon svg { stroke: var(--color-dermatology); }

/* Filled hair-from-root icon (trichology) — color driven via currentColor (g fill="currentColor") */
.tab-icon svg.icon-hair { fill: var(--color-trichology); stroke: none; color: var(--color-trichology); }
.segment-tab.active .tab-icon svg.icon-hair { fill: #fff; stroke: none; color: #fff; }

.tab-label {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  transition: color var(--duration-mid);
}
.tab-sub {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  letter-spacing: var(--tracking-wide);
}

/* Active tab states */
.segment-tab--cosmetology.active {
  background: var(--color-cosmetology);
  border-color: var(--color-cosmetology);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201, 122, 58, 0.3);
}
.segment-tab--trichology.active {
  background: var(--color-trichology);
  border-color: var(--color-trichology);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(44, 62, 107, 0.3);
}
.segment-tab--dermatology.active {
  background: var(--color-dermatology);
  border-color: var(--color-dermatology);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(184, 48, 37, 0.3);
}
.segment-tab.active .tab-label { color: #fff; }
.segment-tab.active .tab-sub   { color: rgba(255,255,255,0.75); }
.segment-tab.active .tab-icon  { background: rgba(255,255,255,0.2); }
.segment-tab.active .tab-icon svg { stroke: #fff; }

/* Panels */
.segment-panel {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity    var(--duration-mid) var(--ease-out),
    transform  var(--duration-mid) var(--ease-out);
  pointer-events: none;
  position: absolute;
  width: 100%;
}
.segment-panel.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: static;
}

.segment-panels { position: relative; }

.panel-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.panel-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.panel-body {
  font-size: var(--text-md);
  color: var(--color-text-mid);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}
.panel-features {
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.panel-features li {
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  padding-left: 20px;
  position: relative;
}
.panel-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  clip-path: var(--clip-hex);
}
.panel--cosmetology .panel-features li::before { background: var(--color-cosmetology); }
.panel--trichology  .panel-features li::before { background: var(--color-trichology); }
.panel--dermatology .panel-features li::before { background: var(--color-dermatology); }

.mini-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}
.mini-product-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 3/4;
  position: relative;
  transition: transform var(--duration-mid) var(--ease-out);
}
.mini-product-card:hover { transform: translateY(-4px); }
.mini-product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}
.mini-product-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--space-sm);
}
.mini-product-placeholder--cosmetology { background: linear-gradient(160deg, var(--color-cosmetology-bg), #fff8f2); }
.mini-product-placeholder--trichology  { background: linear-gradient(160deg, var(--color-trichology-bg),  #eef1f8); }
.mini-product-placeholder--dermatology { background: linear-gradient(160deg, var(--color-dermatology-bg), #fff2f1); }
.mini-hex {
  width: 36px; height: 36px;
  clip-path: var(--clip-hex);
  opacity: 0.3;
}
.mini-hex--cosmetology { background: var(--color-cosmetology); }
.mini-hex--trichology  { background: var(--color-trichology); }
.mini-hex--dermatology { background: var(--color-dermatology); }
.mini-name {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-align: center;
  color: var(--color-text-dark);
  font-weight: var(--weight-medium);
}

/* ── 10. PORTFOLIO SLIDER ────────────────────────────────── */
.portfolio-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.portfolio-slider {
  display: flex;
  gap: var(--space-md);
  transition: transform var(--duration-slow) var(--ease-out);
  cursor: grab;
  user-select: none;
}
.portfolio-slider:active { cursor: grabbing; }

/* Product card */
.product-card {
  flex: 0 0 calc(33.333% - var(--space-md) * 2 / 3);
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform   var(--duration-mid) var(--ease-out),
    box-shadow  var(--duration-mid) var(--ease-out);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.product-card__image-wrap {
  height: 240px;
  position: relative;
  overflow: hidden;
}
.product-card__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.product-card__placeholder--cosmetology { background: linear-gradient(135deg, var(--color-cosmetology-bg), #fff3ea); }
.product-card__placeholder--trichology  { background: linear-gradient(135deg, var(--color-trichology-bg),  #edf0f8); }
.product-card__placeholder--dermatology { background: linear-gradient(135deg, var(--color-dermatology-bg), #fff0ef); }
.placeholder-hex {
  width: 60px; height: 60px;
  clip-path: var(--clip-hex);
  opacity: 0.3;
}
.placeholder-hex--cosmetology { background: var(--color-cosmetology); }
.placeholder-hex--trichology  { background: var(--color-trichology); }
.placeholder-hex--dermatology { background: var(--color-dermatology); }
.placeholder-label    { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-text-dark); }
.placeholder-sublabel { font-size: var(--text-xs); color: var(--color-text-light); }

.product-card__body { padding: var(--space-sm) var(--space-md) var(--space-md); }
.product-card__category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}
.product-card__category--cosmetology { background: var(--color-cosmetology-bg); color: var(--color-cosmetology); }
.product-card__category--trichology  { background: var(--color-trichology-bg);  color: var(--color-trichology); }
.product-card__category--dermatology { background: var(--color-dermatology-bg); color: var(--color-dermatology); }
.product-card__name { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-primary); margin-bottom: 6px; }
.product-card__name-logo { display: block; width: 140px; height: 40px; object-fit: contain; object-position: left center; }
.product-card__desc { font-size: var(--text-sm); color: var(--color-text-light); line-height: var(--leading-relaxed); }

/* Slider controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-bg-white);
  box-shadow: var(--shadow-hover);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-raised);
  transition: background var(--duration-fast), transform var(--duration-fast);
}
.slider-btn:hover    { background: var(--color-primary); }
.slider-btn:hover svg { stroke: #fff; }
.slider-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.slider-btn--prev { left: 8px; }
.slider-btn--next { right: 8px; }
.slider-btn svg {
  width: 20px; height: 20px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--duration-fast);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-lg);
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: rgba(123, 50, 40, 0.2);
  border: none;
  cursor: pointer;
  transition: background var(--duration-mid), width var(--duration-mid) var(--ease-out);
  padding: 0;
}
.slider-dot.active {
  background: var(--color-primary);
  width: 24px;
}

.portfolio-cta { text-align: center; }

/* ── 11. AWARDS ──────────────────────────────────────────── */
.awards-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.awards-certs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.awards-divider {
  height: 1px;
  background: rgba(123, 50, 40, 0.12);
  margin-bottom: var(--space-lg);
}

.award-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
}
.award-item--photo {
  background: var(--color-bg-cream);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  border: 1px solid rgba(123, 50, 40, 0.08);
  transition: box-shadow var(--duration-mid);
}
.award-item--photo:hover { box-shadow: var(--shadow-card); }

.award-img--photo {
  width: 100%;
  height: 140px;
  object-fit: contain;
}
.award-img--badge {
  height: 80px;
  width: auto;
  object-fit: contain;
}
.award-caption {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  letter-spacing: var(--tracking-wide);
  margin-top: 4px;
}

.text-badge {
  width: 80px; height: 80px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.text-badge__who, .text-badge__iso {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: #fff;
  font-weight: var(--weight-medium);
  line-height: 1;
}
.text-badge__gmp, .text-badge__cert {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: rgba(255,255,255,0.75);
  letter-spacing: var(--tracking-wider);
}

/* ── 12. CTA BAND ────────────────────────────────────────── */
.section--cta {
  background: var(--color-primary);
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--section-pad-v) + 4vw);
}

.cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}
.cta-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-text-white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-sm);
}
.cta-sub {
  font-size: var(--text-md);
  color: var(--color-text-white-dim);
  line-height: var(--leading-relaxed);
  max-width: 480px;
}
.cta-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── 13. FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-white-dim);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  padding-block: var(--space-xl);
  flex-wrap: wrap;
}

.footer-logo { height: 32px; width: auto; filter: invert(1) brightness(2); margin-bottom: var(--space-sm); }

.footer-tagline {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-gold-light);
  opacity: 0.8;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-white-dim);
  transition: color var(--duration-fast);
}
.footer-nav a:hover { color: var(--color-text-white); }

.footer-nav-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.footer-company {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-text-white);
  margin-bottom: 4px;
}
.footer-website {
  font-size: var(--text-sm);
  color: var(--color-gold-light);
  transition: color var(--duration-fast);
}
.footer-website:hover { color: var(--color-gold); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-sm);
}
.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  opacity: 0.6;
}

/* ── 14. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner            { grid-template-columns: 1fr; }
  .hero-visual           { display: none; }
  .about-grid            { grid-template-columns: 1fr; }
  .about-visual          { display: none; }
  .segment-tabs          { justify-content: center; }
  .segment-tab           { min-width: 160px; }
  .panel-content         { grid-template-columns: 1fr; }
  .awards-photos         { grid-template-columns: repeat(2, 1fr); }
  .awards-certs          { grid-template-columns: repeat(2, 1fr); }
  .cta-block             { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .hamburger  { display: flex; }
  .header-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 280px;
    background: var(--color-bg-cream);
    transform: translateX(100%);
    transition: transform var(--duration-mid) var(--ease-out);
    padding: 100px var(--space-lg) var(--space-lg);
    z-index: calc(var(--z-nav) - 1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  }
  .header-nav.nav-open { transform: translateX(0); }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  .nav-link { font-size: var(--text-md); padding: 10px 16px; width: 100%; }
  .nav-subscribe { margin-left: auto; }
  .nav-subscribe img { height: 48px; }

  .hero-headline { font-size: clamp(2rem, 8vw, 3.5rem); }
  .hero-tagline-trio { gap: var(--space-xs); }
  .hero-tagline-trio span { font-size: var(--text-lg); }

  .philosophy-pillars { grid-template-columns: 1fr; }

  .approach-grid { grid-template-columns: 1fr; }

  .segment-tabs  { flex-direction: column; }
  .segment-tab   { max-width: 100%; }

  .product-card { flex: 0 0 calc(50% - var(--space-md) / 2); }

  .footer-inner { flex-direction: column; gap: var(--space-lg); }

  .section--cta { clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 100%); }
}

@media (max-width: 480px) {
  .hero-actions  { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .stat-row { gap: var(--space-sm); }
  .stat-card {
    flex: 1 1 calc(50% - var(--space-sm));
    min-width: 140px;
  }
  .stat-label { letter-spacing: 0.4px; }

  .mini-product-grid { grid-template-columns: repeat(2, 1fr); }

  .product-card { flex: 0 0 calc(100% - 0px); }

  .awards-photos { grid-template-columns: repeat(2, 1fr); }
  .awards-certs  { grid-template-columns: repeat(2, 1fr); }

  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 360px) {
  .btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.8125rem;
    white-space: normal;
    text-align: center;
  }
  .portfolio-cta .btn { width: 100%; justify-content: center; }
  .slider-dot { padding: 8px; background-clip: content-box; }
}

/* ── 15. REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
