/*
 * hem-style.css – Stockholmskliniken startsida
 * Placering: /wp-content/themes/hello-theme-child-master/hem-style.css
 */

/* ── Variabler (synkade med navbar-style.css) ──────────────── */
:root {
  --brand:      #8B6764;
  --brand-dark: #7a5351;
  --brand-pale: #baa3a1;
  --brand-mid:  #b08280;
  --ink:        #1c1a18;
  --ink-mid:    #4a4540;
  --ink-light:  #8a8480;
  --cream:      #faf8f5;
  --cream-dark: #f4f0eb;
  --bone:       #ede8e0;
  --white:      #ffffff;
  --border:     #e8e0da;
  --serif:      'Josefin Sans', system-ui, sans-serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --nav-h:      var(--sk-nav-h, 72px);
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Scoped resets ─────────────────────────────────────────── */
.sk-hem-page *, .sk-hem-page *::before, .sk-hem-page *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
.sk-hem-page {
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.sk-hem-page a { color: inherit; text-decoration: none; }
.sk-hem-page button:not(.tlist-row):hover,
.sk-hem-page button:not(.tlist-row):focus { background: none; outline: none; }

/* ════════════════════════════════════════════════════════════ */
/* HERO — Full-viewport video background                        */
/* ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 5rem;
  overflow: hidden;
}

/* Background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Dark gradient overlay — heavier on left for text legibility */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(20,10,8,0.62) 0%,
    rgba(20,10,8,0.35) 55%,
    rgba(20,10,8,0.12) 100%
  );
  z-index: 1;
}

/* Text container — above overlay */
.hero-text {
  position: relative;
  z-index: 2;
  max-width: 600px;
  display: flex;
  flex-direction: column;
}
.hero-eyebrow {
  font-family: var(--serif);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(16px);
  animation: sk-fadeUp 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 2.5rem; height: 1px;
  background: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.hero-heading {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(2.8rem, 4.5vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: sk-fadeUp 0.8s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-heading em {
  font-style: italic;
  font-weight: 200;
  color: var(--brand-pale);
}
.hero-sub {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.72);
  max-width: 26rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: sk-fadeUp 0.7s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(14px);
  animation: sk-fadeUp 0.7s 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* On dark video hero: invert primary, make ghost a proper ghost button */
.hero .btn-primary {
  background: #fff;
  color: var(--brand);
}
.hero .btn-primary:hover {
  background: var(--cream-dark);
  color: var(--brand-dark);
  transform: translateY(-2px);
}
.hero .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 1px;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  transition: border-color 0.25s, color 0.25s;
}
.hero .btn-ghost:hover { border-color: rgba(255,255,255,0.75); color: #fff; }

/* Shared button styles */
.sk-hem-page .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--brand);
  color: #fff;
  font-family: var(--serif);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 1px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.sk-hem-page .btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }

.btn-ghost {
  font-family: var(--serif);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, gap 0.2s;
}
.btn-ghost:hover { color: var(--brand); gap: 12px; }

/* ── Scroll-down hint ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: sk-fadeUp 0.8s 1.2s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-scroll-hint span {
  font-family: var(--serif);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.hero-scroll-hint::after {
  content: '';
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.3);
  animation: scrollPulse 2s 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.3; }
  50%       { transform: scaleY(1.4); opacity: 0.7; }
}



/* ════════════════════════════════════════════════════════════ */
/* SHARED SECTION ELEMENTS                                      */
/* ════════════════════════════════════════════════════════════ */
.section-label {
  font-family: var(--serif);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--brand);
  flex-shrink: 0;
}
.section-label.light { color: rgba(255,255,255,0.85); }
.section-label.light::before { background: rgba(255,255,255,0.6); }

.section-title {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--ink);
}
.section-title em { font-style: normal; color: var(--brand); }

.section-desc {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--ink-light);
  font-weight: 300;
  max-width: 26rem;
  align-self: end;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: end;
}

/* ════════════════════════════════════════════════════════════ */
/* CATEGORY ACCORDION                                           */
/* ════════════════════════════════════════════════════════════ */
.categories-section {
  padding: 8rem 7rem;
  background: var(--cream);
}

.treatments-list {
  border-top: 1px solid var(--border);
}

/* ── Accordion item wrapper ── */
.tlist-item {
  border-bottom: 1px solid var(--border);
}

/* ── Row (trigger button) ── */
.tlist-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 0;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: inherit;
  transition: background 0.2s;
}
.tlist-row:hover { background: rgba(146,101,99,0.04); }
.tlist-item.open > .tlist-row { background: rgba(146,101,99,0.04); }

.tlist-num {
  font-family: var(--serif);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--brand);
  opacity: 0.6;
}
.tlist-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 200;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: transform 0.2s ease, color 0.2s;
}
.tlist-row:hover .tlist-name { transform: translateX(6px); color: var(--brand); }
.tlist-desc {
  font-size: 0.8rem;
  color: var(--ink-light);
  font-weight: 300;
  line-height: 1.5;
}
.tlist-toggle {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 200;
  color: var(--ink-light);
  line-height: 1;
  transition: transform 0.3s var(--ease), color 0.25s;
}
.tlist-item.open .tlist-toggle {
  transform: rotate(45deg);
  color: var(--brand);
}

/* ── Accordion panel ── */
.tlist-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.tlist-item.open .tlist-panel {
  grid-template-rows: 1fr;
}
.tlist-panel-inner {
  overflow: hidden;
  min-height: 0;
  padding-bottom: 0;
  transition: padding-bottom 0.4s var(--ease);
}
.tlist-item.open .tlist-panel-inner {
  padding-bottom: 2.5rem;
}

/* ── Inner treatment grid ── */
.tlist-inner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
}

/* ── Treatment card inside accordion ── */
.tpanel-card {
  position: relative;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--brand-pale);
  background-image: var(--img, none);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.25s var(--ease);
}
.tpanel-card:hover { transform: translateY(-4px); }
.tpanel-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,26,24,0.72) 0%, rgba(28,26,24,0.1) 55%, transparent 100%);
}
.tpanel-card.no-img::after {
  background: linear-gradient(160deg, rgba(146,101,99,0.18) 0%, rgba(146,101,99,0.06) 100%);
}
.tpanel-card-inner {
  position: relative;
  z-index: 1;
  padding: 1rem 1rem 1.2rem;
}
.tpanel-card-name {
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 200;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.35;
  transition: transform 0.2s ease;
}
.tpanel-card:hover .tpanel-card-name { transform: translateX(4px); }
.tpanel-card.no-img .tpanel-card-name { color: var(--ink); }
.tpanel-card-arrow {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.4rem;
  display: block;
  transition: transform 0.2s;
}
.tpanel-card:hover .tpanel-card-arrow { transform: translateX(3px); }
.tpanel-card.no-img .tpanel-card-arrow { color: var(--brand); }

/* ════════════════════════════════════════════════════════════ */
/* TRUST / STATISTIK                                            */
/* ════════════════════════════════════════════════════════════ */
.trust-section {
  background: var(--brand);
  padding: 8rem 7rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.trust-title {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 1.8rem;
}
.trust-title em { font-style: normal; color: rgba(255,255,255,0.65); }

.trust-body {
  font-size: 0.88rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  margin-bottom: 2.5rem;
}

/* Inverted: white bg, brand text — for use on brand/dark backgrounds */
.sk-hem-page .btn-primary-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #fff;
  color: var(--brand);
  font-family: var(--serif);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 1px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.sk-hem-page .btn-primary-light:hover {
  background: var(--cream-dark);
  color: var(--brand-dark);
  transform: translateY(-2px);
}

.trust-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.trust-stat {
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.3s;
}
.trust-stat:hover { border-color: rgba(255,255,255,0.5); }

.trust-stat-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 200;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}

.trust-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════ */
/* OMDÖMEN                                                      */
/* ════════════════════════════════════════════════════════════ */
.testimonials-section {
  padding: 8rem 7rem;
  background: var(--bone);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testi-card {
  background: var(--cream);
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.testi-quote {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 200;
  color: var(--brand);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: -0.3rem;
}

.testi-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-mid);
  font-weight: 300;
  margin-bottom: 2rem;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testi-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--brand);
  flex-shrink: 0;
}

.testi-name {
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.testi-meta {
  font-size: 0.7rem;
  color: var(--ink-light);
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

.testi-stars { display: flex; gap: 0.15rem; margin-top: 0.4rem; }
.star { color: var(--brand); font-size: 0.65rem; }

/* ════════════════════════════════════════════════════════════ */
/* BOKA CTA                                                     */
/* ════════════════════════════════════════════════════════════ */
.booking-cta {
  padding: 8rem 7rem;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.booking-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.booking-title {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--ink);
}
.booking-title em { font-style: normal; color: var(--brand); }

.booking-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.booking-info {
  font-size: 0.75rem;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  text-align: right;
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════ */
/* SCROLL REVEAL                                                */
/* ════════════════════════════════════════════════════════════ */
.sk-hem-page .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.sk-hem-page .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ════════════════════════════════════════════════════════════ */
/* ANIMATIONS                                                   */
/* ════════════════════════════════════════════════════════════ */
@keyframes sk-fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sk-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes sk-rotateBadge {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ════════════════════════════════════════════════════════════ */
/* RESPONSIVE — Tablet ≤ 1100px                                 */
/* ════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero { padding: 0 3rem; }

  .categories-section { padding: 5rem 3rem; }
  .section-header { grid-template-columns: 1fr; gap: 1rem; }
  .section-desc { max-width: 100%; align-self: auto; }
  .tlist-row { grid-template-columns: 3rem 1fr auto; gap: 1rem; }
  .tlist-desc { display: none; }
  .tlist-inner-grid { grid-template-columns: repeat(3, 1fr); }

  .trust-section { padding: 5rem 3rem; grid-template-columns: 1fr; gap: 3rem; }

  .testimonials-section { padding: 5rem 3rem; }
  .testi-grid { grid-template-columns: 1fr; gap: 1.2rem; }

  .booking-cta { padding: 5rem 3rem; }
  .booking-cta-inner { grid-template-columns: 1fr; gap: 2rem; }
  .booking-actions { align-items: flex-start; }
  .booking-info { text-align: left; }
}

/* ════════════════════════════════════════════════════════════ */
/* RESPONSIVE — Mobile ≤ 640px                                  */
/* ════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .hero { padding: 0 1.5rem; }
  .hero-text { max-width: 100%; }
  .hero-heading { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .categories-section { padding: 4rem 1.5rem; }
  .tlist-row { grid-template-columns: 2.5rem 1fr auto; gap: 0.75rem; padding: 1.2rem 0; }
  .tlist-name { font-size: 0.95rem; }
  .tlist-inner-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .section-header { margin-bottom: 2.5rem; }

  .trust-section { padding: 4rem 1.5rem; }
  .trust-right { grid-template-columns: 1fr 1fr; }

  .testimonials-section { padding: 4rem 1.5rem; }

  .booking-cta { padding: 4rem 1.5rem; }
  .booking-title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .booking-actions { align-items: stretch; }
  .sk-hem-page .btn-primary { text-align: center; }
  .booking-info { font-size: 0.7rem; }
}
