/* --- CAROL HOUSE COMMUNITY - MODERN DESIGN SYSTEM --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-badge: 'Outfit', sans-serif;

    /* Base Color Tokens (Default Fallback: Spring) */
    --primary: #1b4d2e;
    --primary-hover: #143b23;
    --primary-rgb: 27, 77, 46;
    --secondary: #0d9488;
    --secondary-hover: #0f766e;
    --accent: #f59e0b;
    
    --bg-main: #f4f7f5;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dynamic Seasonal Theme Engines */
body.spring {
    --primary: #1b4d2e;
    --primary-hover: #143b23;
    --primary-rgb: 27, 77, 46;
    --secondary: #0d9488;
    --secondary-hover: #0f766e;
    --bg-main: #f0fdf4;
}

body.summer {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-rgb: 2, 132, 199;
    --secondary: #ea580c;
    --secondary-hover: #c2410c;
    --bg-main: #f0f9ff;
}

body.fall {
    --primary: #7c2d12;
    --primary-hover: #571e0a;
    --primary-rgb: 124, 45, 18;
    --secondary: #d97706;
    --secondary-hover: #b45309;
    --bg-main: #fffbeb;
}

body.winter {
    --primary: #1e3a8a;
    --primary-hover: #1e1b4b;
    --primary-rgb: 30, 58, 138;
    --secondary: #0284c7;
    --secondary-hover: #0369a1;
    --bg-main: #f8fafc;
}

/* Dynamic Holiday & Festive Theme Engines */
body.christmas {
    --primary: #15803d;     /* Holly Evergreen */
    --primary-hover: #166534;
    --primary-rgb: 21, 128, 61;
    --secondary: #dc2626;   /* Festive Crimson */
    --secondary-hover: #b91c1c;
    --bg-main: #f0fdf4;
}

body.newyears {
    --primary: #0f172a;     /* Midnight Black */
    --primary-hover: #1e293b;
    --primary-rgb: 15, 23, 42;
    --secondary: #d97706;   /* Champagne Gold */
    --secondary-hover: #b45309;
    --bg-main: #f8fafc;
}

body.thanksgiving {
    --primary: #9a3412;     /* Harvest Pumpkin Rust */
    --primary-hover: #7c2d12;
    --primary-rgb: 154, 52, 18;
    --secondary: #d97706;   /* Autumn Amber */
    --secondary-hover: #b45309;
    --bg-main: #fffbeb;
}

body.halloween {
    --primary: #581c87;     /* Spooky Deep Purple */
    --primary-hover: #3b0764;
    --primary-rgb: 88, 28, 135;
    --secondary: #ea580c;   /* Pumpkin Orange */
    --secondary-hover: #c2410c;
    --bg-main: #faf5ff;
}

body.lunarnewyear {
    --primary: #b91c1c;     /* Imperial Prosperity Red */
    --primary-hover: #991b1b;
    --primary-rgb: 185, 28, 28;
    --secondary: #d97706;   /* Prosperity Gold */
    --secondary-hover: #b45309;
    --bg-main: #fff1f2;
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* --- TOP UTILITY BAR --- */
.top-utility-bar {
    background-color: #0f172a;
    color: #cbd5e1;
    font-size: 0.825rem;
    padding: 0.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #e2e8f0;
}

.top-bar-item a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
}

.top-bar-item a:hover {
    text-decoration: underline;
}

/* Seasonal Switcher Dropdown */
.theme-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.775rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    outline: none;
}

.theme-selector option {
    background-color: #0f172a;
    color: #ffffff;
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.775rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Navigation Links */
nav.nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 0.6rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.925rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover {
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.08);
}

.nav-link.active {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.25);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* --- MAIN CONTAINER --- */
main {
    max-width: 1240px;
    width: 100%;
    margin: 1.75rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

.page-section {
    display: none;
    animation: fadeIn 0.45s ease-out;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Headings */
.section-header {
    margin-bottom: 1.75rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* --- HERO BANNER --- */
.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.5)), url('../building-exterior.jpg');
    background-size: cover;
    background-position: center;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    color: #ffffff;
}

.hero-glass-card {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    max-width: 820px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #38bdf8;
    border-radius: var(--radius-full);
    font-family: var(--font-badge);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 1.75rem;
    font-weight: 400;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
}

.hero-stat-item h4 {
    font-family: var(--font-badge);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-stat-item p {
    font-size: 0.775rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- RESIDENT QUICK ACTIONS HUB --- */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transition: var(--transition);
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.action-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.action-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.action-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.action-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.action-btn-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
}

.action-card:hover .action-btn-link {
    color: var(--secondary-hover);
    gap: 0.5rem;
}

/* --- CARDS & GRIDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-top-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-badge);
    font-size: 0.775rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-in-progress {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-completed {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-planning {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.card p {
    font-size: 0.925rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Progress Meter */
.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.progress-container {
    background: #e2e8f0;
    border-radius: var(--radius-full);
    height: 12px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s ease-in-out;
}

.card-footer-info {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* --- NYC COMPLIANCE TABLE & CONTROLS --- */
.compliance-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.search-box input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.table-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

table.compliance-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table.compliance-table th {
    background-color: var(--primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 1.1rem 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table.compliance-table td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.925rem;
    vertical-align: middle;
}

table.compliance-table tr:last-child td {
    border-bottom: none;
}

table.compliance-table tr:hover {
    background-color: rgba(var(--primary-rgb), 0.03);
}

.btn-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--secondary-hover);
    text-decoration: underline;
}

/* --- NEWSLETTER BOX & PREVIEW MODAL --- */
.newsletter-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 2.25rem;
    margin-bottom: 2rem;
}

.newsletter-header-banner {
    border-bottom: 2px dashed var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.newsletter-header-banner h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.newsletter-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.btn-secondary {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 0.65rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: rgba(var(--primary-rgb), 0.18);
}

.reminders-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.reminder-item {
    background: var(--bg-main);
    padding: 1.1rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--secondary);
}

.reminder-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* --- ABOUT & TEAM STYLES --- */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

@media (max-width: 868px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
    }
}

.about-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.team-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.team-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 700;
}

.team-card .role {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.team-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- MODAL WINDOWS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-container {
    background: #ffffff;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* --- FOOTER --- */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-col h4 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-col p, .footer-col li {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #38bdf8;
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* --- MOBILE & TABLET RESPONSIVE STYLES --- */

/* Mobile Drawer Container */
.mobile-nav-drawer {
    display: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
}

.mobile-nav-drawer.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.mobile-nav-link {
    background: transparent;
    border: 1px solid transparent;
    padding: 0.85rem 1.1rem;
    font-family: var(--font-heading);
    font-size: 1.025rem;
    font-weight: 700;
    color: var(--text-main);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav-link:hover, .mobile-nav-link:active {
    background-color: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
}

.mobile-nav-link.active {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.mobile-drawer-footer {
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
}

/* Desktop vs Mobile Toggle */
.mobile-nav-toggle {
    display: none;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .about-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .nav-desktop {
        display: none !important;
    }
    
    .mobile-nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(var(--primary-rgb), 0.1);
        border: 1px solid rgba(var(--primary-rgb), 0.2);
        width: 44px;
        height: 44px;
        border-radius: var(--radius-sm);
        font-size: 1.35rem;
        color: var(--primary);
        cursor: pointer;
        transition: var(--transition);
    }
    
    .mobile-nav-toggle:hover {
        background: rgba(var(--primary-rgb), 0.2);
    }

    /* Streamlined Top Utility Bar */
    .top-utility-bar {
        padding: 0.6rem 1rem;
    }
    .top-bar-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
    .top-bar-left, .top-bar-right {
        justify-content: space-between;
        width: 100%;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    /* Hero Banner Scaling */
    .hero-banner {
        min-height: auto;
        padding: 2rem 1rem;
        border-radius: var(--radius-md);
    }
    .hero-glass-card {
        padding: 1.75rem 1.25rem;
    }
    .hero-title {
        font-size: clamp(1.45rem, 5vw, 2.1rem);
    }
    .hero-subtitle {
        font-size: 0.925rem;
    }
    .hero-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    /* Quick Actions & Cards */
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Newsletter Card Header */
    .newsletter-header-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .newsletter-actions {
        width: 100%;
        flex-direction: column;
    }
    .newsletter-actions .btn-primary, .newsletter-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Modals Mobile Bounds */
    .modal-overlay {
        padding: 10px;
    }
    .modal-container {
        max-height: 88vh;
        width: 96%;
        border-radius: var(--radius-sm);
    }
    .modal-header {
        padding: 1rem 1.25rem;
    }
    .modal-body {
        padding: 1.25rem;
    }

    /* Compliance Table Touch Scrolling */
    table.compliance-table th, table.compliance-table td {
        padding: 0.85rem 1rem;
        font-size: 0.875rem;
    }
}

/* Small Smartphones (max-width: 480px) */
@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem 1rem;
    }
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }
    .logo-text h1 {
        font-size: 1.1rem;
    }
    .logo-text p {
        font-size: 0.725rem;
    }
    .hero-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    .hero-stat-item h4 {
        font-size: 1.25rem;
    }
    .hero-stat-item p {
        font-size: 0.7rem;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
}
