/* =========================================================
   MADOKO ATHLETICS CLUB
   MAIN WEBSITE STYLESHEET
   ========================================================= */


/* =========================================================
   1. ROOT / GLOBAL
   ========================================================= */

:root {
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;

    --bg: #fbf7fb;
    --surface: #ffffff;

    --primary: #5a2d51;
    --secondary: #630070;
    --accent: #eacef2;

    --text: #2b2130;
    --muted: #806d84;

    --border: #eee2f1;

    --success: #2c8a5b;

    --dark: #211722;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    max-width: 100%;
    display: block;
}


.container {
    width: min(1160px, 100%);
    margin: 0 auto;
    padding-inline: 1rem;
}


/* =========================================================
   2. HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255,255,255,.94);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}


.header-inner {
    min-height: 78px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 2rem;
}


.brand {
    display: flex;
    align-items: center;

    gap: .75rem;

    font-weight: 800;
    font-size: 1rem;

    color: var(--primary);
}


.brand img {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    object-fit: cover;
}


.site-nav {
    display: flex;
    align-items: center;

    gap: 1.6rem;

    color: var(--muted);

    font-size: .92rem;
    font-weight: 700;
}


.site-nav a {
    position: relative;

    padding: .4rem 0;

    transition: color .2s ease;
}


.site-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--secondary);

    transition: width .25s ease;
}


.site-nav a:hover,
.site-nav a.active {
    color: var(--primary);
}


.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}


/* =========================================================
   3. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: .8rem 1.3rem;

    border-radius: 500px;

    font-size: .9rem;
    font-weight: 800;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


.btn:hover {
    transform: translateY(-3px);
}


.btn-primary {
    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    box-shadow:
        0 12px 30px rgba(90,45,81,.22);
}


.btn-primary:hover {
    box-shadow:
        0 17px 35px rgba(90,45,81,.3);
}


.btn-secondary {
    background: white;

    border: 1px solid var(--border);

    color: var(--primary);
}


.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);

    color: white;
}


/* =========================================================
   4. HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 550px;

    display: flex;
    align-items: center;

    overflow: hidden;
}


.hero-home::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        url('../images/photo1.jpg');

    background-size: cover;
    background-position: center;

    filter:
        saturate(.95)
        contrast(1.02)
        brightness(.72);

    transform: scale(1.02);
}


.hero-home::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(33,23,34,.95) 0%,
            rgba(43,25,43,.83) 35%,
            rgba(90,45,81,.42) 65%,
            rgba(90,45,81,.12) 100%
        );
}


.hero-grid {
    position: relative;
    z-index: 2;

    width: 100%;

    display: grid;
    grid-template-columns: 1fr;

    align-items: center;
}


.hero-content {
    max-width: 760px;

    padding: 10rem 0;
}


.eyebrow {
    margin: 0 0 .7rem;

    color: var(--secondary);

    font-size: .76rem;
    font-weight: 900;

    letter-spacing: .25em;

    text-transform: uppercase;
}


.hero .eyebrow {
    color: #eacef2;
}


.hero h1 {
    margin: 0 0 1.2rem;

    color: white;

    font-size:
        clamp(
            3rem,
            7vw,
            6.5rem
        );

    line-height: .98;

    letter-spacing: -.055em;
}


.hero h1 span {
    color: #eacef2;
}


.lead {
    max-width: 650px;

    margin: 0;

    color: rgba(255,255,255,.84);

    font-size: 1.1rem;
}


.hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: .8rem;

    margin-top: 2rem;
}


/* =========================================================
   5. SECTIONS
   ========================================================= */

.section {
    padding: 5.5rem 0;
}


.section-heading {
    max-width: 760px;

    margin-bottom: 2.5rem;
}


.section-heading h2,
.intro-grid h2,
.feature-content h2,
.why-content h2,
.cta-box h2 {
    margin: 0 0 1rem;

    font-size:
        clamp(
            2rem,
            4vw,
            3.2rem
        );

    line-height: 1.1;

    letter-spacing: -.035em;
}


.section-heading > p:last-child {
    color: var(--muted);

    max-width: 680px;

    margin: 0;
}


/* =========================================================
   6. ABOUT
   ========================================================= */
   

.about-section {
    background: var(--bg);
}


.intro-grid {
    display: grid;

    grid-template-columns:
        minmax(0, .9fr)
        minmax(0, 1.1fr);

    gap: 5rem;

    align-items: center;
}


.intro-content {
    max-width: 600px;
}


.intro-content p:not(.eyebrow) {
    color: var(--muted);
}


.text-link {
    display: inline-flex;

    margin-top: .8rem;

    color: var(--primary);

    font-weight: 800;

    transition:
        color .2s ease,
        transform .2s ease;
}


.text-link:hover {
    color: var(--secondary);

    transform: translateX(5px);
}


/* =========================================================
   7. IMAGE STACK
   ========================================================= */

.image-stack {
    position: relative;

    min-height: 480px;
}


.image-stack img {
    position: absolute;

    object-fit: cover;

    border-radius: 1.4rem;

    box-shadow:
        0 25px 60px rgba(43,33,48,.15);

    transition:
        transform .4s ease;
}


.image-stack img:first-child {
    width: 78%;
    height: 380px;

    right: 0;
    top: 0;
}


.image-stack img:last-child {
    width: 55%;
    height: 230px;

    left: 0;
    bottom: 0;

    border: 8px solid var(--bg);
}


.image-stack img:hover {
    transform: scale(1.025);
}


/* =========================================================
   8. PROGRAMS
   ========================================================= */

.programs-section {
    background: #f3edf4;
}


.card-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1.4rem;
}


.card {
    overflow: hidden;

    background: white;

    border: 1px solid var(--border);

    border-radius: 1.3rem;

    box-shadow:
        0 12px 35px rgba(43,33,48,.055);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 25px 55px rgba(43,33,48,.12);
}


.program-card > img {
    width: 100%;

    height: 240px;

    object-fit: cover;

    margin: 0;

    border-radius: 0;

    transition:
        transform .5s ease;
}


.program-card:hover > img {
    transform: scale(1.04);
}


.card-content {
    padding: 1.5rem;
}


.card-number {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin-bottom: 1rem;

    border-radius: 50%;

    background: var(--accent);

    color: var(--primary);

    font-size: .78rem;

    font-weight: 900;
}


.card h3 {
    margin: 0 0 .5rem;

    font-size: 1.3rem;
}


.card p {
    margin: 0;

    color: var(--muted);

    font-size: .94rem;
}


.card-link {
    display: inline-block;

    margin-top: 1.2rem;

    color: var(--primary);

    font-size: .9rem;

    font-weight: 800;
}


.card-link:hover {
    color: var(--secondary);
}


/* =========================================================
   9. TRAINING FEATURE
   ========================================================= */

/* =========================================================
   TRAINING SECTION
   ========================================================= */

.feature-section {
    padding: 7rem 0;
    background: #211722;
    color: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 5rem;
    align-items: center;
}

.feature-image {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

.feature-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 55%,
        rgba(33,23,34,.65)
    );
    pointer-events: none;
}

.feature-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    transition: transform .6s ease;
}

.feature-image:hover img {
    transform: scale(1.04);
}

.feature-content {
    max-width: 600px;
}

.feature-content .eyebrow {
    color: #eacef2;
}

.feature-content h2 {
    margin: 0 0 1.4rem;

    font-size: clamp(2.4rem, 4.5vw, 4.2rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.feature-content p:not(.eyebrow) {
    color: rgba(255,255,255,.68);
    margin-bottom: 1rem;
}

.feature-content .btn {
    margin-top: 1rem;
}


/* =========================================================
   10. UBUNTU
   ========================================================= */

/* =========================================================
   UBUNTU / OUR FAMILY
   ========================================================= */

.ubuntu-section {
    position: relative;

    padding: 8rem 0;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #5a2d51 0%,
            #630070 100%
        );

    color: white;
}

.ubuntu-section::before {
    content: "MAC";

    position: absolute;

    right: -2rem;
    bottom: -5rem;

    font-size: 20rem;
    font-weight: 900;

    line-height: 1;

    color: rgba(255,255,255,.035);

    pointer-events: none;
}

.ubuntu-box {
    position: relative;

    z-index: 2;

    max-width: 900px;

    text-align: center;
}

.ubuntu-box .eyebrow {
    color: #eacef2;
}

.ubuntu-box h2 {
    margin: 0 auto 1.5rem;

    font-size: clamp(2.2rem, 5vw, 4.5rem);

    line-height: 1.05;

    letter-spacing: .03em;
}

.ubuntu-box p:not(.eyebrow) {
    max-width: 700px;

    margin: .7rem auto;

    color: rgba(255,255,255,.78);

    font-size: 1.05rem;
}

/* =========================================================
   EXECUTIVE COMMITTEE
   ========================================================= */

/* =========================================================
   COMMITTEE PHOTOS
   ========================================================= */

.committee-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;

    background: #ddd1df;

    border-top: 1px solid #ddd1df;
    border-left: 1px solid #ddd1df;
}

.committee-card {
    position: relative;

    overflow: hidden;

    background: white;

    border-right: 1px solid #ddd1df;
    border-bottom: 1px solid #ddd1df;

    transition: transform .3s ease;
}

.committee-card:hover {
    transform: translateY(-6px);
    z-index: 2;
}


/* PHOTO */

.committee-photo {
    position: relative;

    width: 100%;
    height: 360px;

    overflow: hidden;

    background: #e9ddec;
}

.committee-photo::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(33,23,34,.65) 100%
        );

    opacity: 0;

    transition: opacity .3s ease;
}

.committee-card:hover .committee-photo::after {
    opacity: 1;
}

.committee-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    display: block;

    transition: transform .6s ease;
}

.committee-card:hover .committee-photo img {
    transform: scale(1.05);
}


/* MEMBER INFORMATION */

.committee-info {
    padding: 1.25rem 1.3rem 1.5rem;
}

.committee-info h3 {
    margin: 0 0 .3rem;

    font-size: 1.05rem;

    line-height: 1.25;
}

.committee-info p {
    margin: 0;

    color: var(--muted);

    font-size: .82rem;
}


/* MOBILE */

@media (max-width: 900px) {

    .committee-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .committee-photo {
        height: 320px;
    }

}

@media (max-width: 600px) {

    .committee-preview {
        grid-template-columns: 1fr;
    }

    .committee-photo {
        height: 400px;
    }

}
/* =========================================================
   12. CTA
   ========================================================= */

.cta-panel {
    padding-top: 1rem;
    padding-bottom: 5rem;

    background: var(--bg);
}


.cta-box {
    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 2rem;

    padding: 3rem;

    border-radius: 1.5rem;

    background:
        linear-gradient(
            135deg,
            #f0e1f2,
            #ffffff
        );

    box-shadow:
        0 25px 60px rgba(43,33,48,.09);
}


.cta-box::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -90px;
    bottom: -100px;

    border-radius: 50%;

    background:
        rgba(99,0,112,.08);
}


.cta-content {
    position: relative;

    z-index: 2;

    max-width: 680px;
}


.cta-content p:last-child {
    margin: 0;

    color: var(--muted);
}


.cta-actions {
    position: relative;

    z-index: 2;

    display: flex;

    gap: .7rem;

    flex-wrap: wrap;
}


/* =========================================================
   13. FOOTER
   ========================================================= */

.site-footer {
    margin-top: 0;

    background: var(--dark);

    border-top: none;

    color: rgba(255,255,255,.7);
}


.footer-inner {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 2rem;

    padding: 3rem 0;
}


.footer-inner h3 {
    margin: 0 0 .5rem;

    color: white;
}


.footer-links {
    display: flex;

    flex-direction: column;

    gap: .4rem;
}


.footer-links a {
    transition: color .2s ease;
}


.footer-links a:hover {
    color: white;
}



/* =========================================================
   18. MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .site-nav {
        gap: 1rem;
    }


    .intro-grid,
    .feature-grid {
        grid-template-columns: 1fr;

        gap: 3rem;
    }


    .image-stack {
        min-height: 420px;
    }


    .card-grid {
        grid-template-columns: 1fr;
    }


    .committee-preview {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .why-grid {
        grid-template-columns: 1fr;
    }


    .cta-box {
        align-items: flex-start;

        flex-direction: column;
    }

}


@media (max-width: 700px) {

    .container {
        width: min(
            100% - 1.4rem,
            1160px
        );
    }


    .site-nav {
        display: none;
    }


    .header-inner {
        min-height: 70px;
    }


    .hero {
        min-height: 620px;
    }


    .hero-content {
        padding: 4rem 0;
    }


    .hero h1 {
        font-size: clamp(
            3rem,
            14vw,
            4.5rem
        );
    }


    .hero-home::after {
        background:
            linear-gradient(
                90deg,
                rgba(33,23,34,.92),
                rgba(43,25,43,.72)
            );
    }


    .section {
        padding: 4rem 0;
    }


    .image-stack {
        min-height: 350px;
    }


    .image-stack img:first-child {
        width: 80%;
        height: 280px;
    }


    .image-stack img:last-child {
        width: 58%;
        height: 175px;
    }


    .feature-image img {
        height: 350px;
    }


    .committee-preview {
        grid-template-columns: 1fr;
    }


    .cta-box {
        padding: 2rem 1.4rem;
    }


    .cta-actions {
        width: 100%;
    }


    .cta-actions .btn {
        flex: 1;
    }


    .footer-inner {
        flex-direction: column;
    }

}


@media (max-width: 450px) {

    .hero-actions {
        flex-direction: column;
    }


    .hero-actions .btn {
        width: 100%;
    }


    .image-stack {
        min-height: 310px;
    }


    .image-stack img:first-child {
        height: 245px;
    }


    .image-stack img:last-child {
        height: 150px;
    }


    .ubuntu-box h2 {
        font-size: 1.8rem;
    }

}
@media (max-width: 900px) {

    .feature-grid {
        grid-template-columns: 1fr;

        gap: 3rem;
    }

    .feature-image img {
        height: 450px;
    }

    .committee-preview {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .feature-section {
        padding: 4.5rem 0;
    }

    .feature-content h2 {
        font-size: 2.7rem;
    }

    .feature-image img {
        height: 350px;
    }

    .ubuntu-section {
        padding: 5rem 0;
    }

    .ubuntu-section::before {
        font-size: 10rem;
    }

    .committee-section {
        padding: 5rem 0;
    }

    .committee-preview {
        grid-template-columns: 1fr;
    }
}