/* ==========================================
   IRON ROOTS
   PROGRAMS PAGE
========================================== */

: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;

    --gunmetal: #4a5054;

    --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 {
    overflow: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    font: inherit;
    cursor: pointer;
}


/* ==========================================
   GLOBAL
========================================== */

.section {
    padding: 120px max(6vw, 30px);
}

.eyebrow {
    margin-bottom: 18px;

    font-family: var(--heading-font);
    font-size: 0.9rem;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: var(--brass);
}

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;

    font-size: 0.56rem;

    letter-spacing: 0.27em;

    color: var(--brass);
}

.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: 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: 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
========================================== */

.programs-hero {
    position: relative;

    min-height: 88vh;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: var(--iron-black);

    color: var(--white);
}

.programs-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.75) 48%,
            rgba(15,20,17,0.28)
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    width: min(900px, 90%);

    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: 620px;

    margin: 30px 0;

    line-height: 1.8;

    color:
        rgba(246,247,246,0.75);
}


/* ==========================================
   INTRO
========================================== */

.program-intro {
    max-width: 1500px;

    margin: auto;

    display: grid;

    grid-template-columns:
        1.1fr 0.9fr;

    gap: 100px;

    align-items: end;
}

.intro-copy {
    padding-bottom: 10px;

    display: flex;
    flex-direction: column;

    gap: 20px;
}

.intro-copy p {
    max-width: 560px;

    line-height: 1.8;

    color: var(--text-muted);
}


/* ==========================================
   PROGRAM LIST
========================================== */

.program-list-section {
    padding:
        120px max(6vw,30px);

    background: var(--iron-black);

    color: var(--white);
}

.filter-heading {
    max-width: var(--container);

    margin: auto;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;
}

.filter-heading h2 span {
    color: var(--forest-light);
}

.filter-heading > p {
    max-width: 430px;

    padding-bottom: 10px;

    line-height: 1.7;

    color:
        rgba(246,247,246,0.6);
}


/* FILTER BUTTONS */

.filters {
    max-width: var(--container);

    margin: 55px auto 45px;

    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.filter-button {
    padding: 14px 22px;

    border:
        1px solid rgba(246,247,246,0.18);

    background: transparent;

    color:
        rgba(246,247,246,0.7);

    font-family: var(--heading-font);

    font-weight: 700;

    letter-spacing: 0.05em;

    text-transform: uppercase;

    transition: 0.25s ease;
}

.filter-button:hover {
    border-color: var(--forest-light);

    color: var(--white);
}

.filter-button.active {
    background: var(--forest);

    border-color: var(--forest);

    color: var(--white);
}


/* ==========================================
   PROGRAM CARDS
========================================== */

.program-grid {
    max-width: var(--container);

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 20px;
}

.program-card {
    background: var(--iron-black-soft);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.program-card.hidden {
    display: none;
}

.program-image {
    position: relative;

    height: 390px;

    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.55s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.04);
}

.program-tag {
    position: absolute;

    left: 20px;
    top: 20px;

    padding: 9px 13px;

    background: var(--forest-dark);

    color: var(--white);

    font-family: var(--heading-font);

    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.program-content {
    position: relative;

    padding: 40px;
}

.program-number {
    position: absolute;

    right: 30px;
    top: 15px;

    font-family: var(--heading-font);

    font-size: 6rem;

    font-weight: 900;

    color:
        rgba(255,255,255,0.035);
}

.program-category {
    margin-bottom: 12px;

    color: var(--brass);

    font-size: 0.76rem;

    font-weight: 700;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}

.program-content h3 {
    max-width: 500px;

    font-size: clamp(2.8rem,4vw,4.6rem);
}

.program-description {
    max-width: 600px;

    margin-top: 20px;

    line-height: 1.75;

    color:
        rgba(246,247,246,0.62);
}


/* PROGRAM DETAILS */

.program-details {
    margin-top: 35px;

    padding:
        25px 0;

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 20px;

    border-top:
        1px solid rgba(255,255,255,0.12);

    border-bottom:
        1px solid rgba(255,255,255,0.12);
}

.program-details div {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.program-details span,
.who-for > span {
    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color:
        rgba(246,247,246,0.42);
}

.program-details strong {
    font-family: var(--heading-font);

    font-size: 1.3rem;

    color: var(--white);
}


/* WHO FOR */

.who-for {
    margin: 25px 0;
}

.who-for p {
    max-width: 550px;

    margin-top: 8px;

    line-height: 1.6;

    color:
        rgba(246,247,246,0.62);
}

.program-link {
    display: inline-block;

    font-family: var(--heading-font);

    font-weight: 700;

    text-transform: uppercase;

    color: var(--forest-light);
}

.program-link:hover {
    color: var(--brass-light);
}


/* ==========================================
   HOW IT WORKS
========================================== */

.how-it-works {
    background: var(--concrete);
}

.how-heading {
    max-width: 1100px;

    margin-bottom: 70px;
}

.steps-grid {
    max-width: var(--container);

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    border-top:
        1px solid var(--concrete-dark);

    border-left:
        1px solid var(--concrete-dark);
}

.step {
    min-height: 340px;

    padding: 45px;

    border-right:
        1px solid var(--concrete-dark);

    border-bottom:
        1px solid var(--concrete-dark);
}

.step > span {
    font-family: var(--heading-font);

    font-size: 4rem;

    font-weight: 900;

    color: var(--brass-dark);
}

.step h3 {
    margin-top: 45px;

    font-size: 2rem;
}

.step p {
    margin-top: 15px;

    line-height: 1.7;

    color: var(--text-muted);
}


/* ==========================================
   EXPERIENCE
========================================== */

.experience-section {
    position: relative;

    min-height: 760px;

    display: flex;
    align-items: center;

    overflow: hidden;

    color: var(--white);
}

.experience-section > img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.experience-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(10,14,11,0.94),
            rgba(16,22,18,0.65),
            rgba(15,20,17,0.2)
        );
}

.experience-content {
    position: relative;

    z-index: 2;

    max-width: 850px;

    margin-left:
        max(7vw,30px);

    padding-right: 30px;
}

.experience-content h2 {
    font-size:
        clamp(4rem,7vw,7rem);
}

.experience-content h2 span {
    color: var(--forest-light);
}

.experience-content > p:not(.eyebrow) {
    max-width: 600px;

    margin-top: 22px;

    line-height: 1.8;

    color:
        rgba(246,247,246,0.7);
}


/* ==========================================
   COMPARISON
========================================== */

.comparison {
    background: var(--concrete-light);
}

.comparison-heading {
    margin-bottom: 60px;
}

.comparison-table {
    max-width: var(--container);

    margin: auto;

    border-top:
        1px solid var(--concrete-dark);
}

.comparison-row {
    display: grid;

    grid-template-columns:
        1.3fr 1fr 1fr 1fr;

    border-bottom:
        1px solid var(--concrete-dark);
}

.comparison-row > div {
    padding: 22px;

    border-right:
        1px solid var(--concrete-dark);
}

.comparison-row > div:last-child {
    border-right: none;
}

.comparison-head {
    background: var(--forest-dark);

    color: var(--white);

    font-family: var(--heading-font);

    font-weight: 700;

    text-transform: uppercase;
}

.comparison-row:not(.comparison-head) div:first-child {
    font-family: var(--heading-font);

    font-size: 1.2rem;

    font-weight: 700;

    text-transform: uppercase;
}


/* ==========================================
   FINAL CTA
========================================== */

.final-cta {
    min-height: 650px;

    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 {
    font-size:
        clamp(4rem,7vw,7.5rem);
}

.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(246,247,246,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;

    font-family: var(--heading-font);

    font-size:
        clamp(9rem,20vw,21rem);

    font-weight: 900;

    white-space: nowrap;

    color:
        rgba(255,255,255,0.02);

    transform:
        translateX(-50%);
}

.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;

    font-family: var(--heading-font);

    font-size: 1.8rem;

    text-transform: uppercase;

    color:
        rgba(255,255,255,0.55);
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 11px;
}

.footer-column h3 {
    margin-bottom: 12px;

    color: var(--brass);
}

.footer-column a,
.footer-column p {
    font-size: 0.88rem;

    line-height: 1.6;

    color:
        rgba(255,255,255,0.52);
}

.footer-bottom {
    position: relative;

    max-width: var(--container);

    margin: 70px auto 0;

    padding-top: 25px;

    border-top:
        1px solid rgba(255,255,255,0.1);

    display: flex;
    justify-content: space-between;

    gap: 20px;

    font-size: 0.73rem;

    color:
        rgba(255,255,255,0.34);
}

.footer-bottom div {
    display: flex;

    gap: 20px;
}

.footer-tagline {
    font-family: var(--heading-font);

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;

    color: var(--forest-light);
}


/* ==========================================
   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;
    }

    .program-intro {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .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;
    }

    .programs-hero {
        min-height: 88svh;
    }

    .hero-content {
        margin: 0;

        padding:
            110px 22px 60px;
    }

    .hero-content h1 {
        font-size:
            clamp(4rem,18vw,6.5rem);
    }

    .program-list-section {
        padding:
            80px 22px;
    }

    .filter-heading {
        align-items: flex-start;

        flex-direction: column;
    }

    .filters {
        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 8px;

        scrollbar-width: none;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    .filter-button {
        flex-shrink: 0;
    }

    .program-image {
        height: 300px;
    }

    .program-content {
        padding: 30px 22px;
    }

    .program-details {
        grid-template-columns: 1fr;
    }

    .experience-section {
        min-height: 680px;
    }

    .experience-content {
        margin: 0;

        padding: 80px 22px;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-row {
        min-width: 700px;
    }

    .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);
    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-brand,
    .footer-column:last-child {
        grid-column: auto;
    }

}