/* ===================================================================
   FENTON ROOFING PAGE STYLESHEET - Clean, no !important
   =================================================================== */

/* --- Hero Section --- */
.fenton-hero {
    position: relative;
    z-index: 2;
    background-color: transparent;
    color: var(--color-light);
    text-align: center;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
}

.fenton-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: -1;
    background: #000 url('https://idealroofingco.com/wp-content/uploads/fenton-roofing-hero.jpg') center center / cover no-repeat;
    box-shadow: inset 0 0 0 100vw rgba(0, 0, 0, 0.4);
}

.fenton-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.3;
    color: #ffffff;
}

/* --- Intro Heading --- */
.fr-intro-heading {
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    color: var(--color-dark);
    line-height: 1.3;
    margin-bottom: var(--space-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Value Section --- */
.fr-value-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.fr-value-title {
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--color-dark);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.fr-value-highlight {
    color: var(--color-accent);
}

.fr-value-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

/* ===================================================================
   LIGHTBOX GALLERY STYLES - FIXED POSITIONING
   =================================================================== */

/* Gallery Grid */
.lightbox-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox Modal - FIXED POSITIONING */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.lightbox-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 1.1rem;
    margin-top: 10px;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: #ccc;
    transform: scale(1.1);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.3s ease;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lightbox-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--space-sm);
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
        padding: 12px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
    
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: 10px;
    }
}

/* --- Mobile Layout --- */
@media (max-width: 767px) {
    .fenton-hero {
        padding: 0;
    }
    
    .fenton-hero::before {
        width: 100%;
        left: 0;
        transform: none;
    }
    
    .fenton-hero .services-container {
        padding: 0;
    }
    
    .fenton-hero .hero-animated-content {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .fenton-hero h1 {
        font-size: 1.3rem;
        margin-bottom: var(--space-lg);
    }
    
    /* Mobile info blocks */
    .mobile-layout-only .info-block {
        background-color: var(--color-light);
        border: 1px solid #e2e8f0;
        border-radius: var(--border-radius);
        overflow: hidden;
        margin-bottom: var(--space-lg);
    }
    
    .mobile-layout-only .info-block-content {
        padding: var(--space-lg);
    }
    
    .mobile-layout-only .info-block-content h3 {
        margin-top: 0;
    }
}

/* --- Desktop Layout --- */
@media (min-width: 768px) {
    .mobile-layout-only,
    .mobile-only-p {
        display: none;
    }
    
    .desktop-layout-only,
    .desktop-only-p {
        display: block;
    }
}