/* =========================================
   1. VARIABLES & SETUP
   ========================================= */
:root {
    --navy: #0A192F;
    --cream: #F5F5F0;
    --white: #FFFFFF;
    --gold: #D4AF37;
    --gold-hover: #E5C100;
    --link-blue: #007BFF;
    --link-hover: #0056b3;
    --error-red: #d93025;
    --error-bg: #fce8e6;
    --gray-text: #666;
    --border-color: #eaeaea;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--navy);
    min-height: 100vh;
    background: linear-gradient(135deg, #fdfbfb 0%, #72b7d9 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. NAVIGATION
   ========================================= */
nav {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    background-color: var(--navy);
    border-radius: 0 0 25px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .brand {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--gold);
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--cream);
    font-family: sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--gold);
}

.btn-subscribe {
    background-color: var(--link-blue);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.btn-subscribe:hover {
    background-color: var(--link-hover);
    color: var(--white);
}

/* =========================================
   3. GENERAL LAYOUT (News & About)
   ========================================= */
.container {
    width: 90%;
    max-width: 800px;
    margin: 60px auto;
}

.news-item {
    background-color: var(--white);
    border-left: 5px solid var(--navy);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.news-item:hover {
    transform: translateY(-3px);
}

.meta {
    font-size: 0.85rem;
    color: var(--gray-text);
    font-family: sans-serif;
    display: block;
    margin-bottom: 0.5rem;
}

h1,
h2 {
    color: var(--navy);
    line-height: 1.2;
}

/* About Page Specifics */
.about-hero {
    text-align: center;
    max-width: 700px;
    margin: 80px auto;
    padding: 0 20px;
}

.about-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
}

.about-hero .punchline {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: bold;
    color: var(--gold);
    font-family: sans-serif;
    display: block;
    margin-bottom: 2rem;
}

.video-placeholder {
    width: 100%;
    height: 350px;
    background-color: var(--white);
    border: 1px solid rgba(10, 25, 47, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-weight: bold;
    margin-top: 40px;
}

/* =========================================
   4. FORMS & CARDS (Subscribe/Success/Fail)
   ========================================= */

/* The main wrapper that centers everything on screen */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
    /* Vital for mobile not to touch edges */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base Card Style */
.card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 480px;
    /* Default width for Subscribe Form */
    border: 1px solid var(--border-color);
}

/* Modifier for Success/Fail pages (narrower & centered) */
.card.status-card {
    max-width: 400px;
    text-align: center;
}

/* Card Typography */
.card h1 {
    margin-top: 0;
    font-size: 24px;
    color: #111;
    text-align: center;
}

.card p {
    color: var(--gray-text);
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.5;
}

/* Form Inputs */
label.section-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

input[type="email"]:focus {
    border-color: var(--navy);
    outline: none;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #444;
    cursor: pointer;
}

.checkbox-item input {
    margin-right: 8px;
    cursor: pointer;
}

/* Buttons */
.btn-main,
.btn-secondary {
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
    display: inline-block;
    border: none;
}

/* Primary Button (Black) */
.btn-main {
    background-color: #111;
    color: white;
}

.btn-main:hover {
    background-color: #333;
}

/* Secondary Button (White/Gray) */
.btn-secondary {
    background-color: white;
    color: #111;
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}

/* Utility Class: Makes button full width (for the form) */
.w-full {
    width: 100%;
    text-align: center;
}

/* Status Icons & Messages */
.icon {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
}

.error-msg {
    color: var(--error-red);
    background: var(--error-bg);
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 25px;
    text-align: left;
    /* Keep error text readable */
}

.cf-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* =========================================
   5. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media screen and (max-width: 768px) {

    /* Navigation Stack */
    nav {
        flex-direction: column;
        padding: 1.5rem 1rem;
        width: 95%;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    nav .brand {
        font-size: 1.5rem;
    }

    /* Layout Adjustments */
    .container,
    .about-hero {
        margin-top: 40px;
        width: 100%;
        padding: 0 20px;
    }

    .video-placeholder {
        height: 200px;
    }

    /* Form Adjustments for Mobile */
    .card {
        padding: 25px;
        /* Less padding on small screens */
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
        /* Stack checkboxes vertically on mobile */
    }
}