/* ==========================================================================
   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;
}