/* ========================================
   MR MATTHEW'S MUSIC
   Music National Park Theme
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');


/* ========================================
   BASIC RESET
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    background-color: #f4f0e6;
    color: #253126;
    line-height: 1.6;
}


/* ========================================
   HEADER
======================================== */

.site-header {
    background-color: #183c2c;
    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px 6%;

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}


/* ---------- LOGO ---------- */

.logo-area {
    display: flex;
    align-items: center;

    text-decoration: none;

    flex-shrink: 0;
}

.header-logo {
    display: block;

    width: auto;
    height: 150px;

    max-width: 400px;
}


/* ---------- NAVIGATION ---------- */

.main-nav {
    display: flex;
    align-items: center;

    gap: 30px;
}

.main-nav a {
    color: white;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.main-nav a:hover {
    color: #e6c979;

    transform: translateY(-2px);
}


/* ========================================
   HOME PAGE HERO
======================================== */

.hero {
    min-height: 620px;

    background-image:
        linear-gradient(
            rgba(20, 45, 32, 0.15),
            rgba(20, 45, 32, 0.25)
        ),
        url("images/MusicNationalParkBackground.svg");

    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px 7%;
}


/* ========================================
   HOME PAGE CARDS
======================================== */

.hero-cards {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 28px;
}

.home-card {
    min-height: 300px;

    background-color: rgba(250, 244, 226, 0.96);

    border: 4px solid #183c2c;
    border-radius: 18px;

    text-decoration: none;

    color: #183c2c;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 35px 25px;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.home-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 16px 35px rgba(0, 0, 0, 0.32);

    background-color: #fffaf0;
}

.home-card-icon {
    font-size: 72px;

    margin-bottom: 22px;
}

.home-card h2 {
    font-size: 32px;

    text-transform: uppercase;

    letter-spacing: 2px;

    margin-bottom: 24px;

    color: #183c2c;
}

.home-card-arrow {
    width: 54px;
    height: 54px;

    border-radius: 50%;

    background-color: #e09f13;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
    font-weight: 700;

    color: #183c2c;
}


/* ========================================
   SMALL LABEL
======================================== */

.small-label {
    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;

    color: #a76c28;

    text-transform: uppercase;

    margin-bottom: 5px;
}


/* ========================================
   FOOTER
======================================== */

footer {
    background-color: #10281d;

    color: white;

    text-align: center;

    padding: 25px 20px;

    font-size: 13px;

    letter-spacing: 1px;
}

.footer-tagline {
    margin-top: 6px;

    color: #dbbd70;
}


/* =====================================================
   SCHEDULE PAGE
===================================================== */

.lesson-page {
    min-height: calc(100vh - 100px);

    background-image:
        linear-gradient(
            rgba(20, 45, 32, 0.10),
            rgba(20, 45, 32, 0.22)
        ),
        url("images/MusicNationalParkBackground.svg");

    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;

    padding: 0;
}

.lesson-page-overlay {
    min-height: calc(100vh - 100px);

    padding: 55px 6%;
}

.lesson-dashboard {
    max-width: 1180px;

    margin: 0 auto;
}


/* ========================================
   SCHEDULE TOP CARDS
======================================== */

.lesson-top-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;

    margin-bottom: 28px;
}

.week-card,
.date-card {
    background-color: rgba(250, 244, 226, 0.97);

    border: 4px solid #183c2c;

    border-radius: 18px;

    padding: 28px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.20);

    text-align: center;
}

.week-card h1 {
    font-size: 46px;

    color: #183c2c;

    line-height: 1.1;
}

.date-card h2 {
    font-size: 25px;

    color: #183c2c;

    line-height: 1.3;
}

#rotation-day {
    margin-top: 8px;

    font-weight: 800;

    color: #a76c28;

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* ========================================
   DAILY SCHEDULE
======================================== */

.daily-schedule-panel {
    background-color: rgba(250, 244, 226, 0.97);

    border: 4px solid #183c2c;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.24);

    margin-bottom: 28px;
}

.schedule-title-area {
    background-color: #183c2c;

    padding: 26px 30px 22px;

    border-bottom: 5px solid #d59b32;
}

.schedule-title-area .small-label {
    color: #e8c77c;
}

.schedule-title-area h2 {
    font-size: 32px;

    color: #fff4d6;
}

.lesson-schedule-list {
    width: 100%;
}

.lesson-schedule-row {
    display: grid;

    grid-template-columns:
        180px
        180px
        1fr;

    align-items: center;

    gap: 20px;

    padding: 20px 30px;

    border-bottom: 1px solid #d8ceb7;
}

.lesson-schedule-row:last-child {
    border-bottom: none;
}

.lesson-time {
    font-weight: 700;

    color: #6a5b3d;
}

.lesson-grade {
    font-weight: 800;

    color: #183c2c;
}

.lesson-class {
    color: #4d564f;

    font-weight: 600;
}

.prep-row {
    background-color:
        rgba(224, 159, 19, 0.12);
}


/* ========================================
   NO SCHOOL MESSAGE
======================================== */

.no-school-message {
    display: none;
}

.no-school-day .no-school-message {
    display: block;

    width: 100%;
    max-width: 1180px;

    margin: 0 auto 28px;

    padding: 32px;

    text-align: center;

    background-color:
        rgba(250, 244, 226, 0.98);

    border: 4px solid #183c2c;

    border-radius: 20px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.22);
}

.no-school-icon {
    font-size: 44px;

    margin-bottom: 5px;
}

.no-school-message h2 {
    color: #183c2c;

    font-size: 34px;

    margin-bottom: 6px;
}

.no-school-message p:last-child {
    color: #625c4c;
}


/* ========================================
   WEEKEND / NO SCHOOL REFERENCE
======================================== */

.reference-schedules {
    display: none;
}

.no-school-day .reference-schedules {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 28px;

    width: 100%;
    max-width: 1180px;

    margin: 0 auto 28px;
}

.reference-card {
    background-color: #f7efd9;

    border: 4px solid #183c2c;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.24);
}

.reference-title-bar {
    background-color: #183c2c;

    color: white;

    display: flex;

    align-items: center;

    gap: 15px;

    min-height: 92px;

    padding: 18px 22px;

    border-bottom: 5px solid #e09f13;
}

.reference-title-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background-color: #e09f13;

    border-radius: 50%;

    font-size: 26px;
}

.reference-eyebrow {
    color: #e8c77c;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;

    margin-bottom: 2px;
}

.reference-title-bar h2 {
    color: #fff4d6;

    font-size: 25px;

    line-height: 1.15;

    margin: 0;
}


/* ========================================
   REFERENCE TABLE
======================================== */

.reference-table {
    padding: 18px;
}

.reference-header,
.reference-row {
    display: grid;

    grid-template-columns:
        70px
        minmax(80px, 1fr)
        minmax(80px, 1fr)
        minmax(90px, 1fr);

    align-items: center;

    gap: 8px;
}

.reference-header {
    background-color: #e09f13;

    color: #173226;

    border-radius: 8px;

    padding: 11px 10px;

    margin-bottom: 5px;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}

.reference-row {
    min-height: 48px;

    padding: 8px 10px;

    color: #34453a;

    border-bottom:
        1px solid #d8c9a7;

    font-size: 13px;
}

.reference-row:nth-child(odd) {
    background-color:
        rgba(24, 60, 44, 0.05);
}

.reference-row:last-child {
    border-bottom: none;
}

.day-badge {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    background-color: #183c2c;

    color: #fff4d6;

    border-radius: 50%;

    font-size: 14px;

    box-shadow:
        0 3px 7px rgba(0, 0, 0, 0.16);
}

.weekday-label {
    color: #a5671f;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.no-school-day .daily-schedule-panel {
    display: none;
}

.no-school-day #rotation-day {
    display: none;
}


/* =====================================================
   WEEKLY LESSON PLANS PAGE
===================================================== */

.lesson-gallery-page {
    min-height: calc(100vh - 100px);

    background-image:
        linear-gradient(
            rgba(20, 45, 32, 0.08),
            rgba(20, 45, 32, 0.12)
        ),
        url("images/MusicNationalParkBackground.svg");

    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;

    padding: 0;
}

.lesson-gallery-overlay {
    min-height: calc(100vh - 100px);

    padding: 0 5% 50px;
}

.lesson-gallery-container {
    max-width: 1100px;

    margin: 0 auto;
}


/* ========================================
   LESSON PAGE HEADING
======================================== */

.lesson-gallery-heading {
    max-width: 720px;

    margin: 0 auto 24px;

    padding: 16px 25px;

    text-align: center;

    background-color:
        rgba(250, 244, 226, 0.97);

    border: 3px solid #183c2c;

    border-top: none;

    border-radius:
        0 0 18px 18px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.20);
}

.lesson-gallery-heading .small-label {
    color: #183c2c;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 3px;
}

.lesson-gallery-heading h1 {
    color: #183c2c;

    font-size: 36px;

    line-height: 1.1;

    margin: 0 0 5px;
}

.lesson-gallery-heading p {
    color: #5b5e53;

    font-size: 14px;

    margin: 0;
}


/* ========================================
   LESSON GRID
======================================== */

.lesson-plan-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    max-width: 1000px;

    margin: 0 auto;
}


/* ========================================
   LESSON CARD
======================================== */

.lesson-plan-card {
    background-color:
        rgba(250, 244, 226, 0.98);

    border:
        3px solid #183c2c;

    border-radius: 16px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.lesson-plan-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.28);
}


/* ========================================
   LESSON CARD HEADER
======================================== */

.lesson-card-title {
    min-height: 68px;

    background-color: #183c2c;

    color: white;

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 11px 14px;

    border-bottom:
        4px solid #e09f13;
}

.lesson-grade-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: #e09f13;

    font-size: 21px;
}

.lesson-card-title .small-label {
    color: #f1c35b;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    margin: 0 0 1px;

    text-transform: uppercase;
}

.lesson-card-title h2 {
    color: #fff4d6;

    font-size: 20px;

    line-height: 1.1;

    margin: 0;
}


/* ========================================
   LESSON THUMBNAIL
======================================== */

.lesson-pdf-wrapper {
    padding: 12px 14px;

    background-color: #f6efd9;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-grow: 1;
}

.lesson-thumbnail-link {
    display: block;

    width: 100%;

    text-decoration: none;
}

.lesson-thumbnail {
    display: block;

    width: 100%;
    height: 190px;

    object-fit: contain;

    object-position: center;

    background-color: white;

    border-radius: 8px;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.lesson-thumbnail:hover {
    transform: scale(1.015);

    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.25);
}


/* ========================================
   LESSON OPEN BUTTON
======================================== */

.lesson-view-button {
    display: block;

    margin:
        0 12px 12px;

    padding:
        11px 8px;

    background-color:
        #e09f13;

    color:
        #183c2c;

    text-align:
        center;

    text-decoration:
        none;

    text-transform:
        uppercase;

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        0.4px;

    border-radius:
        7px;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.lesson-view-button:hover {
    background-color:
        #ebc263;

    transform:
        translateY(-2px);
}


/* ========================================
   LESSON LOADING / ERROR
======================================== */

.lesson-loading,
.lesson-load-error {
    grid-column:
        1 / -1;

    max-width: 600px;

    width: 100%;

    margin:
        30px auto;

    padding:
        30px;

    background-color:
        rgba(250, 244, 226, 0.97);

    border:
        3px solid #183c2c;

    border-radius:
        16px;

    text-align:
        center;

    color:
        #183c2c;
}

.lesson-load-error h2 {
    margin-bottom: 10px;
}

.lesson-error-details {
    margin-top: 15px;

    font-size: 13px;

    color: #9a4f2d;
}

.lesson-missing {
    min-height: 190px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 25px;

    text-align: center;

    color: #6a5b3d;
}


/* =====================================================
   CALENDAR BUTTON
===================================================== */

.calendar-button-row {
    display: flex;

    justify-content: center;

    margin: -5px 0 25px;
}

.calendar-button {
    margin-top: 12px;

    padding: 10px 18px;

    border: none;

    border-radius: 8px;

    background-color: #e09f13;

    color: #183c2c;

    font-family: inherit;

    font-size: 13px;

    font-weight: 800;

    text-transform: uppercase;

    cursor: pointer;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.calendar-button:hover {
    background-color: #ebc263;

    transform: translateY(-2px);
}


/* =====================================================
   CALENDAR MODAL
===================================================== */

.calendar-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background-color:
        rgba(8, 25, 18, 0.72);
}

.calendar-modal.calendar-open {
    display: flex;
}

.calendar-no-scroll {
    overflow: hidden;
}


/* =====================================================
   CALENDAR PANEL
===================================================== */

.calendar-panel {
    width: min(620px, 95vw);

    max-height: 90vh;

    overflow-y: auto;

    background-color: #f7efd9;

    border: 4px solid #183c2c;

    border-radius: 20px;

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.45);
}


/* =====================================================
   CALENDAR HEADER
===================================================== */

.calendar-header {
    display: grid;

    grid-template-columns:
        55px
        1fr
        55px;

    align-items: center;

    gap: 10px;

    padding: 18px;

    background-color: #183c2c;

    border-bottom:
        5px solid #e09f13;
}

.calendar-header h2 {
    margin: 0;

    color: #fff4d6;

    text-align: center;

    font-size: 24px;
}

.calendar-nav-button {
    width: 44px;
    height: 44px;

    border: none;

    border-radius: 50%;

    background-color: #e09f13;

    color: #183c2c;

    font-size: 22px;

    font-weight: 800;

    cursor: pointer;
}

.calendar-nav-button:hover {
    background-color: #ebc263;
}

.calendar-nav-button:disabled {
    opacity: 0.35;

    cursor: default;
}


/* =====================================================
   CALENDAR WEEKDAYS
===================================================== */

.calendar-weekdays {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 5px;

    padding:
        16px 15px 5px;
}

.calendar-weekdays span {
    text-align: center;

    color: #183c2c;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;
}


/* =====================================================
   CALENDAR DAYS
===================================================== */

.calendar-days {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 6px;

    padding:
        10px 15px 18px;
}

.calendar-day {
    aspect-ratio: 1 / 1;

    border:
        2px solid transparent;

    border-radius: 10px;

    background-color: #fffaf0;

    color: #183c2c;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.calendar-day:hover {
    transform: translateY(-2px);

    background-color: #f0d692;
}

.calendar-day-empty {
    background: transparent;

    pointer-events: none;
}

.calendar-weekend {
    color: #96714c;
}

.calendar-today {
    border-color: #e09f13;
}

.calendar-selected {
    background-color: #183c2c;

    color: white;
}

.calendar-disabled {
    opacity: 0.25;

    cursor: default;
}


/* =====================================================
   CALENDAR FOOTER
===================================================== */

.calendar-footer {
    display: flex;

    gap: 12px;

    padding:
        0 18px 18px;
}

.calendar-secondary-button,
.calendar-close-button {
    flex: 1;

    padding: 11px 15px;

    border: none;

    border-radius: 8px;

    font-family: inherit;

    font-weight: 800;

    cursor: pointer;
}

.calendar-secondary-button {
    background-color: #e8dfc6;

    color: #183c2c;
}

.calendar-close-button {
    background-color: #183c2c;

    color: white;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .lesson-plan-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        max-width: 720px;
    }

    .lesson-thumbnail {
        height: 220px;
    }

}


@media (max-width: 950px) {

    .site-header {
        flex-direction: column;

        gap: 18px;

        text-align: center;
    }

    .header-logo {
        height: 110px;

        max-width: 320px;
    }

    .main-nav {
        flex-wrap: wrap;

        justify-content: center;

        gap: 15px;
    }

    .hero {
        min-height: 560px;
    }

    .hero-cards {
        grid-template-columns: 1fr;

        max-width: 520px;
    }

    .home-card {
        min-height: 220px;
    }

    .lesson-top-row {
        grid-template-columns: 1fr;
    }

    .week-card,
    .date-card {
        text-align: center;
    }

    .lesson-schedule-row {
        grid-template-columns:
            150px
            150px
            1fr;
    }

    .no-school-day .reference-schedules {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 650px) {

    .site-header {
        padding: 15px 4%;
    }

    .header-logo {
        height: 85px;

        max-width: 240px;
    }

    .main-nav {
        gap: 12px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .hero {
        min-height: auto;

        padding: 30px 4%;
    }

    .hero-cards {
        grid-template-columns: 1fr;

        padding: 0;

        max-width: 420px;
    }

    .home-card {
        min-height: 200px;
    }

    .home-card-icon {
        font-size: 55px;
    }

    .home-card h2 {
        font-size: 27px;
    }

    .lesson-page {
        background-attachment: scroll;
    }

    .lesson-page-overlay {
        padding: 35px 5%;
    }

    .week-card h1 {
        font-size: 38px;
    }

    .date-card h2 {
        font-size: 21px;
    }

    .schedule-title-area h2 {
        font-size: 27px;
    }

    .lesson-schedule-row {
        grid-template-columns: 1fr;

        gap: 4px;

        padding: 18px 22px;
    }

    .lesson-time {
        font-size: 14px;
    }

    .lesson-grade {
        font-size: 20px;
    }

    .no-school-message h2 {
        font-size: 29px;
    }

    .reference-title-bar {
        min-height: 82px;

        padding: 16px 18px;
    }

    .reference-title-icon {
        width: 44px;
        height: 44px;

        font-size: 22px;
    }

    .reference-title-bar h2 {
        font-size: 21px;
    }

    .reference-table {
        padding: 12px;
    }

    .reference-header,
    .reference-row {
        grid-template-columns:
            45px
            1fr
            1fr
            1fr;

        gap: 4px;
    }

    .reference-header {
        font-size: 9px;
    }

    .reference-row {
        font-size: 10px;

        padding: 8px 5px;
    }

    .day-badge {
        width: 29px;
        height: 29px;

        font-size: 12px;
    }


    /* LESSONS MOBILE */

    .lesson-gallery-page {
        background-attachment: scroll;
    }

    .lesson-gallery-overlay {
        padding:
            0 4% 35px;
    }

    .lesson-gallery-heading {
        width: 100%;

        margin-bottom: 18px;

        padding: 15px;
    }

    .lesson-gallery-heading h1 {
        font-size: 29px;
    }

    .lesson-gallery-heading p {
        font-size: 13px;
    }

    .lesson-plan-grid {
        grid-template-columns: 1fr;

        max-width: 410px;
    }

    .lesson-thumbnail {
        height: 250px;
    }

    .lesson-card-title h2 {
        font-size: 20px;
    }

    .lesson-view-button {
        font-size: 11px;

        padding: 12px 8px;
    }

}


/* =====================================================
   MOBILE CALENDAR
===================================================== */

@media (max-width: 600px) {

    .calendar-panel {
        width: 100%;
    }

    .calendar-header {
        grid-template-columns:
            45px
            1fr
            45px;

        padding: 14px;
    }

    .calendar-header h2 {
        font-size: 20px;
    }

    .calendar-nav-button {
        width: 38px;
        height: 38px;
    }

    .calendar-days {
        gap: 4px;

        padding:
            8px 10px 15px;
    }

    .calendar-weekdays {
        padding:
            12px 10px 3px;
    }

    .calendar-day {
        font-size: 12px;

        border-radius: 7px;
    }

}