/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-top: 80px; /* Account for fixed header */
}

/* Adjust content margin when admin bar is present */
.admin-bar .hero-section {
    margin-top: 112px; /* 80px header + 32px admin bar */
}

/* Mobile adjustments */
@media screen and (max-width: 782px) {
    .hero-section {
        margin-top: 70px; /* Account for mobile header height */
    }
    
    .admin-bar .hero-section {
        margin-top: 116px; /* 70px mobile header + 46px mobile admin bar */
    }
}

/* Adjust other page content top margin */
.site-main {
    margin-top: 80px; /* Account for fixed header on all pages */
}

.admin-bar .site-main {
    margin-top: 112px; /* 80px header + 32px admin bar */
}

@media screen and (max-width: 782px) {
    .site-main {
        margin-top: 70px; /* Account for mobile header height */
    }
    
    .admin-bar .site-main {
        margin-top: 116px; /* 70px mobile header + 46px mobile admin bar */
    }
}

/* Ensure all content below header doesn't overlap */
.site-content {
    position: relative;
    z-index: 1;
}

/* Special handling for pages without hero section */
body:not(.home-page) .site-main {
    padding-top: 2rem; /* Additional padding for non-homepage content */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 41, 55, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.feature-icon {
    color: #10b981;
    font-size: 1.2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-card li {
    color: #4b5563;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #1e40af;
}

.testimonial-rating {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial blockquote {
    margin: 0;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial cite {
    font-weight: 600;
    color: #1f2937;
    font-style: normal;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit {
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit h3 {
    color: white;
    margin-bottom: 1rem;
}

.benefit p {
    color: #d1d5db;
}

/* Coverage Section */
.coverage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.areas-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.area-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.area-column li {
    padding: 0.25rem 0;
    color: #4b5563;
}

.coverage-image img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Quote Section */
.quote-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

.contact-option {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.contact-option h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.contact-option p {
    color: #6b7280;
    margin: 0;
}

.contact-option a {
    color: #1e40af;
    font-weight: 600;
}

/* Form Styling */
.quote-form {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.wpcf7-form {
    display: grid;
    gap: 1rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: #1e40af;
}

.wpcf7-form .wpcf7-checkbox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.wpcf7-form .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.wpcf7-form .wpcf7-list-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.wpcf7-form .wpcf7-list-item input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
    accent-color: #1e40af;
}

.wpcf7-form .wpcf7-list-item label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    line-height: 1.3;
}

/* Responsive adjustments for checkboxes */
@media (max-width: 768px) {
    .wpcf7-form .wpcf7-checkbox {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .wpcf7-form .wpcf7-list-item {
        padding: 0.75rem;
    }
}

.wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
}

/* FAQ Section */
.faq-items {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
}

.faq-question {
    color: #1f2937;
    margin-bottom: 1rem;
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
}

.faq-question:after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    color: #1e40af;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question:after {
    content: "−";
    transform: rotate(180deg);
}

.faq-answer {
    color: #6b7280;
    line-height: 1.6;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

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

.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;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: white;
    padding: 1rem;
    z-index: 9999;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: #93c5fd;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .coverage-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .quote-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
    
    .areas-list {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: 1rem;
    }
    
    .main-navigation li {
        margin: 0.5rem 0;
    }
    
    .header-cta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .service-card,
    .quote-form {
        padding: 1rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Testimonials Enhancement */
.testimonials-section {
    background: #f8fafc;
}

.testimonial {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #1e40af;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-rating {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.testimonial blockquote {
    font-style: italic;
    margin: 1rem 0;
    line-height: 1.6;
}

.testimonial cite {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
}

.testimonial cite::before {
    content: "— ";
}

/* Reviews Page Button Enhancement */
.btn-outline:hover {
    background-color: #1e40af;
    color: white;
    border-color: #1e40af;
}

/* FAQ Preview Section */
.faq-preview {
    background: #f8fafc;
}

.faq-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.faq-preview-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #1e40af;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-preview-item h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.faq-preview-item p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Gallery Page Styles */
.gallery-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.gallery-intro p {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.filter-btn {
    background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
    color: #374151;
    border: 2px solid #d1d5db;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

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

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

.gallery-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.gallery-card h3 {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .image-container img {
    transform: scale(1.05);
}

.image-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.before-label {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

.after-label {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
}

.project-info {
    padding: 1.5rem;
    background: #f8fafc;
}

.project-info p {
    color: #4b5563;
    margin: 0;
    line-height: 1.6;
    font-size: 0.875rem;
}

.project-location {
    display: inline-block;
    background: #1e40af;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Before/After Comparison Alternative Layout */
.gallery-item.comparison-style .before-after {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.gallery-item.comparison-style .image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-item.comparison-style .image-container.after {
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
}

.gallery-item.comparison-style .before-after::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: white;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Lightbox Styles */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .gallery-filters {
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .before-after {
        grid-template-columns: 1fr;
    }
    
    .gallery-card h3 {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .project-info {
        padding: 1rem;
    }
}