/* Component Styles - Chris Pollak Campaign Website */

/* Temporarily disabled links (e.g. Donate buttons) */
.is-disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Header/Navigation Component */
#header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    padding: 0;
    box-sizing: border-box;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none;
    margin: 0;
    padding: 0 40px;
    height: 100px; /* Fixed height for navbar */
    background-color: #000;
}

.nav-brand {
    margin-left: 0;
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    width: 480px; /* Reserve space for the wide floating logo */
    flex-shrink: 0;
}

.nav-right {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Countdown banner under the navbar */
.countdown-banner {
    background: #002868; /* Old Glory / American flag blue */
    color: var(--primary-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.75rem;
    padding: 8px 40px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 1;
}

.countdown-label {
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1rem;
}

.countdown-timer {
    display: flex;
    gap: 1.25rem;
}

.countdown-link {
    color: #ffd21f; /* yellow */
    font-weight: var(--font-weight-bold);
    font-size: 1.05rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.countdown-link:hover {
    color: #fff;
}

.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    min-width: 48px;
}

.cd-unit strong {
    font-size: 1.6rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.cd-unit span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
    opacity: 0.85;
}



.btn-donate {
    background-color: var(--primary-red);
    color: var(--primary-white);
    padding: 10px 20px;
    border: 2px solid var(--primary-red);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
}

.btn-donate:hover {
    background-color: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.nav-brand h1 {
    color: var(--primary-white);
    font-size: 1.5rem;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: var(--font-weight-bold);
}

.nav-logo {
    width: 460px;
    height: 300px;
    object-fit: fill;
    max-width: none;
    display: block;
    position: absolute;
    top: -8px;
    left: 16px;
    z-index: 1001;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.nav-menu {
    grid-column: 2;
    justify-self: center;
    display: flex;
    gap: 8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

/* Float the donate button to the far right corner */
.nav-donate {
    grid-column: 3;
    justify-self: end;
}

.nav-menu a {
    color: var(--primary-white);
    font-family: 'Montserrat', sans-serif;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.3rem;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-normal);
}

.nav-menu a:hover,
.nav-menu a:focus {
    border-bottom-color: var(--primary-red);
    color: var(--primary-white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-white);
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section Component */
.hero-section {
    min-height: 70vh;
    background-image: url('../assets/heroBG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px; /* Account for absolute header and larger logo */
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 800px;
    gap: 40px;
    align-items: end;
    margin-bottom: 0;
    padding-bottom: 0;
    min-height: calc(70vh - 120px);
}

/* Campaign logo, now living in the hero above the tagline */
.hero-logo {
    display: block;
    width: 460px;
    max-width: 100%;
    aspect-ratio: 460 / 300;
    height: auto;
    object-fit: fill;
    margin: 0 0 24px 0;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.hero-subtitle {
    background-color: var(--primary-red);
    color: var(--primary-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    padding: 8px 16px;
    display: inline-block;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-tagline {
    margin-bottom: 80px;
}

.tagline-main {
    color: var(--primary-red);
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.tagline-script {
    color: var(--primary-white);
    font-family: 'Hyperwave One', 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: var(--font-weight-extrabold);
    font-style: italic;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: rotate(-2deg);
    display: inline-block;
    line-height: 1;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-self: end;
    align-self: end;
    width: 800px;
}

.hero-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: calc(70vh - 168px);
    object-fit: contain;
    border: 5px solid var(--primary-white);
    border-radius: 10px;
    box-shadow:
        0 0 0 3px var(--primary-red),
        0 16px 40px rgba(0, 0, 0, 0.45);
    margin: 0 0 48px 0;
    padding: 0;
    display: block;
}

/* About Section Component */
.about-section {
    background-color: var(--background-light);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#about-heading {
    color: var(--primary-blue);
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    margin-bottom: 30px;
}

/* Issues Section Component */
.issues-section {
    background-color: var(--primary-blue);
    color: var(--primary-white);
}

.issues-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#issues-heading {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    margin-bottom: 50px;
    color: var(--primary-white);
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* News Section Component */
.news-section {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.news-header {
    text-align: center;
    margin-bottom: 60px;
}

.news-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue);
    letter-spacing: 2px;
    margin: 0;
    position: relative;
    display: inline-block;
}

.news-title::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
}

.news-accent {
    color: var(--primary-blue);
}

.news-red {
    color: var(--primary-red);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-badge {
    display: inline-block;
    padding: 6px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 1px;
    border-radius: 4px;
    color: white;
    margin-bottom: 12px;
}

.news-badge-video {
    background-color: var(--primary-red);
}

.news-badge-article {
    background-color: var(--primary-blue);
}

.news-badge-statement {
    background-color: #4a9eff;
}

.news-card-content {
    padding: 25px;
}

.news-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.news-card-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.news-cta {
    text-align: center;
    margin-top: 50px;
}

.btn-view-more {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-red);
    background: transparent;
    border: 2px solid var(--primary-red);
    padding: 15px 40px;
    border-radius: 4px;
    cursor: not-allowed;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.btn-view-more:not(:disabled) {
    cursor: pointer;
    opacity: 1;
}

.btn-view-more:not(:disabled):hover {
    background-color: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Bottom Banner - Voting Action Section */
.bottom-banner {
    background: #000;
    padding: 60px 0;
    text-align: center;
}

.bottom-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.banner-logo {
    display: flex;
    justify-content: center;
}

.banner-logo-image {
    width: 60vw;
    max-width: 920px;
    aspect-ratio: 460 / 300;
    height: auto;
    object-fit: fill;
}

.banner-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--primary-red);
    color: white;
    border: 2px solid var(--primary-red);
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: var(--font-weight-semibold);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.banner-btn:hover {
    background: transparent;
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Stay Connected / Join Campaign Section */
.stay-connected-section {
    background-color: #f5f5f5;
    background-image: url('../assets/pressBG.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 5rem 0 0 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.stay-connected-section .container {
    position: relative;
    z-index: 3;
}

.stay-connected-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 4;
    padding: 0 2rem;
}

.campaign-info {
    padding: 2rem 0;
}

.campaign-title {
    font-size: 4rem;
    font-weight: var(--font-weight-black);
    color: var(--primary-blue);
    margin: 0;
    line-height: 0.9;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.campaign-title-red {
    color: var(--primary-red);
}

.campaign-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4b5563;
    margin-top: 2rem;
    max-width: 500px;
}

.contact-info {
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 550px;
    margin: -4rem auto 12rem auto;
    border-bottom: 12px solid var(--primary-blue);
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 2.5rem;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.form-title {
    font-size: 2.2rem;
    font-weight: var(--font-weight-black);
    color: var(--primary-blue);
    margin: 1rem 0 1.5rem 0;
    text-transform: uppercase;
    text-align: left;
    letter-spacing: 0.02em;
    font-family: 'Montserrat', sans-serif;
}

.contact-form {
    display: block;
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-group {
    position: relative;
}

.form-group.form-full-width {
    width: 100%;
    display: block;
}

.form-group.form-spacing {
    margin-bottom: 1.25rem;
}

.form-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    padding-right: 3rem;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    background-color: var(--primary-blue);
    border: none;
    color: white;
    padding: 1.25rem 2rem;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    font-family: 'Montserrat', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.form-submit-btn:hover {
    background-color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

/* Form validation styles */
.form-input.valid {
    border-color: #10b981;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input.invalid {
    border-color: var(--primary-red);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.field-error {
    color: var(--primary-red);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    margin: 0 0 1rem 0;
}

.modal-description {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.modal-preferences {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
}

.modal-submit {
    width: 100%;
    background-color: var(--primary-blue);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-submit:hover {
    background-color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.campaign-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 3rem 0;
    position: relative;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    margin: 0;
    font-size: 1rem;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-social-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.campaign-actions h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
}

/* Support Campaign Banner Component */
.support-campaign-banner {
    background: var(--primary-red);
    padding: 4rem 0;
    margin: 0;
    margin-top: -1px;
}

.support-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.support-text {
    flex: 1;
}

.support-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-white);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
}

.support-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-white);
    margin: 0;
    opacity: 0.9;
}

.support-action {
    flex: 0 0 auto;
    margin-left: 2rem;
}

.btn-outline-white {
    background: transparent;
    color: var(--primary-white);
    border: 3px solid var(--primary-white);
    padding: 1.5rem 3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
}

.btn-outline-white:hover {
    background: var(--primary-white);
    color: var(--primary-red);
}

/* About Section Component */
.about-section {
    background: #f5f5f5;
    padding: 0 !important;
}

.about-section .container {
    max-width: none;
    margin: 0;
    padding: 0 2rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 6rem;
    padding: 6rem 0;
    max-width: 1600px;
    margin: 0 auto;
}

.about-image {
    flex: 1 1 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
}

.image-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
}

.about-photo {
    width: 100%;
    aspect-ratio: 660 / 505;
    height: auto;
    object-fit: cover;
    position: relative;
    z-index: 1;
    display: block;
}

/* The top and bottom photos are plain images; recreate the white frame + red
   corner brackets that the middle photo has baked in, so they all match. */
.about-image .image-frame:first-child,
.about-image .image-frame:last-child {
    background: var(--primary-white);
    padding: 14px;
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.about-image .image-frame:first-child::before,
.about-image .image-frame:first-child::after,
.about-image .image-frame:last-child::before,
.about-image .image-frame:last-child::after {
    content: '';
    position: absolute;
    width: 52px;
    height: 52px;
    border: 6px solid var(--primary-red);
    z-index: 2;
    pointer-events: none;
}

.about-image .image-frame:first-child::before,
.about-image .image-frame:last-child::before {
    top: -12px;
    left: -12px;
    border-right: none;
    border-bottom: none;
}

.about-image .image-frame:first-child::after,
.about-image .image-frame:last-child::after {
    bottom: -12px;
    right: -12px;
    border-left: none;
    border-top: none;
}

/* Keep the tops of heads in the bottom photo (crop from the bottom instead) */
.about-image .image-frame:last-child .about-photo {
    object-position: top;
}

.about-text {
    flex: 1 1 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Center the text as a block within the right half (mirrors the centered photos) */
.about-text > * {
    width: 100%;
    max-width: 640px;
}

.about-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #1a2332;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    line-height: 1.1;
}

.title-accent {
    color: #dc2626;
}

.about-subtitle {
    font-size: 2.8rem;
    font-weight: 900;
    color: #dc2626;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.about-description {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1.5rem;
}

.about-callout {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2332;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Platform Section Component */
.platform-section {
    background: #1e3a8a;
    color: white;
    padding: 0;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
}

.platform-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.platform-bg-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 1;
}

.platform-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    padding: 5rem 2rem 0 2rem;
}

.platform-header::before {
    content: '';
    position: absolute;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #dc2626;
}

.platform-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0;
    font-family: 'Montserrat', sans-serif;
}

.platform-subtitle {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0;
    font-family: 'Montserrat', sans-serif;
}

.fight-accent {
    color: #dc2626;
}

.platform-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem 5rem 3rem;
}

.platform-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.platform-image-frame {
    position: relative;
    border: none;
    overflow: visible;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 2000 / 994;
}

/* Red L-shaped corner brackets (top-left + bottom-right) */
.platform-image-frame::before,
.platform-image-frame::after {
    content: '';
    position: absolute;
    width: 64px;
    height: 64px;
    border: 5px solid var(--primary-red);
    z-index: 2;
    pointer-events: none;
}

.platform-image-frame::before {
    top: -14px;
    left: -14px;
    border-right: none;
    border-bottom: none;
}

.platform-image-frame::after {
    bottom: -14px;
    right: -14px;
    border-left: none;
    border-top: none;
}

.platform-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Platform Tabs */
.platform-tabs {
    display: flex;
    margin-top: 2rem;
    background: var(--primary-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
    border-top: 5px solid var(--primary-red);
    min-height: 420px;
}

/* Left column: the tab list */
.platform-tabs-nav {
    flex: 0 0 34%;
    display: flex;
    flex-direction: column;
    background: #f6f7f9;
    border-right: 1px solid var(--border-color);
}

.platform-tab {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1.1rem 1.35rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
    line-height: 1.25;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.platform-tab:last-child {
    border-bottom: none;
}

.platform-tab:hover {
    background: #fdecec;
    color: var(--primary-red);
}

.platform-tab:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: -2px;
}

.platform-tab-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-red);
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.platform-tab.is-active {
    background: var(--primary-red);
    color: var(--primary-white);
}

.platform-tab.is-active .platform-tab-num {
    color: var(--primary-white);
}

/* Right column: the active panel */
.platform-tabs-panels {
    flex: 1;
    padding: 2.25rem 2.5rem;
}

.platform-tab-panel[hidden] {
    display: none;
}

.platform-tab-panel {
    animation: platformTabFade var(--transition-normal) ease;
}

.platform-tab-panel:focus-visible {
    outline: none;
}

@keyframes platformTabFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.platform-tab-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: var(--font-weight-extrabold);
    line-height: 1.15;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin: 0 0 0.6rem;
}

.platform-tab-lede {
    font-family: 'Montserrat', sans-serif;
    font-weight: var(--font-weight-semibold);
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--primary-red);
    margin: 0 0 1.25rem;
}

.platform-tab-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.platform-tab-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.7rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.platform-tab-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    transform: rotate(45deg);
}

.platform-tab-list li:last-child {
    margin-bottom: 0;
}

.platform-tab-emphasis {
    font-family: 'Montserrat', sans-serif;
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
    line-height: 1.4;
    color: var(--primary-blue);
    border-left: 4px solid var(--primary-red);
    padding-left: 0.95rem;
    margin: 1.5rem 0 0;
}

/* Footer Component */
footer {
    background-color: var(--text-dark);
    color: var(--primary-white);
    text-align: center;
    padding: 20px 0;
}

/* --- Temporarily disabled contact form ("coming soon") --------------------
   The form is marked `inert` in the markup; this overlays a transparent hit
   area that reveals a "coming soon" message on hover / focus / tap. */
.form-disabled-wrap {
    position: relative;
}

/* Dim and soften the form beneath so it clearly reads as inactive. */
.form-disabled-wrap form[data-form-disabled] {
    opacity: 0.5;
    filter: grayscale(35%);
    pointer-events: none; /* belt-and-suspenders alongside the `inert` attribute */
    user-select: none;
}

/* Transparent button covering the whole form; centers the message bubble. */
.form-coming-soon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-coming-soon:focus-visible {
    outline: 2px solid var(--primary-red, #DC2626);
    outline-offset: 4px;
    border-radius: 8px;
}

/* Message bubble — hidden until the overlay is hovered, focused, or tapped. */
.form-coming-soon__tooltip {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    max-width: 20rem;
    padding: 0.75rem 1.25rem;
    background: var(--primary-red, #DC2626);
    color: #fff;
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.form-coming-soon:hover .form-coming-soon__tooltip,
.form-coming-soon:focus-visible .form-coming-soon__tooltip,
.form-coming-soon.is-active .form-coming-soon__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile and Tablet Responsive Adjustments for Components */
@media screen and (max-width: 1023px) {
    /* Navigation mobile and tablet adjustments */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-right {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        /* Override the desktop grid: flex-direction only works on a flex box,
           otherwise the donate button auto-places into the grid's middle column
           and floats mid-screen. */
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        overflow-y: auto;
        background-color: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 9999;
    }
    
    .nav-right.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0; /* override the desktop 8rem gap that spread items apart */
        margin-bottom: 0;
    }

    .nav-menu li {
        margin: 0;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 6px 10px;
        font-size: 1.1rem;
    }
    
    .nav-donate {
        text-align: center;
        padding-top: 16px; /* sits directly under the nav links */
    }
    
    .nav-logo {
        height: 70px; /* Tablet: fits within navbar strip */
        width: auto;
        max-width: none;
        display: block;
        position: absolute;
        top: 10px;
        left: 20px;
        z-index: 1001;
    }
    
    /* Hero section mobile layout */
    .hero-section {
        min-height: auto;
        padding-bottom: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        height: auto;
        align-items: center;
    }

    .hero-image,
    .hero-image img {
        width: 100%;
        max-width: 480px;
    }

    .hero-image {
        margin: 0 auto;
        justify-self: center;
        align-self: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .tagline-main {
        font-size: 1.4rem;
    }
    
    .tagline-script {
        font-size: 1.6rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    /* About section mobile layout */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    /* Campaign section mobile layout */
    .campaign-actions {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Support banner mobile layout */
    .support-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .support-action {
        margin-left: 0;
    }
    
    .support-title {
        font-size: 2rem;
    }
    
    .support-description {
        font-size: 1.1rem;
    }
    
    .btn-outline-white {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }
}

/* Additional Mobile-only adjustments */
@media screen and (max-width: 767px) {
    /* Shrink the black top bar to just fit the hamburger (30px + padding). */
    .navbar {
        height: 56px;
        padding: 0 18px;
    }

    /* Open the slide-in menu directly under the shorter navbar. */
    .nav-right {
        top: 56px;
    }

    .nav-logo {
        height: 55px;
        max-width: none;
        top: 15px;
        left: 15px;
    }

    /* Hero section mobile layout */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        height: auto;
        padding: 0 15px;
        align-items: center;
    }

    .hero-text {
        align-self: center;
        margin-top: 0;
    }

    .hero-image {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        position: relative;
        justify-self: center;
        align-self: center;
    }
    
    .hero-image img {
        width: 100%;
        max-width: 280px;
        position: static;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .tagline-main {
        font-size: 2rem;
    }
    
    .tagline-script {
        font-size: 2.5rem;
    }
    
    /* About section mobile layout */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    /* Campaign section mobile layout */
    .campaign-actions {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* About section mobile layout */
    .about-content {
        flex-direction: column;
        gap: 3rem;
        padding: 3rem 0;
    }
    
    .about-image {
        flex: none;
        order: 1;
    }
    
    .about-text {
        padding-left: 0;
        text-align: left;
        order: 2;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .about-subtitle {
        font-size: 1.8rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    /* Platform section mobile layout */
    .platform-section {
        padding: 3rem 0 0 0;
    }
    
    .platform-content {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem 3rem 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .platform-image-frame {
        width: 70%;
        max-width: 280px;
    }
    
    /* Stack the tabs: nav on top, panel below */
    .platform-tabs {
        flex-direction: column;
        min-height: 0;
        width: 100%;
    }

    .platform-tabs-nav {
        flex: none;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .platform-tab {
        padding: 0.9rem 1.1rem;
        font-size: 0.82rem;
    }

    .platform-tabs-panels {
        padding: 1.5rem 1.35rem;
    }

    .platform-title,
    .platform-subtitle {
        font-size: 2rem;
    }

    .platform-tab-title {
        font-size: 1.2rem;
    }

    .platform-tab-lede {
        font-size: 0.98rem;
    }

    .platform-tab-list li {
        font-size: 0.92rem;
    }
}

/* Mid-range Mobile (Surface Duo, etc.) */
@media screen and (min-width: 391px) and (max-width: 600px) {
    .tagline-main {
        font-size: 1.8rem;
    }

    .tagline-script {
        font-size: 2.2rem;
    }
}

/* Extra Small Mobile (iPhone SE and smaller) */
@media screen and (max-width: 390px) {
    .hero-image,
    .hero-image img {
        max-width: 240px;
    }

    .tagline-main {
        font-size: 1.6rem;
    }

    .tagline-script {
        font-size: 2rem;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    /* Tablet-only adjustments */
    .hero-content {
        gap: 30px;
    }
    
    /* Larger hero fonts for tablet */
    .tagline-main {
        font-size: 3.5rem;
    }
    
    .tagline-script {
        font-size: 5rem;
    }
    
    .about-content {
        gap: 40px;
    }
    
    /* Support banner tablet layout */
    .support-campaign-banner {
        padding: 3rem 0;
    }
    
    /* Platform section tablet layout */
    .platform-image-frame {
        width: 100%;
        max-width: 480px;
        height: auto;
    }
    
    /* Slightly narrower tab list on tablet */
    .platform-tabs-nav {
        flex-basis: 38%;
    }

    .platform-tabs-panels {
        padding: 2rem 2rem;
    }

    .platform-content {
        padding: 0 2rem 5rem 2rem;
    }
}

/* Mid-desktop (Nest Hub Max, laptops ≤ 1439): scale logo + image column down */
@media screen and (min-width: 1200px) and (max-width: 1439px) {
    .nav-logo {
        height: 200px;
        top: 15px;
    }

    .hero-content {
        max-width: 100%;
        grid-template-columns: 1fr 620px;
        padding: 0 30px;
    }

    .hero-image,
    .hero-image img {
        width: 620px;
        max-width: 620px;
    }
}

/* Small-desktop / portrait-iPad-Pro: scale hero to fit between desktop and tablet */
@media screen and (min-width: 1024px) and (max-width: 1199px) {
    .hero-section {
        min-height: 500px;
    }

    .nav-logo {
        height: 140px;
        top: 20px;
    }

    .hero-content {
        max-width: 100%;
        grid-template-columns: 1fr 480px;
        gap: 30px;
        padding: 0 30px;
        height: auto;
        min-height: 380px;
        align-items: end;
    }

    .hero-image {
        width: 480px;
        align-self: end;
    }

    .hero-image img {
        max-width: 480px;
    }

    .tagline-main {
        font-size: 2.2rem;
    }

    .tagline-script {
        font-size: 3rem;
    }
}

