/* John Everett - Independent Employee Benefits Consultant CSS Palette */
:root {
    --primary-color: #1E4D2B;       /* Deep Forest Green (Primary Brand) */
    --secondary-color: #4A7C59;     /* Muted Sage Green (Accent & Highlights) */
    --text-dark: #1A2E22;           /* Dark Slate Green (High Contrast Body Copy) */
    --bg-light: #F2F7F4;            /* Soft Mint Off-White Background */
    --bg-white: #FFFFFF;
    --border-color: #D1E0D7;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-stack);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Nav */
.site-header {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    max-height: 48px;
    width: auto;
}

/* Target ONLY top-level ul inside main-nav to prevent overriding dropdown-menu */
.main-nav > ul {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* Dropdown Menu - Fixed display specificity */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 200px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 1001;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    color: var(--primary-color);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
}

.btn-primary:hover {
    background-color: #14361E;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--bg-white) !important;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #F2F7F4 0%, #E2ECE5 100%);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 1rem 0;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2rem;
}

.badge {
    background: #D4E4D9;
    color: var(--primary-color);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Page Headers */
.page-header {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Content Sections & Cards */
.content-section, .features-section, .industries-section {
    padding: 3.5rem 0;
}

.industries-section {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #4A6353;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* HTML Comparison Table for GEO & SEO */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.comparison-table th, .comparison-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
}

.comparison-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

.content-block {
    margin-bottom: 2.5rem;
}

.content-block h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content-block ul {
    margin-left: 1.5rem;
    margin-top: 0.75rem;
}

.content-block li {
    margin-bottom: 0.5rem;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30,77,43,0.15);
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #D1E7DD;
    color: #0F5132;
    border: 1px solid #BADBCC;
}

.alert-danger {
    background-color: #F8D7DA;
    color: #842029;
    border: 1px solid #F5C2C7;
}

/* Call to Action Section */
.cta-section {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
}

.text-center { text-align: center; }

/* Footer */
.site-footer {
    background: #102416;
    color: #A3B8AA;
    padding: 3rem 0 1rem 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3, .footer-col h4 {
    color: white;
    margin-bottom: 0.75rem;
}

.footer-shield {
    max-height: 40px;
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #23402C;
    padding-top: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav > ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
}