/* ============================================
   Windsor Academy - Modern Navy & White Theme
   ============================================ */
:root {
    --navy: #0A2540;
    --navy-dark: #061628;
    --navy-light: #143A5C;
    --white: #FFFFFF;
    --off-white: #F7F9FC;
    --light-gray: #E8EEF4;
    --medium-gray: #6B7C8F;
    --text: #1A2B3C;
    --text-light: #4A5B6C;
    --border: #D0D9E4;
    --shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 12px 40px rgba(10, 37, 64, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--navy-light);
}

ul,
ol {
    list-style: none;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ========== LAYOUT ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3.5rem 0;
}

.bg-navy {
    background: var(--navy);
    color: var(--white);
}

.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy p {
    color: var(--white);
}

.bg-off {
    background: var(--off-white);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-primary:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

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

.btn-white {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

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

.btn-lg {
    padding: 1.1rem 2.25rem;
    font-size: 1.1rem;
}

/* ========== HEADER ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(10, 37, 64, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.logo img {
    height: 56px;
    width: auto;
    display: block;
}

.footer .logo img {
    height: 50px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
}

.nav a:hover,
.nav a.active {
    color: var(--navy);
}

.nav-cta {
    display: flex;
    gap: 0.75rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.25rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-item h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-item p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* ========== VALUE CARDS ========== */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(10, 37, 64, 0.14);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--off-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.value-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.value-card p {
    font-size: 0.95rem;
    margin: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: none;

    /* remove the previous 700px limit */
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-logo img {
    max-width: 380px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.35));
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-logo {
        order: -1;

        /* logo on top on mobile */
        margin-bottom: 1.5rem;
    }

    .hero-logo img {
        max-width: 260px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }
}

/* ========== TWO COLUMN ========== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-col.reverse {
    direction: rtl;
}

.two-col.reverse > * {
    direction: ltr;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.img-placeholder {
    background: var(--light-gray);
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    font-weight: 500;
    border: 1px solid var(--border);
}

/* ========== FEATURES / ACADEMICS ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--navy);
    box-shadow: var(--shadow);
}

.feature-card h3 {
    margin: 1rem 0 0.5rem;
}

/* ========== CTA BAND ========== */
.cta-band {
    background: var(--navy);
    padding: 4.5rem 0;
    text-align: center;
}

.cta-band h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-band p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ========== TESTIMONIALS ========== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.testimonial-author {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.footer a {
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

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

.footer-brand p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    max-width: 280px;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-contact {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
    background: var(--navy);
    padding: 4rem 0 3.5rem;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.page-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== ADMISSIONS TABLE ========== */
.tuition-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tuition-table th,
.tuition-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.tuition-table th {
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
}

.tuition-table tr:last-child td {
    border-bottom: none;
}

.tuition-table tr:hover td {
    background: var(--off-white);
}

/* ========== PROCESS STEPS ========== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    position: relative;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* ========== CONTACT ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item strong {
    display: block;
    color: var(--navy);
    margin-bottom: 0.15rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .two-col,
    .two-col.reverse,
    .feature-grid,
    .footer-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .header-inner {
        height: 76px;
    }

    .logo img {
        height: 46px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 4rem 0 3.5rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .value-grid {
        margin-top: -2rem;
    }

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

/* Mobile nav open state (simple) */
.nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 1rem;
}

.nav.open .nav-cta {
    flex-direction: column;
    width: 100%;
}

/* ========== ACADEMIC CALENDAR ========== */
.calendar-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.cal-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--navy);
    color: var(--white);
}

.cal-header h2 {
    color: var(--white);
    font-size: 1.25rem;
    margin: 0;
}

.cal-nav-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cal-nav-btn:hover {
    background: rgba(255,255,255,0.22);
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
}

.cal-weekdays span {
    text-align: center;
    padding: 0.75rem 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    padding: 1px;
}

.cal-day {
    background: var(--white);
    min-height: 72px;
    padding: 0.4rem;
    position: relative;
    cursor: default;
}

.cal-day.empty {
    background: var(--off-white);
}

.cal-day-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.cal-day.today .cal-day-num {
    background: var(--navy);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.cal-event-dot {
    display: block;
    width: 100%;
    font-size: 0.65rem;
    line-height: 1.3;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.cal-event-dot.holiday {
    background: #FEE2E2;
    color: #991B1B;
}

.cal-event-dot.break {
    background: #DBEAFE;
    color: #1E40AF;
}

.cal-event-dot.academic {
    background: #D1FAE5;
    color: #065F46;
}

.cal-event-dot.office {
    background: #F3F4F6;
    color: #4B5563;
}

.cal-event-dot.special {
    background: #EDE9FE;
    color: #5B21B6;
}

.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 0;
}

.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.cal-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.cal-legend-swatch.holiday {
    background: #FECACA;
}

.cal-legend-swatch.break {
    background: #BFDBFE;
}

.cal-legend-swatch.academic {
    background: #A7F3D0;
}

.cal-legend-swatch.office {
    background: #D1D5DB;
}

.cal-legend-swatch.special {
    background: #DDD6FE;
}

.event-list {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: 640px;
    overflow-y: auto;
}

.event-list-header {
    padding: 1.25rem 1.5rem;
    background: var(--navy);
    color: var(--white);
    position: sticky;
    top: 0;
}

.event-list-header h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.1rem;
}

.event-item {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.75rem;
    align-items: start;
}

.event-item:last-child {
    border-bottom: none;
}

.event-item:hover {
    background: var(--off-white);
}

.event-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.event-title {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.event-type-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.event-type-tag.holiday {
    background: #FEE2E2;
    color: #991B1B;
}

.event-type-tag.break {
    background: #DBEAFE;
    color: #1E40AF;
}

.event-type-tag.academic {
    background: #D1FAE5;
    color: #065F46;
}

.event-type-tag.office {
    background: #F3F4F6;
    color: #4B5563;
}

.event-type-tag.special {
    background: #EDE9FE;
    color: #5B21B6;
}

.cal-selected-info {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    min-height: 60px;
}

.cal-selected-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.cal-selected-info p {
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 900px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }

    .cal-day {
        min-height: 56px;
    }

    .cal-event-dot {
        font-size: 0.6rem;
    }

    .event-list {
        max-height: 420px;
    }
}

@media (max-width: 600px) {
    .cal-day {
        min-height: 48px;
        padding: 0.25rem;
    }

    .cal-event-dot {
        display: none;
    }

    .cal-day.has-events::after {
        content: '';
        display: block;
        width: 6px;
        height: 6px;
        background: var(--navy);
        border-radius: 50%;
        margin: 2px auto 0;
    }

    .event-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}
