/* Phoenix Water Damage Restoration - Logo-Branded Responsive CSS */

:root {
    --primary: #002864;
    --primary-light: #003B8E;
    --primary-dark: #00183C;
    --secondary: #0050A0;
    --secondary-hover: #003D7A;
    --accent: #FF6414;
    --accent-light: #FFF2EB;
    --emergency: #FF6414;
    --emergency-hover: #E04800;
    --warning: #f59e0b;
    --success: #10b981;
    --text-dark: #00183C;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: rgba(226, 232, 240, 0.85);
    --border-subtle: rgba(226, 232, 240, 0.6);
    
    /* Nuanced Agency-Level Elevation Shadows */
    --shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(0, 40, 100, 0.06), 0 1px 2px -1px rgba(0, 40, 100, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 40, 100, 0.07), 0 2px 4px -2px rgba(0, 40, 100, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0, 40, 100, 0.09), 0 4px 6px -4px rgba(0, 40, 100, 0.04);
    --shadow-xl: 0 20px 35px -5px rgba(0, 40, 100, 0.12), 0 8px 12px -6px rgba(0, 40, 100, 0.06);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 40, 100, 0.25);
    --shadow-emergency: 0 6px 22px -2px rgba(255, 100, 20, 0.45);
    --shadow-accent: 0 6px 20px -2px rgba(0, 80, 160, 0.35);

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(200, 220, 240, 0.85);
    --glass-blur: blur(14px);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--text-body);
    background-color: var(--bg-light);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 3vw, 24px);
    padding-right: clamp(16px, 3vw, 24px);
}

/* Fluid Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
}

h1 { font-size: clamp(1.85rem, 4vw + 0.5rem, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw + 0.3rem, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw + 0.2rem, 1.65rem); }
h4 { font-size: clamp(1.05rem, 1.5vw + 0.1rem, 1.25rem); }
p { margin-bottom: 1rem; }

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Form Controls - Touch Optimized */
input, select, textarea, button {
    font-family: inherit;
    font-size: 1rem; /* >= 16px prevents iOS auto-zoom */
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #f8fafc;
    color: var(--text-dark);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.15);
}

.form-note {
    font-size: 0.775rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}

/* Buttons - Touch Target friendly */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    user-select: none;
}

.btn-emergency {
    background: linear-gradient(135deg, #FF6414 0%, #E04800 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 100, 20, 0.4);
}

.btn-emergency:hover, .btn-emergency:active {
    background: linear-gradient(135deg, #FF782E 0%, #C83C00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 100, 20, 0.55);
}

.btn-primary {
    background: var(--secondary);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 119, 204, 0.25);
}

.btn-primary:hover, .btn-primary:active {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 119, 204, 0.35);
}

.btn-outline {
    background: transparent;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.btn-sm {
    min-height: 38px;
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    min-height: 54px;
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Animations */
@keyframes liveDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}

.pulse-circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    animation: liveDot 1.5s infinite ease-in-out;
}

.pulse-emergency {
    background-color: #FF6414;
    box-shadow: 0 0 10px #FF6414;
}

/* TOP EMERGENCY BANNER */
.top-emergency-bar {
    background: #00183C;
    color: #f8fafc;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 2px solid #FF6414;
}

.top-emergency-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.emergency-status {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.emergency-contact-mini {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.emergency-contact-mini a {
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* MAIN HEADER (FROSTED GLASS) */
.site-header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
    border-bottom-color: rgba(203, 213, 225, 0.9);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 15px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo-img {
    height: 62px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.footer-logo-img {
    height: 75px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 119, 204, 0.35);
    flex-shrink: 0;
}

.brand-title {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.brand-title span {
    color: var(--secondary);
}

.brand-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 22px);
    list-style: none;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.925rem;
    padding: 6px 0;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary);
}

.header-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-phone-box {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.header-phone-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--emergency);
    text-transform: uppercase;
}

.header-phone-number {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.75rem;
    color: var(--primary);
    padding: 4px 8px;
    line-height: 1;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #001433 0%, #002864 50%, #003B8E 100%);
    color: #ffffff;
    padding: clamp(40px, 6vw, 75px) 0 clamp(50px, 8vw, 85px);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: clamp(24px, 4vw, 40px);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: #ffffff;
    margin-bottom: 18px;
}

.hero-content h1 span {
    color: #FF6414;
    text-shadow: 0 0 20px rgba(255, 100, 20, 0.3);
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 100, 20, 0.18);
    border: 1px solid rgba(255, 100, 20, 0.45);
    color: #FFA066;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: #cbd5e1;
    margin-bottom: 26px;
    line-height: 1.6;
}

.hero-trust-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.925rem;
    font-weight: 600;
    color: #e2e8f0;
}

.trust-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* HERO FORM CARD */
.hero-form-card {
    background: #ffffff;
    color: var(--text-dark);
    padding: clamp(20px, 4vw, 32px);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-form-header {
    margin-bottom: 18px;
    text-align: center;
}

.hero-form-badge {
    display: inline-block;
    background: #FFF2EB;
    color: #E04800;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    margin-bottom: 6px;
    border: 1px solid rgba(255, 100, 20, 0.25);
}

.hero-form-header h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--primary);
    margin-bottom: 4px;
}

.hero-form-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* STATS / TRUST BAR */
.trust-metric-bar {
    background: #ffffff;
    padding: 22px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}

.metric-card {
    padding: 8px 12px;
}

.metric-number {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* SECTION STYLING */
.section {
    padding: clamp(45px, 6vw, 75px) 0;
}

.section-light {
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(30px, 4vw, 50px);
}

.section-subtitle {
    display: inline-block;
    color: var(--secondary);
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: var(--text-muted);
    margin-bottom: 0;
}

/* 4-STEP PROCESS */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-card {
    background: #ffffff;
    padding: clamp(22px, 3vw, 30px) clamp(18px, 2.5vw, 24px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.process-step-num {
    position: absolute;
    top: -14px;
    left: 20px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 2px solid #ffffff;
    box-shadow: var(--shadow-sm);
}

.process-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-light);
    color: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    margin-top: 8px;
}

.process-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.process-card p {
    font-size: 0.885rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 119, 204, 0.4);
}

.service-card-banner {
    height: 6px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
}

.service-card-emergency .service-card-banner {
    background: linear-gradient(90deg, var(--emergency) 0%, #ff858d 100%);
}

.service-card-body {
    padding: clamp(20px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-icon-box {
    width: 54px;
    height: 54px;
    background: var(--accent-light);
    color: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.service-card-emergency .service-icon-box {
    background: #fee2e2;
    color: var(--emergency);
}

.service-card h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.35rem);
    margin-bottom: 10px;
}

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

.service-features-list {
    list-style: none;
    margin-bottom: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.service-features-list li {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.service-features-list li svg {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 3px;
}

/* ESTIMATOR WIDGET */
.estimator-container {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: clamp(20px, 4vw, 40px);
    border: 1px solid var(--border-color);
}

.estimator-steps-wrapper {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: clamp(24px, 4vw, 40px);
    align-items: flex-start;
}

.estimator-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 20px;
}

.option-pill-label {
    display: block;
    cursor: pointer;
}

.option-pill-label input {
    display: none;
}

.option-pill {
    padding: 12px 10px;
    background: #f8fafc;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.option-pill-label input:checked + .option-pill {
    background: var(--accent-light);
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 2px 8px rgba(0, 119, 204, 0.15);
}

.estimator-result-card {
    background: linear-gradient(135deg, #0a2540 0%, #163860 100%);
    color: #ffffff;
    padding: clamp(20px, 3.5vw, 32px);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.estimator-result-card h3 {
    color: #ffffff;
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    margin-bottom: 6px;
}

.result-estimate-price {
    margin: 16px 0;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    text-align: center;
}

.result-estimate-price .label {
    font-size: 0.825rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.result-estimate-price .amount {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 800;
    color: var(--accent);
    margin: 4px 0;
}

.result-estimate-price .subtext {
    font-size: 0.785rem;
    color: #cbd5e1;
}

/* RESPONSIVE LAYOUT UTILITIES FOR INNER PAGES */
.content-sidebar-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: clamp(24px, 4vw, 40px);
    align-items: flex-start;
    margin-bottom: 50px;
}

.split-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3.5vw, 35px);
    align-items: flex-start;
}

.cards-auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* AREAS WE SERVE */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.area-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
    display: block;
}

.area-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.area-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.area-time {
    font-size: 0.8rem;
    color: var(--emergency);
    font-weight: 600;
}

/* INSURANCE CARRIERS */
.insurance-section {
    background: #f1f5f9;
    padding: clamp(35px, 5vw, 50px) 0;
    text-align: center;
}

.insurance-badge-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.insurance-badge {
    background: #ffffff;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    color: #475569;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* TESTIMONIALS */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: #ffffff;
    padding: clamp(20px, 3vw, 28px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.review-text {
    font-size: 0.925rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 18px;
    line-height: 1.6;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.author-info h5 {
    font-size: 0.925rem;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.775rem;
    color: var(--text-muted);
}

/* FAQ ACCORDION */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: clamp(14px, 2.5vw, 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: var(--primary);
    user-select: none;
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 clamp(14px, 2.5vw, 20px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 clamp(14px, 2.5vw, 20px) 18px;
    max-height: 400px;
}

/* EMERGENCY CTA BANNER */
.emergency-cta-banner {
    background: linear-gradient(135deg, #e63946 0%, #b71c1c 100%);
    color: #ffffff;
    padding: clamp(35px, 6vw, 55px) 0;
    text-align: center;
}

.emergency-cta-banner h2 {
    color: #ffffff;
    margin-bottom: 10px;
}

.emergency-cta-banner p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: #ffe5e7;
    margin-bottom: 24px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-phone-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #b71c1c !important;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 800;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: var(--transition);
    word-break: break-all;
}

.cta-phone-large:hover {
    transform: scale(1.03);
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

/* FOOTER */
.site-footer {
    background: #061729;
    color: #94a3b8;
    padding: clamp(45px, 7vw, 70px) 0 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: clamp(24px, 4vw, 40px);
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    display: inline-block;
    padding: 2px 0;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact-info svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}

/* INNER HERO */
.inner-hero {
    background: linear-gradient(135deg, #061729 0%, #0a2540 100%);
    color: #ffffff;
    padding: clamp(35px, 6vw, 55px) 0;
    text-align: center;
}

.inner-hero h1 {
    color: #ffffff;
    margin-bottom: 10px;
}

.inner-hero p {
    color: #cbd5e1;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    max-width: 650px;
    margin: 0 auto;
}

.inner-content-section {
    padding: clamp(35px, 5vw, 60px) 0 clamp(50px, 7vw, 80px);
}

/* FLOATING EMERGENCY MOBILE CALL BUTTON */
.mobile-sticky-call {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #e63946;
    color: #ffffff;
    text-align: center;
    padding: 14px 16px;
    z-index: 9999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.25);
    font-weight: 700;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
}

.mobile-sticky-call a {
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

/* ===================================================
   HUMANIZED AGENCY DESIGN COMPONENTS
=================================================== */

/* Tracked Micro-Labels & Eyebrows */
.eyebrow-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.eyebrow-emergency {
    color: var(--emergency);
}

/* TECHNICIAN LIVE STANDBY WIDGET */
.technician-standby-widget {
    background: linear-gradient(135deg, #061729 0%, #0a2540 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3.5vw, 28px);
    color: #ffffff;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    margin: 30px auto;
}

.technician-standby-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, var(--accent) 50%, #10b981 100%);
}

.standby-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.standby-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pulse-emerald {
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.standby-eta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 600;
}

.standby-eta-pill strong {
    color: var(--accent);
}

.standby-units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.standby-unit-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.standby-unit-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.unit-info {
    display: flex;
    flex-direction: column;
}

.unit-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
}

.unit-location {
    font-size: 0.775rem;
    color: #94a3b8;
}

.unit-badge {
    font-size: 0.725rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.unit-badge.available {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.unit-badge.dispatched {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.standby-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.standby-supervisor {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.supervisor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* BEFORE & AFTER COMPARISON SECTION */
.before-after-section {
    background: #f8fafc;
    padding: clamp(50px, 7vw, 85px) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ba-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 30px);
}

.ba-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.ba-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 119, 204, 0.35);
}

.ba-visual-container {
    position: relative;
    height: 220px;
    background: #0f172a;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.ba-pane {
    position: relative;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.ba-pane-before {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-right: 2px solid #ffffff;
}

.ba-pane-after {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.85) 0%, rgba(10, 37, 64, 0.95) 100%);
}

.ba-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
}

.ba-tag-before {
    background: #fee2e2;
    color: #991b1b;
}

.ba-tag-after {
    background: #d1fae5;
    color: #065f46;
}

.ba-sensor-val {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

.ba-sensor-val span {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.8;
}

.ba-divider-pill {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    color: var(--primary);
    font-size: 0.725rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    z-index: 2;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ba-body {
    padding: clamp(20px, 3vw, 24px);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ba-category-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.ba-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.35;
}

.ba-card p {
    font-size: 0.885rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
    flex-grow: 1;
}

.ba-metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 16px;
}

.ba-metric-col {
    display: flex;
    flex-direction: column;
}

.ba-metric-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.ba-metric-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
}

.ba-metric-val.saved {
    color: #059669;
}

/* ===================================================
   MAGAZINE-QUALITY BLOG (SINGLE.PHP)
=================================================== */

.article-hero {
    background: linear-gradient(135deg, #061729 0%, #0a2540 70%, #0f345c 100%);
    color: #ffffff;
    padding: clamp(35px, 6vw, 65px) 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.article-breadcrumbs a {
    color: #cbd5e1;
    transition: var(--transition);
}

.article-breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumb-separator {
    color: #64748b;
}

.breadcrumb-current {
    color: var(--accent);
    font-weight: 600;
}

.article-hero-content {
    max-width: 900px;
}

.article-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 168, 232, 0.18);
    border: 1px solid rgba(0, 168, 232, 0.4);
    color: #7dd3fc;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.article-hero h1 {
    color: #ffffff;
    font-size: clamp(1.85rem, 3.8vw, 3rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

.article-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 24px;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.article-author-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-chip-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--secondary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid var(--accent);
}

.author-chip-info strong {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
}

.author-chip-info span {
    font-size: 0.75rem;
    color: #94a3b8;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}

.article-meta-item svg {
    color: var(--accent);
}

.article-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

/* Article Layout Grid (Main + Sticky Sidebar) */
.article-layout-section {
    padding: clamp(40px, 6vw, 70px) 0;
}

.article-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(28px, 4vw, 50px);
    align-items: flex-start;
}

.article-main-column {
    min-width: 0;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-body);
    max-width: 72ch;
}

.article-content p {
    margin-bottom: 1.4rem;
}

.article-content h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    color: var(--primary);
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 14px;
    border-left: 4px solid var(--secondary);
}

.article-content h3 {
    font-size: clamp(1.18rem, 1.8vw, 1.45rem);
    color: var(--primary);
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.4rem;
}

.article-content li {
    margin-bottom: 0.6rem;
}

.article-content strong {
    color: var(--text-dark);
}

/* Key Emergency Takeaways Box */
.article-takeaways-box {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-left: 5px solid #10b981;
    border-radius: var(--radius-md);
    padding: clamp(20px, 3vw, 28px);
    margin: 24px 0 32px;
    box-shadow: var(--shadow-sm);
}

.takeaways-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.takeaways-header h4 {
    font-size: 1.15rem;
    color: #065f46;
    margin-bottom: 0;
}

.takeaways-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 18px !important;
}

.takeaways-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #166534;
    margin-bottom: 10px !important;
}

.takeaways-list li svg {
    color: #10b981;
    flex-shrink: 0;
    margin-top: 3px;
}

.takeaways-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid #bbf7d0;
    padding-top: 14px;
}

.takeaways-action span {
    font-size: 0.85rem;
    color: #15803d;
    font-weight: 600;
}

/* Magazine Pullquote */
.article-pullquote {
    margin: 35px 0;
    padding: 24px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-left: 4px solid var(--secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    position: relative;
}

.article-pullquote::before {
    content: "“";
    position: absolute;
    top: -15px;
    left: 15px;
    font-size: 4rem;
    color: rgba(0, 119, 204, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

.article-pullquote blockquote {
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    font-style: italic;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
}

.article-pullquote cite {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 600;
}

/* Author Bio Card */
.article-author-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3.5vw, 30px);
    margin: 40px 0;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.author-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow-md);
}

.author-card-info h4 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.author-credential-tag {
    font-size: 0.785rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.author-card-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 10px;
}

.author-card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.author-pill-badge {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    font-size: 0.725rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Post Navigation (Prev/Next) */
.post-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.post-nav-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: block;
    transition: var(--transition);
}

.post-nav-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-nav-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-nav-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.35;
}

/* STICKY DISPATCH SIDEBAR CARD */
.sticky-sidebar-wrapper {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sticky-dispatch-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.sticky-dispatch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e63946 0%, #ff858d 100%);
}

.dispatch-card-header {
    background: #0f172a;
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

.dispatch-card-header .pulse-circle {
    margin-right: 6px;
}

.dispatch-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(230, 57, 70, 0.25);
    border: 1px solid rgba(230, 57, 70, 0.5);
    color: #ff99a0;
    font-size: 0.725rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.dispatch-card-header h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.dispatch-card-header p {
    font-size: 0.825rem;
    color: #94a3b8;
    margin-bottom: 0;
}

.dispatch-card-body {
    padding: 20px;
}

.dispatch-eta-box {
    background: #fef2f2;
    border: 1px dashed #fca5a5;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    text-align: center;
    margin-bottom: 16px;
}

.dispatch-eta-box strong {
    color: #dc2626;
    font-size: 1.05rem;
    display: block;
}

.dispatch-eta-box span {
    font-size: 0.75rem;
    color: #991b1b;
}

.dispatch-hotline-btn {
    width: 100%;
    margin-bottom: 14px;
    font-size: 1rem;
    padding: 12px 16px;
}

.dispatch-sidebar-form .form-group {
    margin-bottom: 10px;
}

.dispatch-sidebar-form .form-control {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.dispatch-trust-notes {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    margin-top: 14px;
}

.dispatch-trust-notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dispatch-trust-notes li {
    font-size: 0.8rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.dispatch-trust-notes svg {
    color: var(--success);
    flex-shrink: 0;
}

/* Secondary Sidebar Card (TOC / Helpful Guides) */
.sidebar-widget-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget-card h4 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-light);
}

.sidebar-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links-list li {
    margin-bottom: 10px;
}

.sidebar-links-list a {
    font-size: 0.875rem;
    color: var(--text-body);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.sidebar-links-list a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

/* ===================================================
   KNOWLEDGE HUB / ARCHIVE (ARCHIVE.PHP & INDEX.PHP)
=================================================== */

.hub-hero {
    background: linear-gradient(135deg, #061729 0%, #0a2540 60%, #163860 100%);
    color: #ffffff;
    padding: clamp(40px, 7vw, 75px) 0 clamp(35px, 5vw, 60px);
    position: relative;
    text-align: center;
}

.hub-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 168, 232, 0.15);
    border: 1px solid rgba(0, 168, 232, 0.4);
    color: #7dd3fc;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.hub-hero h1 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 14px;
}

.hub-hero p {
    color: #cbd5e1;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    max-width: 720px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

/* Category Filter Navigation Pills */
.category-pills-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px auto 0;
    max-width: 900px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    white-space: nowrap;
}

.category-pill:hover,
.category-pill.active {
    background: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
    box-shadow: var(--shadow-accent);
    transform: translateY(-2px);
}

/* Featured Hero Article Spotlight Card */
.featured-hub-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    margin-bottom: 45px;
    transition: var(--transition);
}

.featured-hub-card:hover {
    box-shadow: var(--shadow-2xl);
    border-color: rgba(0, 119, 204, 0.4);
}

.featured-hub-media {
    position: relative;
    background: linear-gradient(135deg, #0a2540 0%, #163860 100%);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(24px, 4vw, 36px);
    color: #ffffff;
    overflow: hidden;
}

.featured-hub-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 168, 232, 0.3) 0%, transparent 70%);
}

.featured-badge-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.featured-pill {
    background: var(--emergency);
    color: #ffffff;
    font-size: 0.725rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.featured-reading-time {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-media-footer {
    position: relative;
    z-index: 2;
}

.featured-tag {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    display: block;
}

.featured-media-title {
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 0;
}

.featured-hub-body {
    padding: clamp(28px, 4vw, 42px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-hub-body h2 {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    margin-bottom: 14px;
    line-height: 1.3;
}

.featured-hub-body p {
    font-size: 0.975rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}

.featured-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

/* Articles Grid */
.hub-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 30px);
    margin-bottom: 50px;
}

.hub-post-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.hub-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 119, 204, 0.35);
}

.hub-card-media {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #0a2540 0%, #163860 100%);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.hub-card-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hub-card-cat {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: var(--radius-full);
}

.hub-card-time {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.725rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 4px;
}

.hub-card-media-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.hub-card-body {
    padding: clamp(18px, 2.5vw, 24px);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hub-card-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.35;
}

.hub-card-title a {
    color: var(--primary);
}

.hub-card-title a:hover {
    color: var(--secondary);
}

.hub-card-excerpt {
    font-size: 0.885rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 18px;
    flex-grow: 1;
}

.hub-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hub-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.hub-read-link {
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.hub-read-link:hover {
    color: var(--primary);
    transform: translateX(3px);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 20px;
}

.pagination-container .page-numbers {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination-container .page-numbers:hover,
.pagination-container .page-numbers.current {
    background: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
}

/* ===================================================
   RESPONSIVE BREAKPOINTS (MEDIA QUERIES)
=================================================== */

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .ba-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-layout-grid {
        grid-template-columns: 1fr;
    }
    .sticky-sidebar-wrapper {
        position: static;
        margin-top: 30px;
    }
    .featured-hub-card {
        grid-template-columns: 1fr;
    }
    .hub-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .estimator-steps-wrapper {
        grid-template-columns: 1fr;
    }
    .content-sidebar-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet & Large Mobile (<= 768px) */
@media (max-width: 768px) {
    /* Mobile Menu Drawer */
    .nav-menu {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px 80px;
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
        gap: 8px;
        z-index: 999;
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-menu a {
        font-size: 1.1rem;
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    .mobile-toggle {
        display: block;
    }
    .header-cta-group .btn {
        display: none;
    }
    .top-emergency-bar .emergency-contact-mini span {
        display: none;
    }
    .hero-trust-points {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ba-grid {
        grid-template-columns: 1fr;
    }
    .hub-posts-grid {
        grid-template-columns: 1fr;
    }
    .post-nav-grid {
        grid-template-columns: 1fr;
    }
    .article-author-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .split-2-col {
        grid-template-columns: 1fr;
    }
    .standby-widget-header,
    .standby-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .standby-units-grid {
        grid-template-columns: 1fr;
    }
    .category-pills-bar {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-sticky-call {
        display: flex;
    }
    body {
        padding-bottom: 60px;
    }
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .areas-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .estimator-options-grid {
        grid-template-columns: 1fr;
    }
    .hero-cta-buttons .btn {
        width: 100%;
    }
    .top-emergency-bar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .header-phone-box {
        display: none;
    }
    .brand-sub {
        display: none;
    }
    .site-logo-img {
        height: 44px;
    }
    .ba-visual-container {
        height: 240px;
    }
}

/* 4K and Ultra-Wide Displays (>= 1920px) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    .article-content {
        max-width: 76ch;
    }
}
