/* Professional Sage Green Theme Stylesheet */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ========================================
     UNIFIED DESIGN SYSTEM - MODERN & FLEXIBLE
     ======================================== */

  /* Core Colors */
  --ink: #233226;           /* headings/text */
  --body: #354a3b;          /* body text */
  --brand: #2f6b45;         /* buttons/borders */
  --paper: #faf7ef;         /* section bg */
  --card: #fff;
  --line: #e7e1cf;          /* borders */

  /* Brand Colors - DO NOT CHANGE */
  --sage-green: #265c2f;    /* Primary brand green */
  --sage-dark: #0f2f1d;
  --sage-light: #487c42;
  --sage-lighter: #6b8861;
  --dark-green: #1e4423;    /* Hover states */

  /* Parchment Colors */
  --parchment-light: #f7f4ec;
  --parchment-dark: #f3e8d6;
  --cream: #f5f1e8;
  --beige: #ede6d6;
  --warm-white: #f7f4ec;
  --soft-white: #fdfcf9;
  --text-dark: #2d3a2d;

  /* Container System */
  --container-max: 1360px;
  --container-padding: clamp(16px, 3vw, 50px);

  /* Fluid Typography Scale */
  --text-xs: clamp(12px, 1.5vw, 14px);
  --text-sm: clamp(14px, 1.8vw, 16px);
  --text-base: clamp(16px, 2vw, 18px);
  --text-lg: clamp(18px, 2.5vw, 22px);
  --text-xl: clamp(22px, 3vw, 28px);
  --text-2xl: clamp(28px, 4vw, 36px);
  --text-3xl: clamp(36px, 5vw, 54px);

  /* Line Heights */
  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  /* Consistent Spacing Scale (8pt grid) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Flexible Spacing (responsive) */
  --space-section: clamp(40px, 8vh, 80px);
  --space-component: clamp(16px, 3vw, 32px);

  /* Shape System */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Shadow System */
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 6%);
  --shadow-md: 0 2px 8px rgb(0 0 0 / 8%);
  --shadow-lg: 0 4px 16px rgb(0 0 0 / 10%);
  --shadow-hover: 0 8px 24px rgb(0 0 0 / 12%);

  /* Typography - Palatino + Gentium Plus */
  --font-palatino: palatino, 'Palatino Linotype', 'Book Antiqua', georgia, serif;
  --font-gentium: 'Gentium Plus', georgia, serif;
  --font-display: palatino, 'Palatino Linotype', 'Book Antiqua', georgia, serif;
  --font-body: 'Gentium Plus', georgia, serif;
  --font-serif: 'Gentium Plus', georgia, serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', roboto, sans-serif;

  /* Breakpoints (for reference in media queries) */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text-dark);
  background: radial-gradient(ellipse at center,
    var(--parchment-light) 0%,
    var(--parchment-light) 40%,
    var(--parchment-dark) 90%,
    var(--parchment-dark) 100%);
  min-height: 100vh;
  letter-spacing: 0.01em;
  font-size: 18px;
  position: relative;
}

/* ==== Typography System - Fluid & Consistent ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-palatino);
  font-weight: 400;
  color: var(--sage-green);
  line-height: var(--lh-tight);
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: var(--text-3xl);
  font-family: var(--font-palatino);
  color: var(--sage-green);
}

h2 {
  font-size: var(--text-2xl);
  font-family: var(--font-gentium);
  color: var(--sage-green);
}

h3 {
  font-size: var(--text-xl);
  font-family: var(--font-gentium);
  color: var(--body);
}

h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

/* Body Text - Gentium Plus */
p, .description {
  font-family: var(--font-gentium);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
}

/* Decorative Elements */
.ornament {
  width: 60px;
  height: 60px;
  opacity: 0.3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 Q30 30 10 50 Q30 70 50 90 Q70 70 90 50 Q70 30 50 10' stroke='%234a6741' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  margin: 0 auto;
}

.divider {
  width: 100px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--sage-green), transparent);
  margin: 2rem auto;
}

.fancy-divider {
  text-align: center;
  margin: 3rem 0;
  position: relative;
}

.fancy-divider::before {
  content: 'â¦';
  color: var(--sage-green);
  font-size: 1.5rem;
  background: var(--warm-white);
  padding: 0 1rem;
  position: relative;
}

/* ==== Navigation System - Flexible & Modern ==== */

/* Utility Bar */
.utility-bar {
  background: var(--sage-dark);
  font-size: var(--text-base);
  position: relative;
  width: 100%;
  top: 0;
  height: auto;
  z-index: 1200;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  padding: 16px 0;
  display: block;
}

.utility-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
}

.utility-left {
  display: flex;
  align-items: center;
}

.utility-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.utility-link {
  color: var(--warm-white);
  text-decoration: none;
  transition: color 0.3s;
  opacity: 0.9;
  font-family: var(--font-sans);
  font-size: 16px; /* Match reference size */
  line-height: 22.4px; /* Match reference line height */
  padding: 0 0 4px; /* Match AJ Tutoring minimal bottom padding */
  display: flex;
  align-items: center;
}

.utility-link i {
  margin-right: 6px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.utility-link:hover {
  color: var(--parchment-light);
  opacity: 1;
}

.utility-link:hover i {
  opacity: 1;
}

.utility-cta {
  /* Match reference dimensions */
  padding: 6px 35px 5px 15px; /* Match reference padding */
  font-size: 16px; /* Match reference size */
  font-weight: 500; /* Slightly lighter weight */
  height: 28px; /* Match reference height */
  line-height: 14px; /* Match reference line height */

  /* White outline style */
  background: transparent;
  color: white;
  border: 2px solid white; /* Match reference border */
  border-radius: 4px; /* Match reference radius */

  /* Smooth transition */
  transition: all 0.2s; /* Match reference transition */

  /* Remove any text decoration */
  text-decoration: none;

  /* Ensure proper alignment */
  display: inline-block;
  font-family: var(--font-gentium); /* Use Gentium for better consistency */
  position: relative;
}

/* Add arrow after text */
.utility-cta::after {
  content: '\2192'; /* Right arrow */
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  transition: transform 0.2s;
}

.utility-cta:hover {
  /* Fills white on hover */
  background: white;
  color: var(--dark-green); /* Dark text on white background */
  border-color: white;
  transform: none; /* Remove any movement */
  box-shadow: none; /* Keep it flat and clean */
}

.utility-cta:hover::after {
  transform: translateY(-50%) translateX(3px); /* Move arrow right slightly on hover */
  color: var(--dark-green); /* Arrow also changes color */
}

/* Main Navigation */
.main-nav {
  background: rgb(247 244 236);
  position: relative;
  width: 100%;
  top: 0;
  min-height: 64px;
  z-index: 1000;
  border-bottom: 2px solid var(--sage-dark);  /* Thicker border for logo alignment */
  padding: clamp(8px, 1.5vh, 12px) 0;
  overflow: visible;
  display: flex;
  align-items: flex-end;  /* Align items to bottom for baseline alignment */
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: visible;
}

.logo {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--sage-green);  /* Match hero header green */
  font-family: var(--font-palatino);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1;
  display: inline-block;
  align-self: center;
}

.logo:hover {
  color: var(--dark-green);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a, .main-nav, .nav-link {
  color: #5a6b5a;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 18px;
  font-family: var(--font-gentium);
  font-weight: 600;
  line-height: var(--lh-tight);
  position: relative;
  opacity: 1;
  padding: clamp(8px, 1.5vh, 16px) 0;
  display: block;
}

.nav-links a:hover {
  color: var(--dark-green);
  opacity: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dark-green);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--parchment-light);
  border: 1px solid var(--beige);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 10000;
  margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 16px; /* Match reference size */
  line-height: 22.4px; /* Match reference line height */
  font-weight: 400; /* Normal weight for dropdown items */
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--cream);
  color: var(--dark-green);
  padding-left: 1.5rem;
}

.dropdown-menu a::after {
  display: none;
}

/* Hamburger Menu Button (hidden by default) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--sage-green);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu overlay */
.nav-links.mobile-open {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--parchment-light);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 1000;
  padding: 2rem;
}

/* ==== Hero Section - AJ-Inspired Structure with Modern Flexibility ==== */
/* --- HERO TREE: fluid, keeps shrinking, stays on the side --- */
.hero {
  margin-top: 0;
  background-color: transparent;
  padding: clamp(16px, 4vh, 48px) 0 clamp(32px, 5vh, 60px);
  padding-left: 40px;
  padding-right: 40px;
  position: relative;
  overflow: visible;
  min-height: calc(100vh - 115px); /* Full viewport minus nav bars */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Add warm-edge vignette directly on hero, letting parchment show through */
  background-image: radial-gradient(ellipse at center,
    rgb(243 232 214 / 0%) 0%,
    rgb(243 232 214 / 0%) 48%,
    rgb(243 232 214 / 25%) 78%,
    rgb(243 232 214 / 42%) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.hero-wrapper {
  position: relative;
  max-width: 1250px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 100px;
  min-height: clamp(430px, 50vh, 600px);
  padding-right: 0;      /* Changed from clamp(...) to 0 */
  overflow: visible;
  transform: none;       /* Added */
  z-index: auto;         /* Added */
}

.hero-text {
  flex: 0 0 750px;
  max-width: 750px;
  padding: 35px;
  padding-left: 0;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

.hero-image {
  position: absolute;
  right: 100px;
  top: -40px;
  width: 500px;
  height: 800px;
  transform: none;
  left: auto;
  bottom: auto;
  margin: 0;
  padding: 0;
  z-index: 10;
  pointer-events: none;
  object-fit: cover;
  max-width: none;
  max-height: none;
  transition: none;  /* No CSS transition - JS handles it */
}

.hero-image:empty {
  visibility: hidden;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.16));
  border-radius: 6px;
}

/* Hero Typography */
.hero h1 {
  font-size: 52px;
  font-weight: 400;
  line-height: 60px;
  max-width: 24ch;
  text-wrap: balance;
  margin-top: 0;
  margin-bottom: 42px;
  color: var(--sage-green);
}

.hero .subheader {
  font-family: var(--font-gentium);
  font-size: clamp(18px, 1.6vw, 19px);
  line-height: 1.4;
  max-width: 58ch;
  color: var(--body);
  margin-bottom: 14px;
  font-weight: 400;
  opacity: 0.9;
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.hero-cta .btn {
  /* Inherits from unified button system */
  font-size: 15px;
  padding: 10px 18px;
  min-height: 36px;
}

/* Services Snapshot - Clean with Vertical Separators */
/* keep the icon strip above the art */
.services-snapshot {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  max-width: 1250px;        /* Changed from 700px to 1250px */
  width: 100%;
  margin: 24px auto 0 auto;
  padding: 18px 22px;
  gap: 16px;

  /* Subtle, elegant background with border */
  background: rgb(255 255 255 / 40%);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(74 124 89 / 35%);
  border-radius: var(--radius-lg);
  min-height: 108px;
  box-sizing: border-box;   /* Added */
}

/* Make service-list wrapper transparent on desktop so flex layout works */
.services-snapshot .service-list {
  display: contents;
}

.services-snapshot svg {
  width: 40px;
  height: 40px;
}

.service-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  position: relative;
}

.service-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgb(74 124 89 / 40%);
}

.service-item i {
  font-size: clamp(28px, 4vw, 36px);
  color: #4a7c59;
  margin-bottom: var(--space-sm);
  display: block;
}

.service-text {
  font-family: var(--font-gentium);
  font-size: var(--text-sm);
  line-height: 1.4;
  color: #333;
  font-weight: 400;
  max-width: 150px;
}

/* Unified Section Band & Grid System */
.section-band {
  background: var(--paper);
  border-block: 1px solid var(--line);
  padding: var(--s5) 0;
}

.grid-2 {
  display: grid;
  gap: var(--s2);
  grid-template-columns: 1fr;
}


/* ==== Unified Card System ==== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-component);
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

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

.card h3 {
  font-size: var(--text-xl);
  color: var(--ink);
  font-family: var(--font-palatino);
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.card p {
  margin: 0;
  color: var(--body);
  line-height: var(--lh-normal);
  opacity: .95;
  font-family: var(--font-gentium);
  font-size: var(--text-base);
}

.section-title {
  font-size: var(--h2);
  line-height: 1.15;
  text-align: center;
  margin: 0 0 var(--s1);
  color: var(--brand);
}

.section-kicker {
  max-width: 720px;
  margin: 0 auto var(--s4);
  text-align: center;
  opacity: .9;
  color: var(--body);
  font-size: var(--body-size);
  line-height: var(--lh);
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--s4);
}

/* CTA Section */
.bottom-cta {
  padding: 80px 20px;
  text-align: center;
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
}

.cta-headline {
  font-family: var(--font-palatino);
  font-size: 42px;
  color: var(--sage-green);
  margin-bottom: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.cta-copy {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 28px;
  color: #333;
  margin-bottom: 35px;
}

/* ==== Unified Button System - Flexible & Scalable ==== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 2em;
  border-radius: var(--radius-sm);
  border: 2px solid currentcolor;
  font-family: var(--font-gentium);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}

/* Size Modifiers */
.btn-sm {
  font-size: var(--text-sm);
  padding: 0.7em 1.5em;
}

.btn-lg {
  font-size: var(--text-lg);
  padding: 1em 2.5em;
}

/* Style Variants */
.btn-primary {
  background: var(--sage-green);
  color: white;
  border-color: var(--sage-green);
}

.btn-primary:hover {
  background: var(--dark-green);
  border-color: var(--dark-green);
}

.btn-secondary {
  background: transparent;
  color: var(--sage-green);
  border-color: var(--sage-green);
}

.btn-secondary:hover {
  background: var(--sage-green);
  color: white;
}

/* Legacy compatibility */
.btn-primary.cta-button,
.cta-button {
  background: var(--sage-green);
  color: white;
  border: 2px solid var(--sage-green);
  border-radius: var(--radius-sm);
  padding: 0.85em 2em;
  font-family: var(--font-gentium);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-button:hover {
  background: var(--dark-green);
  border-color: var(--dark-green);
}

.cta-reassurance {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #5a6b5a;
  margin-top: 20px;
  font-style: italic;
}

/* Enhanced Asymmetrical Grid Styles */
/* Section framing + subtle "root/soil" vibe */
.programs-approach{
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.6rem 1rem 2.2rem;
  background:
    radial-gradient(60% 22% at 50% 0%, rgb(0 0 0 / 5%), transparent 60%),
    linear-gradient(#f7f1e2 0, #efe4cd 100%);
  border-radius: 20px;
}

.programs-approach::before{
  /* faint branching line behind tiles */
  content:"";
  position:absolute; inset:10px;
  background:
    radial-gradient(120px 40px at 15% 16%, rgb(46 71 54 / 7%), transparent 70%),
    radial-gradient(160px 50px at 60% 38%, rgb(46 71 54 / 6%), transparent 70%),
    radial-gradient(150px 40px at 35% 70%, rgb(46 71 54 / 5%), transparent 70%);
  border-radius: 18px;
  pointer-events:none;
  filter: blur(4px);
}

.programs-approach h2{
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  text-align:center;
  /* margin inherited from base normalization */
  color: var(--brand);
}

.programs-approach .section-sub{
  text-align:center;
  font-style:italic;
  color:#6b6a63;
  margin:0 auto 1.2rem;
  max-width:60ch;
}

/* GRID (no library) */
.grid-stagger{
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 14px;
}

.grid-stagger .card{ grid-column: span 4; }      /* 3 per row default */
.span-2x1{ grid-column: span 8; }                /* wide */
.span-1x2{ grid-column: span 4; grid-row: span 2;}/* tall */
.span-full{ grid-column: 1 / -1; }               /* full width if needed */



/* Cards â€” premium/denser look */
.grid-stagger .card{
  cursor: pointer;
  background: #fffdf7;
  border: 1px solid rgb(41 71 54 / 12%);
  border-radius: 14px;
  padding: .9rem 1rem;
  box-shadow: 0 10px 24px rgb(33 33 33 / 6%);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
  outline: none;
}

.grid-stagger .card:hover,
.grid-stagger .card:focus{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgb(33 33 33 / 9%);
  border-color: rgb(41 71 54 / 22%);
}

.grid-stagger .card h3{
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  /* margin inherited from base normalization */
  position: relative;
  padding-left: .75rem;
  color: #204932;
}

.grid-stagger .card h3::before{
  content: "";
  position: absolute;
  left: 0;
  top: .15rem;
  bottom: .15rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2e4736, #5b7b62);
  opacity: .8;
}

.grid-stagger .card p{
  margin: 0;
  font-size: .98rem;
  line-height: 1.45;
  color: #46453f;
}

/* Inline expand */
.grid-stagger .card .more{
  display: none;
  margin-top: .45rem;
  color:#3b3a35;
}

.grid-stagger .card.is-open{
  grid-column: 1 / -1;                    /* expand across grid */
  box-shadow: 0 18px 40px rgb(33 33 33 / 12%);
}

.grid-stagger .card.is-open .more{
  display: block;
}


/* ==== Responsive Breakpoints - Mobile First ==== */

/* Tablet and below (768px) */

/* Mobile only (< 640px) */


/* Quote Separator */
.quote-separator {
  background-image:
    linear-gradient(to right,
      transparent 0%,
      rgb(58 83 49 / 15%) 18%,
      rgb(58 83 49 / 15%) 82%,
      transparent 100%
    ),
    linear-gradient(to bottom,
      rgb(122 142 86 / 8%),
      rgb(58 83 49 / 12%)
    );
  padding: 0.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  margin: 3rem 0;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px rgb(122 142 86 / 15%),
    inset 0 -1px rgb(58 83 49 / 8%);
}

.quote-separator::before,
.quote-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgb(58 83 49 / 25%), transparent);
}

.quote-separator::before {
  left: 0;
}

.quote-separator::after {
  right: 0;
}

.quote-separator blockquote {
  padding: 0;
  text-align: center;
  color: #2d4a37; /* warmer, more saturated dark green */
  font-style: italic;
  font-size: 1.1rem;
  font-family: var(--font-serif);
  position: relative;
  z-index: 1;
  max-width: 900px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 1rem;
  margin: 0 auto;
}

.quote-separator cite {
  display: inline;
  font-size: 0.9rem;
  opacity: 0.85;
  font-style: normal;
  white-space: nowrap;
  color: #2d4a37;
}

/* ==== Access Cards - Enhanced Visual Polish ==== */
.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-component);
  margin: var(--space-lg) 0;
}

/* ==== Access Cards (Homepage Navigation) ==== */
.access-card {
  background: rgb(255 255 255 / 95%);
  padding: var(--space-component);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s ease;
  position: relative;
  border: 2px solid rgb(74 124 89 / 15%);
  display: block;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(4px);
}

.access-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--sage-light);
  background: rgb(255 255 255 / 100%);
}

.access-card h3 {
  color: var(--sage-green);
  font-size: var(--text-xl);
  font-family: var(--font-display);
  margin-top: 0;
  margin-bottom: 0.5em;
}

.access-card p {
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--text-dark);
  margin: 0;
}

.access-card .card-icon {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: var(--space-sm);
  color: var(--sage-light);
  display: block;
}

/* Approach Grid - New Professional Layout */
.approach-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.approach-method h3,
.approach-programs h3 {
  color: var(--sage-green);
  font-size: 1.5rem;
  /* margin inherited from base normalization */
  font-family: var(--font-palatino);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--cream);
}

/* Approach Items */
.approach-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.approach-marker {
  color: var(--sage-green);
  font-size: 1.2rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.approach-item strong {
  color: var(--sage-green);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.approach-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  opacity: 0.9;
}

/* Program List */
.program-list {
  display: grid;
  gap: 1rem;
}

.program-item {
  padding: 0.75rem 1rem;
  background: white;
  border-left: 3px solid var(--sage-green);
  border-radius: 0 4px 4px 0;
  font-size: 1.05rem;
  color: var(--text-dark);
  transition: all 0.2s;
}

.program-item:hover {
  background: var(--cream);
  padding-left: 1.25rem;
}

/* ==== Container System - Flexible & Consistent ==== */
.container, .wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.wrap {
  padding: var(--space-component) var(--container-padding);
}

.section {
  padding: var(--space-section) 0;
  position: relative;
}

/* ==== Standardized Section Architecture ==== */
.section-header {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header h2 {
  font-family: var(--font-palatino);
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--sage-green);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.section-sub {
  font-family: var(--font-gentium);
  font-size: 1.25rem;
  color: var(--body);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  letter-spacing: 0.01em;
  opacity: 0.92;
}

.section-title {
  font-size: var(--text-2xl);
  color: var(--sage-green);
  margin-bottom: 0.5em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-tight);
}

.section-subtitle,
.section-kicker {
  font-size: var(--text-lg);
  color: var(--text-dark);
  opacity: 0.9;
  font-style: italic;
  max-width: 60ch;
  margin: 0 auto var(--space-lg);
  line-height: var(--lh-normal);
}

/* ==== Feature Cards - Standardized & Flexible ==== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-component);
  margin: var(--space-lg) 0;
}

/* ==== Feature Cards (About Page) ==== */
.feature-card {
  background: var(--cream);
  padding: var(--space-component);
  border-radius: var(--radius-md);
  border: 1px solid var(--beige);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

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

.feature-card h3 {
  color: var(--sage-green);
  font-size: var(--text-xl);
  font-family: var(--font-display);
  margin-top: 0;
  margin-bottom: 0.5em;
}

.feature-card p {
  line-height: var(--lh-relaxed);
  margin-bottom: 1em;
  font-size: var(--text-base);
}

.feature-card ul {
  list-style: none;
  padding: 0;
}

.feature-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.feature-card li::before {
  content: 'âœ“';
  position: absolute;
  left: 0;
  color: var(--sage-green);
  font-weight: bold;
}

/* Forms Enhanced */
.form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  border: 2px solid var(--beige);
  box-shadow: 0 4px 15px rgb(0 0 0 / 5%);
}

.form label {
  display: block;
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.form label input,
.form label textarea,
.form label select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  border: 2px solid var(--beige);
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 1rem;
  transition: all 0.3s;
  background: var(--warm-white);
}

.form label input:focus,
.form label textarea:focus,
.form label select:focus {
  outline: none;
  border-color: var(--sage-green);
  background: white;
  box-shadow: 0 0 0 3px rgb(74 103 65 / 10%);
}

/* Booking Calendar Enhanced */
.calendar {
  max-width: 1000px;
  margin: 2rem auto;
}

.day-group {
  background: white;
  border: 2px solid var(--beige);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgb(0 0 0 / 3%);
}

.day-header {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--sage-green);
  font-size: 1.2rem;
  font-family: var(--font-display);
  border-bottom: 2px solid var(--cream);
  padding-bottom: 0.5rem;
}

.slot-btn {
  padding: 0.75rem 1rem;
  border: 2px solid var(--beige);
  background: var(--warm-white);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
  font-family: var(--font-sans);
}

.slot-btn:hover {
  border-color: var(--sage-light);
  background: var(--cream);
  transform: translateY(-2px);
}

.slot-btn.selected {
  background: var(--sage-green);
  color: var(--warm-white);
  border-color: var(--sage-green);
}

/* Footer */
.site-footer {
  background: var(--sage-dark);
  color: var(--warm-white);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent-gold);
}

.footer-section a {
  color: var(--warm-white);
  text-decoration: none;
  opacity: 0.9;
  display: block;
  padding: 0.25rem 0;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 10%);
  padding-top: 1.5rem;
  text-align: center;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ==========================================
   SERVICES PAGE STYLES
   ========================================== */

/* Services Hero */
.services-hero {
  background: var(--warm-white);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 0;
}

.services-hero h1 {
  font-family: var(--font-palatino);
  font-size: 2.5rem;
  color: var(--sage-green);
  margin-bottom: 0.5rem;
}

.services-hero .lead {
  font-size: 1.2rem;
  color: var(--text-dark);
  opacity: 0.9;
  font-family: var(--font-gentium);
}

/* Tab Navigation */
.program-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--cream);
  overflow-x: auto;
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  color: var(--text-dark);
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  font-family: var(--font-gentium);
  white-space: nowrap;
}

.tab-button:hover {
  color: var(--sage-green);
}

.tab-button.active {
  color: var(--sage-green);
  font-weight: 600;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sage-green);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Program Grid */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* ==== Program Cards (Services Page) ==== */
.program-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--beige);
  transition: all 0.3s;
}

.program-card:hover {
  box-shadow: 0 8px 20px rgb(0 0 0 / 8%);
  transform: translateY(-2px);
}

.program-card h3 {
  color: var(--sage-green);
  font-size: 1.5rem;
  /* margin inherited from base normalization */
  font-family: var(--font-palatino);
}

.program-summary {
  font-style: italic;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  opacity: 0.9;
}

.program-details {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.program-details li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.program-details li::before {
  content: 'â–¸';
  position: absolute;
  left: 0;
  color: var(--sage-green);
}

.program-meta {
  padding-top: 1rem;
  border-top: 1px solid var(--cream);
  font-size: 0.95rem;
  color: var(--text-dark);
  opacity: 0.8;
  font-weight: 500;
}

/* Format Cards - See line ~2580 for current implementation */
/* ==== Format Cards (Lesson Duration Options) OBSOLETE - REMOVED ==== */

.format-best-for {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(74 124 89 / 20%);
  font-size: 0.95rem;
  color: var(--text-dark);
  opacity: 0.9;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: var(--cream);
  padding: 4rem 2rem;
  border-radius: 12px;
}

.cta-section h2 {
  color: var(--sage-green);
  /* margin inherited from base normalization */
  font-family: var(--font-palatino);
  font-size: 2rem;
}

.cta-section p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--text-dark);
  opacity: 0.9;
}

/* Responsive Design */

/* ==========================================
   SPACING OPTIMIZATIONS
   ========================================== */

/* Wider content area with smaller side gutters */
.container {
  max-width: 1280px;  /* slightly wider from 1200px */
  padding: 0 clamp(16px, 3vw, 32px);  /* responsive, tighter gutters */
}

/* Reduce vertical spacing on sections */
.section {
  padding: clamp(32px, 5vw, 56px) 0;  /* was 4rem (64px) */
}

/* Smaller quote separators */
.quote-separator {
  margin: 2rem 0;  /* was 3rem */
  height: 40px;    /* was 45px */
}

/* Tighter spacing in access cards grid */
.access-grid {
  gap: 1.5rem;  /* was 2rem */
}

/* Make access cards more compact */
.access-card {
  padding: 1.5rem;  /* was 2rem */
}

.access-card .card-icon {
  font-size: 1.75rem;  /* was 2rem */
  margin-bottom: 0.75rem;  /* was 1rem */
}

/* Denser feature cards */
.feature-card {
  padding: 1.75rem;  /* was 2.5rem */
}

/* Programs grid - 4 columns on wide screens */
.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));  /* was 320px */
  gap: 1.75rem;  /* was 2.5rem */
}

.feature-card h3 {
  font-size: 1.4rem;  /* was 1.6rem */
  /* margin inherited from base normalization */
}

.feature-card ul {
  margin-top: 0.5rem;  /* was implicit 1rem */
}

.feature-card li {
  padding: 0.35rem 0;  /* was 0.5rem */
  font-size: 0.95rem;
}

/* ==========================================
   PARCHMENT PAPER EFFECTS
   ========================================== */

/* 1) Page-edge parchment: add top/bottom darkening without disturbing current vignette */
body {
  position: relative; /* harmless; establishes a stacking context for pseudo-elements */
}

/* Additional parchment darkening at page edges */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900; /* Above content, below nav (which are z>=1000) */
  background-image:
    /* top/bottom fade */
    linear-gradient(to bottom,
      rgb(34 26 10 / 20%) 0%,
      transparent 18%,
      transparent 82%,
      rgb(34 26 10 / 20%) 100%
    ),
    /* side vignette – subtle */
    radial-gradient(60% 100% at 0% 50%,
      rgb(34 26 10 / 10%) 0%, transparent 60%),
    radial-gradient(60% 100% at 100% 50%,
      rgb(34 26 10 / 10%) 0%, transparent 60%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: fixed;
}

/* 5) Respect the existing body overlay (body::before) */
body::before {
  pointer-events: none;
  z-index: 900;  /* Above content, below nav */
}

/* Quote separator styling moved to line 430 */

/* Optional thin ornamental version if you ever want a minimal rule */
.hr-parchment {
  height: 18px;
  background:
    radial-gradient(closest-side, rgb(15 47 29 / 18%), transparent) center/6px 100% no-repeat,
    linear-gradient(to right, transparent, rgb(15 47 29 / 25%), transparent);
}

/* ==========================================
   Z-INDEX HIERARCHY FIXES
   ========================================== */

/* Ensure sections don't overlap navigation */
.section,
.hero,
.wrap {
  position: relative;
  z-index: auto;  /* Allow body vignette to show through */
}

/* Fix dropdown menu z-index hierarchy */
.dropdown-menu {
  z-index: 10001; /* above everything */
}

/* Note: main-nav z-index already set above in main definition */

.utility-bar {
  z-index: 1002; /* above main-nav */
}
/* ==========================================
   CONTACT PAGE FORM STYLES
   ========================================== */

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.contact-form-card {
  background: white;
  border: 2px solid var(--beige);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease;
}

.contact-form-card:hover {
  box-shadow: var(--shadow-lg);
}

.contact-form label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
  font-weight: 600;
  font-size: var(--text-base);
  font-family: var(--font-gentium);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: clamp(0.65rem, 2vw, 0.85rem) clamp(0.85rem, 2.5vw, 1.1rem);
  margin-top: 0.35rem;
  border: 2px solid var(--beige);
  border-radius: var(--radius-sm);
  font-family: var(--font-gentium);
  font-size: var(--text-base);
  background: var(--warm-white);
  transition: all 0.2s ease;
  color: var(--text-dark);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sage-green);
  background: white;
  box-shadow: 0 0 0 3px rgb(38 92 47 / 10%);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-dark);
  opacity: 0.5;
}

.contact-form textarea {
  resize: vertical;
  min-height: 80px;
  line-height: var(--lh-normal);
}

.contact-form .btn-primary {
  width: 100%;
  margin-top: var(--space-sm);
  min-height: 48px;
  font-size: var(--text-lg);
  cursor: pointer;
}

.contact-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-form .cf-turnstile {
  margin: var(--space-md) 0;
}

/* Status Messages */
.contact-status-message {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  display: none;
  font-family: var(--font-gentium);
  font-size: var(--text-base);
}

.contact-status-message.success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
  display: block;
}

.contact-status-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
  display: block;
}

/* Contact Info Footer */
.contact-info-footer {
  text-align: center;
  margin-top: var(--space-lg);
  padding: var(--space-md);
  color: var(--text-dark);
  font-size: var(--text-sm);
  font-family: var(--font-gentium);
}

.contact-info-footer a {
  color: var(--sage-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-footer a:hover {
  color: var(--dark-green);
  text-decoration: underline;
}

/* Mobile Responsiveness */

/* Font Awesome Icon Styling */
.footer-section a i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-section a:hover i {
  opacity: 1;
}

/* Font Awesome Icon Fix - Ensure proper display */
.utility-link i[class*="fa-"],
.footer-section i[class*="fa-"] {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important; /* Solid icons need 900 weight */
  font-style: normal;
  display: inline-block;
  margin-right: 6px;
}

/* Ensure ::before pseudo-element works */
.utility-link i[class*="fa-"]::before,
.footer-section i[class*="fa-"]::before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

/* ==========================================
   TWO-COLUMN INFO BAND
   ========================================== */
.info-band {
  background: #faf8f3;
  padding: 2.5rem 0;
  border-top: 1px solid #e0dcc3;
  border-bottom: 1px solid #e0dcc3;
  margin: 2rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.info-left h2 {
  color: var(--sage-green);
  /* margin inherited from base normalization */
}

.info-left p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Why Cards - compact version */
.why-cards {
  display: grid;
  gap: 12px;
}

/* Removed glow effects - keeping clean design */

/* ==== Why Cards (About Page - Reasons Section) ==== */
.why-card {
  background: white;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid #e0dcc3;
  box-shadow: 0 1px 3px rgb(0 0 0 / 5%);
}


.why-card h3 {
  color: var(--sage-green);
  /* margin inherited from base normalization */
  font-size: 1.1rem;
}

.why-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}


/* ==========================================
   SEPARATOR DOT
   ========================================== */
.separator-dot {
  display: flex;
  align-items: center;
  margin: 3rem auto;
  max-width: 900px;
  gap: 1.5rem;
}

.separator-dot::before,
.separator-dot::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sage-green), transparent);
}

.separator-dot span {
  width: 8px;
  height: 8px;
  background: var(--sage-green);
  border-radius: 50%;
  opacity: 0.6;
}

/* Full-width divider with fade effect */
.separator-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sage-green), transparent);
  margin: 0;
  opacity: 0.4;
}

/* ==========================================
   STAT ICON STYLING
   ========================================== */
.stat-icon {
  font-size: 2.5rem;
  color: var(--sage-green);
  margin-bottom: 0.75rem;
  display: block;
}

/* ============================================
   RESPONSIVE BREAKPOINTS (Mobile-First)
   ========================================== */

/* Small tablets and landscape phones (640px and up) */
@media (width >= 640px) {
  /* Currently no min-width 640px rules */
}

/* Tablets (768px and up) */
@media (width >= 768px) {
  /* Currently no min-width 768px rules */
}

/* Desktop (900px and up) */
@media (width >= 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop (980px and below) - Grid stagger tablet layout */
@media (width <= 980px){
  .grid-stagger{ grid-template-columns: repeat(8, 1fr); }
  .grid-stagger .card{ grid-column: span 4; }    /* 2 per row */
  .span-2x1{ grid-column: 1 / -1; }              /* wide tiles go full on tablet */
}

/* Tablet range (769px - 1000px) - Centered hero with desktop-style service strip */
@media (min-width: 769px) and (max-width: 1000px) {
  /* Center the hero text */
  section.hero .hero-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: clamp(16px, 3vh, 32px);
    padding-bottom: clamp(32px, 6vh, 64px);
  }

  section.hero .hero-text {
    text-align: center;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 48px);
    max-width: 80ch;
    min-height: 0;
    justify-content: center;
    flex: 0 0 350px;
  }

  section.hero .hero-text h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 5vw, 52px);
  }

  section.hero .hero-text p {
    margin: 12px auto 20px;
    max-width: 50ch;
  }

  /* Services snapshot - Desktop strip style, scaled down */
  section.hero .services-snapshot {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    max-width: 900px;
    width: 100%;
    margin: 24px auto 0;
    padding: 16px 20px;
    gap: 14px;
    background: rgb(255 255 255 / 40%);
    backdrop-filter: blur(10px);
    border: 1px solid rgb(74 124 89 / 35%);
    border-radius: var(--radius-lg);
    min-height: 100px;
  }

  .services-snapshot .service-list {
    display: contents;
  }

  /* Keep desktop strip style - NO individual card borders */
  .services-snapshot .service-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 6px;
    position: relative;
    border: none;
    background: transparent;
    border-radius: 0;
  }

  .services-snapshot .service-item .icon {
    font-size: 32px;
    margin-bottom: 8px;
    color: #4a7c59;
  }

  .service-text {
    font-size: 13.5px;
    line-height: 1.3;
    color: #333;
  }

  /* Keep desktop separator lines */
  .service-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: rgb(74 124 89 / 40%);
  }

  /* Hero CTA buttons */
  .hero-cta {
    justify-content: center;
  }

  /* Make hero image fade into background */
  .hero-image {
    opacity: 0.22;
    filter: grayscale(30%) brightness(1.15);
    z-index: 0;
  }
}

/* Tablet and below (900px) - Why cards */
@media (width <= 900px) {
  .why-cards {
    grid-template-columns: 1fr;
  }
}

/* Smooth tree transition zone (1061px - 900px) */
/* COMMENTED OUT - Conflicts with fixed hero-image positioning
@media (width <= 1100px) and (width > 900px) {
  .hero-image {
    right: clamp(60px, 7vw, 100px);
  }

  .hero-image img {
    width: clamp(380px, 42vw, 680px);
  }
}
*/

/* COMMENTED OUT - Wrapper should have padding-right: 0 per Chrome AI
@media (width <= 1000px) and (width > 900px) {
  .hero-wrapper {
    padding-right: clamp(300px, 45vw, 500px);
  }
}
*/

/* COMMENTED OUT - Conflicts with fixed hero-image positioning
@media (width <= 900px) and (width > 800px) {
  .hero-image {
    opacity: 0.85;
    z-index: -1;
  }

  .hero-wrapper {
    padding-right: clamp(280px, 42vw, 400px);
  }
}
*/

/* COMMENTED OUT - Conflicts with fixed hero-image positioning
@media (width <= 800px) and (width > 768px) {
  .hero-image {
    opacity: 0.5;
    filter: grayscale(20%) brightness(1.15);
    z-index: -1;
  }
}
*/

/* COMMENTED OUT - Conflicts with fixed hero-image positioning
@media (width <= 1060px) {
  .hero-image {
    top: 0px;
    right: clamp(40px, 5vw, 80px);
  }
  .hero-image img {
    height: auto;
    width: clamp(400px, 41vw, 700px);
  }
}
*/

/* Tablet and below (768px) - Main responsive block */
/* --- CENTER THE TEXT BELOW ~768 --- */
@media (width <= 768px) {
  /* Hero adjustments */
  .hero {
    padding: clamp(8px, 1.5vh, 16px) 0;    /* Reduced from 24-40px */
    min-height: auto;
  }

  /* Trim space below the nav bar */
  header.site-header {
    padding-bottom: 0;  /* Eliminate gap entirely */
  }

  /* make the text block a centered column */
  section.hero .hero-wrapper {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding-top: clamp(4px, 1vh, 8px);       /* Tightened significantly from 12-24px */
    padding-bottom: clamp(24px, 6vh, 56px);
  }

  section.hero .hero-text {
    min-height: 0;                 /* stop pinning to the top */
    justify-content: center;       /* was flex-start */
    text-align: center;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
    max-width: 42ch;               /* keeps subheader readable */
  }

  section.hero .hero-text h1 {
    line-height: 1.2;
    margin: 0 0 12px;
  }

  section.hero .hero-text p {
    margin: 8px auto 16px;
    max-width: 38ch;
  }

  .hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-170px, -400px);
    max-width: 85%;
    height: 700px;
    opacity: 0.3;
    filter: grayscale(40%) brightness(1.2);
    z-index: 0;
    pointer-events: none;
  }

  .hero-image img {
    width: clamp(300px, 70vw, 500px);
  }

  /* BUTTONS: stop stretching / huge padding on small screens */
  .hero-cta {
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero-cta a, .hero-cta button {
    display: inline-block;
    width: auto; /* no full-width buttons */
    padding: 12px 20px; /* sane mobile padding */
    font-size: clamp(16px, 4vw, 18px);
    min-width: 180px;
    max-width: 320px;
  }

  /* Services snapshot - Mobile 3×2 grid (all visible) */
  section.hero .services-snapshot {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 3×2 layout */
    gap: 12px;
    margin: clamp(8px, 2vh, 16px) auto 0;
    padding: 12px 16px;
    max-width: 640px;
    background: rgb(255 255 255 / 65%);
    border: 1px solid rgb(47 107 69 / 25%);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
  }

  .services-snapshot .service-list {
    display: contents;  /* Remove wrapper, let children flow directly into grid */
  }

  .services-snapshot .service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
    border: none;
    background: transparent;
    font-size: 14px;
    line-height: 1.2;
    min-height: 86px;
    gap: 6px;
    position: relative;
  }

  .services-snapshot .service-item .icon {
    font-size: 20px;
  }

  /* Vertical dividers between columns (not on 3rd column items) */
  .services-snapshot .service-item:not(:nth-child(3n))::after {
    content: '';
    position: absolute;
    right: -6px; /* Half of the 12px gap */
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: rgb(74 124 89 / 40%);
  }

  /* Horizontal dividers between rows (first row only) */
  .services-snapshot .service-item:nth-child(-n+3)::before {
    content: '';
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: -6px; /* Half of the 12px gap */
    height: 1px;
    background: rgb(74 124 89 / 40%);
  }

  /* Navigation mobile */
  .utility-bar {
    display: none; /* Hide utility bar on mobile */
  }

  .main-nav {
    top: 0;
  }

  .nav-links {
    gap: 1rem;
    font-size: var(--text-base);
  }

  /* Mobile navigation styling - darker background with gradient */
  nav.main-nav {
    /* Base background color matching utility bar */
    background-color: rgb(15, 47, 29);
    /* Linear gradient for lighter fade effect */
    background-image: linear-gradient(to bottom, rgb(15, 47, 29) 50%, rgb(30, 94, 58) 100%);
  }

  /* Logo text color in mobile */
  a.logo {
    color: #f7f4ec; /* Warm white color */
  }

  /* Hamburger menu icon color */
  button.hamburger span {
    background-color: #f7f4ec; /* Warm white color */
  }

  /* Grid adjustments */
  .feature-grid,
  .access-grid,
  .approach-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Services page - Tab navigation */
  .tab-navigation {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .tab-btn {
    flex: 1 1 auto;
    min-width: 120px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }

  /* Services page - Program grid */
  .program-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Format cards */
  .format-card {
    grid-template-columns: 1fr;
  }

  .format-icon {
    justify-content: center;
  }

  .format-details {
    text-align: center;
  }

  /* CTA sections */
  .cta-section h2 {
    font-size: 1.8rem;
  }

  .cta-section .btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  /* Contact form adjustments */
  .contact-form-container {
    padding: var(--space-md);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile only (640px and below) */
@media (width <= 640px) {
  .hero-cta {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: auto;
    min-width: 200px;
    max-width: 100%;
    padding: 12px 24px;
    font-size: clamp(15px, 4vw, 17px);
  }

  /* Extra small screens - even more subtle watermark */
  .hero-image {
    max-width: 100%;
  }

  .hero-image img {
    width: clamp(280px, 80vw, 450px);
  }

  /* Mobile navigation - hamburger menu */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--parchment-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-links a {
    color: #f7f4ec !important;
    font-size: 24px;
    padding: 12px 24px;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    margin-top: 0;
  }

  .logo {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .nav-container {
    padding: 0 16px;
  }

  /* Contact form mobile */
  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* Mobile only (560px and below) - Grid stagger single column */
@media (width <= 560px){
  .grid-stagger{ grid-template-columns: repeat(4, 1fr); }
  .grid-stagger .card{ grid-column: 1 / -1; }    /* single column on mobile */
}

/* Tiny phones (380px and below) - Services snapshot 2×3 fallback */
@media (width <= 380px) {
  section.hero .services-snapshot {
    grid-template-columns: repeat(2, 1fr);  /* Switch to 2×3 on very small screens */
  }
}

/* Extra small - logo scaling */
@media (width <= 534px) {
  .logo {
    font-size: 1.5rem;
  }

  .nav-container {
    padding: 0 12px;
  }
}

/* ========================================
   TUTORING FORMATS SECTION
   ======================================== */

.tutoring-formats {
  padding: var(--space-lg) 0;
  background: var(--paper);
  overflow: hidden; /* Prevent horizontal scroll from carousel */
}

.tutoring-formats .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Section header uses shared styles from main CSS */

.formats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (min-width: 640px) {
  .formats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .formats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.format-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.2s ease;
}

.format-card:hover {
  background: #f8f8f8;
  border-color: var(--brand);
}

.format-icon {
  margin: 0 auto var(--space-md);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--parchment-light);
  border-radius: 50%;
}

.format-icon svg {
  stroke: var(--brand);
}

.format-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.format-duration {
  font-size: var(--text-sm);
  color: var(--sage-lighter);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.format-benefits {
  list-style: none;
  text-align: left;
  margin: 0;
  padding: 0;
}

.format-benefits li {
  font-size: var(--text-base);
  color: var(--body);
  padding: var(--space-xs) 0;
  padding-left: 24px;
  position: relative;
  line-height: var(--lh-relaxed);
}

.format-benefits li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: bold;
}

/* Horizontal dividers between format benefit items */
.format-benefits li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  background: rgb(74 124 89 / 40%);
}

.formats-note {
  text-align: center;
  font-size: var(--text-base);
  color: var(--body);
  font-style: italic;
  margin-top: var(--space-lg);
}

/* Mobile optimization - reduce card height for less scrolling */
@media (max-width: 640px) {
  .formats-grid {
    gap: var(--space-md);
  }
  
  .format-card {
    padding: var(--space-md);
  }
  
  .format-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-sm);
  }
  
  .format-benefits li {
    font-size: var(--text-sm);
    line-height: 1.4;
    padding: 4px 0;
  }
}

/* Optional: only stack on very narrow phones */
@media (width <= 640px){
  .hero-wrapper{ padding-right: 0; }
  /* Removed position: static to allow absolute centering from 768px breakpoint to persist */
  .hero-image img{ width: min(520px, 92%); }
}

/* ==== Hero Image Opacity Fallbacks (if JavaScript doesn't run) ==== */
@media (min-width: 1249px) {
  .hero-image {
    opacity: 1;
  }
}

@media (max-width: 1248px) and (min-width: 1069px) {
  .hero-image {
    opacity: 1;
  }
}

@media (max-width: 1068px) {
  .hero-image {
    opacity: 0.2;
  }
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
  padding: var(--space-section) 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/images/organic-lines-testimonials-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: -1;
}

.testimonials-container {
  max-width: 900px;
  margin: 3rem auto 0;
}

/* Individual Testimonial - Accent Bar Design */
.testimonial {
  position: relative;
  padding: 2.5rem 2rem 2rem 3.5rem;
  margin: 0 auto 3rem;
  border-left: 4px solid var(--sage-green);
  background: transparent;
}

/* Large decorative quote mark */
.testimonial::before {
  content: '"';
  position: absolute;
  left: 0.5rem;
  top: -1rem;
  font-size: 7rem;
  color: var(--sage-green);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

/* Quote Text */
.testimonial-text {
  font-family: var(--font-gentium);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--body);
  margin: 0 0 1.5rem 0;
}

/* Attribution */
.testimonial-attribution {
  font-family: var(--font-gentium);
  font-style: normal;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-attribution strong {
  color: var(--sage-green);
  font-size: 1.1rem;
  font-weight: 600;
}

.attribution-detail {
  color: var(--sage-lighter);
  font-size: 0.95rem;
  font-style: italic;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .testimonial {
    padding: 2rem 1.5rem 1.5rem 2.5rem;
  }
  
  .testimonial::before {
    font-size: 5rem;
    left: 0.25rem;
  }
  
  .testimonial-text {
    font-size: 1.1rem;
  }
}
