/* About page only. Loaded after base.css and subpage.css. */

/* --- 1. CORE LAYOUT & FONTS --- */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

html.noscroll,
body.noscroll {
    overflow: hidden;
}


main {
    flex-grow: 1;
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 4rem 2rem;
    box-sizing: border-box;
}

/* --- NEW STYLES FOR MAIN CONTENT --- */

main.main-content h1 {
    text-align: center;
}




.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1% 15%;
    min-height: 30px;
    position: relative;
    font-size: 0.9em;
    margin-top: -1rem;
}


.main-nav a.active {
    color: #7d7d7d;
    pointer-events: none;
}


/* --- 3. FOOTER --- */

.footer-main-content {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    width: 50%;
    max-width: 1100px;
    justify-content: space-around;
    text-align: left;
    color: #262626;
}


.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


/* ==============================================
    DEFINITIVE MOBILE RESPONSIVE STYLES
============================================== */


/* --- 2. Mobile Layout & Fixes (Tablets & Below) --- */
@media (max-width: 1024px) {
    /* --- Main Header & Nav Structure --- */
    .top-bar {
        flex-direction: column;
        padding: 1rem;
        gap: 10px;
        text-align: center;
    }

    /* --- Styles for the OPEN Mobile Menu --- */
    .navbar.nav-open .main-nav {
        display: flex;
        padding: 0;
        gap: 0;
        padding-right: 2.1rem;
    }


}

/* --- Specific Mobile Layout (Phones) --- */
@media (max-width: 768px) {
    /* --- Mobile Footer --- */
    .footer-main-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        flex-direction: column-reverse;
        align-items: flex-start;
        width: 85%;
        padding-left: 5%;
        gap: 20px;
    }
    .footer-column ul {
        gap: 10px;
    }
}


/* ==============================================
    TOP-ANCHORED NAVBAR STYLES
============================================== */


/* 3. Desktop-specific layout for the anchored bar */
@media (min-width: 1025px) {
    .navbar.navbar--anchored .main-nav {
        gap: 25px;
        flex: 1;
    }
    .navbar.navbar--anchored .main-nav a {
        padding: 2rem;
        font-size: 1em;
    }
}

/* Final Tablet Layout (601px to 1024px) */

@media (min-width: 601px) and (max-width: 1024px) {
    /* Hide scroll path elements */
    .dashed-line,
    #mobile-line-svg,
    #svg-tip-counter {
        display: none !important;
    }

    /* Forcefully apply side-by-side layout to the specific containers */
    .state-container--split {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 1.5rem;
        padding: 1rem;
        min-height: 420px;
        margin-bottom: 2rem;
        box-sizing: border-box;
    }

    /* Apply the reverse layout for relevant containers */
    .state-container--split.reverse {
        flex-direction: row-reverse !important;
    }

    /* Define column widths and reset mobile styles */
    .state-container--split .info-column,
    .state-container--split .image-column {
        flex: 1 1 50%;
        max-width: 50%;
        position: relative;
        margin: 0;
        padding: 0;
        min-height: unset;
    }

    .image-column img {
       width: 100%;
       height: auto;
       max-height: 400px;
       object-fit: contain;
       display: block;
    }

    /* Adjust the popup and text elements */
    .h2-popup {
        position: absolute;
        top: 0;
        left: 1rem;
        opacity: 1;
        transform: none;
    }

    .info-column h2 {
        font-size: 2.5rem;
        padding: 5rem 3rem 1rem 1rem;
        margin: 0;
    }

    .info-column p {
        font-size: 0.9rem;
        padding-left: 1rem;
    }

    .info-button {
        margin-left: 1rem;
    }

    .footer-main-content {
        width: 70%;
        top: 28%;
    }

    .footer-column h4 {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .footer-column ul li {
        font-size: 0.8rem;
    }

    .footer-column ul {
        gap: 10px;
    }

    /* Move parallax layers down */
    .layer-3 img,
    .layer-4 .figure-left,
    .layer-4 .figure-right {
        bottom: -5%;
    }

    .layer-5 img {
        bottom: -10%;
    }

    .layer-2 img {
        bottom: 20%;
    }

    .layer-1 img {
        bottom: 62% !important;
    }

    .overlay-button {
        bottom: 35%;
    }
}

/* ==============================================
   ABOUT CONTENT: cover, story, pull quote, "what we do" band, team, call to action
============================================== */
.about-cover {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-kicker {
    font-family: "Kalam", cursive;
    color: #157a40;
    font-size: 1.15rem;
    margin: 0;
}

main.main-content .about-cover h1 {
    font-family: "Shadows Into Light Two", cursive;
    font-weight: 400;
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    line-height: 1.1;
    margin: 0.3rem 0 0.8rem;
}

main .about-cover h1::after {
    content: none; /* no underline bar under this heading */
}

.about-lede {
    font-size: 1.2rem;
    color: #5b5652;
    margin: 0;
}

.about-story {
    max-width: 1000px;
    margin: 3rem auto 0;
    column-count: 2;
    column-gap: 3rem;
    color: #3a3633;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-story p {
    margin: 0 0 1rem;
    break-inside: avoid;
}

.about-story p:first-child::first-letter {
    font-family: "Shadows Into Light Two", cursive;
    float: left;
    font-size: 4.2rem;
    line-height: 0.9;
    padding: 0.3rem 0.5rem 0 0;
    color: #382F30;
}

.about-pull {
    max-width: 900px;
    margin: 2.5rem auto;
    text-align: center;
    font-family: "Shadows Into Light Two", cursive;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.2;
    color: #262626;
}

.about-pull::before,
.about-pull::after {
    content: '"';
    color: #157a40;
}

/* Full-width dark band inside the centred main column */
.about-band {
    margin: 0 calc(50% - 50vw);
    color: #fff;
}

.about-edge {
    display: block;
    width: 100%;
    height: 60px;
    fill: #382F30;
}

.about-band-inner {
    background: #382F30;
    padding: 4rem 1.25rem 5rem;
    text-align: center;
}

.about-band-inner > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.about-band h2 {
    font-family: "Shadows Into Light Two", cursive;
    font-weight: 400;
    font-size: 2.6rem;
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.about-band-lede {
    color: #ddd;
    max-width: 640px;
    margin-bottom: 2rem;
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.about-pillars > div {
    border-top: 2px solid #e9c98b;
    padding-top: 1rem;
}

.about-pillars h3 {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #e9c98b;
    margin: 0 0 0.35rem;
}

.about-pillars p {
    margin: 0;
    color: #ddd;
}

.about-crew {
    max-width: 1150px;
    margin: 3.5rem auto 0;
}

.about-crew h2 {
    font-family: "Shadows Into Light Two", cursive;
    font-weight: 400;
    font-size: 2.6rem;
    text-align: center;
    margin: 0 0 2rem;
}

/* Grid rows stretch every card in a row to the same height */
.about-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr; /* every row as tall as the tallest, also when stacked */
    gap: 1.25rem;
}

.about-cards-small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    margin: 1.25rem auto 0;
}

.about-card {
    background: #fbf6ee;
    border-radius: 16px;
    padding: 1.5rem;
}

.about-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #262626;
}

.about-card p {
    margin: 0.6rem 0 0;
    color: #5b5652;
    font-size: 0.95rem;
    line-height: 1.55;
}

.about-card .about-years {
    font-family: "Shadows Into Light Two", cursive;
    font-size: 3rem;
    line-height: 1;
    color: #382F30;
    margin: 0 0 0.6rem;
}

.about-years span {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    color: #5b5652;
    margin-left: 0.3rem;
}

.about-card .about-role {
    margin-top: 0.15rem;
    color: #157a40;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-cards-small .about-card {
    padding: 1.1rem 1.4rem;
}

.about-cta {
    text-align: center;
    padding: 3rem 0 1rem;
}

.about-cta p {
    font-size: 1.25rem;
    margin: 0 0 1.25rem;
    color: #262626;
}

/* Same hover as the Explore buttons on the home page: the fill slides in from the left */
.about-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: 2px solid #157a40;
    border-radius: 999px;
    color: #157a40;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.4s ease-out;
}

.about-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #157a40;
    transform: translateX(-100%);
    transition: transform 0.4s ease-out;
    z-index: -1;
}

.about-button:hover,
.about-button:focus-visible {
    color: #fff;
}

.about-button:hover::before,
.about-button:focus-visible::before {
    transform: translateX(0);
}

@media (max-width: 1024px) {
    .about-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .about-story {
        column-count: 1;
    }

    .about-pillars,
    .about-cards,
    .about-cards-small {
        grid-template-columns: 1fr;
    }

    .about-story,
    .about-lede {
        font-size: 1rem;
    }
}
