/* ============================================
   KDM DERMA THERAPY · PAGE COMPOSITIONS
   Hero, story, services, philosophy sections
   ============================================ */

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: var(--space-2xl);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

.hero__copy {
  max-width: 38ch;
}

.hero__eyebrow {
  margin-bottom: var(--space-md);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  font-size: clamp(2.75rem, 6.5vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

.hero__title em {
  font-style: italic;
  color: var(--color-primary);
  display: block;
}

.hero__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--weight-light);
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: var(--leading-snug);
  color: var(--color-ink-muted);
  max-width: 32ch;
  margin-bottom: var(--space-lg);
}

.hero__ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero__credentials {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-line);
}

.hero__credential {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__credential-stat {
  font-family: var(--font-display);
  font-size: var(--type-2xl);
  font-weight: var(--weight-light);
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__credential-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* Hero visual side - editorial portrait composition */
.hero__visual {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 80vh;
}

.hero__portrait {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--clay-200) 0%, var(--clay-400) 50%, var(--clay-600) 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__portrait-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--clay-50);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  max-width: 280px;
}

.hero__portrait-card-name {
  font-family: var(--font-display);
  font-size: var(--type-xl);
  font-weight: var(--weight-regular);
  line-height: 1.1;
  color: var(--color-ink);
}

.hero__portrait-card-name em {
  font-style: italic;
  color: var(--color-primary);
}

.hero__portrait-card-role {
  font-family: var(--font-mono);
  font-size: var(--type-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-top: 4px;
}

.hero__rating {
  position: absolute;
  top: -16px;
  right: -16px;
  background: var(--color-ink);
  color: var(--clay-50);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.hero__rating-stars {
  color: var(--gold-300);
  font-size: var(--type-sm);
  letter-spacing: 2px;
}

.hero__rating-label {
  font-family: var(--font-mono);
  font-size: var(--type-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  animation: pulse-down 2s ease-in-out infinite;
}

.hero__scroll-cue::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--color-ink-soft), transparent);
}

@keyframes pulse-down {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50%      { transform: translateX(-50%) translateY(4px); opacity: 1; }
}


/* ═══════════════════════════════════════════
   ANNOUNCEMENT BAR
   ═══════════════════════════════════════════ */

.announce {
  background: var(--color-ink);
  color: var(--clay-50);
  text-align: center;
  padding: var(--space-2xs) var(--gutter);
  font-family: var(--font-mono);
  font-size: var(--type-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.announce a {
  color: var(--gold-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ═══════════════════════════════════════════
   STORY SECTION
   ═══════════════════════════════════════════ */

.story {
  position: relative;
}

.story__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (max-width: 900px) {
  .story__inner {
    grid-template-columns: 1fr;
  }
}

.story__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--clay-300);
}

.story__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46, 27, 15, 0.4), transparent 50%);
}

.story__pull-quote {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--type-lg);
  font-weight: var(--weight-light);
  color: var(--clay-50);
  line-height: var(--leading-snug);
  z-index: 1;
}

.story__content > * + * {
  margin-top: var(--space-md);
}

.story__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: var(--weight-light);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.story__title em {
  font-style: italic;
  color: var(--color-primary);
}

.story__body p {
  font-size: var(--type-md);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-muted);
  max-width: 60ch;
}

.story__body p + p {
  margin-top: var(--space-sm);
}

.story__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-line);
}

.story__highlight-num {
  font-family: var(--font-display);
  font-size: var(--type-3xl);
  font-weight: var(--weight-light);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2xs);
}

.story__highlight-label {
  font-family: var(--font-mono);
  font-size: var(--type-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-ink-soft);
}


/* ═══════════════════════════════════════════
   SERVICES SHOWCASE
   ═══════════════════════════════════════════ */

.services {
  background: var(--color-bg-alt);
  position: relative;
}

.services__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: end;
  margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
  .services__header {
    grid-template-columns: 1fr;
  }
}

.services__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: var(--weight-light);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}

.services__title em {
  font-style: italic;
  color: var(--color-primary);
}

.services__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--type-md);
  color: var(--color-ink-muted);
  max-width: 40ch;
  line-height: var(--leading-snug);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}


/* ═══════════════════════════════════════════
   PHILOSOPHY (multi-step)
   ═══════════════════════════════════════════ */

.philosophy {
  position: relative;
  padding-block: var(--space-4xl);
}

.philosophy__intro {
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.philosophy__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  counter-reset: step;
}

@media (max-width: 768px) {
  .philosophy__steps {
    grid-template-columns: 1fr;
  }
}

.philosophy__step {
  position: relative;
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  counter-increment: step;
  transition: all var(--duration-normal) var(--ease-out-quart);
}

.philosophy__step:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.philosophy__step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-display);
  font-size: var(--type-3xl);
  font-weight: var(--weight-light);
  color: var(--clay-200);
  line-height: 1;
  transition: color var(--duration-normal) var(--ease-out-quart);
}

.philosophy__step:hover::before {
  color: var(--color-primary);
}

.philosophy__step-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clay-100);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.philosophy__step-title {
  font-family: var(--font-display);
  font-size: var(--type-xl);
  font-weight: var(--weight-regular);
  color: var(--color-ink);
  margin-bottom: var(--space-2xs);
}

.philosophy__step-title em {
  font-style: italic;
  color: var(--color-primary);
}

.philosophy__step-body {
  font-size: var(--type-base);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-muted);
}


/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */

.testimonials {
  background: var(--color-bg-deep);
  color: var(--color-on-deep);
  padding: var(--space-4xl) var(--gutter);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.2;
  pointer-events: none;
}

.testimonials__inner {
  position: relative;
  max-width: var(--container-base);
  margin: 0 auto;
}

.testimonial {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial__quote-mark {
  font-family: var(--font-display);
  font-size: var(--type-6xl);
  line-height: 0.6;
  color: var(--gold-400);
  margin-bottom: var(--space-sm);
  opacity: 0.8;
}

.testimonial__body {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--weight-light);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: var(--leading-snug);
  color: var(--clay-50);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-lg);
}

.testimonial__attribution {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--type-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold-300);
}

.testimonial__attribution::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
}


/* ═══════════════════════════════════════════
   FEATURED IN STRIP
   ═══════════════════════════════════════════ */

.featured {
  background: var(--color-bg-alt);
  padding: var(--space-xl) var(--gutter);
  border-block: 1px solid var(--color-line);
}

.featured__inner {
  max-width: var(--container-base);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 768px) {
  .featured__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.featured__label {
  font-family: var(--font-mono);
  font-size: var(--type-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.featured__list {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.featured__item {
  font-family: var(--font-display);
  font-size: var(--type-lg);
  font-weight: var(--weight-regular);
  color: var(--color-ink-muted);
  letter-spacing: -0.005em;
}

.featured__item em {
  font-style: italic;
  color: var(--color-primary);
}


/* ═══════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════ */

.faq__list {
  max-width: var(--container-text);
  margin: 0 auto;
  border-top: 1px solid var(--color-line-strong);
}

.faq__item {
  border-bottom: 1px solid var(--color-line-strong);
}

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.777rem);
  font-weight: var(--weight-regular);
  color: var(--color-ink);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out-quart);
}

.faq__trigger:hover {
  color: var(--color-primary);
}

.faq__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  transition: transform var(--duration-normal) var(--ease-out-quart);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: opacity var(--duration-normal) var(--ease-out-quart);
}

.faq__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-0.5px);
}

.faq__icon::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  transform: translateX(-0.5px);
}

.faq__item.is-open .faq__icon::after {
  opacity: 0;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out-quart);
}

.faq__answer-inner {
  padding-bottom: var(--space-md);
  font-size: var(--type-md);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-muted);
  max-width: 60ch;
}


/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */

.cta-section {
  position: relative;
  padding: var(--space-4xl) var(--gutter);
  background: linear-gradient(135deg, var(--clay-700) 0%, var(--clay-800) 50%, var(--ink-800) 100%);
  color: var(--clay-50);
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.2;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(201, 163, 56, 0.3), transparent 70%);
  pointer-events: none;
}

.cta-section__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: var(--weight-light);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--clay-50);
  margin-bottom: var(--space-md);
}

.cta-section__title em {
  font-style: italic;
  color: var(--gold-300);
}

.cta-section__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--type-lg);
  color: var(--clay-200);
  margin-bottom: var(--space-xl);
  max-width: 50ch;
  margin-inline: auto;
}


/* ═══════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-mono);
  font-size: var(--type-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-ink-soft);
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: inherit;
  transition: color var(--duration-fast) var(--ease-out-quart);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb__sep {
  opacity: 0.4;
}


/* ═══════════════════════════════════════════
   PAGE HERO (interior pages)
   ═══════════════════════════════════════════ */

.page-hero {
  padding-top: 140px;
  padding-bottom: var(--space-xl);
  text-align: center;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: var(--weight-light);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

.page-hero__title em {
  font-style: italic;
  color: var(--color-primary);
}

.page-hero__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: var(--leading-snug);
  color: var(--color-ink-muted);
  max-width: 40ch;
  margin: 0 auto;
}


/* ═══════════════════════════════════════════
   RESPONSIVE POLISH (tablet + mobile)
   Added 2026-05-12 - non-destructive overrides
   ═══════════════════════════════════════════ */

/* TABLET (768 - 1024px) */
@media (max-width: 1024px) {
  .hero {
    padding-top: 96px;
  }
  .hero__inner {
    gap: var(--space-lg);
  }
  .hero__credentials {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  .site-nav__menu {
    gap: var(--space-sm);
  }
  .site-nav__link {
    font-size: 10px;
  }
}

/* TABLET → MOBILE TRANSITION (≤ 900px) */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 88px;
    padding-bottom: var(--space-xl);
  }
  .hero__copy {
    max-width: 100%;
  }
  .hero__visual {
    max-width: 520px;
    margin: 0 auto;
  }
  .hero__title {
    font-size: clamp(2.25rem, 9vw, 4rem);
  }
  .hero__credentials {
    justify-content: center;
  }
  .hero__copy {
    text-align: center;
  }
  .hero__lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__ctas {
    justify-content: center;
  }
  .hero__eyebrow {
    justify-content: center;
  }
}

/* MOBILE (≤ 768px) */
@media (max-width: 768px) {
  :root {
    --gutter: 18px;
  }
  .hero__title {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }
  .hero__lede {
    font-size: 1rem;
  }
  .hero__credentials {
    gap: var(--space-xs);
    flex-direction: column;
    align-items: center;
  }
  .hero__credential {
    text-align: center;
  }
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }
  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .site-nav {
    padding: var(--space-2xs) var(--gutter);
  }
  .site-nav__brand-mark {
    font-size: 1.5rem;
  }
  .site-nav__brand-tag {
    display: none !important;
  }
  .site-nav__cta {
    display: none;
  }
  .hero__rating {
    transform: scale(0.9);
    transform-origin: top right;
  }
  .hero__portrait-card {
    transform: scale(0.9);
    transform-origin: bottom left;
  }
  /* Hide custom cursor canvas effects on touch */
  .hero__canvas {
    opacity: 0.35;
  }
}

/* NARROW MOBILE (≤ 480px) */
@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(1.75rem, 11vw, 2.5rem);
  }
  .hero__credential-stat {
    font-size: 1.5rem;
  }
}

/* Ensure no horizontal scroll on any viewport */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Make all images responsive by default (defensive) */
img {
  max-width: 100%;
  height: auto;
}

/* Touch device polish - kill any leftover cursor:none */
@media (hover: none), (pointer: coarse) {
  * { cursor: auto !important; }
  a, button { cursor: pointer !important; }
  .custom-cursor { display: none !important; }
}
