/*
Theme Name: Diamond Exterior Cleaning
Description: Professional WordPress theme for exterior cleaning services in Essex. Features responsive design, Elementor integration, and complete demo content for roof cleaning, driveway cleaning, patio cleaning, and more.
Version: 1.0.0
Author: Diamond Exterior Cleaning Specialists
Text Domain: diamond-exterior
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: cleaning-services, business, responsive, elementor, one-page, custom-colors, custom-menu, featured-images, footer-widgets, translation-ready
*/

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #4b5563;
}

a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

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

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
    color: white;
}

.btn-secondary {
    background-color: #0d9488;
    color: white;
}

.btn-secondary:hover {
    background-color: #0f766e;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.btn-outline:hover {
    background-color: #1e40af;
    color: white;
}

.btn-tertiary {
    background-color: #059669;
    color: white;
    border: 2px solid #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-tertiary:hover {
    background-color: #047857;
    border-color: #047857;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Header */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px; /* Fixed height for consistent spacing */
    display: flex;
    align-items: center;
}

/* Adjust header position when admin bar is present */
.admin-bar .site-header {
    top: 32px;
}

/* Mobile admin bar adjustment */
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    width: 100%;
    height: 100%;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0 1rem;
    position: relative;
}

.main-navigation a {
    color: #1f2937;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: block;
}

.main-navigation a:hover {
    color: #1e40af;
}

/* Dropdown Menu Styles */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul li {
    margin: 0;
    width: 100%;
}

.main-navigation ul ul a {
    padding: 0.75rem 1rem;
    color: #4b5563;
    font-weight: 400;
    border-bottom: 1px solid #f3f4f6;
}

.main-navigation ul ul a:hover {
    background-color: #f8fafc;
    color: #1e40af;
}

.main-navigation ul ul li:last-child a {
    border-bottom: none;
}

/* Services menu indicator */
.main-navigation li.menu-item-has-children > a:after {
    content: ' ▼';
    font-size: 0.7rem;
    color: #6b7280;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8fafc;
    color: #1e40af;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.social-icon:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
}

.phone-link {
    color: #1e40af;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.phone-link:hover span {
    background: #1e40af !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
}


/* Footer */
.site-footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #d1d5db;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    margin-left: auto;
}

.menu-toggle .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.menu-icon {
    width: 24px;
    height: 2px;
    background: #1f2937;
    position: relative;
    transition: all 0.3s ease;
    display: block;
}

.menu-icon:before,
.menu-icon:after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #1f2937;
    transition: all 0.3s ease;
}

.menu-icon:before {
    top: -8px;
}

.menu-icon:after {
    top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .site-header {
        height: 70px; /* Slightly shorter on mobile */
    }
    
    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 1rem;
        position: relative;
        width: 100%;
    }
    
    /* Hide desktop header CTA on mobile */
    .header-cta {
        display: none;
    }
    
    /* Logo positioning */
    .site-logo {
        flex: 0 0 auto;
        margin-right: 1rem;
    }
    
    .site-logo img {
        max-height: 45px; /* Slightly smaller on mobile */
    }
    
    /* Mobile header actions - between logo and menu */
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-left: auto;
        margin-right: 0.5rem;
    }
    
    /* Mobile social icons - match desktop style */
    .mobile-social {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    
    .mobile-social .social-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #f8fafc;
        color: #1e40af;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid #e5e7eb;
    }
    
    .mobile-social .social-icon:hover {
        background: #1e40af;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
    }
    
    .mobile-social .social-icon svg {
        width: 16px;
        height: 16px;
    }
    
    
    /* Hide original phone link on mobile */
    .phone-link {
        display: none !important;
    }
    
    /* Mobile menu toggle positioning */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem;
        min-width: 44px;
        min-height: 44px;
        flex-shrink: 0;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 999;
        border-top: 1px solid #e5e7eb;
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem 1.5rem;
        color: #1f2937;
        text-decoration: none;
        font-weight: 500;
        transition: background-color 0.2s ease;
    }
    
    .main-navigation a:hover,
    .main-navigation a:focus {
        background-color: #f9fafb;
        color: #1e40af;
    }
    
    .section {
        padding: 2rem 0;
    }
}