/* ============================================
   WE THE PEOPLE - CONSTITUTION HERO STYLES
   ============================================
   
   This file provides consistent styling for the "We The People" 
   Constitution header graphic used across all WTPFL pages.
   
   Include this in your main styles.css or link separately.
   
   IMAGE SOURCE: National Archives (Public Domain)
   https://www.archives.gov/founding-docs/constitution
   
   ============================================ */


/* --------------------------------------------
   BASE VARIABLES (if not already defined)
   -------------------------------------------- */
:root {
    --navy: #1a2b4f;
    --navy-dark: #0f1929;
    --gold: #d4af37;
    --gold-light: #e8c547;
    --gold-bright: #f0d060;  /* Brighter gold for CTAs */
    --text: #333;
    --text-light: #666;
}


/* --------------------------------------------
   CONSTITUTION HERO - FULL SIZE
   Use on: Join Us, Home page hero
   Height: 400px minimum, prominent display
   -------------------------------------------- */
.constitution-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

/* Constitution background - focuses on "We The People" at top */
.constitution-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.archives.gov/files/founding-docs/constitution_1_of_4_630.jpg') no-repeat center top;
    background-size: cover;
    /* Warm sepia tone to match parchment feel */
    filter: sepia(15%) brightness(0.35);
    z-index: 1;
}

/* Navy overlay for text readability */
.constitution-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 43, 79, 0.75) 0%,
        rgba(15, 25, 45, 0.85) 100%
    );
    z-index: 2;
}

/* Content sits above the overlays */
.constitution-hero .hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

.constitution-hero h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.constitution-hero .tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
}


/* --------------------------------------------
   CONSTITUTION HERO - COMPACT / PAGE HEADER
   Use on: About, Platform, Stay Informed, etc.
   Height: 250px, secondary pages
   -------------------------------------------- */
.constitution-hero-compact {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    overflow: hidden;
}

.constitution-hero-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Same image, positioned to show "We The People" */
    background: url('https://www.archives.gov/files/founding-docs/constitution_1_of_4_630.jpg') no-repeat center top;
    background-size: cover;
    filter: sepia(15%) brightness(0.35);
    z-index: 1;
}

.constitution-hero-compact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 43, 79, 0.8) 0%,
        rgba(15, 25, 45, 0.88) 100%
    );
    z-index: 2;
}

.constitution-hero-compact .hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
}

.constitution-hero-compact h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.constitution-hero-compact p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}


/* --------------------------------------------
   CONSTITUTION HERO - MINIMAL / BANNER
   Use on: Contact, Donate confirmation, etc.
   Height: 180px, subtle presence
   -------------------------------------------- */
.constitution-hero-minimal {
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

.constitution-hero-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.archives.gov/files/founding-docs/constitution_1_of_4_630.jpg') no-repeat center top;
    background-size: cover;
    filter: sepia(15%) brightness(0.3);
    z-index: 1;
}

.constitution-hero-minimal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 43, 79, 0.85);
    z-index: 2;
}

.constitution-hero-minimal .hero-content {
    position: relative;
    z-index: 3;
}

.constitution-hero-minimal h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


/* --------------------------------------------
   CTA BUTTONS - HIGH VISIBILITY
   Bright gold for maximum contrast on dark bg
   -------------------------------------------- */
.btn-cta {
    display: inline-block;
    background: var(--gold-bright, #f0d060);
    color: var(--navy-dark, #0f1929);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Ensure button pops */
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-cta:hover {
    background: #fff;
    color: var(--navy, #1a2b4f);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
}

/* Secondary CTA - outlined style */
.btn-cta-outline {
    display: inline-block;
    background: transparent;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    border: 2px solid var(--gold, #d4af37);
    transition: all 0.2s ease;
}

.btn-cta-outline:hover {
    background: var(--gold, #d4af37);
    color: var(--navy-dark, #0f1929);
}


/* --------------------------------------------
   RESPONSIVE ADJUSTMENTS
   -------------------------------------------- */
@media (max-width: 768px) {
    /* Full hero */
    .constitution-hero {
        min-height: 350px;
        padding: 3rem 1.5rem;
    }
    
    .constitution-hero h1 {
        font-size: 2.25rem;
    }
    
    .constitution-hero .tagline {
        font-size: 1.05rem;
    }
    
    /* Compact hero */
    .constitution-hero-compact {
        min-height: 200px;
        padding: 2.5rem 1.5rem;
    }
    
    .constitution-hero-compact h1 {
        font-size: 2rem;
    }
    
    /* Minimal hero */
    .constitution-hero-minimal {
        min-height: 150px;
    }
    
    .constitution-hero-minimal h1 {
        font-size: 1.75rem;
    }
    
    /* Buttons */
    .btn-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}


/* --------------------------------------------
   USAGE EXAMPLES
   -------------------------------------------- 
   
   FULL HERO (Join Us, Home):
   --------------------------
   <section class="constitution-hero">
       <div class="hero-content">
           <h1>Join We The People</h1>
           <p class="tagline">Your voice matters...</p>
           <a href="..." class="btn-cta">Register Now</a>
       </div>
   </section>
   
   
   COMPACT HERO (About, Platform, Get Involved):
   ----------------------------------------------
   <section class="constitution-hero-compact">
       <div class="hero-content">
           <h1>About WTPFL</h1>
           <p>Restoring constitutional governance in Florida</p>
       </div>
   </section>
   
   
   MINIMAL HERO (Contact, Donate, Stay Informed):
   -----------------------------------------------
   <section class="constitution-hero-minimal">
       <div class="hero-content">
           <h1>Contact Us</h1>
       </div>
   </section>
   
-------------------------------------------- */
