/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --forest: #163e27;
    --sage: #4f7942;
    --cream: #faf8f3;
    --terracotta: #059669;
    /* Shifted from red to emerald */
    --emerald: #059669;
    --emerald-dark: #047857;
    --charcoal: #1a1a1a;
    --soft-gray: #525252;
    --mint: #f1f8f3;
    --bright-yellow: #ffd600;
    --deep-blue: #0d47a1;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-bold: 0 12px 40px rgba(0, 0, 0, 0.08);
    --gradient-primary: linear-gradient(135deg, var(--forest) 0%, #2e5a3d 100%);
    --gradient-emerald: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
    --gradient-warm: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.9;
    /* Loose line height for elegance */
    color: #374151;
    /* Softer gray than pure black */
    background-color: #f8fafc;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}

/* Navigation & Footer now handled by layout.css & layout.js */

/* Urgent Help Bar */
.alert-bar {
    background: var(--terracotta);
    color: white;
    padding: 0.8rem;
    text-align: center;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 1001;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.alert-bar a {
    color: var(--bright-yellow);
    text-decoration: underline;
    margin-left: 10px;
}

/* Audience Journey Section */
.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.journey-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.journey-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--terracotta);
    box-shadow: var(--shadow-bold);
    background: white;
}

.journey-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--forest);
}

.journey-card p {
    font-size: 1rem;
    color: var(--soft-gray);
    margin: 0;
}

.journey-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--terracotta);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    /* Increased whitespace */
    position: relative;
    overflow: hidden;
}

section:nth-child(even) {
    background: white;
}

/* Typography & Hero */
.hero {
    background: #0f2027;
    /* fallback for old browsers */
    background: linear-gradient(to right, #2c5364, #203a43, #0f2027);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    color: var(--cream);
    padding: 10rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(22, 62, 39, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(191, 54, 12, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 4rem 3rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4.5rem;
    /* Larger impact */
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(to bottom right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    opacity: 0.95;
    color: #f1f5f9;
    font-weight: 300;
    line-height: 1.6;
}

/* Button Variants for Hero */
.btn-primary-outline {
    background: transparent;
    border: 2px solid var(--terracotta);
    color: var(--terracotta);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin: 0.5rem;
}

.btn-primary-outline:hover {
    background: var(--terracotta);
    color: white;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    margin: 0.5rem;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--forest);
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--soft-gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Components: Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin: 0.5rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--terracotta);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(216, 67, 21, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--cream);
    color: var(--cream);
}

.btn-secondary:hover {
    background: var(--cream);
    color: var(--forest);
}

/* Components: Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    /* Softer shadow */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-left: 6px solid var(--terracotta);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card h3 {
    color: var(--forest);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--soft-gray);
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--terracotta);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.card-link::after {
    content: ' →';
}

/* Content & Highlights */
.content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--forest);
}

.content h3 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    color: var(--sage);
}

.content p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--soft-gray);
    max-width: 70ch;
    /* Optimal reading length */
    line-height: 1.9;
}

.content ul,
.content ol {
    margin: 1.5rem 0 1.5rem 2rem;
    color: var(--soft-gray);
    max-width: 70ch;
}

.content li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.highlight {
    background: var(--mint);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 5px solid var(--sage);
}

.highlight h4 {
    color: var(--forest);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

/* Stats */
.stats {
    background: var(--forest);
    color: var(--cream);
    padding: 4rem 0;
    margin: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat h3 {
    font-size: 3rem;
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}

/* Resource Article Visuals */
.article-image-container {
    margin: 2.5rem 0;
    text-align: center;
}

.article-image-container img {
    width: 100%;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.article-image-container img:hover {
    transform: scale(1.01);
}

.article-caption {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.75rem;
    font-style: italic;
    font-family: 'Inter', sans-serif;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--forest);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--terracotta);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer handled by layout.css */

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    /* Responsive Nav handled by layout.css */

    .two-col {
        grid-template-columns: 1fr;
    }
}