/* ==========================================================================
   USA Water Damage Restoration Sanford - Mobile-First Responsive Stylesheet
   ========================================================================== */

:root {
    --header-blue: #1e73be;
    --header-blue-dark: #165c9c;
    --primary: #0f2b48;
    --accent-orange: #ffa500;
    --accent-orange-hover: #e69500;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --radius: 6px;
    --transition: all 0.2s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
    padding-bottom: 60px; /* Space for mobile sticky call bar */
    overflow-x: hidden;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

a {
    color: var(--header-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--header-blue-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.25rem; }

@media (min-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.1rem; }
}

@media (min-width: 992px) {
    h1 { font-size: 3.4rem; }
    h2 { font-size: 2.4rem; }
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* ==========================================================================
   Top Header Bar (Vivid Blue Bar)
   ========================================================================== */
.site-header {
    background-color: var(--header-blue);
    color: #ffffff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@media (min-width: 992px) {
    .site-header {
        padding: 14px 0;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 200px;
}

@media (min-width: 768px) {
    .brand-logo {
        max-width: 260px;
    }
}

.site-logo-img {
    height: 42px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .site-logo-img {
        height: 50px;
    }
}

/* Nav Menu (Desktop) */
.main-nav {
    display: none;
}

@media (min-width: 992px) {
    .main-nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-list a {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-list a:hover, .nav-list a.active {
    color: #ffd880;
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 260px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 8px 0;
    list-style: none;
    display: none;
    border: 1px solid var(--border-color);
    z-index: 1100;
}

.dropdown-grid {
    min-width: 480px;
    display: none;
    grid-template-columns: 1fr 1fr;
    padding: 10px;
    gap: 4px;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.has-dropdown:hover .dropdown-grid {
    display: grid;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    text-transform: none;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--header-blue);
}

.mobile-drawer-call-item {
    display: none;
}

/* Header CTAs & Mobile Toggle */
.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-header-call {
    display: none;
    background-color: var(--accent-orange);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.btn-header-call:hover {
    background-color: var(--accent-orange-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

@media (min-width: 992px) {
    .btn-header-call {
        display: inline-flex;
    }
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 992px) {
    .mobile-header-actions {
        display: none;
    }
}

.btn-mobile-call-icon {
    background-color: var(--accent-orange);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 38px;
    height: 38px;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Slide-Down Drawer */
@media (max-width: 991px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--header-blue-dark);
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
        padding: 15px 0 25px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .nav-list > li > a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 0.95rem;
    }
    
    .has-dropdown .dropdown-menu,
    .has-dropdown .dropdown-grid {
        position: static;
        display: block;
        background: rgba(0,0,0,0.15);
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 6px 0 10px;
        max-height: 250px;
        overflow-y: auto;
    }
    
    .has-dropdown .dropdown-grid {
        grid-template-columns: 1fr;
    }
    
    .dropdown-menu li a {
        color: #e2e8f0;
        padding: 8px 30px;
        font-size: 0.85rem;
    }
    
    .dropdown-menu li a:hover {
        background: rgba(255,255,255,0.1);
        color: #ffd880;
    }
    
    .mobile-drawer-call-item {
        display: block;
        padding: 15px 20px 0;
    }
    
    .btn-drawer-call {
        display: block;
        background-color: var(--accent-orange);
        color: #ffffff !important;
        text-align: center;
        padding: 12px !important;
        border-radius: 4px;
        font-weight: 700;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
}

/* ==========================================================================
   Hero Section (Exact Screenshot Match - Scaled for Mobile)
   ========================================================================== */
.hero-section-exact {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.8) 55%, rgba(15, 23, 42, 0.4) 100%), url('/assets/images/hero-bg.jpg') center right/cover no-repeat;
    color: #ffffff;
    padding: 50px 0 60px;
    position: relative;
}

@media (min-width: 768px) {
    .hero-section-exact {
        padding: 80px 0 100px;
    }
}

@media (min-width: 992px) {
    .hero-section-exact {
        padding: 110px 0 130px;
    }
}

.hero-content-exact {
    max-width: 720px;
}

.hero-preheading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 14px;
}

@media (min-width: 768px) {
    .hero-preheading {
        font-size: 0.9rem;
        letter-spacing: 0.12em;
        margin-bottom: 18px;
    }
}

.hero-preheading svg {
    width: 16px;
    height: 16px;
    fill: var(--accent-orange);
    flex-shrink: 0;
}

.hero-h1-exact {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .hero-h1-exact {
        font-size: 3rem;
        line-height: 1.12;
    }
}

@media (min-width: 992px) {
    .hero-h1-exact {
        font-size: 3.6rem;
    }
}

.city-highlight {
    color: var(--accent-orange);
}

.hero-desc-exact {
    font-size: 1rem;
    line-height: 1.65;
    color: #e2e8f0;
    margin-bottom: 24px;
    max-width: 660px;
}

@media (min-width: 768px) {
    .hero-desc-exact {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 30px;
    }
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 480px) {
    .hero-cta-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }
}

.btn-hero-orange {
    background-color: var(--accent-orange);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 26px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(255, 165, 0, 0.4);
    transition: var(--transition);
    text-align: center;
}

.btn-hero-orange:hover {
    background-color: var(--accent-orange-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-hero-white {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-align: center;
}

.btn-hero-white:hover {
    background-color: #ffffff;
    color: var(--primary);
}

/* ==========================================================================
   Sections & Grids
   ========================================================================== */
.section {
    padding: 45px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 70px 0;
    }
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 35px;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 50px;
    }
}

.section-subtitle {
    color: var(--header-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.82rem;
    margin-bottom: 6px;
    display: block;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 26px;
    }
}

.card-item {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .card-item {
        padding: 28px;
    }
}

.card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--header-blue);
}

.card-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
    flex-grow: 1;
    margin-bottom: 14px;
    line-height: 1.6;
}

.card-link {
    font-weight: 700;
    color: var(--header-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
}

/* Warning Signs Section (2-Column Desktop, 1-Column Mobile) */
.warning-signs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 992px) {
    .warning-signs-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 40px;
    }
}

.warning-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.warning-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.warning-icon-box {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background-color: #fef3c7;
    color: #d97706;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}

.warning-item strong {
    display: block;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 3px;
}

.warning-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.warning-img-box {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.warning-img-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 5-Step Process */
.process-grid-5 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 25px;
}

@media (min-width: 600px) {
    .process-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .process-grid-5 {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
}

.process-step-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.step-num {
    width: 38px;
    height: 38px;
    background-color: var(--header-blue);
    color: #ffffff;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.05rem;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 16px 18px;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.faq-toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0 18px 16px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

/* Layout for Inner Pages */
.page-header-banner {
    background: linear-gradient(135deg, #1e73be 0%, #0f2b48 100%);
    color: #ffffff;
    padding: 35px 0;
    text-align: center;
}

@media (min-width: 768px) {
    .page-header-banner {
        padding: 50px 0;
    }
}

.page-header-banner h1 {
    color: #ffffff;
    margin-bottom: 6px;
    font-size: 1.8rem;
}

@media (min-width: 768px) {
    .page-header-banner h1 {
        font-size: 2.4rem;
    }
}

.breadcrumbs {
    font-size: 0.82rem;
    color: #e2e8f0;
}

.breadcrumbs a {
    color: #ffd880;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 35px 0;
}

@media (min-width: 992px) {
    .content-layout {
        grid-template-columns: 1fr 340px;
        padding: 50px 0;
        gap: 40px;
    }
}

.main-article {
    line-height: 1.75;
}

/* Sidebar */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.emergency-box {
    background: linear-gradient(135deg, #1e73be 0%, #0f2b48 100%);
    color: #ffffff;
    text-align: center;
}

.emergency-box h3 {
    color: #ffffff;
}

.btn-sidebar-call {
    display: block;
    width: 100%;
    background-color: var(--accent-orange);
    color: #ffffff;
    font-weight: 700;
    padding: 12px;
    font-size: 1.05rem;
    border-radius: 4px;
    margin-top: 12px;
    text-align: center;
}

.btn-sidebar-call:hover {
    background-color: var(--accent-orange-hover);
    color: #ffffff;
}

/* Forms */
.hero-form-card {
    background: #ffffff;
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .hero-form-card {
        padding: 30px;
    }
}

.form-group {
    margin-bottom: 12px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.92rem;
}

.btn-submit-quote {
    width: 100%;
    background-color: var(--accent-orange);
    color: #ffffff;
    font-weight: 700;
    padding: 13px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.btn-submit-quote:hover {
    background-color: var(--accent-orange-hover);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.feature-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Footer */
.emergency-cta-banner {
    background: linear-gradient(135deg, #1e73be 0%, #0f2b48 100%);
    color: #ffffff;
    padding: 45px 0;
    text-align: center;
}

@media (min-width: 768px) {
    .emergency-cta-banner {
        padding: 60px 0;
    }
}

.cta-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-block;
    background: var(--accent-orange);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.emergency-cta-banner h2 {
    color: #ffffff;
    margin-bottom: 10px;
}

.site-footer {
    background-color: #0c1a2c;
    color: #cbd5e1;
    padding: 45px 0 20px;
    font-size: 0.88rem;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 60px 0 20px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    margin-bottom: 35px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr 1fr;
        gap: 40px;
    }
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--header-blue);
    padding-bottom: 6px;
    display: inline-block;
}

.footer-links, .footer-links-grid, .footer-check-list {
    list-style: none;
}

.footer-links li, .footer-links-grid li, .footer-check-list li {
    margin-bottom: 7px;
}

.footer-links a, .footer-links-grid a {
    color: #94a3b8;
}

.footer-links a:hover, .footer-links-grid a:hover {
    color: #ffffff;
    padding-left: 3px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    font-size: 0.8rem;
    color: #64748b;
}

.bottom-flex {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .bottom-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Mobile Sticky Call Bar */
.mobile-sticky-call {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--accent-orange);
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    display: block;
}

@media (min-width: 992px) {
    .mobile-sticky-call {
        display: none;
    }
}

.btn-sticky-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.98rem;
    letter-spacing: 0.5px;
}
/* ==========================================================================
   SEO Action Plan Enhancements (Above-The-Fold Hero, Checklists, Case Studies)
   ========================================================================== */

/* Hero 2-Column Grid (Above The Fold) */
.hero-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid-2 {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 40px;
    }
}

.hero-trust-badges-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.trust-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* Quick Dispatch Form in Hero */
.hero-dispatch-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--accent-orange);
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .hero-dispatch-box {
        padding: 26px 22px;
    }
}

.dispatch-box-header {
    margin-bottom: 14px;
    text-align: center;
}

.dispatch-badge-urgent {
    display: inline-block;
    background-color: #fee2e2;
    color: #b91c1c;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.dispatch-box-header h3 {
    color: var(--primary);
    font-size: 1.22rem;
    margin-bottom: 4px;
}

.dispatch-box-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* "What To Do Right Now" Emergency Protocol Box */
.emergency-checklist-section {
    background: #fffbeb;
    border-top: 3px solid var(--accent-orange);
    border-bottom: 3px solid var(--accent-orange);
    padding: 35px 0;
}

.emergency-checklist-box {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #fde68a;
    padding: 26px;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.08);
}

.checklist-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 600px) {
    .checklist-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .checklist-steps-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
    }
}

.checklist-step-item {
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px 14px;
    position: relative;
    transition: var(--transition);
}

.checklist-step-item:hover {
    border-color: var(--accent-orange);
    background: #ffffff;
}

.step-badge {
    width: 28px;
    height: 28px;
    background: var(--header-blue);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.checklist-step-item strong {
    display: block;
    font-size: 0.92rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.checklist-step-item p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Service Comparison Selector Matrix */
.matrix-container {
    overflow-x: auto;
    margin: 30px 0;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.service-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    min-width: 650px;
}

.service-matrix-table th {
    background: var(--primary);
    color: #ffffff;
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-matrix-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    vertical-align: middle;
}

.service-matrix-table tr:hover td {
    background: var(--bg-light);
}

.badge-risk {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.risk-critical { background: #fee2e2; color: #b91c1c; }
.risk-high { background: #ffedd5; color: #c2410c; }
.risk-urgent { background: #fef3c7; color: #b45309; }

/* Real Project Case Studies */
.case-study-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .case-study-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.case-study-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-study-card:hover {
    border-color: var(--header-blue);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.case-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.case-study-card h4 {
    font-size: 1.12rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.case-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.case-meta strong {
    color: var(--text-dark);
}

.case-result {
    background: #f0fdf4;
    border-left: 3px solid #16a34a;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #166534;
    border-radius: 0 4px 4px 0;
    margin-top: auto;
}

/* Category Alert Boxes for Flood Page */
.category-box {
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 16px;
    border-left: 4px solid;
}

.cat-1 { background: #f0fdf4; border-color: #16a34a; }
.cat-2 { background: #fffbeb; border-color: #d97706; }
.cat-3 { background: #fef2f2; border-color: #dc2626; }

.cat-title {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-1 .cat-title { color: #166534; }
.cat-2 .cat-title { color: #92400e; }
.cat-3 .cat-title { color: #991b1b; }

/* Printable Flood Checklist Box */
.printable-checklist-card {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 24px;
    margin: 30px 0;
}

.checklist-items-list {
    list-style: none;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checklist-items-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.check-square {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #94a3b8;
    border-radius: 3px;
    display: inline-block;
    margin-top: 2px;
}

/* Priority Service Hub Cards */
.hub-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-orange);
    padding: 16px 20px;
    border-radius: 6px;
    transition: var(--transition);
}

.hub-link-card:hover {
    transform: translateX(4px);
    border-color: var(--header-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ==========================================================================
   Editorial Guides & E-E-A-T Authority Article Styling
   ========================================================================== */

/* Author & Reviewer E-E-A-T Card */
.author-meta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 15px 0 25px 0;
}

.author-avatar-wrap {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--header-blue);
    flex-shrink: 0;
    background: #e2e8f0;
}

.author-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
    min-width: 240px;
}

.author-name-line {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3px;
}

.author-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: 6px;
    display: inline-block;
}

.author-credentials {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.article-audit-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.audit-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-dark);
    font-weight: 600;
}

.audit-tag.verified {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

/* Table of Contents (TOC) */
.article-toc {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--header-blue);
    border-radius: 6px;
    padding: 20px 24px;
    margin: 25px 0 35px 0;
}

.article-toc h4 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-toc ol {
    margin-left: 20px;
    line-height: 1.7;
    font-size: 0.92rem;
}

.article-toc ol li {
    margin-bottom: 6px;
}

.article-toc a {
    color: var(--header-blue-dark);
    font-weight: 500;
    text-decoration: underline;
}

.article-toc a:hover {
    color: var(--accent-orange);
}

/* Field Pro Tip & Technician Note */
.field-pro-tip {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
    margin: 26px 0;
    box-shadow: 0 2px 8px rgba(37,99,235,0.06);
}

.field-pro-tip h5 {
    font-size: 1rem;
    color: #1e40af;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.field-pro-tip p {
    font-size: 0.92rem;
    color: #1e3a8a;
    line-height: 1.6;
    margin: 0;
}

.technician-note {
    background: #fffbeb;
    border-left: 4px solid #d97706;
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
    margin: 26px 0;
}

.technician-note h5 {
    font-size: 1rem;
    color: #92400e;
    margin-bottom: 6px;
    font-weight: 700;
}

.technician-note p {
    font-size: 0.92rem;
    color: #78350f;
    line-height: 1.6;
    margin: 0;
}

/* Article Figure with HD Image & Caption */
.article-figure {
    margin: 30px 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.article-figure img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.figure-caption {
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.figure-caption strong {
    color: var(--primary);
    font-weight: 600;
}

/* Step-by-Step Procedure Cards */
.procedure-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 25px 0;
}

.procedure-step-card {
    display: flex;
    gap: 18px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.step-num-badge {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--header-blue);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
}

.step-content h4 {
    font-size: 1.08rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.92rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

/* Related Guides Section Grid */
.related-guides-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.related-guides-section h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.related-guides-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .related-guides-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-guide-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.related-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-color: var(--header-blue);
}

.related-guide-img {
    height: 140px;
    width: 100%;
    object-fit: cover;
}

.related-guide-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-guide-cat {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-orange);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.related-guide-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.35;
    margin-bottom: 8px;
}

.related-guide-read {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}