/* ============================================================
   SKOVGAARD YOGA & FYSIOTERAPI — Shared Stylesheet
   ============================================================
   All brand tokens live here. To change colors site-wide,
   only edit the :root custom properties below.
   ============================================================ */

/* ── 1. Brand Tokens ────────────────────────────────────────── */
:root {
  /* Colors */
  --brand-purple: #462b58;
  --brand-gradient-end: #aa81c5;
  --brand-mid: #6b4488;
  --off-white: #fdfaf7;
  --nude: #f7f3ef;
  --text-dark: #2d2d2d;
  --text-hero-label: #e2d5f8; /* Light lavender — small labels on dark/gradient hero backgrounds */

  /* Typography — font families */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, sans-serif;

  /* Typography — type scale */
  --text-xs:   0.75rem;    /* 12px  — labels, tags, captions */
  --text-sm:   0.875rem;   /* 14px  — small UI text, nav sub-items */
  --text-base: 1rem;       /* 16px  — body default (WCAG minimum) */
  --text-md:   1.0625rem;  /* 17px  — comfortable body / lead paragraphs */
  --text-lg:   1.125rem;   /* 18px  — emphasized body, intro text */
  --text-xl:   1.25rem;    /* 20px  — h4, step headings */
  --text-2xl:  1.5rem;     /* 24px  — h3, service card titles */
  --text-3xl:  1.875rem;   /* 30px  — h2 compact / CTA sections */
  --text-4xl:  2.25rem;    /* 36px  — h2 standard sections */
  --text-5xl:  3rem;       /* 48px  — h1 sub-pages */
  --text-hero: clamp(2.75rem, 3vw + 1.5rem, 4.5rem); /* fluid — fullscreen hero h1 */

  /* Typography — line heights */
  --leading-tight:   1.2;
  --leading-snug:    1.35;
  --leading-normal:  1.7;
  --leading-relaxed: 1.85;

  /* Typography — letter spacing */
  --tracking-tight:   -0.01em;
  --tracking-normal:   0;
  --tracking-wide:     0.05em;
  --tracking-widest:   0.15em;
}

/* ── 2. Base Styles ─────────────────────────────────────────── */
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
.serif {
  font-family: 'Playfair Display', serif;
}

h1 {
  font-size: var(--text-5xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

h2 {
  font-size: var(--text-4xl);
  line-height: var(--leading-snug);
}

h3 {
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
}

h4 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

p {
  max-width: 68ch;
}

/* ── 3. Brand Utilities ─────────────────────────────────────── */
/* Soft tint / divider helpers derived from --brand-purple */
.bg-plum-soft     { background-color: rgba(70, 43, 88, 0.05); }
.border-plum-soft { border-color:      rgba(70, 43, 88, 0.1);  }
.divider-plum     { background: linear-gradient(90deg, transparent, rgba(70, 43, 88, 0.1), transparent); }


.brand-gradient {
  background: linear-gradient(135deg,
      var(--brand-purple) 0%,
      var(--brand-mid) 50%,
      var(--brand-gradient-end) 100%);
}

.bg-off-white {
  background-color: var(--off-white);
}

.bg-nude {
  background-color: var(--nude);
}

.text-plum {
  color: var(--brand-purple);
}

.bg-plum {
  background-color: var(--brand-purple);
}

.border-plum {
  border-color: var(--brand-purple);
}

.text-nude {
  color: var(--nude);
}

.text-hero-label {
  color: var(--text-hero-label);
}

/* ── 4. Buttons ─────────────────────────────────────────────── */
.btn-primary {
  background-color: var(--brand-purple);
  color: white;
  padding: 16px 36px;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(70, 43, 88, 0.2);
}

/* ── 5. Hero Sections ───────────────────────────────────────── */
/* Full-screen hero (index.html) */
.hero-fullscreen {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

@media (max-width: 767px) {
  .hero-fullscreen {
    height: auto;
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 2rem;
  }
}

/* Sub-page hero (default — each page overrides bg-image inline) */
.page-hero {
  height: 55vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

/* ── 6. Navigation ──────────────────────────────────────────── */
header {
  transition: all 0.4s ease-in-out;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

/* Desktop dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 200px;
  padding: 12px 0 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-purple);
  text-decoration: none;
  transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
  background: var(--nude);
}

/* ── 7. Hamburger ───────────────────────────────────────────── */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

@media (min-width: 1024px) {
  .hamburger-btn {
    display: none !important;
  }
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: all 0.3s ease;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 8. Mobile Drawer ───────────────────────────────────────── */
#drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#drawer-backdrop.open {
  display: block;
  opacity: 1;
}

#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 99;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 0;
}

#mobile-menu.open {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.drawer-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brand-purple);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.drawer-close-btn:hover {
  background: var(--nude);
}

.drawer-nav {
  flex: 1;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.drawer-link {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--brand-purple);
  text-decoration: none;
  padding: 1.25rem 0;
  width: 100%;
  max-width: 280px;
  border-bottom: 1px solid rgba(70, 43, 88, 0.08);
  display: block;
  transition: opacity 0.2s;
}

.drawer-link:hover {
  opacity: 0.65;
}

.drawer-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--brand-purple);
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(70, 43, 88, 0.08);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  width: 100%;
  max-width: 280px;
  text-align: center;
}

.drawer-accordion-trigger .chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--brand-gradient-end);
}

.drawer-accordion-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.drawer-sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--off-white);
  border-bottom: 1px solid #f3f4f6;
}

.drawer-sub-menu.open {
  max-height: 500px;
  padding: 1rem 0;
}

.drawer-sub-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-purple);
  text-decoration: none;
  transition: background 0.2s;
}

.drawer-sub-menu a:first-child {
  padding-top: 0.9rem;
}

.drawer-sub-menu a:last-child {
  padding-bottom: 0.9rem;
}

.drawer-sub-menu a:hover {
  background: #f0eaf8;
}

.drawer-footer {
  padding: 3rem 2rem;
  border-top: none;
  display: flex;
  justify-content: center;
}

.drawer-cta {
  display: block;
  width: 100%;
  max-width: 280px;
  text-align: center;
  background: var(--brand-purple);
  color: white;
  padding: 16px 0;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.drawer-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ── 9. Components ──────────────────────────────────────────── */
/* Service cards */
.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(70, 43, 88, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(70, 43, 88, 0.08);
}

/* Process steps */
.step-circle {
  width: 45px;
  height: 45px;
  border: 1px solid #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: var(--brand-purple);
  background: white;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
}

.process-line {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 1px;
  background: #eee;
  z-index: 1;
}

/* ── 10. Scroll Indicator (hero) ────────────────────────────── */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 10;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-10px) translateX(-50%);
  }

  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* ── 11. Fade-in Animations ─────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.1s;
}

.fade-in-delay-2 {
  transition-delay: 0.2s;
}

.fade-in-delay-3 {
  transition-delay: 0.3s;
}

.fade-in-delay-4 {
  transition-delay: 0.4s;
}

/* ── 12. Stress Quiz ────────────────────────────────────────── */

/* Progress bar */
.quiz-progress-wrap {
  height: 3px;
  background: rgba(70, 43, 88, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-gradient-end));
  border-radius: 9999px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

/* Question cards */
.quiz-question-card {
  background: white;
  border: 1px solid rgba(70, 43, 88, 0.07);
  border-left: 3px solid var(--brand-gradient-end);
  border-radius: 0 1rem 1rem 0;
  padding: 1.75rem 2rem;
  transition: box-shadow 0.25s ease, border-left-color 0.25s ease;
}

.quiz-question-card:focus-within {
  box-shadow: 0 8px 28px rgba(70, 43, 88, 0.09);
  border-left-color: var(--brand-purple);
}

/* Question number — elegant italic, no bubble */
.question-number {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand-gradient-end);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2rem;
  padding-top: 0.1rem;
}

.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border: 1.5px solid rgba(70, 43, 88, 0.18);
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-purple);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  user-select: none;
}

.quiz-option input[type="radio"] {
  display: none;
}

.quiz-option:hover {
  background: var(--nude);
  border-color: var(--brand-mid);
  transform: translateY(-1px);
}

.quiz-option.selected {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  color: white;
}

/* Result — large score number */
.result-score-number {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  padding-bottom: 0.1em;
}

.result-score-number.lavt    { color: #16a34a; }
.result-score-number.moderat { color: #ca8a04; }
.result-score-number.hoejt   { color: #dc2626; }

/* Result score meter bar */
.score-meter-wrap {
  height: 6px;
  background: rgba(70, 43, 88, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin: 1.25rem auto;
  max-width: 280px;
}

.score-meter-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-meter-fill.lavt    { background: linear-gradient(90deg, #4ade80, #16a34a); }
.score-meter-fill.moderat { background: linear-gradient(90deg, #fde047, #eab308); }
.score-meter-fill.hoejt   { background: linear-gradient(90deg, #f87171, #dc2626); }

/* Keep old result-badge for any fallback references */
.result-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.result-badge.lavt    { background: #16a34a; color: white; }
.result-badge.moderat { background: #eab308; color: white; }
.result-badge.hoejt   { background: #dc2626; color: white; }