/* ===================================
   RHCC Shared Styles - Static Site
   For AWS S3 Hosting
   =================================== */

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

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===================================
   UNIFIED HEADER
   =================================== */
.site-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 30px;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-top: -1px; /* Close gap between banner and header */
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a {
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.logo a:hover {
    color: #1d4ed8;
    transform: scale(1.02);
}

.logo-icon {
    width: 28px;
    height: 28px;
    display: inline-block;
    vertical-align: middle;
    stroke-width: 2;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
    padding: 0.5rem 0;
    position: relative;
    display: inline-block;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
    will-change: width;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: #2563eb;
}

/* Header Actions (CTA Buttons) */
.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Mobile Menu Toggle (hidden by default) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #4b5563;
}

/* ===================================
   UNIFIED FOOTER
   =================================== */
.site-footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

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

.footer-section h3 {
    font-size: 18px;
    margin: 0 0 1rem 0;
    color: white;
    font-weight: 600;
}

.footer-section p {
    color: #9ca3af;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.footer-bottom p {
    color: #9ca3af;
    margin: 0;
    font-size: 14px;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-align: center !important;
    line-height: 1.5 !important;
    vertical-align: middle !important;
}

.btn-primary {
    background: #2563eb !important;
    color: white !important;
    border: 2px solid #2563eb !important;
}

.btn-primary:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background: white !important;
    color: #2563eb !important;
    border: 2px solid #2563eb !important;
}

.btn-secondary:hover {
    background: #eff6ff !important;
}

.btn-outline {
    background: transparent !important;
    color: #2563eb !important;
    border: 2px solid #2563eb !important;
}

.btn-outline:hover {
    background: #eff6ff !important;
}

.btn-white {
    background: white !important;
    color: #2563eb !important;
    border: 2px solid white !important;
}

.btn-white:hover {
    background: #f3f4f6 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.btn-ghost {
    background: transparent !important;
    color: #4b5563 !important;
    border: 2px solid transparent !important;
}

.btn-ghost:hover {
    background: #f3f4f6 !important;
}

/* ===================================
   SECTIONS
   =================================== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 36px;
    color: #2563eb;
    margin: 0 0 1rem 0;
}

.section-header p {
    font-size: 18px;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
}

/* Button size variants */
.btn-small {
    padding: 0.5rem 1rem !important;
    font-size: 14px !important;
}

.btn-large {
    padding: 1rem 2rem !important;
    font-size: 16px !important;
}

/* ===================================
   BADGES
   =================================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: #2563eb;
    color: white;
}

.badge-success {
    background: #10b981;
    color: white;
}

.badge-warning {
    background: #f59e0b;
    color: white;
}

.badge-error, .badge-danger {
    background: #ef4444;
    color: white;
}

.badge-info {
    background: #3b82f6;
    color: white;
}

.badge-accent {
    background: #00b4b4;
    color: white;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .header-content {
        position: relative;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 0.5rem;
    }

    .mobile-menu-toggle {
        display: block;
        order: 1;
        margin: 0;
    }

    .logo {
        order: 2;
        justify-self: center;
    }

    .header-actions {
        order: 3;
        gap: 0.5rem;
    }

    .header-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 14px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e5e7eb;
        z-index: 999;
        order: 4;
        grid-column: 1 / -1;
    }

    .main-nav.mobile-menu-open {
        display: flex;
    }

    .main-nav a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f3f4f6;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .section {
        padding: 2rem 1rem;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Hide specific sections on mobile */
    #why-choose-section,
    #impact-stats-section {
        display: none;
    }
}
