/* WordPress Theme Header */
/*
Theme Name: AquaShield Services
Description: Professional home services website for water damage mitigation, plumbing services, and public adjuster services
Version: 1.0
Author: AquaShield Services
Text Domain: aquashield
*/

/* CSS Variables */
:root {
    --primary-blue: #0d6efd;
    --secondary-blue: #0a58ca;
    --dark-gray: #212529;
    --light-gray: #6c757d;
    --warning-yellow: #ffc107;
    --success-green: #198754;
    --danger-red: #dc3545;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    padding-top: 80px; /* Account for fixed navbar */
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
}

.navbar-brand:hover {
    color: var(--warning-yellow) !important;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--warning-yellow) !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.navbar-nav .nav-link.active {
    color: var(--warning-yellow) !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 5px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(10, 88, 202, 0.9)), 
                url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-warning {
    background-color: var(--warning-yellow);
    border-color: var(--warning-yellow);
    color: var(--dark-gray);
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: var(--dark-gray);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Service Icons */
.service-icon {
    transition: transform 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.1);
}

/* Stars */
.stars {
    color: var(--warning-yellow);
}

/* Emergency Call Section */
.bg-warning {
    background-color: var(--warning-yellow) !important;
}

.bg-warning h3 {
    color: var(--dark-gray);
}

.bg-warning p {
    color: var(--dark-gray);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 4rem 0;
}

/* Sticky Call Button */
.sticky-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.sticky-call-btn .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Accordion */
.accordion-button {
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-blue);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-blue);
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: white;
}

footer a {
    color: var(--warning-yellow);
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.bg-success {
    background-color: var(--success-green) !important;
}

.bg-warning {
    background-color: var(--warning-yellow) !important;
}

.bg-danger {
    background-color: var(--danger-red) !important;
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Smaller padding for mobile */
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .page-header h1 {
        font-size: 2rem !important;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -7.5px;
        margin-right: -7.5px;
    }
    
    .col-md-6, .col-lg-4, .col-lg-8 {
        padding-left: 7.5px;
        padding-right: 7.5px;
    }
    
    /* Mobile navigation improvements */
    .navbar-collapse {
        background: rgba(13, 110, 253, 0.95);
        border-radius: 8px;
        margin-top: 10px;
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Mobile form improvements */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    /* Mobile button improvements */
    .btn {
        width: 100%;
    margin-bottom: 0.5rem;
}

    .btn + .btn {
        margin-left: 0;
    }
    
    /* Mobile card improvements */
    .card {
        margin-bottom: 1rem;
    }
    
    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }
    
    /* Mobile section spacing */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Mobile text alignment */
    .text-md-end {
        text-align: center !important;
    }
    
    /* Mobile emergency section */
    .bg-warning {
        padding: 1rem 0;
    }
    
    .bg-warning h3 {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .bg-warning p {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .page-header h1 {
        font-size: 1.75rem !important;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .container {
        max-width: 95%;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
    }
}

/* Large devices */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .bg-warning {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .container {
        max-width: 100%;
    }
}
