/* ============================================================
   R4S.CSS - Rewire4Success Design System
   Adapted from Elena Meskhi & Co premium design system
   ============================================================ */

/* -------- CSS VARIABLES -------- */
:root {
  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Primary Colours */
  --navy: #30293d;
  --navy-dark: #1d1728;
  --brand-purple: #812b71;
  --brand-purple-dark: #661f58;
  --brand-purple-soft: #a45995;
  --cream: #f7f3ee;
  --cream-dark: #efe8dd;

  /* Accent Colours */
  --gold: #c9a962;
  --gold-light: #d4bc7e;
  --gold-dark: #b89645;
  --sage: #7c9082;
  --sage-light: #9ab3a1;

  /* Neutrals */
  --charcoal: #2d3436;
  --charcoal-light: #4a4e50;
  --white: #ffffff;
  --border: rgba(48, 41, 61, 0.1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(29, 23, 40, 0.06);
  --shadow-md: 0 8px 30px rgba(29, 23, 40, 0.1);
  --shadow-lg: 0 20px 60px rgba(29, 23, 40, 0.15);
  --shadow-xl: 0 30px 80px rgba(29, 23, 40, 0.2);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --nav-height: 80px;
  --container: 1200px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

/* -------- TYPOGRAPHY -------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }

em {
  font-style: italic;
  color: var(--gold);
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-purple);
  margin-bottom: 1rem;
}

.section-label--light {
  color: var(--gold-light);
}

/* -------- CONTAINER -------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

/* -------- SECTION SPACING -------- */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section--cards-first {
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.section--dark {
  background: var(--navy-dark);
  color: var(--cream);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--cream);
}

.section--alt {
  background: var(--white);
}

.section__header {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

.section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  color: var(--charcoal-light);
  margin-top: 1rem;
  line-height: 1.7;
}

.section--dark .section__subtitle {
  color: rgba(247, 243, 238, 0.75);
}

/* -------- BUTTONS -------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  cursor: pointer;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand-purple);
  color: var(--cream);
  border-color: var(--brand-purple);
}

.btn--primary:hover {
  background: var(--brand-purple-dark);
  border-color: var(--brand-purple-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(48, 41, 61, 0.3);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 243, 238, 0.3);
}

.btn--outline-light:hover {
  background: var(--cream);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn--full {
  width: 100%;
}

.btn__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: none;
}

.btn:hover .btn__shimmer {
  animation: shimmer 0.8s ease forwards;
}

.btn__loading {
  display: none;
}

.btn.is-loading .btn__text { opacity: 0; }
.btn.is-loading .btn__loading {
  display: flex;
  position: absolute;
  animation: spin 1s linear infinite;
}

/* -------- NAVIGATION -------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(247, 243, 238, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.nav.scrolled {
  background: rgba(247, 243, 238, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  height: 70px;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav__logo-image {
  display: block;
  width: auto;
  height: 40px;
  max-width: min(52vw, 200px);
}

.nav__logo:hover {
  transform: translateY(-1px);
}

.nav__menu {
  display: none;
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(48, 41, 61, 0.9);
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
  color: var(--brand-purple);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-purple);
  transition: width var(--transition-smooth);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(48, 41, 61, 0.9);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav__phone svg { flex-shrink: 0; }

.nav__phone-number {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: -0.03em;
}

.nav__phone:hover { color: var(--brand-purple); }

.nav__cta {
  display: none;
  padding: 0.7rem 1.5rem;
  font-size: 0.85rem;
  box-shadow: 0 8px 22px rgba(129, 43, 113, 0.22);
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition-smooth);
  transform-origin: center;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--cream);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: var(--cream);
}

/* -------- MOBILE MENU -------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__content {
  text-align: center;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--cream);
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-smooth);
}

.mobile-menu.active .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu__link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu__link:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active .mobile-menu__link:nth-child(7) { transition-delay: 0.4s; }

.mobile-menu__link:hover {
  color: var(--gold);
}

.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-smooth) 0.4s;
}

.mobile-menu.active .mobile-menu__footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__phone {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--gold);
}

/* -------- MOBILE STICKY CTA -------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  padding: 0.75rem 1rem;
  background: rgba(247, 243, 238, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  justify-content: center;
  gap: 0.75rem;
}

.mobile-cta .btn {
  flex: 1;
  max-width: 200px;
  font-size: 0.85rem;
  padding: 0.7rem 1rem;
}

/* -------- HERO -------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #fdfbf8 0%, #f8f2e9 34%, #f3edf7 70%, #ede4f2 100%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 128px;
}

.hero__shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.24;
}

.hero__shape--1 {
  width: 600px;
  height: 600px;
  background: #eadff1;
  top: -200px;
  right: -100px;
}

.hero__shape--2 {
  width: 400px;
  height: 400px;
  background: #f0eadf;
  bottom: -100px;
  left: -100px;
}

.hero__shape--3 {
  width: 300px;
  height: 300px;
  background: rgba(129, 43, 113, 0.17);
  top: 50%;
  left: 40%;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 6rem;
}

.hero__content {
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(48, 41, 61, 0.16);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--navy-dark);
  margin-bottom: 1.5rem;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2);
  animation: pulse-dot 2s ease infinite;
}

.hero__title {
  color: var(--navy-dark);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero__title em {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(48, 41, 61, 0.88);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero__visual {
  position: relative;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(48, 41, 61, 0.64);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 0;
  pointer-events: none;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(48, 41, 61, 0.35);
  position: relative;
  overflow: hidden;
}

.hero__scroll-dot {
  position: absolute;
  top: -4px;
  left: -1.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-purple);
  animation: scrollDot 2s ease-in-out infinite;
}

/* -------- PAGE HERO (inner pages) -------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  background: var(--cream);
  overflow: hidden;
}

/* Blend inner-page hero backgrounds into the following section instead of
   leaving a hard colour break across the viewport. */
.page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7rem;
  background: linear-gradient(to bottom, rgba(247,243,238,0), rgba(247,243,238,0.84) 72%, var(--cream));
  pointer-events: none;
  z-index: 2;
}

.page-hero .hero__gradient {
  background: linear-gradient(140deg, #fdfbf8 0%, #f8f2e9 34%, #f3edf7 70%, var(--cream) 100%);
}

.page-hero .hero__bg {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 7rem), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 7rem), transparent 100%);
}

.page-hero--to-white::after {
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.84) 72%, var(--white));
}

.page-hero--to-white .hero__gradient {
  background: linear-gradient(140deg, #fdfbf8 0%, #f8f2e9 34%, #f3edf7 70%, var(--white) 100%);
}

.page-hero--to-white {
  background: var(--white);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-hero__title {
  margin-bottom: 1rem;
}

.page-hero__subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(48, 41, 61, 0.8);
  line-height: 1.7;
  max-width: 600px;
}

.page-hero--center {
  text-align: center;
}

.page-hero--center .page-hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* -------- CREDIBILITY BAR -------- */
.credibility {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.credibility__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
}

.credibility__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--charcoal-light);
}

.credibility__icon {
  width: 20px;
  height: 20px;
  color: var(--brand-purple);
  flex-shrink: 0;
}

/* -------- PAIN POINTS -------- */
.pain__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.pain__card {
  background: rgba(255, 253, 249, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.pain__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pain__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(129, 43, 113, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--brand-purple);
}

.pain__card h3 {
  margin-bottom: 0.75rem;
}

.pain__card p {
  color: var(--charcoal-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* -------- METHOD / FRAMEWORK -------- */
.method__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: step;
}

.method__step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.method__number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(129, 43, 113, 0.06);
  border: 2px solid rgba(129, 43, 113, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-purple);
  flex-shrink: 0;
}

.method__content h3 {
  margin-bottom: 0.5rem;
}

.method__content p {
  color: var(--charcoal-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* -------- PROGRAMME / SERVICE CARDS -------- */
.programmes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Present the three routes in the journey Elena requested: diagnose, self-guide, then 1:1. */
.programmes__grid .programme__card--scorecard { order: 1; }
.programmes__grid .programme__card--self-guided { order: 2; }
.programmes__grid .programme__card--coaching { order: 3; }

.programme__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.35s ease;
}

.programme__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(129, 43, 113, 0.2);
}

.programme__card--featured {
  border-color: var(--gold);
  position: relative;
}

.programme__card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 2rem;
  padding: 0.25rem 0.75rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
}

.programme__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(129, 43, 113, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--brand-purple);
}

.programme__card h3 {
  margin-bottom: 0.5rem;
}

.programme__card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-purple);
  background: rgba(129, 43, 113, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.programme__card p {
  color: var(--charcoal-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.programme__features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.programme__card > .btn {
  width: 100%;
  margin-top: auto;
}

.programme__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--charcoal);
}

.programme__feature svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--sage);
  margin-top: 2px;
}

/* -------- TESTIMONIALS -------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
}

.testimonial__stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.testimonial__star {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.testimonial__text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(129, 43, 113, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-purple);
  flex-shrink: 0;
}

.testimonial__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.testimonial__role {
  font-size: 0.82rem;
  color: var(--charcoal-light);
}

/* -------- ABOUT TEASER -------- */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-teaser--story {
  align-items: start;
}

.about-teaser__image-wrap {
  width: min(100%, 340px);
  margin: 0 auto;
}

.about-teaser__image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

.about-teaser__image--book {
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: var(--white);
}

.about-teaser__content h2 {
  margin-bottom: 1rem;
}

.about-teaser__content p {
  color: var(--charcoal-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-teaser__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.about-teaser__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgba(129, 43, 113, 0.06);
  border: 1px solid rgba(129, 43, 113, 0.12);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand-purple);
}

/* -------- STATS -------- */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat__card {
  text-align: center;
  padding: 2rem 1rem;
}

.stat__number {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--brand-purple);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.section--dark .stat__number {
  color: var(--gold);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--charcoal-light);
}

.section--dark .stat__label {
  color: rgba(247, 243, 238, 0.7);
}

/* -------- BOOK SECTION -------- */
.book-purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.book-purchase-actions .btn {
  min-width: 11rem;
}

.book-purchase-actions--stacked {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
}

.book-purchase-actions--stacked .btn {
  width: 100%;
}

.book-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.book-preview__cover {
  width: min(100%, 300px);
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.book-preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.book-preview__meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--charcoal-light);
  background: rgba(48, 41, 61, 0.04);
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
}

/* -------- CTA SECTION -------- */
.cta-section {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--charcoal-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.section--dark .cta-section p {
  color: rgba(247, 243, 238, 0.75);
}

.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* -------- CONTACT FORM -------- */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact__info h3 {
  margin-bottom: 1rem;
}

.contact__info p {
  color: var(--charcoal-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact__detail-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(129, 43, 113, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-purple);
  flex-shrink: 0;
}

.contact__detail-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal-light);
  margin-bottom: 0.15rem;
}

.contact__detail-value {
  font-weight: 500;
  color: var(--navy);
}

.contact__detail-value a:hover {
  color: var(--brand-purple);
}

.contact__form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(129, 43, 113, 0.1);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__disclaimer {
  font-size: 0.78rem;
  color: var(--charcoal-light);
  line-height: 1.6;
}

.form__disclaimer a {
  color: var(--brand-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* -------- BLOG CARDS -------- */
.blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.blog__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.blog__card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(129, 43, 113, 0.08), rgba(201, 169, 98, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog__card-image svg {
  width: 48px;
  height: 48px;
  color: var(--brand-purple-soft);
  opacity: 0.5;
}

.blog__card-body {
  padding: 1.5rem;
}

.blog__card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-purple);
  background: rgba(129, 43, 113, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.blog__card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.blog__card p {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  line-height: 1.6;
}

/* -------- FOOTER -------- */
.footer {
  background: var(--navy-dark);
  padding: 4rem 0 2rem;
  color: rgba(247, 243, 238, 0.7);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247, 243, 238, 0.1);
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer__logo-image {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.9);
}

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(247, 243, 238, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247, 243, 238, 0.6);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--brand-purple);
  color: var(--cream);
}

.footer__nav h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--gold);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.8rem;
}

.footer__legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer__legal-links a:hover {
  color: var(--gold);
}

/* -------- BACK TO TOP -------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-smooth);
  z-index: 900;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-purple);
  color: var(--cream);
  border-color: var(--brand-purple);
}

/* -------- WHATSAPP WIDGET -------- */
.whatsapp-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 950;
}

.whatsapp-widget__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.75rem 0.85rem;
  background: #25d366;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 54px;
  box-shadow: 0 12px 24px rgba(14, 116, 57, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: whatsapp-pulse 3s ease infinite 3s;
}

.whatsapp-widget__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(14, 116, 57, 0.35);
}

.whatsapp-widget__icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-widget__icon-wrap svg {
  width: 18px;
  height: 18px;
}

/* -------- REVEAL ANIMATIONS -------- */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.5s; }

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* -------- KEYFRAMES -------- */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 12px 24px rgba(14, 116, 57, 0.28); }
  50% { box-shadow: 0 12px 24px rgba(14, 116, 57, 0.28), 0 0 0 8px rgba(37, 211, 102, 0.15); }
}

@keyframes scrollDot {
  0% { top: -4px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: calc(100% + 4px); opacity: 0; }
}

/* -------- UTILITIES -------- */
.text-center { text-align: center; }
.text-purple { color: var(--brand-purple); }
.text-gold { color: var(--gold); }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }

/* -------- REDUCED MOTION -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up { opacity: 1 !important; transform: none !important; }
  .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* -------- RESPONSIVE: TABLET (768px+) -------- */
@media (min-width: 768px) {
  .nav__menu { display: flex; }
  .nav__phone { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__hamburger { display: none; }

  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-top: 0;
    padding-bottom: 0;
    min-height: calc(100vh - var(--nav-height));
    justify-items: start;
    text-align: left;
  }

  .hero__subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__actions { justify-content: flex-start; }
  .hero__visual { display: block; justify-self: end; }
  .hero__scroll-indicator { bottom: 44px; }

  .pain__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

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

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

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

  .about-teaser {
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 3rem;
  }

  .about-teaser__image-wrap { margin: 0; }

  .stats__grid { grid-template-columns: repeat(4, 1fr); }

  .book-preview {
    grid-template-columns: auto 1fr;
    gap: 4rem;
  }

  .book-preview__cover { margin: 0; }

  .contact__layout {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
  }

  .contact__form { grid-template-columns: 1fr 1fr; }
  .form__group--full { grid-column: 1 / -1; }
  .contact__form .btn { grid-column: 1 / -1; }
  .contact__form .form__disclaimer { grid-column: 1 / -1; }

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

  .footer__top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* -------- LARGE DESKTOP (1024px+) -------- */
@media (min-width: 1024px) {
  .programmes__grid { grid-template-columns: repeat(3, 1fr); }
  .blog__grid { grid-template-columns: repeat(3, 1fr); }
  .method__grid { grid-template-columns: repeat(3, 1fr); }
}

/* -------- EXTRA LARGE (1280px+) -------- */
@media (min-width: 1280px) {
  .hero .container { gap: 4rem; }
}

/* -------- MOBILE ONLY (below 768px) -------- */
@media (max-width: 767px) {
  .mobile-cta { display: flex; }

  .back-to-top { bottom: 5.5rem; right: 1rem; }

  .hero { min-height: auto; }

  .hero .container {
    gap: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .hero__content {
    padding-top: 1rem;
    text-align: center;
  }

  .hero__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__scroll-indicator { display: none; }

  .hero__visual {
    display: flex;
    justify-content: center;
  }

  .about-teaser { text-align: center; }

  .about-teaser__badges { justify-content: center; }

  .contact__form-wrap { padding: 2rem 1.5rem; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { padding-bottom: 1rem; }

  .whatsapp-widget {
    right: 1rem;
    bottom: 1.25rem;
  }

  .whatsapp-widget__button {
    min-height: 50px;
    padding: 0.68rem 0.9rem 0.68rem 0.78rem;
  }
}

/* -------- SMALL MOBILE (below 400px) -------- */
@media (max-width: 399px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .stats__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }

  .whatsapp-widget {
    right: 0.75rem;
    bottom: 1rem;
  }

  .whatsapp-widget__button {
    width: 50px;
    min-height: 50px;
    border-radius: 50%;
    padding: 0;
  }

  .whatsapp-widget__label { display: none; }
}

/* -------- TALL VIEWPORTS -------- */
@media (min-height: 900px) and (min-width: 768px) {
  .hero .container { padding-top: 2rem; }
}

/* -------- SHORT VIEWPORTS -------- */
@media (max-height: 820px) and (min-width: 768px) {
  .hero__scroll-indicator { display: none; }
}

/* No hover (touch devices) */
@media (hover: none) {
  .pain__card:hover,
  .programme__card:hover,
  .blog__card:hover {
    transform: none;
  }
}

/* -------- HOMEPAGE PRESS AND CONTACT RHYTHM -------- */
.press-feature {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: #faf7f9;
  border-top: 1px solid rgba(129, 43, 113, 0.09);
  border-bottom: 1px solid rgba(129, 43, 113, 0.12);
}
.press-feature__content { max-width: 900px; }
.press-feature__publication {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1.1;
  color: #30293d;
  margin: 0.5rem 0 0.6rem;
}
.press-feature p.press-feature__byline {
  font-size: 0.85rem;
  color: #675c68;
  line-height: 1.7;
  margin-top: 1rem;
}
.press-feature h2 { margin-top: 0.75rem; }
.press-feature p {
  max-width: 660px;
  margin: 1.25rem 0 0;
  line-height: 1.8;
}
.press-feature .btn { margin-top: 2rem; }
.contact-section { padding: clamp(4rem, 8vw, 7rem) 0; }
@media (max-width: 480px) {
  .press-feature .btn { width: 100%; text-align: center; }
}

@media (max-width: 600px) {
  .book-purchase-actions:not(.book-purchase-actions--stacked) {
    flex-direction: column;
    align-items: stretch;
  }

  .book-purchase-actions:not(.book-purchase-actions--stacked) .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* -------- PRINT -------- */
main.section > .container > h1 { margin: 1.5rem 0; }
main.section > .container > h2 { margin: 2rem 0 0.75rem; }
main.section > .container > p { margin: 0 0 1rem; line-height: 1.8; }

@media print {
  .nav, .mobile-menu, .mobile-cta, .back-to-top,
  .hero__scroll-indicator, .hero__shapes, .whatsapp-widget {
    display: none !important;
  }
  body { background: white; color: black; }
  .hero { min-height: auto; padding: 2rem 0; }
  .hero__bg { display: none; }
  section { padding: 2rem 0; break-inside: avoid; }
}
