/* =========================================
   GLOBAL STYLES & VARIABLES
   ========================================= */
:root {
    --bg-main: #2a2a2a;         
    --bg-dark: #1a1a1a;         
    --text-light: #f9f9f9;      
    --accent-teal: #669999;     
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--accent-teal); 
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
}

.hero, main, footer {
    width: calc(100% - 50px); 
    max-width: 1200px; 
    margin: 0 auto;    
    background-color: var(--bg-main); 
    box-shadow: 0 0 20px rgba(0,0,0,0.5); 
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto; /* RESTORED: Guarantees everything inside stays perfectly centered */
    padding: 0 50px; 
}

h1, h2, h3, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-teal);
}

p, label {
    color: var(--text-light);
}

.site-links {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.site-links:hover {
    color: var(--accent-teal);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.hero {
    background-color: var(--bg-dark); 
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    position: relative; 
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); 
    width: 90%;
    height: 2px;
    background-color: var(--accent-teal);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

.nav-logo {
    height: 60px; 
    width: auto;
    display: block;
}

.logo {
    font-size: 24pt;
    letter-spacing: 2px;
}

.hero-content, .page-not-found-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.hero-content h1, .page-not-found-content h1{
    font-size: 48pt;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.hero-content .tagline, .page-not-found-content .tagline{
    font-size: 20pt;
    color: var(--text-light); 
    font-weight: 600; /* Kept your bold tagline */
    letter-spacing: 1px;
}

/* =========================================
   INTRO SECTION (Image & Text Grid)
   ========================================= */
.intro-section, .award-nomination {
    padding: 60px 0;
    position: relative; 
}

/* Draws the 90% Sea-Green line at the BOTTOM of the intro and award-nomination sections */
.intro-section::after, .award-nomination::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); 
    width: 90%;
    height: 2px;
    background-color: var(--accent-teal);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.section-image img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--accent-teal); 
}

.section-text h2 {
    font-size: 28pt;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center; 
}

.section-text h3 {
    text-align: center;
}

.section-text p {
    font-size: 14pt;
    margin-bottom: 20px;
    text-align: justify; 
}

.center-content {
    text-align: center;
}

/* =========================================
   CONSULTATION FORM SECTION
   ========================================= */
.consultation {
    padding: 60px 0;
    min-height: 650px; /* NEW: Prevents footer jump on form submission */
}

.consultation h2 {
    text-align: center;
    font-size: 32pt;
    margin-bottom: 40px;
}

#contactForm {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 10pt;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#contactForm input,
#contactForm textarea {
    padding: 12px;
    background-color: var(--bg-dark); 
    color: var(--text-light);
    border: 1px solid #555;
    border-radius: 4px;
    outline: none;
    font-family: var(--font-body);
    font-size: 12pt;
    transition: border-color 0.3s ease;
}

/* ADD THIS NEW BLOCK RIGHT BELOW THE ONE ABOVE */
#contactForm textarea {
    resize: none; /* This hides the draggable corner */
    height: 150px; /* Sets a fixed height (roughly 5-6 lines of text) */
    overflow-y: auto; /* Automatically adds a scrollbar if they type past the box limit */
}

#contactForm input:focus,
#contactForm textarea:focus {
    border-color: var(--accent-teal);
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
    color: rgba(249, 249, 249, 0.5);
}

.submit-btn, .vote-amvca {
    padding: 15px 30px;
    background-color: var(--text-light);
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
    
    /* FIXED: Stops the button from stretching across the entire width of the form */
    align-self: center; 
    min-width: 250px; 
}

.submit-btn:hover, .vote-amvca:hover {
    background-color: var(--accent-teal);
    color: var(--text-light);
}

#formFeedback {
    text-align: center;
    color: var(--accent-teal);
    font-size: 11pt;
    margin-top: 10px;
}

.hidden {
    display: none;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--bg-dark); 
    padding: 40px 0;
    position: relative; 
    
    /* FIXED: Bulletproof Flexbox rules to force everything inside the footer to perfectly center */
    display: flex; 
    flex-direction: column;
    align-items: center;
    text-align: center;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); 
    width: 90%;
    height: 2px;
    background-color: var(--accent-teal);
}

footer p {
    font-size: 14pt;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--accent-teal);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-teal);
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .hero, main, footer {
        width: calc(100% - 20px); 
    }

    .container {
        padding: 0 20px; 
    }

    .section-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 28pt;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
}

/* --- Image Carousel Styles --- */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Keeps it contained nicely */
    margin: 0 auto 40px auto;
    overflow: hidden; /* Hides the images that are "off-screen" */
    border: 2px solid var(--accent-teal); /* Adds your Sea-Green frame */
    border-radius: 4px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out; /* The smooth sliding animation */
    width: 100%;
}

.carousel-img {
    min-width: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--accent-teal); /* Sea-Green arrows! */
    border: none;
    font-size: 24pt;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}