/* ============================================================
DE DOORNS PRIMARY SCHOOL
RESPONSIVE STYLESHEET
Desktop → Tablet → Mobile
============================================================ */

/* ============================================================
LARGE TABLETS / SMALL LAPTOPS
Maximum width: 1100px
============================================================ */

@media (max-width: 1100px) {

```
/* Navigation */

.navigation {
    gap: 15px;
}

.main-nav {
    gap: 0;
}

.nav-link {
    padding-left: 7px;
    padding-right: 7px;
    font-size: 11px;
}

.nav-link::after {
    left: 7px;
    right: 7px;
}

.nav-link.nav-contact {
    margin-left: 4px;
    padding-left: 12px;
    padding-right: 12px;
}


/* Hero */

.hero h1 {
    font-size: clamp(42px, 6vw, 65px);
}


/* Two-column sections */

.two-column {
    gap: 50px;
}


/* Quick information */

.info-card {
    padding: 20px 15px;
    gap: 12px;
}

.info-icon {
    width: 45px;
    height: 45px;
    flex-basis: 45px;
    font-size: 16px;
}


/* Footer */

.footer-grid {
    gap: 30px;
}
```

}

/* ============================================================
TABLETS
Maximum width: 900px
============================================================ */

@media (max-width: 900px) {

```
/* Top bar */

.top-bar-content {
    justify-content: center;
}

.top-bar-item:nth-child(2) {
    display: none;
}


/* Header */

.navigation {
    min-height: 78px;
}

.mobile-menu-toggle {
    display: block;
    position: relative;
    z-index: 1100;
}

.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    max-height: 0;
    overflow: hidden;

    background: var(--white);
    box-shadow: var(--shadow-md);

    opacity: 0;
    visibility: hidden;

    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.main-nav.open {
    max-height: 650px;
    opacity: 1;
    visibility: visible;
}

.nav-link {
    width: 100%;
    padding: 14px 25px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.nav-link::after {
    display: none;
}

.nav-link.nav-contact {
    margin: 12px 20px 20px;
    width: auto;
    text-align: center;
}


/* Hero */

.hero {
    height: 680px;
    min-height: 600px;
}

.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(8, 28, 44, 0.92) 0%,
            rgba(8, 28, 44, 0.65) 65%,
            rgba(8, 28, 44, 0.25) 100%
        );
}

.hero-text {
    max-width: 650px;
}

.hero h1 {
    font-size: clamp(42px, 8vw, 62px);
}

.hero-control {
    width: 42px;
    height: 42px;
}

.hero-prev {
    left: 15px;
}

.hero-next {
    right: 15px;
}


/* General sections */

.section-padding {
    padding: 80px 0;
}


/* Two-column layout */

.two-column {
    grid-template-columns: 1fr;
    gap: 50px;
}

.two-column.reverse-mobile .section-image {
    order: -1;
}

.section-image {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
}

.image-frame img {
    height: 430px;
}


/* Quick information */

.quick-info-grid {
    grid-template-columns: repeat(2, 1fr);
}

.info-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.info-card:nth-child(2) {
    border-right: 0;
}

.info-card:nth-child(3),
.info-card:nth-child(4) {
    border-bottom: 0;
}


/* Values */

.value-grid {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin: 0 auto;
}


/* Calendar */

.terms-grid {
    grid-template-columns: repeat(2, 1fr);
}


/* Gallery */

.gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 250px 250px;
}

.gallery-item.gallery-large {
    grid-column: span 2;
    grid-row: span 1;
}


/* CTA */

.cta-content {
    flex-direction: column;
    align-items: flex-start;
}


/* Footer */

.footer-grid {
    grid-template-columns: repeat(2, 1fr);
}
```

}

/* ============================================================
MOBILE LANDSCAPE / LARGE PHONES
Maximum width: 700px
============================================================ */

@media (max-width: 700px) {

```
/* Top bar */

.top-bar-content {
    min-height: 34px;
}

.top-bar-item {
    font-size: 10px;
}


/* Brand */

.logo-wrapper {
    width: 48px;
    height: 48px;
}

.school-name-main {
    font-size: 15px;
}

.school-name-sub {
    font-size: 8px;
    letter-spacing: 1.5px;
}


/* Hero */

.hero {
    height: 650px;
    min-height: 600px;
}

.hero-slide {
    background-position: center center;
}

.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(8, 28, 44, 0.94),
            rgba(8, 28, 44, 0.65)
        );
}

.hero-content {
    align-items: center;
}

.hero-text {
    padding: 30px 0 60px;
}

.hero-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(38px, 10vw, 54px);
}

.hero-motto {
    font-size: 17px;
}

.hero-description {
    font-size: 13px;
    max-width: 500px;
}

.hero-buttons {
    gap: 8px;
}

.btn {
    min-height: 44px;
    padding: 10px 17px;
    font-size: 10px;
}

.hero-control {
    display: none;
}

.hero-dots {
    bottom: 25px;
}

.scroll-indicator {
    display: none;
}


/* Sections */

.section-padding {
    padding: 65px 0;
}

.section-heading {
    margin-bottom: 35px;
}

.section-heading h2,
.section-content h2 {
    font-size: 34px;
}

.section-heading p {
    font-size: 13px;
}


/* Welcome */

.image-accent {
    left: -10px;
    bottom: -10px;
    width: 100px;
    height: 100px;
}

.image-frame img {
    height: 350px;
}

.section-content .lead {
    font-size: 16px;
}


/* Quick info */

.info-card {
    min-height: 115px;
    padding: 18px 14px;
}

.info-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 14px;
}

.info-label {
    font-size: 8px;
}

.info-card h3 {
    font-size: 12px;
}


/* Calendar */

.calendar-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
}

.calendar-header h2 {
    font-size: 35px;
}

.terms-grid {
    grid-template-columns: 1fr;
}

.term-card {
    min-height: 120px;
}


/* Staff */

.staff-message {
    padding: 40px 25px;
}

.staff-message h3 {
    font-size: 26px;
}


/* Gallery */

.gallery-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
}

.gallery-heading h2 {
    font-size: 35px;
}

.gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 250px);
}

.gallery-item.gallery-large {
    grid-column: auto;
}


/* CTA */

.contact-cta {
    padding: 60px 0;
}

.cta-content h2 {
    font-size: 35px;
}


/* Footer */

.footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 55px 0 40px;
}

.footer-description {
    max-width: 450px;
}

.footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    font-size: 9px;
}
```

}

/* ============================================================
SMALL PHONES
Maximum width: 480px
============================================================ */

@media (max-width: 480px) {

```
/* Header */

.navigation {
    min-height: 70px;
}

.school-brand {
    gap: 8px;
}

.logo-wrapper {
    width: 42px;
    height: 42px;
}

.school-name-main {
    font-size: 13px;
}

.school-name-sub {
    font-size: 7px;
    letter-spacing: 1px;
}

.mobile-menu-toggle {
    width: 40px;
    height: 40px;
}


/* Hero */

.hero {
    height: 600px;
    min-height: 560px;
}

.hero-text {
    padding-bottom: 35px;
}

.hero h1 {
    font-size: 40px;
}

.hero-motto {
    font-size: 15px;
}

.hero-description {
    font-size: 12px;
    line-height: 1.6;
}

.hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 250px;
}

.hero-buttons .btn {
    width: 100%;
}


/* Sections */

.section-padding {
    padding: 55px 0;
}

.section-heading h2,
.section-content h2 {
    font-size: 30px;
}


/* Quick information */

.quick-info-grid {
    grid-template-columns: 1fr;
}

.info-card,
.info-card:nth-child(3),
.info-card:nth-child(4) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.info-card:last-child {
    border-bottom: 0;
}


/* Images */

.image-frame img {
    height: 300px;
}


/* Values */

.value-card {
    padding: 30px 24px;
}


/* Calendar */

.calendar-header h2 {
    font-size: 31px;
}


/* Gallery */

.gallery-grid {
    grid-template-rows: repeat(4, 220px);
}


/* CTA */

.cta-content h2 {
    font-size: 30px;
}


/* Footer */

.footer-brand img {
    width: 48px;
    height: 48px;
}
```

}

/* ============================================================
REDUCED MOTION
Respect users who prefer less animation.
============================================================ */

@media (prefers-reduced-motion: reduce) {

```
*,
*::before,
*::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}
```

}

/* ============================================================
   VISION, MISSION & CORE VALUES - MOBILE
   ============================================================ */

@media (max-width: 992px) {

    .core-values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 768px) {

    .vision-mission-grid {
        grid-template-columns: 1fr;
    }


    .vision-card,
    .mission-card {
        padding: 30px 25px;
    }


    .core-values-section {
        margin-top: 55px;
    }


    .core-values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }


    .core-value-card {
        min-height: 110px;
        padding: 20px 10px;
    }

}


@media (max-width: 480px) {

    .core-values-grid {
        grid-template-columns: 1fr 1fr;
    }


    .core-value-card span {
        font-size: 14px;
    }

}

/* ============================================================
   MOBILE NAVIGATION DROPDOWNS
   ============================================================ */

@media (max-width: 768px) {

    .nav-dropdown {
        width: 100%;
    }


    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        text-align: left;
    }


    .dropdown-menu {
        position: static;

        width: 100%;

        min-width: 0;

        border-top: none;
        border-left: 3px solid var(--red);

        border-radius: 0;

        box-shadow: none;

        padding: 0;

        display: none;

        opacity: 1;
        visibility: visible;

        transform: none;
    }


    .nav-dropdown.open .dropdown-menu {
        display: block;
    }


    .nav-dropdown.open .dropdown-toggle i {
        transform: rotate(180deg);
    }


    .dropdown-menu a {
        padding: 11px 20px 11px 30px;

        background: rgba(255, 255, 255, 0.04);
    }

}

/* ============================================================
   ABOUT US PAGE - RESPONSIVE
   ============================================================ */


@media (max-width: 992px) {

    .about-facts-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .about-values-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


@media (max-width: 768px) {

    .inner-page-hero {
        min-height: 360px;
    }


    .inner-page-content {
        padding-top: 50px;
        padding-bottom: 50px;
    }


    .inner-page-content h1 {
        font-size: 45px;
    }


    .inner-page-content p {
        font-size: 16px;
    }


    .about-facts-grid {
        grid-template-columns: 1fr;
    }


    .about-fact-card {
        min-height: 175px;
    }


    .about-vision-card,
    .about-mission-card {

        grid-template-columns: 1fr;

        padding: 30px 25px;

        gap: 20px;

    }


    .about-vm-icon {
        width: 58px;
        height: 58px;
    }


    .about-vision-card h3,
    .about-mission-card h3 {
        font-size: 23px;
    }


    .about-values-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 14px;
    }


    .about-value-card {
        min-height: 120px;
    }

}


@media (max-width: 480px) {

    .inner-page-hero {
        min-height: 320px;
    }


    .inner-page-content h1 {
        font-size: 38px;
    }


    .about-values-grid {
        grid-template-columns:
            1fr 1fr;
    }


    .about-value-card span {
        font-size: 13px;
    }

}