/* Additional Custom Styles */

/* Header Phone Button */
.header-phone:hover {
    background: #ff8555 !important;
    box-shadow: 0 4px 12px rgba(255,107,53,0.4) !important;
    transform: translateY(-2px);
}

/* Hero Section Variations */
.hero-section.hero-business {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

.hero-section.hero-residential {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
}

/* Section Spacing */
.section {
    padding: 2.5rem 20px;
}

.section-alt {
    background-color: var(--bg-light);
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: white;
    padding: 2.5rem 20px;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.service-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info-card {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.contact-info-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Blog/Archive Styles */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.post-card h2 {
    margin-bottom: 1rem;
}

.post-card h2 a {
    color: var(--text-dark);
}

.post-card h2 a:hover {
    color: var(--primary-color);
}

.entry-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.entry-excerpt {
    margin-bottom: 1rem;
}

/* Contact Form Textarea */
textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    resize: vertical;
}

/* Error States */
input.error,
textarea.error,
select.error {
    border-color: var(--error-color);
}

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Hero CTA Button Hover Effects */
.hero-cta-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3) !important;
}

/* Header Experience Navigation */
.header-experience-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.header-experience-nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-weight: 600;
}

/* Hero Address Search Responsive */
@media (max-width: 768px) {
    .hero-section form > div {
        flex-direction: column !important;
        border-radius: 12px !important;
        padding: 0.75rem !important;
    }
    
    .hero-section form input {
        border-radius: 12px !important;
        padding: 1rem 1.25rem !important;
    }
    
    .hero-section form button {
        border-radius: 12px !important;
        padding: 1rem 2rem !important;
        width: 100%;
    }
}

/* Responsive Contact Section */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   MOBILE RESPONSIVE STYLES FOR BUSINESS PAGE
   ============================================ */

/* Tablets and below (768px) */
@media (max-width: 767px) {
    
    /* Make hero section more compact */
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-section p {
        font-size: 1rem !important;
    }
    
    /* Business feature cards - 2 columns on mobile */
    [style*="minmax(180px"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Make all feature cards more compact on mobile */
    [style*="padding: 1.25rem"] {
        padding: 0.9rem !important;
    }
    
    /* Resize icons on mobile */
    [style*="font-size: 2rem"] {
        font-size: 1.6rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    /* Resize card titles */
    h5[style*="font-size: 0.95rem"] {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
    }
    
    /* Resize card descriptions */
    p[style*="font-size: 0.8rem"] {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
    }
    
    /* Section headings smaller */
    h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.2rem !important;
    }
    
    /* Reduce section padding */
    .section {
        padding: 2rem 0 !important;
    }
    
    /* Make containers have less side padding */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Stack industries section in single column */
    [style*="minmax(200px"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Make CTA buttons full width on mobile */
    .btn-large {
        width: 100% !important;
        padding: 14px 24px !important;
        font-size: 1rem !important;
    }
    
    /* Stack CTA button groups vertically */
    [style*="display: flex"][style*="gap: 1rem"] {
        flex-direction: column !important;
    }
    
    /* Reduce Google Reviews section */
    .reviews-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Small phones (400px and below) */
@media (max-width: 400px) {
    
    /* Single column for very small screens */
    [style*="minmax(180px"] {
        grid-template-columns: 1fr !important;
    }
    
    [style*="minmax(200px"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Even smaller text */
    .hero-section h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.3rem !important;
    }
    
    /* Tighter padding */
    .section {
        padding: 1.5rem 0 !important;
    }
    
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* ============================================
   MOBILE HEADER & HAMBURGER MENU
   ============================================ */

/* Hide mobile header on desktop */
.mobile-header {
    display: none;
}

/* Show mobile header, hide desktop header on mobile */
@media (max-width: 767px) {
    .mobile-header {
        display: block;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .desktop-header {
        display: none !important;
    }
    
    /* Mobile top bar (phone icon + my account) */
    .mobile-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--primary-color);
        padding: 0.5rem 1rem;
    }
    
    .mobile-phone-icon {
        font-size: 1.4rem;
        color: white;
        text-decoration: none;
        transition: all 0.3s;
    }
    
    .mobile-phone-icon:hover {
        transform: scale(1.1);
    }
    
    .mobile-account-btn {
        background: #ff6b35;
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(255,107,53,0.3);
        transition: all 0.3s;
    }
    
    .mobile-account-btn:hover {
        background: #e05a2e;
        transform: translateY(-2px);
    }
    
    /* Mobile main bar (hamburger + logo) */
    .mobile-main-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        background: white;
    }
    
    .mobile-logo {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .mobile-menu-spacer {
        width: 44px; /* Same width as hamburger for centering */
    }
    
    /* Hamburger menu icon */
    .hamburger-menu {
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 8px;
        position: relative;
        z-index: 1001;
    }
    
    .hamburger-menu span {
        display: block;
        width: 28px;
        height: 3px;
        background: var(--primary-color);
        margin: 3px 0;
        transition: all 0.3s;
        border-radius: 2px;
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Mobile slide-out menu */
    .mobile-slide-menu {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1002;
        overflow-y: auto;
    }
    
    .mobile-slide-menu.active {
        left: 0;
    }
    
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 1rem;
        background: var(--primary-color);
        color: white;
    }
    
    .mobile-menu-header h3 {
        margin: 0;
        font-size: 1.3rem;
        color: white;
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        color: white;
        font-size: 2.5rem;
        cursor: pointer;
        line-height: 1;
        padding: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu-list li {
        border-bottom: 1px solid #eee;
    }
    
    .mobile-menu-list a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--text-dark);
        text-decoration: none;
        font-size: 1.05rem;
        transition: background 0.2s;
    }
    
    .mobile-menu-list a:hover {
        background: #f5f5f5;
        color: var(--primary-color);
    }
    
    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 1001;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

