/* =========================================================
   MY SEMI SORTED LIFE — Stylesheet
   Design tokens, base, layout, components, utilities
   ========================================================= */

:root {
  /* Colour palette */
  --warm-white: #FAF7F1;
  --beige: #EFE7D8;
  --beige-dark: #E1D6C0;
  --sage: #93A382;
  --sage-dark: #6F7F60;
  --eucalyptus: #9DB0A0;
  --eucalyptus-dark: #7A8F81;
  --olive: #746F49;
  --charcoal: #34322D;
  --charcoal-soft: #5C594F;
  --white: #FFFFFF;

  /* Pillar colours — matched to brand doc: {Home} coral, {Heart} green, {Body} gold, {Soul} teal.
     Muted/tinted to sit inside the sage-beige-charcoal palette. */
  --pillar-home: #C36B4E;
  --pillar-home-tint: #F5E1D8;
  --pillar-heart: #4F7A4C;
  --pillar-heart-tint: #E3EEDE;
  --pillar-body: #B8944A;
  --pillar-body-tint: #F1E7D2;
  --pillar-soul: #3E726D;
  --pillar-soul-tint: #DFEDEC;

  /* Type */
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  /* Shape */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 4px 14px rgba(52, 50, 45, 0.06);
  --shadow-md: 0 12px 32px rgba(52, 50, 45, 0.09);
  --shadow-lg: 0 24px 48px rgba(52, 50, 45, 0.12);

  --container: 1160px;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 var(--space-2); color: var(--charcoal-soft); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: var(--space-2);
}
.lede { font-size: 1.15rem; }

/* Focus visibility (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* -------------------- Layout helpers -------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.section { padding: var(--space-6) 0; }
.section-tight { padding: var(--space-5) 0; }
.section-alt { background: var(--beige); }
.text-center { text-align: center; }
.max-w-copy { max-width: 640px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.grid {
  display: grid;
  gap: var(--space-4);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Leaf divider — signature motif */
.leaf-divider {
  display: flex;
  justify-content: center;
  margin: var(--space-3) 0;
  color: var(--sage-dark);
}
.leaf-divider svg { width: 46px; height: 20px; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  line-height: 1;
}
.btn-primary {
  background: var(--sage-dark);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--olive); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-secondary:hover { background: var(--charcoal); color: var(--white); transform: translateY(-2px); }
.btn-light {
  background: var(--white);
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--beige-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--space-3);
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.logo svg { width: 28px; height: 28px; color: var(--sage-dark); flex-shrink: 0; }
.logo-mark { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.logo .logo-mark { width: 40px; height: 40px; }
.footer-logo .logo-mark { width: 36px; height: 36px; }
.logo-mark-sm { width: 18px !important; height: 18px !important; }
.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-links {
  display: flex;
  gap: var(--space-3);
  font-weight: 500;
  font-size: 0.96rem;
}
.nav-links a {
  position: relative;
  padding: 0.3rem 0.1rem;
  color: var(--charcoal-soft);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--charcoal); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--sage-dark);
  border-radius: 2px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--charcoal); }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem var(--space-3) 2rem;
  background: var(--warm-white);
  border-bottom: 1px solid var(--beige-dark);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }

@media (max-width: 880px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* -------------------- Hero -------------------- */
.hero {
  padding: var(--space-6) 0 var(--space-5);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}
.hero-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.5), transparent 55%),
    linear-gradient(160deg, var(--eucalyptus) 0%, var(--sage) 55%, var(--sage-dark) 100%);
}
.hero-media .photo-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding: 2rem;
  font-family: var(--font-head);
}
.hero-media .photo-note svg { width: 56px; height: 56px; opacity: 0.9; }
.hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  max-width: 220px;
}
.hero-badge svg { width: 30px; height: 30px; color: var(--sage-dark); flex-shrink: 0; }
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: var(--space-3);
}
.hero-trust {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}
.hero-trust .stat { font-family: var(--font-head); }
.hero-trust .stat strong { display: block; font-size: 1.4rem; color: var(--charcoal); }
.hero-trust .stat span { font-size: 0.85rem; color: var(--charcoal-soft); }

/* -------------------- Pillars -------------------- */
.pillar-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 4px solid var(--pillar-color, var(--sage));
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-card .pillar-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--pillar-tint, var(--beige));
  color: var(--pillar-color, var(--sage-dark));
  margin-bottom: var(--space-2);
}
.pillar-card .pillar-icon svg { width: 22px; height: 22px; }

/* -------------------- Video / media cards -------------------- */
.video-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-thumb {
  aspect-ratio: 16/9;
  position: relative;
  background: linear-gradient(135deg, var(--beige-dark), var(--beige));
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-thumb .play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--sage-dark);
}
.video-thumb .play-btn svg { width: 22px; height: 22px; margin-left: 3px; }
.video-card .video-body { padding: 1.25rem; }
.video-card .video-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--charcoal-soft); margin-top: 0.5rem;
}

.video-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--charcoal);
}
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* -------------------- Resource cards -------------------- */
.resource-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.resource-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(150deg, var(--sage) 0%, var(--eucalyptus) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.resource-thumb svg { width: 40px; height: 40px; opacity: 0.9; }
.resource-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.resource-body p { flex: 1; font-size: 0.92rem; }

/* -------------------- Testimonials -------------------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-card::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 3.5rem;
  color: var(--beige-dark);
  position: absolute;
  top: 0.4rem;
  left: 1rem;
  line-height: 1;
}
.testimonial-card p { position: relative; z-index: 1; font-style: italic; color: var(--charcoal); }
.testimonial-name {
  display: flex; align-items: center; gap: 0.7rem;
  margin-top: var(--space-2);
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
}
.avatar-dot {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--beige-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--olive); font-weight: 700; font-family: var(--font-head);
}

/* -------------------- Newsletter -------------------- */
.newsletter-box {
  background: var(--sage-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-box h2, .newsletter-box p { color: var(--white); }
.newsletter-box .eyebrow { color: var(--beige); }
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: var(--space-3) auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-pill);
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-note { font-size: 0.8rem; margin-top: 0.75rem; color: rgba(255,255,255,0.8); }
.form-success {
  display: none;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  margin-top: 1rem;
  font-weight: 600;
}
.form-success.is-visible { display: block; }

/* -------------------- Forms (contact) -------------------- */
.form-field { margin-bottom: var(--space-3); text-align: left; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--beige-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--charcoal);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--sage-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(111,127,96,0.2);
}
.form-field .hint { font-size: 0.8rem; color: var(--charcoal-soft); margin-top: 0.3rem; }
.required-mark { color: var(--olive); }

/* -------------------- Instagram feed placeholder -------------------- */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
}
@media (max-width: 900px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }
.insta-tile {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--beige-dark), var(--eucalyptus));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  opacity: 0.9;
}
.insta-tile svg { width: 26px; height: 26px; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--charcoal);
  color: var(--beige);
  padding: var(--space-5) 0 var(--space-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--beige); opacity: 0.85; font-size: 0.92rem; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.social-row { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--sage-dark); }
.social-row svg { width: 18px; height: 18px; color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: var(--space-3);
  font-size: 0.82rem;
  opacity: 0.75;
}

/* -------------------- Page hero (inner pages) -------------------- */
.page-hero {
  padding: var(--space-5) 0 var(--space-4);
  text-align: center;
}
.page-hero .lede { margin: 0 auto; }

/* -------------------- Scroll reveal -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* -------------------- Misc -------------------- */
.tag {
  display: inline-block;
  background: var(--beige);
  color: var(--olive);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.checklist { display: flex; flex-direction: column; gap: 0.75rem; margin: var(--space-2) 0; }
.checklist li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--charcoal-soft); }
.checklist svg { width: 20px; height: 20px; color: var(--sage-dark); flex-shrink: 0; margin-top: 2px; }

.playlist-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.playlist-tab {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--charcoal-soft);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: none;
}
.playlist-tab.is-active { background: var(--sage-dark); color: var(--white); }

.value-banner {
  background: var(--beige);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}
.value-banner .grid-3 { text-align: left; }
