/* =============================================
   SJB School Website - Main Stylesheet
   Design: Playful, warm, child-friendly
   Colors: Yellow #ECD06F, Green #7BC375, Blue #5B6ABE
   ============================================= */

/* CSS Custom Properties */
:root {
    /* Brand Colors */
    --sjb-yellow: #ECD06F;
    --sjb-yellow-light: #F5E4A8;
    --sjb-yellow-dark: #D4B94F;
    --sjb-green: #7BC375;
    --sjb-green-light: #A8DBA4;
    --sjb-green-dark: #5AA355;
    --sjb-blue: #5B6ABE;
    --sjb-blue-light: #8B97D4;
    --sjb-blue-dark: #4A579E;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #FAFBFC;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* Typography */
    --font-display: 'Fredoka', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    
    /* Spacing */
    --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;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-colored: 0 10px 40px rgba(91, 106, 190, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;
}

/* Reset & Base */
*, *::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: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

ul, ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Floating Doodles */
.floating-doodles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.doodle {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.doodle-1 {
    top: 15%;
    left: 5%;
    width: 40px;
    animation-delay: 0s;
}

.doodle-2 {
    top: 40%;
    right: 8%;
    width: 50px;
    animation-delay: -2s;
}

.doodle-3 {
    bottom: 20%;
    left: 10%;
    width: 60px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* =============================================
   HEADER
   ============================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gray-100);
    transition: var(--transition-base);
}

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

.logo-link {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo {
    height: 60px;
    width: auto;
}

/* Navigation */
.main-nav {
    display: none;
}

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

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--sjb-blue);
    background: var(--gray-50);
}

.nav-link-cta {
    background: linear-gradient(135deg, var(--sjb-yellow) 0%, var(--sjb-yellow-dark) 100%);
    color: var(--gray-800) !important;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.nav-link-cta:hover {
    background: linear-gradient(135deg, var(--sjb-yellow-light) 0%, var(--sjb-yellow) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    z-index: 100;
}

.dropdown-wide {
    min-width: 280px;
}

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

.dropdown li a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.dropdown li a:hover {
    background: var(--sjb-blue-light);
    color: var(--white);
}

.dropdown-icon {
    font-size: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    z-index: 1001;
}

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

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--sjb-blue);
    border-radius: 2px;
    transition: var(--transition-base);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Navigation */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    padding-top: 100px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

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

.mobile-nav {
    padding: var(--space-xl);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-nav-item > a,
.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gray-700);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.mobile-nav-item > a:hover,
.mobile-nav-toggle:hover {
    background: var(--sjb-blue-light);
    color: var(--white);
}

.mobile-cta {
    background: linear-gradient(135deg, var(--sjb-yellow) 0%, var(--sjb-yellow-dark) 100%) !important;
    color: var(--gray-800) !important;
    font-weight: 600;
}

.toggle-icon {
    font-size: 1.2rem;
    font-weight: 400;
    transition: var(--transition-fast);
}

.mobile-nav-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(45deg);
}

.mobile-dropdown {
    display: none;
    padding: var(--space-sm) 0 var(--space-sm) var(--space-xl);
}

.mobile-dropdown.active {
    display: block;
}

.mobile-dropdown li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.mobile-dropdown li a:hover {
    color: var(--sjb-blue);
    background: var(--gray-100);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--container-padding) var(--space-4xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 50%, #F0F4FF 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-doodles {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: saturate(0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-800);
    margin-bottom: var(--space-xl);
}

.title-line {
    display: block;
}

.title-line-1 {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.title-line-2 {
    animation: slideInRight 0.8s ease-out 0.4s both;
}

.title-line-3 {
    animation: slideInLeft 0.8s ease-out 0.6s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.highlight-heart {
    position: relative;
    font-style: normal;
    color: var(--sjb-blue);
}

.highlight-heart::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: var(--sjb-yellow);
    z-index: -1;
    border-radius: 4px;
    transform: skewX(-3deg);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    animation: fadeIn 1s ease-out 0.8s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    animation: fadeIn 1s ease-out 1s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.btn-primary {
    background: linear-gradient(135deg, var(--sjb-blue) 0%, var(--sjb-blue-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(91, 106, 190, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(91, 106, 190, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

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

.btn-outline {
    background: transparent;
    color: var(--sjb-blue);
    border: 2px solid var(--sjb-blue);
}

.btn-outline:hover {
    background: var(--sjb-blue);
    color: var(--white);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    animation: fadeIn 1s ease-out 1.2s both;
}

.scroll-text {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--sjb-blue), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* =============================================
   QUICK LINKS SECTION
   ============================================= */
.quick-links {
    position: relative;
    margin-top: -60px;
    z-index: 10;
    padding-bottom: var(--space-4xl);
}

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

@media (min-width: 768px) {
    .quick-links-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
    }
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--sjb-yellow);
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-link-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quick-link-text {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
    text-align: center;
}

/* =============================================
   NEWS SECTION
   ============================================= */
.news-section {
    padding: var(--space-4xl) 0;
    background: var(--gray-50);
    position: relative;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, var(--white), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.title-decoration {
    font-size: 1.5em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-top: var(--space-sm);
}

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

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

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

/* News Card */
.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    cursor: pointer;
}

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

.news-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

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

.news-date {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.date-day {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sjb-blue);
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
}

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

.news-category {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--sjb-green-light);
    color: var(--sjb-green-dark);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.news-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.news-excerpt {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sjb-blue);
    transition: var(--transition-fast);
}

.news-read-more:hover {
    color: var(--sjb-blue-dark);
}

.news-read-more svg {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

.news-read-more:hover svg {
    transform: translateX(4px);
}

.news-footer {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* =============================================
   NEWS MODAL
   ============================================= */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.news-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    max-width: 800px;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-bounce);
}

.news-modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-100);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--gray-600);
}

.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
    }
}

.modal-image {
    flex-shrink: 0;
    height: 250px;
}

@media (min-width: 768px) {
    .modal-image {
        width: 40%;
        height: auto;
    }
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    flex: 1;
    padding: var(--space-2xl);
}

.modal-category {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--sjb-green-light);
    color: var(--sjb-green-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.modal-date {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
}

.modal-text {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.modal-text p + p {
    margin-top: var(--space-md);
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

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

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

.about-content {
    order: 2;
}

@media (min-width: 768px) {
    .about-content {
        order: 1;
    }
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--space-lg);
}

.about-text {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.about-text strong {
    color: var(--sjb-blue);
}

.about-illustration {
    order: 1;
}

@media (min-width: 768px) {
    .about-illustration {
        order: 2;
    }
}

.about-image {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-colored);
}

/* =============================================
   FOOTER
   ============================================= */
.main-footer {
    position: relative;
    background: var(--gray-800);
    color: var(--gray-300);
    padding: var(--space-4xl) 0 var(--space-xl);
    overflow: hidden;
}

.footer-doodles {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    opacity: 0.05;
    overflow: hidden;
}

.footer-doodles img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

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

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

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

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: var(--space-md);
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--sjb-yellow);
}

.footer-contact address {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: 0.9rem;
}

.footer-contact a {
    color: var(--sjb-yellow);
    transition: var(--transition-fast);
}

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

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--sjb-blue);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-700);
    font-size: 0.85rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom a {
    color: var(--gray-400);
    transition: var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--sjb-yellow);
}

/* =============================================
   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-width: 0;
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
}
