/* --- 1. Variables --- */
:root {
    --font-museo-900: 'museo900', sans-serif;
    --font-museo-700: 'museo700', sans-serif;
    --font-gsk-precision: 'gsk_precisionregular', sans-serif;
    --font-gsk-precision-italic: 'gsk_precisionregular_italic', sans-serif;
    --font-gsk-precision-light: 'gsk_precisionlight', sans-serif;

    /* Colors extracted from design */
    --color-blue: #1c3c7a;
    --color-red: #d32027;
    --color-text: #333333;

    /* Button Gradient */
    --btn-grad-top: #08499c;
    --btn-grad-center: #082c75;
    --btn-grad-bottom: #090e4b;
}

/* --- 2. Global Section Styles --- */
.pledge-banner-section,
.pledge-content-section,
.thank-you-section {
    height: 100vh;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    display: none;
    min-height: 700px;
}

/* Specific Section Backgrounds */
.pledge-banner-section {
    background-image: url('../img/banner.webp');
    background-position: center center;
    padding: 80px 0;
}

.pledge-content-section {
    background-image: url('../img/bg-1.webp');
    background-position: top center;
    padding: 30px 0;
}

.thank-you-section {
    background-image: url('../img/bg-2.webp');
    background-position: top center;

}

/* --- 3. Typography --- */
.heading-blue {
    font-family: var(--font-museo-700);
    color: var(--color-blue);
    font-size: clamp(20px, 2.7vw, 10rem);
}

.heading-red {
    font-family: var(--font-museo-900);
    color: var(--color-red);
    font-size: clamp(20px, 2.7vw, 10rem);
}

.content-text {
    font-family: var(--font-gsk-precision);
    color: var(--color-text);
    font-size: clamp(20px, 2vw, 9.8rem);
    line-height: 1.1;
}

.text-content-wrapper {
    padding-left: 40px;
}

img.logo-img {
    position: absolute;
    z-index: 99;
    top: 30px;
    right: 30px;
}

/* Content Section Typography */
.pledge-content-section h1,
.pledge-content-section h2,
.thank-you-section h1,
.thank-you-section h2 {
    font-size: clamp(20px, 3.3vw, 10rem);
}

.pledge-content-section .content-text {
    font-family: var(--font-gsk-precision-italic);
    color: var(--color-blue);
    font-size: clamp(20px, 2.4vw, 10rem);
    padding: 0 50px;
    position: relative;
    display: inline-block;
    text-align: center;
}

.thank-you-section .content-text {
    font-size: clamp(20px, 2.5vw, 10rem);
    line-height: 1.2;
    font-family: var(--font-gsk-precision-light);
}

/* Quotes (::before and ::after) */
.pledge-content-section .content-text::before,
.pledge-content-section .content-text::after {
    content: '';
    display: inline-block;
    width: 80px;
    height: 75px;
    background-image: url('../img/quote.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.4;
    vertical-align: middle;
}

.pledge-content-section .content-text::before {
    margin-right: 15px;
    margin-top: -45px;
}

.pledge-content-section .content-text::after {
    margin-left: 15px;
    margin-bottom: -20px;
    transform: rotate(180deg);
}

/* --- 4. Components & Logos --- */
.btn-tap {
    font-family: var(--font-gsk-precision);
    background: linear-gradient(to bottom, var(--btn-grad-top) 0%, var(--btn-grad-center) 50%, var(--btn-grad-bottom) 100%);
    color: #ffffff;
    font-size: 2.25rem;
    padding: 8px 60px;
    border-radius: 25px;
    border: 0;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
    -webkit-box-reflect: below 0px linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.1) 100%);
    display: inline-block;
}

.btn-tap:hover,
.btn-tap:active,
.btn-tap:focus,
.btn-tap:focus-visible {
    color: #ffffff;
    background: linear-gradient(to bottom, #0a52ad 0%, var(--btn-grad-center) 50%, var(--btn-grad-bottom) 100%);
}

.cursor-icon {
    position: absolute;
    bottom: -15px;
    right: -10px;
    pointer-events: none;
    width: 60px;
    animation: tapAnimation 1.5s infinite alternate;
}

@keyframes tapAnimation {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(5px) scale(0.95); }
    100% { transform: translateY(0) scale(1); }
}

.disclaimer-wrap {
    position: absolute;
    bottom: 0;
}

.tablet-img {
    max-width: 180px;
    height: auto;
}

.ccm-logo {
    max-width: 150px;
    height: auto;
}

.disclaimer-text {
    font-family: var(--font-gsk-precision);
    font-size: 0.6rem;
    color: #555555;
    line-height: 1.2;
    max-width: 95%;
}

.pledge-content-section .container-fluid {
    max-width: 70%;
}

/* Fade-in Animation */
.fade-in {
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 5. Media Queries --- */

@media (min-width: 1400px) {
    body { overflow: hidden; }
}

@media (max-width: 1024px) {
    .heading-blue,
    .heading-red {
        font-size: clamp(32px, 2.7vw, 10rem);
    }
    .content-text { font-size: 24px; }
    .btn-tap { font-size: 1.55rem; }

    .pledge-content-section .container-fluid { max-width: 80%; }

    .pledge-content-section h1, .pledge-content-section h2,
    .thank-you-section h1, .thank-you-section h2 {
        font-size: 40px;
    }

    .pledge-content-section .content-text,
    .thank-you-section .content-text {
        font-size: 24px;
    }

    .pledge-content-section .content-text::before,
    .pledge-content-section .content-text::after {
        width: 60px;
        height: 50px;
    }

    .tablet-img { max-width: 120px; }
}

@media (max-width: 991px) {
    .pledge-banner-section {
        background-position: left center;
        padding: 0;
    }
    .text-content-wrapper {
        background: rgba(255, 255, 255, 0.75);
        padding: 30px 20px;
        border-radius: 15px;
        margin-top: 80%;
    }
    .heading-blue, .heading-red { font-size: 2rem; }
    .content-text { font-size: 1.6rem; }
    .btn-tap { padding: 10px 40px; font-size: 1.8rem; }

    .pledge-content-section .container-fluid { max-width: 100%; }
    .ccm-logo, .tablet-img { max-width: 80px; }
}

@media (max-width: 767px) {
    .pledge-banner-section {
        background-position: 0px 0px;
        background-size: 180%;
    }
    .text-content-wrapper {
        background: transparent;
    }
    .content-text {
        font-size: 18px;
        margin-bottom: 20px !important;
    }
    .btn-tap {
        font-size: 20px;
        padding-right: 50px;
    }
    .cursor-icon { width: 50px; }

    .pledge-content-section h1, .pledge-content-section h2,
    .thank-you-section h1, .thank-you-section h2 {
        font-size: 30px;
    }

    .pledge-content-section .content-text,
    .thank-you-section .content-text {
        font-size: 1.2rem;
        padding: 0 15px;
    }

    .pledge-content-section .content-text::before,
    .pledge-content-section .content-text::after {
        width: 40px;
        height: 40px;
    }

    .pledge-banner-section,
    .pledge-content-section,
    .thank-you-section { min-height: 400px; }
    .thank-you-section .container-fluid { margin-top: -100px !important; }

    .tablet-img { max-width: 100px; }
    .ccm-logo { max-width: 110px; }
    .disclaimer-text { font-size: 0.45rem; }
}