/* ====================================================
   MY CYBER ZEN — DESIGN SYSTEM & STYLES
   css/main.css

   TABLE OF CONTENTS
   1.  Google Fonts
   2.  CSS Custom Properties (Color, Type, Space, Shadow)
   3.  CSS Reset
   4.  Base Typography
   5.  Layout — Container & Grid
   6.  Components — Buttons
   7.  Components — Navigation
   8.  Components — Cards
   9.  Components — Forms & Inputs
   10. Components — Newsletter Signup Block
   11. Components — Author Bio Block
   12. Components — Tag / Category Labels
   13. Page Sections — Hero
   14. Page Sections — Why / Origin Strip
   15. Page Sections — Two-Column (Feature)
   16. Page Sections — Topic Grid
   17. Page Sections — Course Teaser
   18. Page Sections — Testimonial
   19. Page Sections — Footer
   20. Article / Blog Post Styles
   21. Utility Classes
   22. Responsive — Tablet (768px)
   23. Responsive — Mobile (480px)
   ==================================================== */


/* ====================================================
   1. SKIP NAVIGATION LINK (accessibility)
   ==================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  text-decoration: none;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
  outline: 2px solid var(--color-sand);
  outline-offset: 2px;
}


/* ====================================================
   2. CSS CUSTOM PROPERTIES
   ==================================================== */

:root {

  /* --- Color Palette (pulled directly from logo) --- */

  /* Primary: Deep Forest Teal — the "CYBER ZEN" lettercolor */
  --color-primary:        #1A4D3A;
  --color-primary-dark:   #102D22;
  --color-primary-mid:    #2A6B52;
  --color-primary-light:  #EBF5F0;

  /* Secondary: Sage Green — mid-foliage in the logo */
  --color-sage:           #4A9B76;
  --color-sage-light:     #D4EDDF;

  /* Accent: Warm Sand — rolling hills in the logo */
  --color-sand:           #C49562;
  --color-sand-light:     #F5E8D5;
  --color-sand-pale:      #FAF3EB;

  /* Background: Warm Cream — the circular logo background */
  --color-bg:             #F4EED9;
  --color-bg-alt:         #EDE7CF;
  --color-bg-white:       #FDFBF6;

  /* Text */
  --color-text:           #1C2B25;   /* deep charcoal with teal undertone */
  --color-text-muted:     #5A6E67;
  --color-text-light:     #8A9E97;

  /* UI */
  --color-border:         #D4CDB8;
  --color-border-light:   #E8E3D0;
  --color-white:          #FFFFFF;

  /* States */
  --color-focus:          #4A9B76;
  --color-error:          #C0392B;
  --color-success:        #27AE60;


  /* --- Typography --- */

  --font-body:     'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display:  'DM Serif Display', Georgia, serif;

  /* Type Scale — base is 18px for senior readability */
  --text-xs:    0.75rem;    /*  12px */
  --text-sm:    0.875rem;   /*  14px */
  --text-base:  1.125rem;   /*  18px — body default */
  --text-lg:    1.25rem;    /*  20px */
  --text-xl:    1.5rem;     /*  24px */
  --text-2xl:   1.875rem;   /*  30px */
  --text-3xl:   2.25rem;    /*  36px */
  --text-4xl:   3rem;       /*  48px */
  --text-5xl:   3.75rem;    /*  60px */
  --text-6xl:   4.5rem;     /*  72px */

  /* Line Heights */
  --leading-tight:  1.2;
  --leading-snug:   1.4;
  --leading-normal: 1.6;
  --leading-relaxed:1.75;  /* generous — body text, senior readability */

  /* Font Weights */
  --weight-light:   300;
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;

  /* Letter Spacing */
  --tracking-tight:  -0.02em;
  --tracking-normal:  0em;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.1em;


  /* --- Spacing (8px base grid) --- */

  --space-1:   0.25rem;   /*  4px */
  --space-2:   0.5rem;    /*  8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */
  --space-32:  8rem;      /* 128px */


  /* --- Layout --- */

  --container-max:    1200px;
  --content-max:       720px;  /* article body max-width */
  --container-padding: var(--space-8);

  /* Breakpoints (reference — used in media queries below) */
  /* mobile:  480px */
  /* tablet:  768px */
  /* desktop: 1024px */
  /* wide:    1200px */


  /* --- Border Radius --- */

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;


  /* --- Shadows --- */

  --shadow-sm:  0 1px 3px rgba(26, 77, 58, 0.08);
  --shadow-md:  0 4px 12px rgba(26, 77, 58, 0.12);
  --shadow-lg:  0 8px 24px rgba(26, 77, 58, 0.15);
  --shadow-xl:  0 16px 48px rgba(26, 77, 58, 0.18);


  /* --- Transitions --- */

  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow:   400ms ease;

}


/* ====================================================
   3. CSS RESET
   ==================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--color-bg-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  text-decoration-color: currentColor;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ====================================================
   4. BASE TYPOGRAPHY
   ==================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);  /* DM Serif Display looks best at regular */
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  max-width: 68ch;  /* ~680px — optimal reading line length */
}

p + p {
  margin-top: var(--space-5);
}

strong {
  font-weight: var(--weight-semibold);
}

em {
  font-style: italic;
}

blockquote {
  border-left: 3px solid var(--color-sand);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--color-primary);
  font-style: italic;
}

/* Article prose lists (inside .prose only) */
.prose ul,
.prose ol {
  list-style: revert;
  padding-left: var(--space-6);
  margin: var(--space-4) 0;
}

.prose li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border-light);
  margin: var(--space-12) 0;
}

/* Section subheadings — small label above a headline */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--space-3);
}


/* ====================================================
   5. LAYOUT — CONTAINER & GRID
   ==================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--narrow {
  max-width: var(--content-max);
}

/* Section vertical rhythm */
.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.section--sm {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section--lg {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

/* Background variants for section alternation */
.section--cream    { background-color: var(--color-bg); }
.section--cream-alt { background-color: var(--color-bg-alt); }
.section--green    { background-color: var(--color-primary); }
.section--green    * { color: var(--color-white); }
.section--white    { background-color: var(--color-bg-white); }
.section--sand     { background-color: var(--color-sand-pale); }

/* Two-column grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.grid-2--center {
  align-items: center;
}

/* Three-column grid (cards) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* Article card grid */
.grid-articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

/* Flex row utilities */
.flex-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Center a block of text */
.text-center { text-align: center; }
.mx-auto     { margin-left: auto; margin-right: auto; }


/* ====================================================
   6. COMPONENTS — BUTTONS
   ==================================================== */

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
}

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

.btn:active {
  transform: translateY(0);
}

/* Primary — solid forest teal */
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* Secondary — outlined */
.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

/* Ghost — for dark backgrounds */
.btn--ghost {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Sand accent button */
.btn--sand {
  background-color: var(--color-sand);
  color: var(--color-white);
}

.btn--sand:hover {
  background-color: #B0833F;
  color: var(--color-white);
}

/* Button sizes */
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* Full-width button */
.btn--full {
  width: 100%;
}


/* ====================================================
   7. COMPONENTS — NAVIGATION
   ==================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo img {
  height: 140px;
  width: auto;
}

/* Desktop nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  font-size: 1rem;
  font-weight: var(--weight-medium);
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-sage);
  transition: width var(--transition-normal);
}

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

.nav__links a:hover::after {
  width: 100%;
}

.nav__links a.active {
  color: var(--color-primary);
}

.nav__links a.active::after {
  width: 100%;
}

/* Nav CTA — Newsletter button */
.nav__cta {
  margin-left: var(--space-4);
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-2);
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  transform-origin: center;
}

/* Hamburger open state */
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg-white);
  padding: var(--space-8) var(--container-padding);
  z-index: 99;
  overflow-y: auto;
}

.nav__drawer.is-open {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav__drawer a {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-light);
  display: block;
  transition: color var(--transition-fast);
}

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

.nav__drawer .btn {
  margin-top: var(--space-6);
  width: 100%;
  text-align: center;
}


/* ====================================================
   8. COMPONENTS — CARDS
   ==================================================== */

/* Base card */
.card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

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

.card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card__body {
  padding: var(--space-6);
}

.card__body--sm {
  padding: var(--space-4);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.card__excerpt {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

/* Featured article card — larger */
.card--featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.card--featured .card__image {
  aspect-ratio: 4 / 3;
  height: 100%;
}

/* Offering card (Newsletter / Course / Speaking on About page) */
.card--offering {
  padding: var(--space-8);
  background-color: var(--color-bg-white);
  border-left: 4px solid var(--color-sage);
  text-align: left;
}

.card--offering .card__title {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.card--offering p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}


/* ====================================================
   9. COMPONENTS — FORMS & INPUTS
   ==================================================== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary-mid);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* Inline form — name + email + button in a row */
.form-inline {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.form-inline .form-input {
  flex: 1;
  min-width: 200px;
}

/* Form hint text */
.form-hint {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-top: var(--space-1);
}

/* Error state */
.form-input--error {
  border-color: var(--color-error);
}

.form-error-msg {
  font-size: var(--text-sm);
  color: var(--color-error);
}


/* ====================================================
   10. COMPONENTS — NEWSLETTER SIGNUP BLOCK
   ==================================================== */

.newsletter-block {
  background-color: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-10);
  text-align: center;
}

.newsletter-block h2,
.newsletter-block h3 {
  color: var(--color-white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.newsletter-block p {
  color: rgba(255, 255, 255, 0.80);
  margin: 0 auto var(--space-6);
  max-width: 52ch;
}

.newsletter-block .form-inline {
  justify-content: center;
}

.newsletter-block .form-input {
  background-color: var(--color-bg-white);
}

.newsletter-block .form-hint {
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-3);
}

/* Inline variant — embedded mid-article */
.newsletter-inline {
  background-color: var(--color-sand-pale);
  border: 1px solid var(--color-sand-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin: var(--space-10) 0;
}

.newsletter-inline h4 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.newsletter-inline p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}


/* ====================================================
   11. COMPONENTS — AUTHOR BIO BLOCK
   ==================================================== */

.author-bio {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-8);
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  margin-top: var(--space-10);
}

.author-bio__photo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  border: 3px solid var(--color-sage-light);
}

.author-bio__name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.author-bio__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 60ch;
}

.author-bio__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  display: inline-block;
  margin-top: var(--space-2);
}


/* ====================================================
   12. COMPONENTS — TAG / CATEGORY LABELS
   ==================================================== */

.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.03em;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.tag--green {
  background-color: var(--color-sage-light);
  color: var(--color-primary);
}

.tag--green:hover {
  background-color: var(--color-primary-light);
}

.tag--sand {
  background-color: var(--color-sand-light);
  color: #7A5C2E;
}

.tag--cream {
  background-color: var(--color-bg-alt);
  color: var(--color-text-muted);
}


/* ====================================================
   13. PAGE SECTIONS — HERO
   ==================================================== */

.hero {
  background-color: var(--color-bg);
  padding: var(--space-24) 0 var(--space-20);
}

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

.hero__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--space-4);
}

.hero__headline {
  font-size: var(--text-5xl);
  line-height: var(--leading-tight);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.hero__subheadline {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 52ch;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero signup form variant */
.hero__form {
  margin-top: var(--space-6);
}

.hero__form .form-hint {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* About page hero variant — centered */
.hero--about {
  text-align: left;
  padding: var(--space-20) 0;
}

.hero--about .hero__inner {
  grid-template-columns: 280px 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero--about .hero__photo {
  width: 280px;
  height: 380px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}


/* ====================================================
   14. PAGE SECTIONS — WHY / ORIGIN STRIP
   ==================================================== */

.origin-section {
  background-color: var(--color-bg-white);
  padding: var(--space-20) 0;
}

.origin-section__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.origin-section h2 {
  font-size: var(--text-3xl);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.origin-section p {
  font-size: var(--text-base);
  max-width: 100%;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.origin-section__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  text-decoration: none;
  margin-top: var(--space-4);
  transition: gap var(--transition-fast);
}

.origin-section__link:hover {
  gap: var(--space-3);
}


/* ====================================================
   15. PAGE SECTIONS — TWO-COLUMN FEATURE
   ==================================================== */

.feature-section {
  padding: var(--space-20) 0;
}

.feature-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.feature-section--reverse .feature-section__inner {
  direction: rtl;
}

.feature-section--reverse .feature-section__content {
  direction: ltr;
}

.feature-section__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-section__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-section__content h2 {
  font-size: var(--text-3xl);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.feature-section__content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}


/* ====================================================
   16. PAGE SECTIONS — TOPIC GRID
   ==================================================== */

.topic-grid {
  padding: var(--space-20) 0;
  background-color: var(--color-bg);
}

.topic-grid__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.topic-grid__header h2 {
  font-size: var(--text-4xl);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.topic-grid__header p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin: 0 auto;
}

.topic-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-border-light);
  text-decoration: none;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal), border-color var(--transition-normal);
  display: block;
}

.topic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-sage);
}

.topic-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  display: block;
}

.topic-card__title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.topic-card p {
  font-size: 1rem;
  color: var(--color-text-muted);
}


/* ====================================================
   17. PAGE SECTIONS — COURSE TEASER
   ==================================================== */

.course-teaser {
  background-color: var(--color-primary);
  padding: var(--space-20) 0;
}

.course-teaser__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.course-teaser__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: var(--space-4);
}

.course-teaser h2 {
  color: var(--color-white);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-5);
}

.course-teaser p {
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: var(--space-8);
}

.course-teaser__stat {
  text-align: center;
  padding: var(--space-6);
  background-color: rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.course-teaser__stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.course-teaser__stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.70);
}

.course-teaser__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}


/* ====================================================
   18. PAGE SECTIONS — TESTIMONIAL
   ==================================================== */

.testimonial {
  background-color: var(--color-sand-pale);
  padding: var(--space-20) 0;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  color: var(--color-primary);
  font-style: italic;
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-6);
}

.testimonial__attribution {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
}


/* ====================================================
   19. PAGE SECTIONS — FOOTER
   ==================================================== */

.footer {
  background-color: var(--color-primary-dark);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

/* Simple-page footer layout (404, download pages, etc.) */
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__brand img {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-3);
}

.footer__brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 28ch;
}

.footer__copy {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.40);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: var(--space-6);
}

.footer__logo img {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer__tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 32ch;
  margin-bottom: var(--space-5);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
  font-size: 1rem;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.footer__social-link:hover {
  background-color: rgba(255, 255, 255, 0.20);
  color: var(--color-white);
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-white);
}

/* Footer newsletter mini-form */
.footer__newsletter p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-4);
}

.footer__newsletter .form-input {
  background-color: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.footer__newsletter .form-input::placeholder {
  color: rgba(255, 255, 255, 0.40);
}

.footer__newsletter .form-input:focus {
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(74, 155, 118, 0.25);
}

/* Footer bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.40);
}

.footer__legal {
  display: flex;
  gap: var(--space-5);
}

.footer__legal a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.40);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.80);
}


/* ====================================================
   20. ARTICLE / BLOG POST STYLES
   ==================================================== */

.article-header {
  background-color: var(--color-bg);
  padding: var(--space-16) 0 var(--space-12);
}

.article-header__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.article-header__date {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.article-header h1 {
  font-size: var(--text-4xl);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
  line-height: var(--leading-snug);
}

.article-header__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-light);
}

.article-header__author-photo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  object-position: top center;
}

.article-header__author-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.article-header__read-time {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* Article body */
.article-body {
  padding: var(--space-12) 0 var(--space-16);
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.prose h2 {
  font-size: var(--text-3xl);
  color: var(--color-primary);
  margin-top: var(--space-12);
  margin-bottom: var(--space-5);
}

.prose h3 {
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.prose p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  margin-bottom: var(--space-5);
  max-width: 100%;
}

/* Article closing CTA */
.article-cta {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-12);
  font-style: italic;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  line-height: var(--leading-snug);
}

/* Related articles */
.related-articles {
  padding: var(--space-16) 0;
  background-color: var(--color-bg);
}

.related-articles h3 {
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-8);
}


/* ====================================================
   21. UTILITY CLASSES
   ==================================================== */

/* Display */
.d-none   { display: none; }
.d-block  { display: block; }
.d-flex   { display: flex; }
.d-grid   { display: grid; }

/* Spacing helpers */
.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0; }

/* Text colors */
.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-text-muted); }
.text-white   { color: var(--color-white); }
.text-sand    { color: var(--color-sand); }

/* Text sizes */
.text-sm  { font-size: var(--text-sm); }
.text-lg  { font-size: var(--text-lg); }

/* Font families */
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }

/* Separator — decorative */
.divider {
  width: 48px;
  height: 3px;
  background-color: var(--color-sand);
  border-radius: var(--radius-full);
  margin: var(--space-5) 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ====================================================
   22. SCROLL ANIMATIONS
   ==================================================== */

/* Default state — hidden, shifted down */
.animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in only (no vertical shift — for images, backgrounds) */
.animate-fade {
  opacity: 0;
  transition: opacity 0.75s ease;
}

.animate-fade.is-visible {
  opacity: 1;
}

/* Stagger delays — applied to direct children of .animate-stagger */
.animate-stagger > *:nth-child(1) { transition-delay: 0s;    }
.animate-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.animate-stagger > *:nth-child(3) { transition-delay: 0.24s; }
.animate-stagger > *:nth-child(4) { transition-delay: 0.36s; }
.animate-stagger > *:nth-child(5) { transition-delay: 0.48s; }
.animate-stagger > *:nth-child(6) { transition-delay: 0.60s; }

/* Nav scroll shadow */
.nav--scrolled {
  box-shadow: var(--shadow-md);
}

/* Respect reduced-motion preferences (accessibility) */
@media (prefers-reduced-motion: reduce) {
  .animate,
  .animate-fade,
  .animate-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ====================================================
   23. RESPONSIVE — TABLET (768px)
   ==================================================== */

@media (max-width: 900px) {

  :root {
    --container-padding: var(--space-6);
    --text-5xl: 3rem;      /* scale down hero headline */
    --text-4xl: 2.5rem;
    --text-3xl: 2rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero--about .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero--about .hero__photo {
    width: 200px;
    height: 240px;
    margin: 0 auto;
  }

  .grid-2          { grid-template-columns: 1fr; gap: var(--space-8); }
  .grid-3          { grid-template-columns: repeat(2, 1fr); }
  .grid-articles   { grid-template-columns: 1fr; }
  .card--featured  { grid-template-columns: 1fr; }

  .feature-section__inner { grid-template-columns: 1fr; }
  .course-teaser__inner   { grid-template-columns: 1fr; }
  .course-teaser__stats   { grid-template-columns: repeat(3, 1fr); }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

}

@media (max-width: 768px) {

  /* Show hamburger, hide desktop nav */
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__hamburger { display: flex; }

  /* Shrink nav bar on mobile */
  .nav__inner {
    position: relative;
    justify-content: center;
    height: 80px;
  }
  .nav__logo img {
    height: 100px;
  }
  header .nav__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav__hamburger {
    position: absolute;
    right: var(--container-padding);
  }

  .section     { padding-top: var(--space-16); padding-bottom: var(--space-16); }
  .section--lg { padding-top: var(--space-20); padding-bottom: var(--space-20); }

  .newsletter-block {
    padding: var(--space-8) var(--space-6);
  }

  /* Module 07 lesson grid: collapse to single column on mobile */
  .module-lessons--grid {
    grid-template-columns: 1fr !important;
  }
  .module-lessons--grid li[style*="grid-column"] {
    grid-column: auto !important;
  }

  /* Allow full-width buttons to wrap long text on mobile */
  .btn--full {
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    height: auto;
  }

  /* Reduce inner card panel padding when split card stacks to single column */
  .card--featured > div,
  .card--featured > a > div {
    padding: var(--space-8) !important;
  }

  .newsletter-block .form-inline {
    flex-direction: column;
  }

  .newsletter-block .form-inline .form-input {
    width: 100%;
  }

  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

}


/* ====================================================
   23. RESPONSIVE — MOBILE (480px)
   ==================================================== */

@media (max-width: 480px) {

  :root {
    --container-padding: var(--space-5);
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
    --text-2xl: 1.5rem;
  }

  .hero {
    padding: var(--space-16) 0 var(--space-16);
  }

  /* Reposition hero badge so it doesn't clip at viewport edge on small phones */
  .hero__badge {
    left: 0 !important;
    bottom: -12px !important;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__ctas .btn {
    text-align: center;
    justify-content: center;
  }

  .form-inline {
    flex-direction: column;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .course-teaser__stats {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__legal {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }

  .article-header h1 {
    font-size: var(--text-3xl);
  }

  /* Increase touch targets for seniors */
  .btn {
    min-height: 48px;
  }

  .form-input,
  .form-textarea,
  .form-select {
    min-height: 48px;
  }

  .nav__links a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

}
