
:root {
    --primary-color: #2ECC71; /* Emerald Green */
    --primary-color-dark: #27AE60;
    --secondary-color: #3498DB; /* Peter River Blue */
    --accent-color: #F1C40F; /* Sun Flower Yellow */
    --text-color: #34495E; /* Wet Asphalt */
    --light-text-color: #ECF0F1; /* Clouds White */
    --background-color: #FFFFFF;
    --light-gray-background: #f7f9fa; /* Very light gray for subtle section differentiation */
    --border-color: #BDC3C7; /* Silver */
    --error-color: #E74C3C; /* Alizarin Red */
    --success-color: #2ECC71; /* Emerald Green */

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --spacing-unit: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 calc(var(--spacing-unit) * 2);
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text-color);
    padding: calc(var(--spacing-unit) * 10) 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-section h1 {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 2);
    line-height: 1.2;
}

.hero-section .highlight {
    color: var(--accent-color);
}

.hero-section .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: calc(var(--spacing-unit) * 4);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    padding: calc(var(--spacing-unit) * 1.8) calc(var(--spacing-unit) * 3.5);
    border-radius: 50px; /* Pill shape */
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.primary-cta {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.primary-cta:hover, .primary-cta:focus {
    background-color: #dab10d; /* Darker accent */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Benefits Section */
.benefits-section {
    padding: calc(var(--spacing-unit) * 8) 0;
    background-color: var(--light-gray-background);
    text-align: center;
}

.benefits-section h2 {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 6);
    color: var(--text-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

.benefit-card {
    background-color: var(--background-color);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--primary-color);
}

.benefit-card h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--spacing-unit);
    color: var(--text-color);
}

.benefit-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Form Section */
.form-section {
    padding: calc(var(--spacing-unit) * 8) 0;
    text-align: center;
    background-color: var(--background-color);
}

.form-section h2 {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-unit);
    color: var(--text-color);
}

.form-section .form-subtitle {
    font-size: 1.1rem;
    margin-bottom: calc(var(--spacing-unit) * 4);
    color: var(--text-color);
    opacity: 0.8;
}

#newsletterForm {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

#newsletterForm input[type="email"] {
    padding: calc(var(--spacing-unit) * 1.8);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    width: 100%;
}

#newsletterForm input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.3);
}

#newsletterForm .cta-button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    width: 100%;
}

#newsletterForm .cta-button:hover, #newsletterForm .cta-button:focus {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#formMessage {
    margin-top: calc(var(--spacing-unit) * 1.5);
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 1.5em; /* Reserve space to prevent layout shift */
}

#formMessage.success {
    color: var(--success-color);
}

#formMessage.error {
    color: var(--error-color);
}

.privacy-note {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: calc(var(--spacing-unit) * 2);
}

/* Footer Section */
.footer-section {
    background-color: var(--text-color);
    color: var(--light-text-color);
    text-align: center;
    padding: calc(var(--spacing-unit) * 3) 0;
    font-size: 0.9rem;
}

.footer-section p {
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    #newsletterForm {
        flex-direction: row;
    }

    #newsletterForm input[type="email"] {
        flex-grow: 1;
    }

    #newsletterForm .cta-button {
        width: auto;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: calc(var(--spacing-unit) * 6) 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section .subtitle {
        font-size: 0.9rem;
    }

    .benefits-section h2, .form-section h2 {
        font-size: 1.6rem;
    }
}
