/* ==========================================================================
   SWABS WEBSITE - CENTRALIZED STYLES
   ========================================================================== */

/*
   This stylesheet contains all common styles used across the SWABS website.

   TABLE OF CONTENTS:
   1. Global Reset & Base Styles
   2. Layout & Containers
   3. Header Styles
   4. Common Section Styles (hero, content, mission)
   5. Card Components (mission, membership, support)
   6. Links & Buttons
   7. CTA Sections
   8. Image Containers & Tooltips
   9. Newsletter & Contact Forms
   10. Social Media (Facebook)
   11. Sponsor & Join Sections
   12. Footer Styles
   13. Responsive Design
*/

/* ==========================================================================
   1. GLOBAL RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    /* Prevents the page from being scrolled/shifted sideways on small screens */
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #e2e2e2;
}

img,
iframe,
video {
    max-width: 100%;
}

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

h2 {
  color: #921729;
  font-weight: bold;
  text-transform: uppercase;
}

/* ==========================================================================
   2. LAYOUT & CONTAINERS
   ========================================================================== */

main {
    padding: 2rem 0;
}

/* ==========================================================================
   3. HEADER STYLES
   ========================================================================== */
/* (Header styles defined below after sections) */

/* ==========================================================================
   4. COMMON SECTION STYLES
   ========================================================================== */
.hero-section,
.content-section,
.mission-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.content-section h2 {
    color: #921729;
    margin-bottom: 1rem;
}

.hero-section {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-section h1,
.hero-section h2 {
    color: #921729;
    margin-bottom: 1rem;
}

.hero-section h1 {
    font-size: 2.2rem;
}

.hero-section h2 {
    font-size: 2rem;
}

.hero-section p {
    text-align: left;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.hero-section p:last-child {
    margin-bottom: 0;
}

/* Mission section styles */
.mission-section {
    padding: 2.5rem;
}

.mission-section h2 {
    color: #921729;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.mission-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    font-style: italic;
}

/* ==========================================================================
   5. CARD COMPONENTS
   ========================================================================== */

/* Card grid layouts */
.mission-cards,
.membership-options,
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.membership-options,
.support-options {
    max-width: 800px;
    margin: 0 auto;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Individual cards */
.mission-card,
.membership-card,
.support-card {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #faf8f8 0%, #f5f0f0 100%);
    border-left: 4px solid #d5735b;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.membership-card,
.support-card {
    background: white;
    border-left: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-card.disabled {
    opacity: 0.6;
}

.mission-card:hover,
.membership-card:hover,
.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(209, 0, 36, 0.2);
}

.mission-card h3,
.membership-card h3,
.support-card h3 {
    color: #921729;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.membership-card h3,
.support-card h3 {
    font-size: 1.5rem;
}

.mission-card p,
.membership-card p,
.support-card p {
    color: #555;
    line-height: 1.7;
    font-size: 0.98rem;
}

.card-icon {
    font-size: 3rem;
}

/* ==========================================================================
   6. LINKS & BUTTONS
   ========================================================================== */

/* Links within content */
main a:not(.cta-button):not(.newsletter-link):not(.facebook-link) {
    color: #921729;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

main a:not(.cta-button):not(.newsletter-link):not(.facebook-link):hover {
    color: #dd0e24;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #dd0e24 0%, #921729 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: auto;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 14, 36, 0.3);
}

/* Email Reveal Button */
.email-reveal-btn {
    background: none;
    border: 1px solid #921729;
    border-radius: 4px;
    padding: 2px 8px;
    font: inherit;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    color: #921729;
    transition: color 0.2s, border-color 0.2s;
    vertical-align: middle;
}

.email-reveal-btn:hover {
    color: #dd0e24;
    border-color: #dd0e24;
}

.footer-notice .email-reveal-btn {
    color: white;
    border-color: rgba(255, 255, 255, 0.8);
}

.footer-notice .email-reveal-btn:hover {
    color: white;
    border-color: white;
    opacity: 0.85;
}

/* ==========================================================================
   7. CTA SECTIONS
   ========================================================================== */

/* Call-to-action section (And You?) */
.cta-section {
    background: linear-gradient(135deg, #921729 0%, #dd0e24 100%);
    padding: 3rem 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin-bottom: 1.5rem;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .cta-button {
    background: white;
    color: #921729;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta-section .cta-button:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   8. IMAGE CONTAINERS & TOOLTIPS
   ========================================================================== */
.hero-image-container,
.founding-image-container {
    position: relative;
    margin: 1.5rem 0;
}

.hero-image,
.founding-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-tooltip,
.founding-tooltip {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.hero-image-container:hover .hero-tooltip,
.founding-image-container:hover .founding-tooltip {
    opacity: 1;
}

/* ==========================================================================
   9. NEWSLETTER & CONTACT FORMS
   ========================================================================== */
.newsletter-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 20px;
    background-color: #d10024;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.newsletter-link:hover {
    background-color: #e7573b;
}

/* ==========================================================================
   10. SOCIAL MEDIA (FACEBOOK)
   ========================================================================== */
.facebook-section {
    text-align: center;
}

.facebook-link {
    display: inline-flex;
    align-items: center;
    background: #1877f2;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.facebook-link:hover {
    background: #166fe5;
}

.facebook-iframe-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.facebook-iframe-container iframe {
    max-width: 100%;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #e7573b;
}

.contact-info h3 {
    color: #921729;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #d10024;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   11. SPONSOR & JOIN SECTIONS
   ========================================================================== */
.sponsor-carousel h3 {
    color: #921729;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.sponsors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.sponsor-item {
    display: block;
    transition: transform 0.3s, opacity 0.3s;
}

.sponsor-item:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.sponsor-item img {
    height: 7rem;
    width: auto;
    object-fit: contain;
}

/* Join section (for future use) */
.join-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.join-section h2 {
    color: #921729;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.join-cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.join-card {
    flex: 1;
    min-width: 250px;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #e7583b 0%, #d10023dc 100%);
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.join-card h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.join-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(209, 0, 36, 0.4);
}

/* ==========================================================================
   3. HEADER STYLES
   ========================================================================== */

header {
    background: linear-gradient(135deg, #dd0e24 0%, #921729 100%);
    color: white;
    padding: 0.5rem 0;
    text-align: left;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-logo {
    height: 3rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.header-logo-link {
    display: flex;
    align-items: center;
}

.header-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.member-portal-link {
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border: 1px solid white;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.member-portal-link:hover {
    background-color: white;
    color: #dd0e24;
}

/* ==========================================================================
   12. FOOTER STYLES
   ========================================================================== */

.footer {
    background: #921729;
    color: white;
    padding: 1.5rem 0 1rem;
    margin-top: 0rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0rem;
    margin-bottom: 2rem;
}

.footer-notice {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.4rem 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-notice .construction-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.footer-notice p {
    margin: 0;
    color: white;
    font-size: 0.95rem;
}

.footer-notice a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.footer-notice a:hover {
    opacity: 0.8;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   13. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    /* Mobile header: logo + discreet member portal on the first row,
       navigation centered on its own row below. */
    header {
        padding: 0.4rem 0;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 0.25rem 0.75rem;
    }

    .header-logo {
        height: 2.25rem;
    }

    .header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 0.15rem 0.25rem;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.3rem 0.5rem;
    }

    .member-portal-link {
        font-size: 0.7rem;
        font-weight: 400;
        padding: 0.2rem 0.5rem;
        color: rgba(255, 255, 255, 0.85);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-section,
    .mission-section,
    .content-section {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }

    .mission-cards,
    .membership-options,
    .support-options {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
    }
}

/* Very narrow phones: keep the five nav links on a single row */
@media (max-width: 400px) {
    .container {
        padding: 0 12px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.3rem 0.35rem;
    }
}