/* ============================================
   SMALL WORLD DAYCARE - ACCESSIBLE STYLESHEET
   WCAG 2.1 AA Compliant
   ============================================ */

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color System - WCAG AA Compliant */
    --color-primary: #2563eb;        /* Blue - 4.5:1 contrast on white */
    --color-primary-dark: #1e40af;   /* Darker blue for hover states */
    --color-secondary: #047C56;      /* Green - accessible contrast */
    --color-accent: #f59e0b;         /* Amber for highlights */
    
    /* RGB values for opacity support */
    --color-primary-rgb: 37, 99, 235;
    --color-secondary-rgb: 5, 150, 105;
    
    --color-text: #1f2937;           /* Dark gray for body text */
    --color-text-light: #4b5563;     /* Lighter gray for secondary text */
    --color-background: #ffffff;
    --color-background-alt: #f9fafb;
    
    --color-border: #e5e7eb;
    --color-success: #047C56;
    
    /* Typography */
    --font-family: Lato, HelveticaNeue, "Helvetica Neue", Helvetica-Neue, Helvetica, Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 12px;
    --border-radius-nav: 5px;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Default link styling for content areas */
a {
    color: var(--color-primary);
    text-decoration: underline;
}

a:hover,
a:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Remove underline from navigation, buttons, and cards */
.main-nav a,
.btn,
.feature-card a,
.goal-card a,
.classroom-card a,
.logo a {
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus {
    text-decoration: none;
}

h2 {
    margin-bottom: var(--spacing-sm);
}
h3 {
    margin-bottom: var(--spacing-xs);
}

/* ============================================
   ACCESSIBILITY UTILITIES
   ============================================ */

/* Skip to main content link - appears on keyboard focus */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-primary);
    color: white !important;
    padding: 8px 16px;
    text-decoration: none !important;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    color: white !important;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus styles for keyboard navigation */
*:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #0000ff;
        --color-text: #000000;
        --color-border: #000000;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   LAYOUT & CONTAINER
   ============================================ */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   COMMON PATTERNS & UTILITIES
   ============================================ 
   
   This section consolidates repeated patterns throughout the stylesheet
   to reduce redundancy and improve maintainability:
   
   - Shared border-radius and box-shadow for cards and containers
   - Consistent heading styles (h3) across special sections
   - Universal transition timing for interactive elements
   - Common padding and spacing patterns
   
   Elements using these shared styles:
   - Cards: .card, .hours-card, .goal-card, .classroom-card
   - Columns: .two-column-layout .column, .three-column-layout .column
   - Interactive: buttons, links, dropdowns
   ============================================ */

/* Shared card/box styling - Applied to: .card, .hours-card, columns */
.card,
.hours-card,
.two-column-layout .column,
.three-column-layout .column,
.schedule-note {
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Shared heading styles in special sections */
.two-column-layout h3,
.three-column-layout h3,
.goal-card h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

/* Smooth transitions for interactive elements */
.btn,
.nav-list a,
.dropdown-menu a,
.feature-card,
.goal-card,
.classroom-card,
.back-to-top {
    transition: all 0.2s ease;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--color-background);
    border-bottom: 2px solid var(--color-border);
    padding: var(--spacing-xs) 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
}

.logo a {
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 60px;
    width: auto;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--color-primary);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle .hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    margin: 5px 0;
}

/* Navigation */
.main-nav > ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
}

.main-nav a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    border-radius: var(--border-radius-nav);
}

.main-nav a:hover {
    background: var(--color-primary);
    color: white;
}

.main-nav a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.main-nav a[aria-current="page"] {
    background: var(--color-primary);
    color: white;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.has-dropdown > a::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 0.4em;
    display: inline-block;
}

.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 100;
    margin-top: 0;
    padding-top: 4px;
    list-style: none;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.has-dropdown:focus-within .dropdown-menu,
.dropdown-menu.show {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-sm);
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.dropdown-menu li:first-child a {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.dropdown-menu li:last-child a {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.dropdown-menu li:first-child:last-child a {
    border-radius: var(--border-radius);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: var(--color-background-alt);
    color: var(--color-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: url('../images/hero1.jpg') center/cover no-repeat;
    color: white;
    padding: var(--spacing-2xl) 0;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.95) 0%, rgba(var(--color-secondary-rgb), 0.95) 100%);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border: 2px solid white;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--color-primary-dark);
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--color-background-alt);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ensure buttons never have underlines */
.btn:hover,
.btn:focus {
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
}

/* Mission Section */
.mission-section {
    background: var(--color-background-alt);
}

.mission-text {
    font-size: 1.125rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text-light);
}

/* Shared Grid and Card Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.card {
    background: var(--color-background);
    padding: var(--spacing-lg);
}

/* Goals Grid */
.goal-card {
    text-align: center;
}

.goal-icon {
    font-size: 1.75em;
    margin-left: 0.25em;
    display: inline-block;
}

.goal-card p {
    color: var(--color-text-light);
}

/* Features Section */
.features-section {
    background: var(--color-background-alt);
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-icon {
    font-size: 1.5em;
    margin-left: 0.25em;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.feature-card p {
    color: var(--color-text-light);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.cta-text {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    opacity: 0.95;
}

/* Quick Info Section */
.quick-info {
    background: var(--color-background-alt);
}

.info-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.info-card p,
.info-card address {
    font-style: normal;
    color: var(--color-text-light);
}

.info-card a {
    color: var(--color-primary);
    text-decoration: underline;
}

.info-card a:hover,
.info-card a:focus {
    color: var(--color-primary-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: url('../images/blackboard.jpg') center bottom/cover no-repeat;
    color: white;
    padding: var(--spacing-2xl) 0 120px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.footer-section h3:not(:first-child) {
    margin-top: var(--spacing-xl);
}

.footer-section p {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.footer-logos {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-logos img {
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-logos a:hover img {
    opacity: 1;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a,
.footer-section p a,
.social-link {
    color: white;
    text-decoration: underline;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-links a:hover,
.footer-links a:focus,
.footer-section p a:hover,
.footer-section p a:focus,
.social-link:hover,
.social-link:focus {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    text-align: center;
    margin-bottom: 30px;
}

.footer-bottom p {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.footer-meta {
    font-size: 0.875rem;
    margin-top: var(--spacing-sm);
    color: white;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 50%;
        max-width: 400px;
        height: 100vh;
        background: var(--color-background);
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 80px;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .main-nav > ul {
        flex-direction: column;
        padding: var(--spacing-lg);
    }
    
    .main-nav > ul > li {
        margin-bottom: 0;
        border-bottom: 1px solid var(--color-border);
    }
    
    .main-nav > ul > li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        padding: var(--spacing-md) var(--spacing-sm);
        font-size: 1.125rem;
        display: block;
        transition: background 0.2s ease, padding-left 0.2s ease;
    }
    
    .main-nav > ul > li > a {
        font-weight: 600;
    }
    
    .main-nav a:hover,
    .main-nav a:focus {
        background: var(--color-background-alt);
        color: var(--color-primary);
        padding-left: var(--spacing-md);
    }
    
    /* Remove dropdown arrow on mobile */
    .has-dropdown > a::after {
        display: none;
    }
    
    /* Mobile dropdown styles - always visible */
    .dropdown-menu {
        position: static;
        display: block !important;
        border: none;
        box-shadow: none;
        background: var(--color-background-alt);
        margin: 0;
        padding: var(--spacing-xs) 0;
        border-top: 1px solid var(--color-border);
    }
    
    .dropdown-menu li {
        margin-bottom: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu a {
        padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) var(--spacing-xl);
        font-size: 1rem;
        color: var(--color-text-light);
        font-weight: 400;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a:focus {
        background: var(--color-background);
        color: var(--color-primary);
        padding-left: calc(var(--spacing-xl) + var(--spacing-xs));
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a:focus {
        background: var(--color-primary);
        color: white;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
    background: var(--color-secondary);
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity 0.1s ease;
        transform: none;
    }
    
    .back-to-top:hover,
    .back-to-top:focus {
        transform: none;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

/* ============================================
   PAGE-SPECIFIC STYLES
   ============================================ */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

/* Hero with background image */
.page-hero.hero-with-image {
    position: relative;
    padding: var(--spacing-2xl) 0;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero.hero-with-image .hero-content {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.95) 0%, rgba(var(--color-secondary-rgb), 0.95) 100%);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-hero.hero-with-image h1 {
    margin-bottom: var(--spacing-sm);
}

.page-hero.hero-with-image .page-subtitle {
    margin-bottom: 0;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Content Wrapper */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper p {
    margin-bottom: var(--spacing-md);
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.classroom-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.classroom-images img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.center-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
}

/* About Page */
.hours-section {
    background: var(--color-background-alt);
}

.hours-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--color-background);
    padding: var(--spacing-xl);
    text-align: center;
}

.hours-main {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.hours-time {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 600;
}

.hours-note {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.facility-section {
    background: var(--color-background-alt);
}

.facility-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.facility-list li {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    background: var(--color-background);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-primary);
}

.facility-list li::before {
    content: "✓ ";
    color: var(--color-success);
    font-weight: bold;
    margin-right: var(--spacing-xs);
}

/* Forms Page */
.forms-content {
    padding: var(--spacing-2xl) 0;
}

.forms-two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    align-items: start;
}

.forms-column h2 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    font-size: 1.25rem;
}

.forms-column h2:not(:first-child) {
    margin-top: var(--spacing-xl);
}

.forms-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--color-text);
}

.forms-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.forms-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.forms-card-content {
    flex: 1;
}

.forms-card h3 {
    margin: 0 0 var(--spacing-xs);
    color: var(--color-primary);
    font-size: 1rem;
}

.forms-card .card-link {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.forms-card:hover .card-link {
    text-decoration: underline;
}

.forms-list {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-xl);
}

.forms-list li {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
    position: relative;
}

.forms-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.forms-list a {
    color: var(--color-primary);
    text-decoration: none;
    display: inline-block;
    padding: var(--spacing-xs) 0;
}

.forms-list a:hover {
    text-decoration: underline;
    color: var(--color-accent);
}

/* Programs Page */
.program-card {
    background: var(--color-background);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.program-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--color-border);
}

.program-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.program-card h3 {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.program-age {
    font-size: 1.125rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.program-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.program-content ul {
    list-style: none;
    padding-left: 0;
}

.program-content li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-lg);
    position: relative;
}

.program-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

/* Contact Page */
/* Embedded Form Section */
.embedded-form-section {
    background: var(--color-background-alt);
    padding: var(--spacing-xl) 0;
}

.embedded-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-background);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.embedded-form-wrapper h2 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.embedded-form-wrapper .form-intro {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.embedded-form-wrapper iframe {
    border-radius: var(--border-radius);
}

/* FormSite embedded form overrides */
.embedded-form-wrapper iframe .submit_button,
.embedded-form-wrapper iframe #FSsubmit {
    background: var(--color-primary) !important;
    color: white !important;
    border: 2px solid var(--color-primary) !important;
    border-radius: var(--border-radius) !important;
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.embedded-form-wrapper iframe .submit_button:hover,
.embedded-form-wrapper iframe #FSsubmit:hover {
    background: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

.embedded-form-wrapper iframe .submit_button:focus,
.embedded-form-wrapper iframe #FSsubmit:focus {
    outline: 3px solid var(--color-primary) !important;
    outline-offset: 2px !important;
    background: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
}

.contact-info {
    padding: var(--spacing-2xl) 0;
}

.card.contact-card {
    text-align: center;
    padding: var(--spacing-md);
}

.contact-card a {
    color: var(--color-primary);
    text-decoration: underline;
}

.contact-card a:hover,
.contact-card a:focus {
    color: var(--color-primary-dark);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.map-section {
    background: var(--color-background-alt);
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Classrooms Landing Page */
.form-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.form-card p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

/* Classrooms Landing Page */
.classroom-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.classroom-link-card {
    overflow: hidden;
}

.classroom-link-card a {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    text-align: center;
}

.classroom-link-card a:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: -3px;
}

.classroom-link-card:hover,
.classroom-link-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.classroom-link-card .classroom-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.classroom-link-card h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.classroom-age {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.classroom-description {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.learn-more {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: var(--spacing-sm);
}

/* Individual Classroom Pages */
.breadcrumb {
    background: var(--color-background-alt);
    padding: var(--spacing-sm) 0;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: var(--spacing-sm);
    color: var(--color-text-light);
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: var(--color-text);
    font-weight: 500;
}

.classroom-icon-large {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.classroom-details {
    padding: var(--spacing-2xl) 0;
}

.classroom-features {
    background: var(--color-background-alt);
}

.two-column-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.two-column-layout .column {
    padding: var(--spacing-lg);
    background: #ffffff;
    border: 1px solid var(--color-border);
}

.two-column-layout .column ul {
    color: var(--color-text);
}

.three-column-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.three-column-layout .column {
    padding: var(--spacing-lg);
    background: var(--color-background-alt);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: var(--spacing-xs) 0 var(--spacing-xs) var(--spacing-lg);
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

.daily-schedule {
    background: var(--color-background);
}

.schedule-note {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--color-background-alt);
    margin-bottom: var(--spacing-xl);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.schedule-item {
    background: var(--color-background-alt);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-primary);
}

.schedule-item strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.schedule-item p {
    color: var(--color-text-light);
}

/* Print styles for accessibility */
@media print {
    .skip-link,
    .mobile-menu-toggle,
    .hero-actions,
    .cta-section {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
}
