/* ---------------------------------- */
/* 1. General Setup & Variables       */
/* ---------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #EEF5FA;
    --secondary: #001C3F;
    --comp-yellow: #FFE501;
    --comp-blue: #399CDB;
}

body {
    background-color: var(--primary);
    font-family: "gotham-narrow", sans-serif;
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 4rem;
    padding-right: 4rem;
}

/* ---------------------------------- */
/* 2. Typography System               */
/* ---------------------------------- */

.header {
    font-size: 48px;
    font-weight: 700;
}

.subheader {
    font-size: 28px;
    font-weight: 500;
}

.body-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.button-text {
    font-size: 14px;
    font-weight: 700;
}


/* ---------------------------------- */
/* 3. Header and Navigation           */
/* ---------------------------------- */

header {
    background-color: var(--primary);
    color: var(--secondary);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 28, 63, 0.1);
    transition: top 0.3s ease-in-out;
}

/* This class is added by JavaScript to hide the header on scroll */
.header-hidden {
    top: -100px;
}

/* Offsets the main content to account for the fixed header */
main {
    padding-top: 80px;
}

header nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.menu-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 14px;
    font-weight: 700;
}

.logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 2.5rem;
}

.logo-container img {
    height: 100%;
}

.social-button {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    border: 2px solid var(--comp-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 700;
}

.social-button:hover {
    background-color: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

/* Mobile Navigation Styles */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--secondary);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.active {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 3rem;
    cursor: pointer;
}

.mobile-nav-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.mobile-nav-logo img {
    height: 3rem;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin: 2rem 0;
}

.mobile-nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 500;
}

.mobile-nav-socials {
    display: flex;
    gap: 2rem;
}

.mobile-nav-socials img {
    width: 32px;
    height: 32px;
}


/* ---------------------------------- */
/* 4. Hero Section                    */
/* ---------------------------------- */

.hero-section {
    position: relative;
    height: 100vh;
    background-color: var(--secondary);
    overflow: hidden;
    margin-top: -80px;
}

.background-image {
    position: absolute;
    inset: 0;
}

.background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top,
        var(--secondary) 0%,
        rgba(0, 28, 63, 0.7) 30%,
        rgba(0, 28, 63, 0.4) 60%,
        transparent 100%
    );
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 4rem;
    z-index: 2;
}

.hero-text h1 {
    color: var(--comp-blue);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.1;
}

.hero-text .subheader {
    color: var(--primary);
    margin-top: 0.5rem;
}

.riders-button {
    position: absolute;
    bottom: 4rem;
    right: 4rem;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--comp-yellow);
    background-color: rgba(238, 245, 250, 0.1);
    backdrop-filter: blur(4px);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 700;
}

.riders-button:hover {
    background-color: var(--comp-yellow);
    color: var(--secondary);
    border-color: var(--comp-yellow);
}

/* ---------------------------------- */
/* 5. Problem Statement Section       */
/* ---------------------------------- */

.problem-section {
    position: relative;
    background-color: var(--secondary);
    padding: 14rem 0;
    text-align: center;
    overflow: hidden;
}

.problem-content h2 {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 2rem;
}

.problem-content .subheader {
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    color: var(--primary);
}

.problem-content strong {
    color: var(--comp-yellow);
    font-weight: 700;
}

.ornament-container img {
    width: 300px;
    height: auto;
}


/* ---------------------------------- */
/* 6. Solution Section                */
/* ---------------------------------- */

.solution-section {
    background-image: linear-gradient(180deg, var(--secondary) 0%, var(--primary) 30%);
    padding: 22rem 0 12rem 0;
    position: relative;
    z-index: 2;
}

.solution-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.solution-text {
    flex: 1;
}

.solution-text h3 {
    color: var(--secondary);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.solution-text .header {
    color: var(--comp-blue);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.solution-text .body-text {
    color: var(--secondary);
}

.solution-image {
    flex: 1;
}

.solution-image img {
    width: 100%;
    max-width: 642px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 28, 63, 0.1);
    display: block;
    margin: 0 auto;
}

/* ---------------------------------- */
/* 7. How It Works Section            */
/* ---------------------------------- */

.how-it-works-section {
    background-color: var(--primary);
    padding: 2rem 0 10rem 0;
    text-align: center;
}

.how-it-works-section .header {
    margin-bottom: 4rem;
    color: var(--secondary);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.how-it-works-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--comp-blue);
    background: #ffffff;
    box-shadow: 0 4px 20px 0 rgba(0, 28, 63, 0.20);
    text-align: left;
}

.how-it-works-card svg {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.how-it-works-card h3 {
    color: var(--secondary);
    font-size: 28px;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: -0.308px;
    margin-top: 0;
}

.how-it-works-card .body-text {
    color: var(--secondary);
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: -0.176px;
}

/* ---------------------------------- */
/* 8. Your Story, Their Badge Section */
/* ---------------------------------- */

.story-badge-section {
    background-color: var(--primary);
    /* FIXED: Changed padding to be symmetrical */
}

.story-badge-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.story-text {
    flex: 1;
}

.story-text .header {
    color: var(--comp-blue);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.story-image {
    flex: 1;
    height: 400px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    max-width: 642px;
    height: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 28, 63, 0.1);
    display: block;
    /* Fills the container and crops the image without squishing it */
    object-fit: cover;
}

/* ---------------------------------- */
/* 9. Badges Section                  */
/* ---------------------------------- */

.badges-section {
    background-color: var(--primary);
    padding: 4rem 0 12rem 0;
    text-align: center;
}

.badges-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4.5rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 120px;
    transition: transform 0.3s ease;
}

.badge-item:hover {
    transform: scale(1.5);
}


.badge-item img {
    width: 120px;
    height: auto;
}

.badge-item p {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
}

/* ---------------------------------- */
/* 10. Testimonials Section           */
/* ---------------------------------- */

.testimonial-section {
    background-color: var(--primary);
    padding: 6rem 0;
    text-align: center;
}

.testimonial-section .header {
    color: var(--comp-blue);
    margin-bottom: 4rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    display: flex;
    padding: 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    flex: 1 0 0;
    border-radius: 30px;
    border: 1px solid var(--comp-yellow);
    background: #FFF;
    box-shadow: 0 4px 20px 0 rgba(0, 28, 63, 0.20);
    text-align: left;
}

.testimonial-card .body-text {
    flex-grow: 1;
}

.testimonial-card .handle {
    font-weight: 700;
    color: var(--secondary);
}

.pagination-dots {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #D9D9D9;
}

.dot.active {
    background-color: var(--secondary);
}


/* ---------------------------------- */
/* 11. Ready to Make a Change Section */
/* ---------------------------------- */

.change-section {
    background-color: var(--primary);
    padding: 6rem 0;
}

.change-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.change-image {
    flex: 1;
}

.change-image img {
    width: 100%;
    max-width: 390px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.change-text {
    flex: 1;
}

.change-text .header {
    color: var(--comp-blue);
    margin-bottom: 1.5rem;
}

.change-text .subheader {
    color: var(--secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.steps-list {
    list-style: none;
    padding-left: 0;
}

.steps-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 20px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    background-color: var(--secondary);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.steps-list {
    counter-reset: step-counter;
}

/* ---------------------------------- */
/* 12. Social Media Section           */
/* ---------------------------------- */

.social-section {
    background-color: var(--primary);
    padding: 1rem 0;
    text-align: center;
}

.social-section .header {
    color: var(--comp-blue);
    margin-bottom: 1rem;
}

.social-section .subheader {
    color: var(--secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.social-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 28, 63, 0.1);
}

/* ---------------------------------- */
/* 13. Footer                         */
/* ---------------------------------- */

footer {
    background-color: var(--primary);
    padding: 8rem 0 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Creates the pattern layer behind the footer content */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/SVG/footer-pattern1.svg');
    background-repeat: repeat-x;
    background-position: -32px 0px;
    background-size: auto 90%;
    transform: rotate(1deg);
    opacity: 0.1;
    z-index: 0;
}

/* Ensures the footer content sits on top of the pattern */
.footer-content {
    position: relative;
    z-index: 1;
}

.footer-logo img {
    height: 3rem;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-socials a {
    color: var(--secondary);
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--comp-blue);
}

.footer-socials img {
    width: 32px;
    height: 32px;
}

.copyright {
    font-size: 14px;
    color: var(--secondary);
    opacity: 0.7;
}


/* ------------------------------------------- */
/* 14. Responsive Design (Mobile & Tablet)     */
/* ------------------------------------------- */

/* Tablet Styles */
@media (max-width: 1024px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-it-works-grid {
        grid-template-columns: 1fr;
    }

    .change-content {
        flex-direction: column;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .logo-container {
        height: 2rem;
    }

    .background-image img {
        object-position: 14% 50%;
    }

    .hero-content {
        gap: 1.5rem;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .subheader {
        font-size: 20px;
    }

    .pagination-dots {
        display: none;
    }

    .riders-button {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        text-align: center;
    }

    .problem-section {
        padding: 6rem 0;
    }

    .solution-content {
        flex-direction: column;
        gap: 2rem;
    }

    .header {
        font-size: 32px;
    }

    .story-image {
        aspect-ratio: auto;
    }

    .story-badge-content {
        flex-direction: column;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid,
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
}

/* Smaller Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .header {
        font-size: 28px;
    }

    .subheader {
        font-size: 18px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .problem-section {
        padding: 4rem 0;
    }

    .how-it-works-card {
        padding: 1.5rem;
    }

    .how-it-works-card h3 {
        font-size: 24px;
    }

    .badges-grid {
        gap: 2rem;
    }

    .badge-item {
        max-width: 100px;
    }

    .badge-item img {
        width: 60px;
        height: auto;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .change-text {
        text-align: center;
    }

    .steps-list li {
        text-align: left;
        font-size: 16px;
        gap: 1rem;
    }

    .steps-list li::before {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

