/* ==========================================
   IRON ROOTS — SCHEDULE
========================================== */

:root {
    --iron-black: #111315;
    --iron-black-soft: #1b1f22;
    --iron-raised: #24292b;

    --forest: #4f6255;
    --forest-dark: #3d4d43;
    --forest-light: #6d8273;

    --brass: #b08d57;
    --brass-dark: #8e6e3f;
    --brass-light: #c6a775;

    --concrete: #d7d4ce;
    --concrete-light: #ebe9e4;
    --concrete-dark: #b8b5af;

    --white: #f6f7f6;

    --text-dark: #181b1a;
    --text-muted: #626865;

    --heading-font: "Barlow Condensed", sans-serif;
    --body-font: "Inter", sans-serif;

    --container: 1400px;
}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--concrete);
    color: var(--text-dark);

    font-family: var(--body-font);

    overflow-x: hidden;
}

body.menu-open,
body.booking-open {
    overflow: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    border: none;
    cursor: pointer;
}


/* GLOBAL */

.section {
    padding: 120px max(6vw, 30px);
}

.eyebrow {
    margin-bottom: 18px;

    color: var(--brass);

    font-family: var(--heading-font);

    font-size: 0.9rem;
    font-weight: 700;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: var(--heading-font);

    line-height: 0.9;

    text-transform: uppercase;
}

h2 {
    font-size: clamp(3.6rem, 7vw, 7rem);
}

h2 span {
    color: var(--forest-dark);
}


/* BUTTONS */

.button {
    min-height: 55px;

    padding: 0 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-family: var(--heading-font);

    font-weight: 700;

    letter-spacing: 0.06em;

    text-transform: uppercase;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-green {
    background: var(--forest);
    color: var(--white);
}

.button-green:hover {
    background: var(--forest-dark);
}


/* HEADER */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 90px;

    padding: 0 max(4vw, 25px);

    display: flex;
    align-items: center;

    gap: 40px;

    z-index: 1000;

    color: var(--white);

    transition: 0.35s ease;
}

.header.scrolled {
    height: 75px;

    background: rgba(17,19,21,0.96);

    backdrop-filter: blur(12px);

    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
}

.logo {
    display: flex;
    flex-direction: column;

    font-family: var(--heading-font);
}

.logo-main {
    font-size: 1.65rem;
    font-weight: 900;

    line-height: 0.85;
}

.logo-sub {
    margin-top: 5px;

    color: var(--brass);

    font-size: 0.56rem;

    letter-spacing: 0.27em;
}

.desktop-nav {
    margin-left: auto;

    display: flex;

    gap: 32px;
}

.desktop-nav a {
    position: relative;

    font-family: var(--heading-font);

    font-weight: 600;

    text-transform: uppercase;
}

.desktop-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--forest-light);

    transition: width 0.25s ease;
}

.desktop-nav a:hover::after,
.desktop-nav .active-link::after {
    width: 100%;
}

.nav-cta {
    padding: 15px 20px;

    background: var(--forest);

    font-family: var(--heading-font);

    font-weight: 700;

    text-transform: uppercase;
}


/* MOBILE MENU */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    background: transparent;
}

.menu-toggle span {
    display: block;

    width: 25px;
    height: 2px;

    margin: 6px auto;

    background: var(--white);
}

.mobile-menu {
    position: fixed;

    inset: 0;

    padding: 130px 30px 40px;

    z-index: 900;

    background: var(--iron-black);
    color: var(--white);

    transform: translateX(100%);

    transition: transform 0.4s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu nav a {
    padding: 13px 0;

    border-bottom:
        1px solid rgba(255,255,255,0.12);

    font-family: var(--heading-font);

    font-size: 2.3rem;

    text-transform: uppercase;
}

.mobile-menu .button {
    width: 100%;

    margin-top: 35px;
}


/* HERO */

.schedule-hero {
    position: relative;

    min-height: 84vh;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: var(--iron-black);
    color: var(--white);
}

.schedule-hero > img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8,11,9,0.96),
            rgba(15,20,17,0.73) 48%,
            rgba(15,20,17,0.25)
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 900px;

    margin-left: max(7vw,30px);

    padding-top: 80px;
}

.hero-content h1 {
    font-size: clamp(4.8rem,9vw,9rem);

    font-weight: 900;
}

.hero-content h1 span {
    color: var(--forest-light);
}

.hero-content > p:not(.eyebrow) {
    max-width: 600px;

    margin: 28px 0;

    line-height: 1.8;

    color: rgba(255,255,255,0.72);
}


/* INTRO */

.schedule-intro {
    max-width: 1500px;

    margin: auto;

    display: grid;

    grid-template-columns:
        1.1fr 0.9fr;

    gap: 100px;

    align-items: end;
}

.intro-copy {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.intro-copy p {
    max-width: 560px;

    line-height: 1.8;

    color: var(--text-muted);
}


/* SCHEDULE */

.schedule-section {
    padding: 120px max(6vw,30px);

    background: var(--iron-black);

    color: var(--white);
}

.schedule-heading {
    max-width: var(--container);

    margin: auto;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;
}

.schedule-heading h2 span {
    color: var(--forest-light);
}

.schedule-heading > p {
    max-width: 400px;

    padding-bottom: 10px;

    line-height: 1.7;

    color: rgba(255,255,255,0.55);
}


/* FILTERS */

.schedule-filters {
    max-width: var(--container);

    margin: 55px auto 40px;

    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.schedule-filter {
    padding: 13px 20px;

    background: transparent;

    border:
        1px solid rgba(255,255,255,0.18);

    color: rgba(255,255,255,0.65);

    font-family: var(--heading-font);

    font-weight: 700;

    text-transform: uppercase;

    transition: 0.25s ease;
}

.schedule-filter.active,
.schedule-filter:hover {
    background: var(--forest);

    border-color: var(--forest);

    color: var(--white);
}


/* DAYS */

.schedule-table {
    max-width: var(--container);

    margin: auto;

    display: flex;
    flex-direction: column;
}

.schedule-day {
    display: grid;

    grid-template-columns:
        180px 1fr 1fr;

    border-top:
        1px solid rgba(255,255,255,0.12);
}

.schedule-day:last-child {
    border-bottom:
        1px solid rgba(255,255,255,0.12);
}

.day-heading {
    padding: 28px 20px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    border-right:
        1px solid rgba(255,255,255,0.12);
}

.day-heading span {
    color: var(--brass);

    font-family: var(--heading-font);

    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 0.12em;
}

.day-heading strong {
    margin-top: 5px;

    font-family: var(--heading-font);

    font-size: 1.8rem;

    text-transform: uppercase;
}


/* CLASS CARD */

.class-card {
    padding: 24px;

    display: grid;

    grid-template-columns:
        100px 1fr auto;

    align-items: center;

    gap: 20px;

    border-right:
        1px solid rgba(255,255,255,0.12);

    transition:
        background 0.25s ease,
        opacity 0.3s ease;
}

.class-card:last-child {
    border-right: none;
}

.class-card:hover {
    background: var(--iron-black-soft);
}

.class-card.hidden {
    display: none;
}

.class-time {
    font-family: var(--heading-font);

    font-size: 1.3rem;

    color: var(--brass-light);
}

.class-info p {
    margin-bottom: 4px;

    color: var(--forest-light);

    font-size: 0.7rem;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.class-info h3 {
    font-size: 1.8rem;
}

.class-info span {
    display: block;

    margin-top: 6px;

    color: rgba(255,255,255,0.45);

    font-size: 0.78rem;
}

.book-class {
    padding: 10px 14px;

    background: transparent;

    border:
        1px solid rgba(255,255,255,0.2);

    color: var(--white);

    font-family: var(--heading-font);

    font-weight: 700;

    text-transform: uppercase;

    transition: 0.25s ease;
}

.book-class:hover {
    background: var(--forest);

    border-color: var(--forest);
}


/* BOOKING MODAL */

.booking-modal {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.3s ease;
}

.booking-modal.active {
    opacity: 1;

    pointer-events: auto;
}

.booking-backdrop {
    position: absolute;

    inset: 0;

    background: rgba(0,0,0,0.72);
}

.booking-panel {
    position: relative;

    z-index: 2;

    width: min(650px,100%);
    height: 100%;

    padding: 90px 50px;

    overflow-y: auto;

    background: var(--concrete-light);

    transform: translateX(100%);

    transition: transform 0.4s ease;
}

.booking-modal.active .booking-panel {
    transform: translateX(0);
}

.booking-close {
    position: absolute;

    top: 25px;
    right: 30px;

    background: transparent;

    font-size: 2.5rem;

    color: var(--iron-black);
}

.booking-panel h2 {
    font-size: clamp(3.5rem,6vw,5.5rem);

    color: var(--forest-dark);
}

.selected-time {
    margin: 15px 0 35px;

    color: var(--text-muted);
}

.booking-panel form,
.trial-form {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.booking-panel label,
.trial-form label {
    display: block;

    margin-bottom: 8px;

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: var(--text-muted);
}

.booking-panel input,
.trial-form input,
.trial-form select {
    width: 100%;

    min-height: 55px;

    padding: 0 15px;

    border:
        1px solid var(--concrete-dark);

    outline: none;

    background: transparent;

    color: var(--text-dark);
}

.booking-panel input:focus,
.trial-form input:focus,
.trial-form select:focus {
    border-color: var(--forest);
}

.submit-booking {
    align-self: flex-start;
}

.booking-message,
.trial-message {
    color: var(--forest-dark);

    font-weight: 600;
}


/* BOOKING PLATFORM */

.booking-platform {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 100px;

    background: var(--concrete);
}

.platform-content {
    display: flex;
    flex-direction: column;

    justify-content: flex-end;

    gap: 18px;
}

.platform-content > p {
    max-width: 580px;

    line-height: 1.8;

    color: var(--text-muted);
}

.platform-tags {
    margin-top: 20px;

    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.platform-tags span {
    padding: 10px 14px;

    border:
        1px solid var(--concrete-dark);

    font-family: var(--heading-font);

    font-weight: 700;

    text-transform: uppercase;
}


/* CLASS SIZE */

.class-size {
    position: relative;

    min-height: 720px;

    display: flex;
    align-items: center;

    overflow: hidden;

    color: var(--white);
}

.class-size > img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.class-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8,11,9,0.95),
            rgba(15,20,17,0.64),
            rgba(15,20,17,0.18)
        );
}

.class-size-content {
    position: relative;

    z-index: 2;

    max-width: 800px;

    margin-left: max(7vw,30px);
}

.big-number {
    display: block;

    color: var(--brass-light);

    font-family: var(--heading-font);

    font-size: clamp(8rem,16vw,16rem);

    font-weight: 900;

    line-height: 0.7;
}

.class-size-content h2 {
    margin-top: 40px;
}

.class-size-content h2 span {
    color: var(--forest-light);
}

.class-size-content > p:not(.eyebrow) {
    max-width: 580px;

    margin-top: 25px;

    line-height: 1.8;

    color: rgba(255,255,255,0.7);
}


/* FIRST TIMER */

.first-timer {
    max-width: 1500px;

    margin: auto;

    display: grid;

    grid-template-columns:
        0.95fr 1.05fr;

    gap: 80px;

    align-items: center;
}

.first-content p:not(.eyebrow) {
    max-width: 570px;

    margin-top: 20px;

    line-height: 1.8;

    color: var(--text-muted);
}

.first-content .button {
    margin-top: 30px;
}

.first-image img {
    min-height: 630px;

    object-fit: cover;
}


/* TRIAL FORM */

.trial-form-section {
    padding: 120px max(6vw,30px);

    display: grid;

    grid-template-columns:
        0.9fr 1.1fr;

    gap: 100px;

    background: var(--iron-black);

    color: var(--white);
}

.trial-form-heading h2 span {
    color: var(--forest-light);
}

.trial-form-heading > p:not(.eyebrow) {
    max-width: 500px;

    margin-top: 25px;

    line-height: 1.8;

    color: rgba(255,255,255,0.62);
}

.trial-form label {
    color: rgba(255,255,255,0.5);
}

.trial-form input,
.trial-form select {
    border-color:
        rgba(255,255,255,0.18);

    color: var(--white);

    background: var(--iron-black-soft);
}

.trial-form select option {
    color: var(--iron-black);

    background: var(--white);
}

.trial-message {
    color: var(--brass-light);
}


/* FINAL CTA */

.final-cta {
    min-height: 620px;

    padding:
        100px max(6vw,30px);

    display: grid;

    place-items: center;

    text-align: center;

    background: var(--forest-dark);

    color: var(--white);
}

.final-content {
    max-width: 950px;
}

.final-content h2 span {
    color: var(--brass-light);
}

.final-content > p:not(.eyebrow) {
    max-width: 600px;

    margin:
        30px auto 35px;

    line-height: 1.8;

    color: rgba(255,255,255,0.68);
}


/* FOOTER */

.footer {
    position: relative;

    padding:
        90px max(6vw,30px) 30px;

    overflow: hidden;

    background: #0b0d0c;

    color: var(--white);
}

.footer-word {
    position: absolute;

    left: 50%;
    bottom: -45px;

    transform: translateX(-50%);

    color: rgba(255,255,255,0.02);

    font-family: var(--heading-font);

    font-size: clamp(9rem,20vw,21rem);

    font-weight: 900;

    white-space: nowrap;
}

.footer-content {
    position: relative;

    max-width: var(--container);

    margin: auto;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1.4fr;

    gap: 60px;
}

.footer-brand p {
    margin-top: 25px;

    color: rgba(255,255,255,0.55);

    font-family: var(--heading-font);

    font-size: 1.8rem;

    text-transform: uppercase;
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 11px;
}

.footer-column h3 {
    margin-bottom: 12px;

    color: var(--brass);
}

.footer-column a,
.footer-column p {
    color: rgba(255,255,255,0.52);

    font-size: 0.88rem;

    line-height: 1.6;
}

.footer-bottom {
    position: relative;

    max-width: var(--container);

    margin: 70px auto 0;

    padding-top: 25px;

    display: flex;
    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid rgba(255,255,255,0.1);

    color: rgba(255,255,255,0.34);

    font-size: 0.73rem;
}

.footer-bottom div {
    display: flex;

    gap: 20px;
}

.footer-tagline {
    color: var(--forest-light);

    font-family: var(--heading-font);

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


/* REVEAL */

.reveal {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* MOBILE CTA */

.mobile-sticky-cta {
    display: none;
}


/* TABLET */

@media (max-width: 1100px) {

    .desktop-nav {
        display: none;
    }

    .nav-cta {
        margin-left: auto;
    }

    .menu-toggle {
        display: block;
    }

    .schedule-intro,
    .booking-platform,
    .first-timer,
    .trial-form-section {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .schedule-day {
        grid-template-columns:
            140px 1fr;
    }

    .class-card {
        border-bottom:
            1px solid rgba(255,255,255,0.12);
    }

    .schedule-day .class-card:last-child {
        grid-column: 2;
    }

    .footer-content {
        grid-template-columns:
            1.5fr 1fr 1fr;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }

}


/* MOBILE */

@media (max-width: 768px) {

    .section {
        padding: 80px 22px;
    }

    .header {
        height: 72px;

        padding: 0 18px;
    }

    .nav-cta {
        display: none;
    }

    .schedule-hero {
        min-height: 86svh;
    }

    .hero-content {
        margin: 0;

        padding:
            110px 22px 60px;
    }

    .hero-content h1 {
        font-size:
            clamp(4rem,18vw,6.5rem);
    }

    .schedule-section {
        padding:
            80px 22px;
    }

    .schedule-heading {
        align-items: flex-start;

        flex-direction: column;
    }

    .schedule-filters {
        flex-wrap: nowrap;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .schedule-filters::-webkit-scrollbar {
        display: none;
    }

    .schedule-filter {
        flex-shrink: 0;
    }

    .schedule-day {
        grid-template-columns: 1fr;
    }

    .day-heading {
        border-right: none;

        border-bottom:
            1px solid rgba(255,255,255,0.12);
    }

    .class-card,
    .schedule-day .class-card:last-child {
        grid-column: auto;

        grid-template-columns: 90px 1fr;
    }

    .book-class {
        grid-column: 1 / -1;

        width: 100%;
    }

    .booking-panel {
        padding:
            85px 22px 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-platform {
        padding:
            80px 22px;
    }

    .class-size-content {
        margin: 0;

        padding:
            80px 22px;
    }

    .first-image img {
        min-height: 480px;
    }

    .trial-form-section {
        padding:
            80px 22px;
    }

    .footer {
        padding:
            70px 22px 100px;
    }

    .footer-content {
        grid-template-columns:
            1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .mobile-sticky-cta {
        position: fixed;

        left: 12px;
        right: 12px;
        bottom: 12px;

        min-height: 54px;

        display: flex;
        align-items: center;
        justify-content: center;

        z-index: 800;

        background: var(--forest);
        color: var(--white);

        font-family: var(--heading-font);

        font-weight: 700;

        letter-spacing: 0.07em;

        text-transform: uppercase;

        box-shadow:
            0 8px 30px rgba(0,0,0,0.38);
    }

}


@media (max-width: 480px) {

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-brand,
    .footer-column:last-child {
        grid-column: auto;
    }

}