/* =====================================================
   MontessoriChannel.com - Homepage Stylesheet
   Aesthetic: Warm Editorial / Natural Sanctuary
   
   WordPress / Kadence compatibility notes:
   - Loaded ONLY on page-home.php template via functions.php
   - Kadence header/footer are disabled on this template
   - Kadence block CSS is suppressed on this template
   - GeneratePress references updated for Kadence
   - WordPress body class .mcc-homepage scopes all rules
     to prevent bleed onto other pages
   ===================================================== */

/* ─────────────────────────────────────────────
   KADENCE RESET
   Neutralise Kadence defaults that would otherwise
   compete with our custom styles on this template.
   ───────────────────────────────────────────── */

.mcc-homepage * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Kadence adds margin to .entry-content — remove on homepage */
.mcc-homepage .entry-content,
.mcc-homepage .site-content,
.mcc-homepage #primary,
.mcc-homepage #content {
    margin: 0;
    padding: 0;
    max-width: none;
}

/* Prevent Kadence from adding padding to <main> */
.mcc-homepage main#main-content {
    padding: 0;
}

/* GeoDirectory card overrides — make GD listing cards
   inherit our school-card styles when rendered inside
   the .schools-grid container */
.mcc-homepage .schools-grid .geodir-category-listing,
.mcc-homepage .schools-grid .gd-listings-content {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    background: var(--color-bg-primary);
}

.mcc-homepage .schools-grid .geodir-category-listing:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* CSS Custom Properties - GeneratePress Compatible */
:root {
    /* Primary Earth Tone Palette */
    --color-wood-deep: #5D4E3C;
    --color-wood: #8B7355;
    --color-wood-light: #A69076;
    --color-terracotta: #C4A484;
    --color-terracotta-light: #D4BFA6;
    --color-sage: #9CAF88;
    --color-sage-light: #B5C4A5;
    --color-sage-muted: #C8D4BC;
    --color-cream: #F5F5DC;
    --color-cream-warm: #FAF8F0;
    --color-cream-pure: #FDFCF7;

    /* Accent Colors */
    --color-forest: #2D5A3D;
    --color-forest-dark: #1E3D29;
    --color-blue-soft: #6B8E9F;
    --color-gold: #C9A959;
    --color-gold-muted: #D4BC7A;

    /* Text Colors - Warm, Never Pure Black */
    --color-text-primary: #3D352C;
    --color-text-secondary: #5D5248;
    --color-text-muted: #8A7F72;
    --color-text-light: #A69B8C;
    --color-text-inverse: #FAF8F0;

    /* Background Layers */
    --color-bg-primary: #FDFCF7;
    --color-bg-secondary: #F7F5EE;
    --color-bg-tertiary: #EFE9DD;
    --color-bg-warm: #F5EFE4;

    /* Borders & Dividers */
    --color-border: #E5DFD3;
    --color-border-light: #EDE8DD;

    /* Typography - Kadence Wellness System Defaults */
    /* "Educated but not pretentious" per design system */
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.75rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
    --text-5xl: clamp(2.75rem, 2rem + 3.75vw, 4.5rem);

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 900px;
    --header-height: 80px;

    /* Border Radius - Soft, Organic */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows - Warm & Soft */
    --shadow-sm: 0 1px 3px rgba(61, 53, 44, 0.06), 0 1px 2px rgba(61, 53, 44, 0.04);
    --shadow-md: 0 4px 12px rgba(61, 53, 44, 0.08), 0 2px 4px rgba(61, 53, 44, 0.04);
    --shadow-lg: 0 12px 32px rgba(61, 53, 44, 0.1), 0 4px 12px rgba(61, 53, 44, 0.06);
    --shadow-xl: 0 24px 48px rgba(61, 53, 44, 0.12), 0 8px 24px rgba(61, 53, 44, 0.08);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =====================================================
   Reset & Base Styles
   ===================================================== */

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

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
}

/* Subtle paper texture background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: -1;
}

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

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

a:hover {
    color: var(--color-forest-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-text-primary);
}

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

p {
    margin-bottom: var(--space-md);
}

/* =====================================================
   Layout Components
   ===================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* =====================================================
   Organic Background Shapes
   ===================================================== */

.organic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.organic-shape {
    position: absolute;
    opacity: 0.04;
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    color: var(--color-sage);
    animation: float 30s ease-in-out infinite;
}

.shape-2 {
    width: 500px;
    height: 500px;
    bottom: 20%;
    left: -200px;
    color: var(--color-terracotta);
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: 20%;
    color: var(--color-wood);
    animation: float 35s ease-in-out infinite;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(5deg); }
    66% { transform: translate(-15px, 20px) rotate(-3deg); }
}

/* =====================================================
   Header & Navigation
   ===================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 252, 247, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    height: var(--header-height);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 500;
}

.logo:hover {
    color: var(--color-text-primary);
}

.logo-mark {
    color: var(--color-forest);
}

.logo-accent {
    color: var(--color-forest);
}

.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: var(--space-sm) 0;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
    letter-spacing: 0.01em;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-forest);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: max-content;
    min-width: 600px;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    padding: var(--space-lg);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.mega-col h4 {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    font-family: var(--font-body);
    font-weight: 600;
}

.mega-col ul {
    list-style: none;
}

.mega-col li {
    margin-bottom: var(--space-sm);
}

.mega-col a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.mega-col a:hover {
    color: var(--color-forest);
}

.mega-featured {
    background: var(--color-bg-secondary);
    margin: calc(var(--space-lg) * -1);
    margin-left: 0;
    padding: var(--space-lg);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.mega-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    display: block;
    font-weight: 600;
}

.mega-feature-card {
    display: block;
}

.mega-feature-card img {
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    aspect-ratio: 3/2;
    object-fit: cover;
    width: 100%;
}

.mega-feature-card span {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.4;
}

/* Dropdown Menu (Simpler) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    transform: translateY(8px);
    padding: var(--space-sm);
}

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

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

.dropdown-menu li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
}

.dropdown-menu li a:hover {
    background: var(--color-bg-secondary);
    color: var(--color-forest);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.search-toggle:hover {
    background: var(--color-bg-secondary);
    color: var(--color-forest);
}

/* Mobile Toggle */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

/* =====================================================
   Buttons
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--color-forest);
    color: var(--color-text-inverse);
    border-color: var(--color-forest);
}

.btn-primary:hover {
    background: var(--color-forest-dark);
    border-color: var(--color-forest-dark);
    color: var(--color-text-inverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--color-forest);
    color: var(--color-text-inverse);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-secondary);
    border-color: var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-text-secondary);
    color: var(--color-text-primary);
}

/* =====================================================
   Hero Section
   ===================================================== */

.hero {
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    max-width: 560px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-forest);
    margin-bottom: var(--space-lg);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-sage-muted);
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-title em {
    font-style: italic;
    color: var(--color-forest);
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-lg);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-number {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1;
}

.trust-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: var(--space-xs);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    border-radius: var(--radius-xl);
    width: 100%;
    aspect-ratio: 5/6;
    object-fit: cover;
    box-shadow: var(--shadow-xl);
}

.hero-image-accent {
    position: absolute;
    top: var(--space-xl);
    left: calc(var(--space-xl) * -1);
    right: var(--space-xl);
    bottom: calc(var(--space-xl) * -1);
    background: var(--color-sage-muted);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.hero-quote {
    position: absolute;
    bottom: var(--space-xl);
    left: calc(var(--space-lg) * -1);
    background: var(--color-bg-primary);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 300px;
}

.hero-quote blockquote {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-style: italic;
    color: var(--color-text-primary);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.hero-quote cite {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: normal;
}

@media (max-width: 1023px) {
    .hero-image-accent {
        top: var(--space-md);
        left: var(--space-md);
        right: calc(var(--space-md) * -1);
        bottom: calc(var(--space-md) * -1);
    }

    .hero-quote {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: var(--space-xl);
        max-width: 100%;
    }
}

/* =====================================================
   Directory Search Section
   ===================================================== */

.directory-search {
    padding: var(--space-3xl) 0;
    margin-top: calc(var(--space-3xl) * -1);
    position: relative;
    z-index: 10;
}

.search-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.search-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.search-header h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

.search-header p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.search-form {
    margin-bottom: var(--space-lg);
}

.search-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .search-fields {
        grid-template-columns: 2fr 1fr 1fr auto;
        align-items: end;
    }
}

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

.field-group label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.input-with-icon input {
    padding-left: calc(var(--space-md) + 18px + var(--space-sm));
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    appearance: none;
}

input::placeholder {
    color: var(--color-text-light);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--color-forest);
    background: var(--color-bg-primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A7F72' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    padding-right: calc(var(--space-md) + 24px);
}

.btn-search {
    height: 100%;
    min-height: 52px;
}

.popular-locations {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.popular-locations a {
    color: var(--color-text-secondary);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.popular-locations a:hover {
    background: var(--color-sage-muted);
    color: var(--color-forest);
}

/* =====================================================
   Section Headers
   ===================================================== */

.section-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.section-header-centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-intro {
    max-width: 560px;
}

.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-forest);
    margin-bottom: var(--space-sm);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* =====================================================
   Featured Schools Section
   ===================================================== */

.featured-schools {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-secondary);
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.school-card {
    background: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.school-image {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.school-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.school-card:hover .school-image img {
    transform: scale(1.05);
}

.school-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-bg-primary);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-forest);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.school-content {
    padding: var(--space-lg);
}

.school-name {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.school-location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.school-location svg {
    flex-shrink: 0;
}

.school-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.school-ages {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.school-rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-gold);
}

/* =====================================================
   Blog Categories Section
   ===================================================== */

.blog-categories {
    padding: var(--space-5xl) 0;
}

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

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

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-xl);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.category-card:hover {
    border-color: var(--color-sage);
    background: var(--color-bg-secondary);
    transform: translateY(-2px);
}

.category-card-featured {
    background: var(--color-sage-muted);
    border-color: var(--color-sage);
}

.category-card-featured:hover {
    background: var(--color-sage-light);
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: var(--color-forest);
}

.category-card-featured .category-icon {
    background: rgba(255, 255, 255, 0.6);
}

.category-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.category-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.category-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-forest);
}

/* =====================================================
   Featured Articles Section
   ===================================================== */

.featured-articles {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-warm);
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        grid-template-rows: repeat(2, auto);
    }

    .article-card-featured {
        grid-row: span 2;
    }
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.article-image {
    display: block;
    overflow: hidden;
}

.article-card:not(.article-card-featured) .article-image {
    aspect-ratio: 16/10;
}

.article-card-featured .article-image {
    aspect-ratio: 4/3;
}

@media (min-width: 1024px) {
    .article-card-featured .article-image {
        aspect-ratio: auto;
        flex: 1;
        min-height: 300px;
    }
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
}

.article-card-featured .article-content {
    padding: var(--space-xl);
}

.article-category {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-forest);
    margin-bottom: var(--space-sm);
}

.article-card h3 {
    font-size: var(--text-lg);
    line-height: 1.35;
    margin-bottom: var(--space-sm);
}

.article-card-featured h3 {
    font-size: var(--text-xl);
}

.article-card h3 a {
    color: var(--color-text-primary);
}

.article-card h3 a:hover {
    color: var(--color-forest);
}

.article-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.article-meta {
    display: flex;
    gap: var(--space-md);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* =====================================================
   Philosophy Quote Section
   ===================================================== */

.philosophy-section {
    padding: var(--space-5xl) 0;
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .philosophy-content {
        grid-template-columns: 1fr 1.2fr;
    }
}

.philosophy-image {
    position: relative;
}

.philosophy-image img {
    border-radius: var(--radius-xl);
    width: 100%;
    aspect-ratio: 5/6;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.philosophy-image::before {
    content: '';
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    right: calc(var(--space-lg) * -1);
    bottom: calc(var(--space-lg) * -1);
    background: var(--color-terracotta-light);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.philosophy-text {
    max-width: 520px;
}

.philosophy-text h2 {
    margin-bottom: var(--space-xl);
}

.philosophy-text blockquote {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--color-text-primary);
    line-height: 1.5;
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
    border-left: 3px solid var(--color-sage);
}

.philosophy-text cite {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: normal;
    margin-bottom: var(--space-xl);
    padding-left: var(--space-lg);
}

.philosophy-text p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

/* =====================================================
   Newsletter Section
   ===================================================== */

.newsletter {
    padding: var(--space-4xl) 0;
    background: var(--color-forest);
}

.newsletter-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
    padding: var(--space-3xl);
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
    .newsletter-card {
        grid-template-columns: 1fr auto;
    }
}

.newsletter-content .section-label {
    color: var(--color-sage-light);
}

.newsletter-content h2 {
    color: var(--color-text-inverse);
    margin-bottom: var(--space-md);
}

.newsletter-content p {
    color: rgba(255,255,255,0.8);
    max-width: 480px;
    margin-bottom: var(--space-xl);
}

.newsletter-form {
    max-width: 480px;
}

.newsletter-fields {
    display: flex;
    gap: var(--space-sm);
}

.newsletter-fields input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--color-text-inverse);
}

.newsletter-fields input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-fields input:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--color-sage-light);
}

.newsletter-fields .btn-primary {
    background: var(--color-sage);
    border-color: var(--color-sage);
    color: var(--color-forest-dark);
}

.newsletter-fields .btn-primary:hover {
    background: var(--color-sage-light);
    border-color: var(--color-sage-light);
}

.newsletter-privacy {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.5);
    margin-top: var(--space-sm);
    margin-bottom: 0;
}

.newsletter-visual {
    display: none;
}

@media (min-width: 768px) {
    .newsletter-visual {
        display: block;
    }
}

.newsletter-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    color: var(--color-sage-light);
}

/* =====================================================
   Trust Section
   ===================================================== */

.trust-section {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--color-border);
}

.trust-content {
    text-align: center;
}

.trust-content h3 {
    font-size: var(--text-sm);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2xl);
}

.trust-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.trust-logo span {
    font-size: var(--text-xs);
    color: var(--color-text-light);
}

.trust-logo strong {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* =====================================================
   Footer
   ===================================================== */

.site-footer {
    background: var(--color-wood-deep);
    color: var(--color-cream);
    padding-top: var(--space-4xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: 1.5fr 2fr;
    }
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-cream);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.footer-logo:hover {
    color: var(--color-cream);
}

.footer-brand p {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-sage);
    color: var(--color-wood-deep);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

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

.footer-col h4 {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-cream);
    margin-bottom: var(--space-md);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: var(--space-sm);
}

.footer-col a {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-sage-light);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.5);
}

.footer-legal a:hover {
    color: var(--color-sage-light);
}

/* =====================================================
   Animations & Transitions
   ===================================================== */

@media (prefers-reduced-motion: no-preference) {
    /* Fade in on scroll - add via JS */
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    /* Stagger children */
    .stagger-children > * {
        opacity: 0;
        transform: translateY(20px);
    }

    .stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
    .stagger-children.visible > *:nth-child(2) { transition-delay: 100ms; }
    .stagger-children.visible > *:nth-child(3) { transition-delay: 200ms; }
    .stagger-children.visible > *:nth-child(4) { transition-delay: 300ms; }
    .stagger-children.visible > *:nth-child(5) { transition-delay: 400ms; }

    .stagger-children.visible > * {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* =====================================================
   Utility Classes
   ===================================================== */

.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;
}

/* =====================================================
   WordPress GeneratePress Compatibility
   ===================================================== */

/* These styles ensure compatibility when loaded into GeneratePress */
.wp-block-group,
.entry-content {
    font-family: var(--font-body);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: var(--font-heading);
}

/* GeneratePress button override */
.generate-button,
.wp-block-button__link {
    font-family: var(--font-body);
    border-radius: var(--radius-full);
}

/* GeneratePress navigation override */
.main-navigation .main-nav ul li a {
    font-family: var(--font-body);
}
