/* ========================================
   CSS VARIABLES (ROOT)
   Professional color system for maintainability
======================================== */
:root {
    /* Primary Color Palette */
    --flood-blue: #1e88e5;
    --dark-blue: #0d47a1;
    --light-blue: #bbdefb;
    --emergency-red: #d93025;
    --warning-yellow: #ffc107;
    --success-green: #28a745;
    --safe-green: #4caf50;
    
    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #f5f5f5;
    --light-gray: #e0e0e0;
    --medium-gray: #757575;
    --dark-gray: #424242;
    --black: #212121;
    
    /* Semantic Colors */
    --danger: #dc3545;
    --info: #17a2b8;
    --caution: #ff9800;
    
    /* Gradients */
    --hero-gradient: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    --phase1-gradient: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    --phase2-gradient: linear-gradient(135deg, #d93025 0%, #b71c1c 100%);
    --phase3-gradient: linear-gradient(135deg, #ff9800 0%, #e65100 100%);
    
    /* Spacing System */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-mono: 'Courier New', monospace;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   GLOBAL RESET & BASE STYLES
   Clean foundation for consistent rendering
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--black);
    background-color: var(--off-white);
    overflow-x: hidden;
}

/* Responsive Typography using clamp() */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.3;
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.4;
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    line-height: 1.4;
    font-weight: 600;
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: var(--space-md);
}

a {
    color: var(--flood-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* ========================================
   CUSTOM SCROLLBAR STYLING
   Matches flood-blue theme
======================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--flood-blue);
    border-radius: var(--radius-sm);
    border: 2px solid var(--light-gray);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--flood-blue) var(--light-gray);
}

/* ========================================
   READING PROGRESS INDICATOR
   Dynamic bar showing scroll progress
======================================== */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--flood-blue), var(--success-green));
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--flood-blue);
}

/* ========================================
   FLOATING EMERGENCY BUTTON
   Always-visible quick access to emergency contacts
======================================== */
.emergency-float-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--emergency-red), var(--danger));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(217, 48, 37, 0.4);
    z-index: 9997;
    transition: all var(--transition-normal);
    animation: emergencyPulse 2s ease-in-out infinite;
}

.emergency-float-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(217, 48, 37, 0.6);
}

@keyframes emergencyPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(217, 48, 37, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(217, 48, 37, 0.7), 0 0 0 10px rgba(217, 48, 37, 0);
    }
}

.emergency-icon {
    font-size: 2rem;
    margin-bottom: 2px;
}

.emergency-text {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .emergency-float-button {
        width: 65px;
        height: 65px;
        bottom: 20px;
        right: 20px;
    }
    
    .emergency-icon {
        font-size: 1.5rem;
    }
    
    .emergency-text {
        font-size: 0.55rem;
    }
}

/* ========================================
   STICKY GLASSMORPHISM NAVIGATION
   Modern translucent nav with backdrop blur
======================================== */
.glass-nav {
    position: fixed;
    top: 4px; /* Below progress bar */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 9998;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--flood-blue);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-menu li a {
    font-weight: 600;
    color: var(--dark-gray);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-menu li a:hover {
    background-color: var(--flood-blue);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: none;
    border: 2px solid var(--flood-blue);
    color: var(--flood-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.dark-mode-toggle:hover {
    background: var(--flood-blue);
    color: var(--white);
    transform: rotate(20deg);
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.hamburger:hover {
    background: rgba(30, 136, 229, 0.1);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--flood-blue);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-content {
        flex-wrap: nowrap;
        align-items: center;
        padding: var(--space-md) var(--space-lg);
        position: relative;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--light-gray);
        gap: var(--space-sm);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li a {
        display: block;
        padding: var(--space-md);
        border-radius: var(--radius-md);
        text-align: center;
        font-size: 1rem;
    }
}

/* ========================================
   HERO HEADER SECTION
   High-impact introduction with badge
======================================== */
.hero-section {
    margin-top: 80px; /* Account for fixed nav */
    background: var(--hero-gradient);
    color: var(--white);
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated background effect */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: heroPattern 20s linear infinite;
    opacity: 0.3;
}

@keyframes heroPattern {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.badge-container {
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

.global-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-lg);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text {
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.hero-title {
    color: var(--white);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin-bottom: var(--space-xl);
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.hero-mission {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.hero-mission p {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.update-icon {
    font-size: 1.2rem;
}

/* Hero Action Buttons */
.hero-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    margin-top: var(--space-xl);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-button {
    padding: var(--space-lg) var(--space-2xl);
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
}

.cta-button.primary {
    background: var(--white);
    color: var(--flood-blue);
}

.cta-button.primary:hover {
    background: var(--light-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-button.secondary:hover {
    background: var(--white);
    color: var(--flood-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ========================================
   FLOOD IMPACT STATISTICS SECTION
   Eye-catching stats to emphasize importance
======================================== */
.stats-section {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(30, 136, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(30, 136, 229, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats-title {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: var(--space-2xl);
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.stat-card {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border-top: 5px solid var(--flood-blue);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(30, 136, 229, 0.05));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--flood-blue);
    margin-bottom: var(--space-md);
    line-height: 1;
}

.stat-label {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--dark-gray);
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.stat-icon {
    font-size: 3rem;
    margin-top: var(--space-md);
    filter: grayscale(0.3);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CONTAINER & SECTIONS
   Consistent spacing and layout
======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.phase-section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.phase-before {
    background: linear-gradient(to bottom, var(--white), var(--light-blue));
}

.phase-during {
    background: linear-gradient(to bottom, #ffebee, var(--white));
}

.phase-after {
    background: linear-gradient(to bottom, #fff3e0, var(--white));
}

.phase-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
}

.phase-number {
    display: block;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--flood-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.phase-title {
    color: var(--black);
    margin-bottom: var(--space-md);
}

.phase-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--medium-gray);
    font-weight: 400;
}

/* ========================================
   SECTION HEADINGS
   Consistent styling for all sections
======================================== */
.section-heading {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 3px solid var(--flood-blue);
}

.section-heading .icon {
    font-size: 2rem;
}

/* ========================================
   INTERACTIVE CHECKLIST
   User can check off items
======================================== */
.checklist-container {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-3xl);
}

.helper-text {
    color: var(--medium-gray);
    font-style: italic;
    margin-bottom: var(--space-xl);
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.checklist-category h4 {
    color: var(--flood-blue);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--light-blue);
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--off-white);
}

.checkbox-item:hover {
    background: var(--light-blue);
    transform: translateX(5px);
}

.checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--success-green);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label {
    font-size: 1rem;
    line-height: 1.5;
}

/* ========================================
   PROPERTY HARDENING GRID
   CSS Grid with hover effects
======================================== */
.hardening-grid {
    margin-bottom: var(--space-3xl);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.grid-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border-top: 4px solid var(--flood-blue);
}

/* Hover effect - professional scaling */
.grid-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.grid-card h4 {
    color: var(--flood-blue);
    margin-bottom: var(--space-lg);
}

.card-list {
    list-style: none;
}

.card-list li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    line-height: 1.6;
}

.card-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

/* Color-coded cards */
.home-protection {
    border-top-color: var(--flood-blue);
}

.document-safety {
    border-top-color: var(--caution);
}

.insurance-planning {
    border-top-color: var(--success-green);
}

.evacuation-planning {
    border-top-color: var(--emergency-red);
}

/* ========================================
   PREPAREDNESS SCORE CALCULATOR
   Interactive scoring system with visual feedback
======================================== */
.preparedness-calculator {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    margin: var(--space-3xl) 0;
    box-shadow: var(--shadow-lg);
    border-left: 6px solid var(--flood-blue);
}

.calculator-intro {
    text-align: center;
    color: var(--medium-gray);
    font-style: italic;
    margin-bottom: var(--space-xl);
}

.score-display {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.score-circle {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--flood-blue), var(--dark-blue));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.3);
}

.score-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.score-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-feedback {
    flex: 1;
}

.feedback-text {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--medium-gray);
    margin-bottom: var(--space-lg);
}

.score-bar {
    width: 100%;
    height: 30px;
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--flood-blue), var(--success-green));
    border-radius: var(--radius-lg);
    transition: width 0.5s ease, background 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--space-sm);
    color: var(--white);
    font-weight: 700;
}

@media (max-width: 768px) {
    .score-display {
        flex-direction: column;
        text-align: center;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
}

/* ========================================
   PET SAFETY SECTION
   Dedicated pet preparedness guidance
======================================== */
.pet-safety-section {
    margin: var(--space-3xl) 0;
}

.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.pet-card {
    background: linear-gradient(135deg, #fff9c4, #fff59d);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border-top: 4px solid #fbc02d;
}

.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.pet-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    text-align: center;
}

.pet-card h4 {
    color: #f57f17;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.pet-list {
    list-style: none;
}

.pet-list li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    line-height: 1.6;
}

.pet-list li::before {
    content: '🐾';
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

/* ========================================
   KEY TAKEAWAYS BOXES
   Summary sections for each phase
======================================== */
.key-takeaways {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 6px solid var(--success-green);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    margin-top: var(--space-3xl);
    box-shadow: var(--shadow-md);
}

.key-takeaways.emergency-takeaway {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-left-color: var(--emergency-red);
}

.key-takeaways.recovery-takeaway {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-left-color: var(--caution);
}

.key-takeaways h4 {
    color: var(--black);
    margin-bottom: var(--space-lg);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.takeaway-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.takeaway-list li {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    padding-left: var(--space-xl);
    position: relative;
    line-height: 1.6;
    transition: all var(--transition-fast);
}

.takeaway-list li:hover {
    background: var(--white);
    transform: translateX(5px);
}

.takeaway-list li::before {
    content: '➜';
    position: absolute;
    left: var(--space-md);
    color: var(--flood-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.emergency-takeaway .takeaway-list li::before {
    color: var(--emergency-red);
}

.recovery-takeaway .takeaway-list li::before {
    color: var(--caution);
}

/* ========================================
   MYTHS VS FACTS SECTION
   Debunking dangerous misconceptions
======================================== */
.myths-section {
    background: linear-gradient(to bottom, #fff3e0, var(--white));
    padding: var(--space-3xl) 0;
}

.section-title.centered {
    text-align: center;
    justify-content: center;
}

.section-intro.centered {
    text-align: center;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--medium-gray);
    margin-bottom: var(--space-2xl);
}

.myths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.myth-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.myth-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--flood-blue);
}

.myth-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
}

.myth-header.myth {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
}

.myth-header.fact {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    margin-top: var(--space-lg);
}

.myth-icon,
.fact-icon {
    font-size: 1.5rem;
}

.myth-header h4 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.myth-header.myth h4 {
    color: var(--emergency-red);
}

.myth-header.fact h4 {
    color: var(--success-green);
}

.myth-text {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 0;
    padding: var(--space-md) 0;
    font-weight: 500;
}

.fact-text {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--black);
    line-height: 1.7;
    margin: 0;
    padding-top: var(--space-sm);
}

@media (max-width: 768px) {
    .myths-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   COMMUNITY RESOURCES SECTION
   Support and assistance information
======================================== */
.resources-section {
    background: linear-gradient(135deg, #f5f5f5, #e3f2fd);
    padding: var(--space-3xl) 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.resource-card {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    text-align: center;
    border-top: 4px solid var(--flood-blue);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.resource-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
}

.resource-card h4 {
    color: var(--flood-blue);
    margin-bottom: var(--space-md);
}

.resource-card p {
    margin: 0;
    line-height: 1.7;
    color: var(--dark-gray);
}

.resource-card strong {
    color: var(--emergency-red);
    font-size: 1.125rem;
}

/* ========================================
   EMERGENCY PULSE ANIMATION
   Red pulsing dot for high-urgency section
======================================== */
.emergency-pulse {
    width: 24px;
    height: 24px;
    background: var(--emergency-red);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(217, 48, 37, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 48, 37, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(217, 48, 37, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217, 48, 37, 0);
    }
}

/* ========================================
   TURN AROUND DON'T DROWN CALLOUT
   High-contrast emergency message
======================================== */
.tadd-callout {
    background: var(--white);
    border: 4px solid var(--emergency-red);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin: var(--space-2xl) 0;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    box-shadow: var(--shadow-xl);
    animation: urgentShake 5s ease-in-out infinite;
}

@keyframes urgentShake {
    0%, 98%, 100% { transform: translateX(0); }
    99% { transform: translateX(5px); }
    99.5% { transform: translateX(-5px); }
}

.tadd-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.tadd-content h3 {
    color: var(--emergency-red);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-md);
    letter-spacing: 1px;
}

.tadd-main {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.tadd-stat {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--medium-gray);
}

.tadd-stat strong {
    color: var(--emergency-red);
    font-size: 1.5em;
}

@media (max-width: 768px) {
    .tadd-callout {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   EXPANDABLE ACCORDIONS
   Using <details> and <summary> tags
======================================== */
.accordion-container {
    margin: var(--space-2xl) 0;
}

.accordion-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.accordion-item:hover {
    box-shadow: var(--shadow-lg);
}

.accordion-item[open] {
    border-left: 4px solid var(--flood-blue);
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, var(--flood-blue), var(--dark-blue));
    color: var(--white);
    cursor: pointer;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.accordion-header:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--flood-blue));
}

.accordion-icon {
    font-size: 1.5rem;
}

.accordion-title {
    flex: 1;
}

.accordion-arrow {
    font-size: 1.2rem;
    transition: transform var(--transition-normal);
}

.accordion-content {
    padding: var(--space-xl);
    background: var(--off-white);
}

.action-list {
    list-style: none;
    counter-reset: action-counter;
}

.action-list li {
    counter-increment: action-counter;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--flood-blue);
    position: relative;
    padding-left: var(--space-3xl);
}

.action-list li::before {
    content: counter(action-counter);
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--flood-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.action-list li strong {
    color: var(--flood-blue);
}

/* Warning boxes within accordions */
.warning-box,
.critical-box,
.danger-box {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid;
}

.warning-box {
    background: #fff3cd;
    border-left-color: var(--warning-yellow);
}

.critical-box {
    background: #ffebee;
    border-left-color: var(--emergency-red);
}

.danger-box {
    background: #ffccbc;
    border-left-color: var(--danger);
}

.warning-box strong,
.critical-box strong,
.danger-box strong {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

/* ========================================
   SAFETY RULES GRID
   Quick reference cards
======================================== */
.safety-rules {
    margin: var(--space-2xl) 0;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.rule-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border-top: 4px solid var(--emergency-red);
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.rule-number {
    width: 60px;
    height: 60px;
    background: var(--phase2-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto var(--space-lg);
    box-shadow: var(--shadow-md);
}

.rule-card h4 {
    color: var(--emergency-red);
    margin-bottom: var(--space-md);
}

.rule-card p {
    margin: 0;
    color: var(--dark-gray);
}

/* ========================================
   SANITATION & HEALTH GUIDE
   Color-coded safe/warning cards
======================================== */
.sanitation-guide {
    margin: var(--space-2xl) 0;
}

.sanitation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.sanitation-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid;
}

.sanitation-card.safe {
    border-top-color: var(--safe-green);
}

.sanitation-card.warning {
    border-top-color: var(--warning-yellow);
}

.status-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.safe-badge {
    background: var(--safe-green);
    color: var(--white);
}

.warning-badge {
    background: var(--warning-yellow);
    color: var(--black);
}

.sanitation-card h4 {
    color: var(--black);
    margin-bottom: var(--space-lg);
}

.practice-list {
    list-style: none;
}

.practice-list li {
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    background: var(--off-white);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--flood-blue);
    line-height: 1.6;
}

.practice-list li strong {
    color: var(--flood-blue);
    display: block;
    margin-bottom: var(--space-xs);
}

/* ========================================
   STRUCTURAL INTEGRITY CHECKLIST
   Step-by-step inspection cards
======================================== */
.structural-checklist {
    margin: var(--space-2xl) 0;
}

.critical-warning {
    background: linear-gradient(135deg, var(--emergency-red), var(--danger));
    color: var(--white);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-lg);
}

.critical-warning strong {
    font-size: 1.3em;
    display: block;
    margin-bottom: var(--space-sm);
}

.inspection-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.step-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--caution);
}

.step-number {
    display: inline-block;
    background: var(--phase3-gradient);
    color: var(--white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.step-card h4 {
    color: var(--caution);
    margin-bottom: var(--space-lg);
}

.inspection-checklist {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* ========================================
   RECOVERY TIMELINE
   Visual timeline with markers
======================================== */
.recovery-timeline {
    margin: var(--space-3xl) 0;
}

.timeline {
    position: relative;
    padding: var(--space-xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--flood-blue), var(--success-green));
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 3;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
}

.timeline-item:nth-child(odd) .timeline-marker {
    grid-column: 2;
}

.timeline-item:nth-child(even) .timeline-marker {
    grid-column: 2;
}

.timeline-marker {
    width: 120px;
    height: 60px;
    background: var(--flood-blue);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 2;
    position: relative;
}

.timeline-content {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--flood-blue);
}

.timeline-content h4 {
    color: var(--flood-blue);
    margin-bottom: var(--space-md);
}

.timeline-content p {
    margin: 0;
    color: var(--dark-gray);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: var(--space-md);
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 2;
    }
    
    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        grid-column: 1;
    }
    
    .timeline-marker {
        width: 60px;
        height: 60px;
        font-size: 0.8rem;
    }
}

/* ========================================
   EMERGENCY CONTACTS DIRECTORY
   Professional table styling
======================================== */
.emergency-section {
    background: linear-gradient(135deg, #f5f5f5, #e3f2fd);
    padding: var(--space-3xl) 0;
}

.section-title {
    text-align: center;
    color: var(--black);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.section-intro {
    text-align: center;
    color: var(--medium-gray);
    margin-bottom: var(--space-2xl);
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.emergency-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border-collapse: collapse;
}

.emergency-table thead {
    background: var(--phase2-gradient);
    color: var(--white);
}

.emergency-table th {
    padding: var(--space-lg);
    text-align: left;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.125rem);
    letter-spacing: 0.5px;
}

.emergency-table td {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--light-gray);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.emergency-table tbody tr {
    transition: background var(--transition-fast);
}

.emergency-table tbody tr:hover {
    background: var(--light-blue);
}

.urgent-row {
    background: #ffebee;
    font-weight: 600;
}

.urgent-row:hover {
    background: #ffcdd2 !important;
}

.phone-number {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--emergency-red);
    font-size: 1.125rem;
}

.contact-note {
    background: var(--white);
    border-left: 4px solid var(--flood-blue);
    padding: var(--space-lg);
    margin-top: var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.contact-note p {
    margin: 0;
}

/* Responsive table for mobile */
@media (max-width: 768px) {
    .emergency-table {
        font-size: 0.8rem;
    }
    
    .emergency-table th,
    .emergency-table td {
        padding: var(--space-sm);
    }
    
    .phone-number {
        font-size: 1rem;
    }
}

/* ========================================
   FOOTER SECTION
   Professional conclusion
======================================== */
.site-footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h3 {
    color: var(--light-blue);
    margin-bottom: var(--space-md);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-fast);
    padding-left: var(--space-md);
    position: relative;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    transition: transform var(--transition-fast);
}

.footer-links a:hover {
    color: var(--light-blue);
    text-decoration: none;
}

.footer-links a:hover::before {
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
    opacity: 0.8;
}

.print-note {
    color: var(--light-blue) !important;
    font-weight: 600;
}

.share-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.share-text {
    font-size: 1.125rem !important;
    color: var(--light-blue) !important;
    opacity: 1 !important;
    margin-bottom: var(--space-md) !important;
}

.hackathon-credit {
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-style: italic;
}

/* ========================================
   PRINT-FRIENDLY STYLES
   Optimized for physical printing
======================================== */
@media print {
    /* Remove interactive elements */
    .glass-nav,
    .progress-container,
    .emergency-pulse,
    .nav-menu,
    .footer-links,
    .emergency-float-button,
    .cta-button,
    .preparedness-calculator,
    .share-section {
        display: none !important;
    }
    
    /* Reset colors for ink efficiency */
    body {
        background: white;
        color: black;
    }
    
    .hero-section,
    .phase-section {
        background: white !important;
    }
    
    /* Remove shadows */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Ensure black text */
    h1, h2, h3, h4, h5, h6, p, li, td, th {
        color: black !important;
    }
    
    /* Remove unnecessary padding */
    .hero-section {
        padding: 1rem !important;
        margin-top: 0 !important;
    }
    
    /* Keep checkboxes functional */
    .checkbox-input {
        border: 2px solid black;
    }
    
    /* Optimize table for print */
    .emergency-table {
        page-break-inside: avoid;
    }
    
    .emergency-table th {
        background: #f0f0f0 !important;
        color: black !important;
    }
    
    /* Page breaks */
    .phase-section {
        page-break-before: always;
    }
    
    /* Remove animations */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Optimize borders */
    .tadd-callout {
        border: 3px solid black !important;
    }
    
    /* Simplify badges */
    .status-badge {
        border: 2px solid black;
        background: white !important;
        color: black !important;
    }
    
    /* Make links visible */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
    
    /* Hero section simplified */
    .hero-section::before {
        display: none;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   Enhanced for screen readers and keyboard navigation
======================================== */
/* Focus indicators */
a:focus,
button:focus,
input:focus,
summary:focus {
    outline: 3px solid var(--flood-blue);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--flood-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-nav {
        background: var(--white);
        backdrop-filter: none;
    }
    
    .hero-section {
        background: var(--dark-blue);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   Mobile-first approach
======================================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

@media (max-width: 768px) {
    :root {
        --space-3xl: 2rem;
        --space-2xl: 1.5rem;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .checklist-grid,
    .grid-container,
    .sanitation-grid,
    .inspection-steps {
        grid-template-columns: 1fr;
    }
    
    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .tadd-icon {
        font-size: 3rem;
    }
    
    .phase-section {
        padding: var(--space-2xl) 0;
    }
}

/* ========================================
   UTILITY CLASSES
   Reusable helper classes
======================================== */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }

.hidden {
    display: none;
}

.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;
}

/* ========================================
   ACTIVE NAV LINK
======================================== */
.nav-menu li a.active {
    background-color: var(--flood-blue);
    color: var(--white);
}

/* ========================================
   TOAST NOTIFICATION
   Copy-to-clipboard feedback
======================================== */
.toast-notification {
    position: fixed;
    bottom: 130px;
    right: 30px;
    background: var(--dark-gray);
    color: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 9996;
    pointer-events: none;
    max-width: 280px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   PHONE NUMBER — CLICK TO COPY HINT
======================================== */
.phone-number {
    cursor: pointer;
    user-select: all;
    transition: color var(--transition-fast);
}

.emergency-table tbody tr:hover .phone-number {
    color: var(--dark-blue);
    text-decoration: underline dotted;
}

/* ========================================
   SCROLL-TRIGGERED FADE-IN ANIMATIONS
======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   FLOOD DEPTH VISUALIZER
   Interactive educational water depth chart
======================================== */
.depth-visualizer {
    margin: var(--space-2xl) 0;
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.depth-chart {
    display: flex;
    align-items: flex-end;
    gap: var(--space-lg);
    height: 220px;
    padding: 0 var(--space-md);
    border-bottom: 3px solid var(--dark-gray);
    border-left: 3px solid var(--dark-gray);
    justify-content: space-around;
    background: linear-gradient(to bottom, rgba(0,0,0,0.02), transparent);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin-top: var(--space-xl);
}

.depth-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    max-width: 150px;
    height: 100%;
}

.depth-fill {
    width: 65%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to top, #1565c0, #42a5f5);
    animation: waterShimmer 3s ease-in-out infinite;
}

.depth-fill.caution-depth {
    background: linear-gradient(to top, #e65100, #ffb74d);
}

.depth-fill.danger-depth {
    background: linear-gradient(to top, #b71c1c, #ef5350);
}

.depth-fill.critical-depth {
    background: linear-gradient(to top, #4a148c, #ba68c8);
}

@keyframes waterShimmer {
    0%, 100% { filter: brightness(1); }
    50%       { filter: brightness(1.15); }
}

.depth-fill::before {
    content: '';
    position: absolute;
    top: 8px;
    left: -60%;
    width: 220%;
    height: 14px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    animation: waveAnim 2.5s ease-in-out infinite;
}

@keyframes waveAnim {
    0%   { transform: translateX(0)   scaleY(1);   }
    50%  { transform: translateX(20%) scaleY(1.4); }
    100% { transform: translateX(0)   scaleY(1);   }
}

.depth-label {
    text-align: center;
    margin-top: var(--space-md);
    width: 100%;
}

.depth-label strong {
    display: block;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--dark-blue);
    margin-bottom: 4px;
}

.depth-label p {
    font-size: 0.82rem;
    color: var(--medium-gray);
    margin: 0 0 4px;
    line-height: 1.3;
}

.depth-danger-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-warning  { background: #e3f2fd; color: #0d47a1; }
.badge-caution  { background: #fff3e0; color: #e65100; }
.badge-danger   { background: #ffebee; color: #b71c1c; }
.badge-critical { background: #f3e5f5; color: #6a1b9a; }

.depth-note {
    text-align: center;
    color: var(--medium-gray);
    font-style: italic;
    margin: var(--space-lg) 0 0;
    padding: var(--space-md);
    background: #fff3e0;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--caution);
}

@media (max-width: 600px) {
    .depth-chart {
        height: 160px;
        gap: var(--space-sm);
    }
    .depth-label strong { font-size: 0.85rem; }
    .depth-label p      { font-size: 0.72rem; }
}

/* ========================================
   DARK MODE — Full theme overrides
======================================== */
[data-theme="dark"] {
    --white: #1e1e2e;
    --off-white: #181825;
    --light-gray: #313244;
    --medium-gray: #a6adc8;
    --dark-gray: #cdd6f4;
    --black: #cdd6f4;
    --light-blue: #1a2f4a;
    --hero-gradient: linear-gradient(135deg, #0d47a1 0%, #071b40 100%);
}

[data-theme="dark"] body {
    background-color: #181825;
    color: #cdd6f4;
}

[data-theme="dark"] .glass-nav {
    background: rgba(30, 30, 46, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nav-logo { color: #89b4fa; }

[data-theme="dark"] .nav-menu li a { color: #cdd6f4; }

[data-theme="dark"] .nav-menu li a.active,
[data-theme="dark"] .nav-menu li a:hover {
    background-color: #1e88e5;
    color: #ffffff;
}

[data-theme="dark"] .dark-mode-toggle {
    border-color: #89b4fa;
    color: #89b4fa;
}
[data-theme="dark"] .dark-mode-toggle:hover {
    background: #89b4fa;
    color: #1e1e2e;
}

/* Cards & containers */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .grid-card,
[data-theme="dark"] .myth-card,
[data-theme="dark"] .resource-card,
[data-theme="dark"] .accordion-item,
[data-theme="dark"] .step-card,
[data-theme="dark"] .rule-card,
[data-theme="dark"] .depth-visualizer,
[data-theme="dark"] .score-display,
[data-theme="dark"] .tadd-callout,
[data-theme="dark"] .contact-note {
    background: #313244;
    color: #cdd6f4;
}

[data-theme="dark"] .checklist-container { background: #2a2a3e; }

[data-theme="dark"] .sanitation-card,
[data-theme="dark"] .timeline-content {
    background: #313244;
    color: #cdd6f4;
}

[data-theme="dark"] .pet-card {
    background: linear-gradient(135deg, #2a2a20, #333320);
    color: #cdd6f4;
}

[data-theme="dark"] .action-list li {
    background: #45475a;
    color: #cdd6f4;
}

[data-theme="dark"] .accordion-content { background: #1e1e2e; }

[data-theme="dark"] .checkbox-item {
    background: #45475a;
    color: #cdd6f4;
}
[data-theme="dark"] .checkbox-item:hover { background: #585b70; }

[data-theme="dark"] .takeaway-list li {
    background: rgba(255, 255, 255, 0.07);
    color: #cdd6f4;
}
[data-theme="dark"] .takeaway-list li:hover { background: rgba(255, 255, 255, 0.12); }

[data-theme="dark"] .practice-list li {
    background: #45475a;
    color: #cdd6f4;
}
[data-theme="dark"] .practice-list li strong { color: #89b4fa; }

[data-theme="dark"] .emergency-table { background: #2a2a3e; }
[data-theme="dark"] .emergency-table td,
[data-theme="dark"] .emergency-table th {
    color: #cdd6f4;
    border-bottom-color: #45475a;
}
[data-theme="dark"] .emergency-table tbody tr:hover { background: #45475a; }
[data-theme="dark"] .urgent-row { background: #3a1a1a; }

[data-theme="dark"] .stats-section {
    background: linear-gradient(135deg, #1a1a2e, #181825);
}
[data-theme="dark"] .resources-section,
[data-theme="dark"] .emergency-section,
[data-theme="dark"] .myths-section {
    background: linear-gradient(135deg, #181825, #1a1a2e);
}
[data-theme="dark"] .phase-before,
[data-theme="dark"] .phase-during,
[data-theme="dark"] .phase-after {
    background: linear-gradient(to bottom, #181825, #1e1e2e);
}

[data-theme="dark"] .key-takeaways {
    background: linear-gradient(135deg, #1a2e1e, #1e3a22);
}
[data-theme="dark"] .key-takeaways.emergency-takeaway {
    background: linear-gradient(135deg, #2e1a1a, #3a1e1e);
}
[data-theme="dark"] .key-takeaways.recovery-takeaway {
    background: linear-gradient(135deg, #2e2a1a, #3a331e);
}

[data-theme="dark"] .preparedness-calculator {
    background: linear-gradient(135deg, #2a1e35, #352540);
}

[data-theme="dark"] .accordion-header {
    background: linear-gradient(135deg, #0d3470, #071b40);
}

[data-theme="dark"] .nav-menu { background: rgba(24, 24, 37, 0.98); }

[data-theme="dark"] .toast-notification {
    background: #45475a;
    color: #cdd6f4;
}

[data-theme="dark"] .depth-note { background: #2e2a1a; color: #cdd6f4; }

[data-theme="dark"] .warning-box  { background: #2e2c14; }
[data-theme="dark"] .critical-box { background: #2e1414; }
[data-theme="dark"] .danger-box   { background: #2e1a12; }

[data-theme="dark"] .card-list li::before { color: #a6e3a1; }

@media print {
    [data-theme="dark"] * {
        background: white !important;
        color: black !important;
    }
}