/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap'); /* Adding Merriweather for some body text */

/* Root Variables for Colors, Fonts, and Spacing */
:root {
    --red: #c8102e; /* American Flag Red */
    --blue: #002868; /* American Flag Blue */
    --white: #ffffff;
    --light-grey: #f5f5f5;
    --dark-grey: #333333; /* For stronger text contrast */

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-alt-body: 'Merriweather', serif; /* For more reflective paragraphs */

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem; /* Larger sections */
}

/* Header Stars */
.header-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem; /* space between stars */
    margin-bottom: 0.5rem;
}

.header-stars .star {
    color: var(--white);
    font-size: 2rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.15);
    letter-spacing: 0.5rem;
    user-select: none;
}

@media (max-width: 600px) {
    .header-stars .star {
        font-size: 1.2rem;
    }
    .header-stars {
        gap: 1rem;
    }
}

/* Base Styles */
body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--dark-grey); /* Stronger contrast for body text */
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--blue);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; color: var(--red); } /* Emphasize red for section titles */
h3 { font-size: 2.2rem; }
p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--red);
}

/* Header */
header {
    background: var(--blue);
    color: var(--white);
    padding: var(--spacing-md) 1rem;
    text-align: center;
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
}

nav a {
    margin: 0 var(--spacing-sm);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

nav a:hover,
nav a:focus {
    background: var(--white);
    color: var(--blue);
    outline: none;
}

/* Hero Section - Dynamic & Patriotic */
.hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
    padding: var(--spacing-xl) 1rem;
    background: repeating-linear-gradient(
        180deg,
        var(--red),
        var(--red) 100px,
        var(--white) 100px,
        var(--white) 200px
    );
    color: var(--blue);
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.hero-content {
    flex: 1 1 60%;
    margin-top: 2rem;
    margin-right: 2rem;
}

.hero-content h1 {
    font-size: 4rem; /* Even larger for impact */
    margin-bottom: var(--spacing-sm);
    text-shadow: 3px 3px 5px rgba(0,0,0,0.3); /* Add depth */
    font-family: var(--font-heading);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: 0;
    margin-right: auto;
    font-family: var(--font-alt-body); /* More eloquent feel for hero text */
}

.cta-buttons a {
    display: inline-block;
    padding: 1rem 2rem;
    margin: var(--spacing-xs);
    background: var(--white);
    color: var(--blue);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px; /* Pill shape for modern look */
    font-size: 1.2rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cta-buttons a:hover,
.cta-buttons a:focus {
    background: var(--red);
    color: var(--white);
    transform: translateY(-3px); /* Subtle lift on hover */
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Contact Form - Modern, Compact, Right Side */
.contact-form-container {
    flex: 1 1 320px;
    max-width: 350px;
    min-width: 250px;
    margin-top: 2rem;
    margin-right: 2rem;
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    text-align: left;
    border: 1px solid #ddd;
    border-bottom: 5px solid var(--red);
    z-index: 10;
    position: static; /* Remove absolute positioning */
}

.contact-form-container h2 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: bold;
    color: var(--dark-grey);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 40, 104, 0.3);
}

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

.contact-form-container button[type="submit"] {
    display: block;
    width: 100%;
    padding: 0.7rem 1.2rem;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: var(--spacing-md);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.contact-form-container button[type="submit"]:hover,
.contact-form-container button[type="submit"]:focus {
    background: var(--blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* General Section Styling */
.section {
    padding: var(--spacing-xl) 1rem;
    max-width: 1200px; /* Wider content area */
    margin: auto;
    text-align: center;
}

.section.bg-light {
    background-color: var(--light-grey);
}

.section h2 {
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 3px rgba(0,0,0,0.1);
}

.section p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-alt-body); /* Using alternative body font for main paragraphs */
}

/* How It Works Section */
.how-it-works-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg); /* More space between cards */
    margin-top: var(--spacing-lg);
}

.how-it-works-grid > div {
    flex: 1 1 300px; /* Larger base for cards */
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px; /* Softer corners */
    box-shadow: 0 8px 15px rgba(0,0,0,0.15); /* More pronounced shadow */
    text-align: center;
    border-top: 5px solid var(--red); /* Red accent border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works-grid > div:hover {
    transform: translateY(-5px); /* Lift on hover */
    box-shadow: 0 12px 20px rgba(0,0,0,0.25);
}

.how-it-works-grid h3 {
    color: var(--blue);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.how-it-works-grid p {
    font-size: 1rem;
    max-width: none; /* Let text fill card width */
}

/* Footer */
footer {
    background: var(--blue);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-md);
    margin-top: var(--spacing-xl);
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
    .hero-content p {
        font-size: 1.3rem;
    }
    .section h2 {
        font-size: 2.4rem;
    }
    .how-it-works-grid > div {
        flex: 1 1 45%;
    }
}

@media (max-width: 800px) {
    .hero {
        flex-direction: column;
        align-items: center;
        min-height: 400px;
    }
    .hero-content,
    .contact-form-container {
        margin: 1rem 0 0 0;
        width: 95%;
        max-width: 100%;
    }
}