/* ===================================
   SERVICES PAGE CSS
   Uses master.css variables
   =================================== */

/* ===================================
   PAGE HEADER
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-steel) 100%);
    padding: 100px 0 60px;
}

.header-content {
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-inverse);
    margin-bottom: 1rem;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    list-style: none;
    margin: 0;
    backdrop-filter: blur(10px);
}

.breadcrumb-item {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--accent-gold);
}

.breadcrumb-item.active {
    color: var(--accent-gold);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    color: rgba(255, 255, 255, 0.6);
    padding: 0 0.5rem;
    font-size: 1.1rem;
}

/* ===================================
   SERVICES INTRO
   =================================== */
.services-intro {
    background: var(--bg-white);
}

.lead-paragraph {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ===================================
   SERVICE CARDS — IMAGE + CONTENT
   =================================== */
.main-services {
    background: var(--bg-soft);
}

.service-card {
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold);
}

.service-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.04);
}

.service-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent-gold);
    color: var(--text-inverse);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-steel));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 1.35rem;
    color: var(--text-inverse);
}

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.service-description {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    line-height: 1.4;
}

.service-features li:first-child {
    border-top: none;
    padding-top: 0;
}

.service-features li i {
    color: var(--whatsapp-green);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* ===================================
   GALLERY SECTION
   14 images — 7×2 grid desktop, responsive below
   =================================== */
.gallery-section {
    background: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-soft);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 42, 68, 0.88) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--text-inverse);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.gallery-note {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ===================================
   HOW IT WORKS — PROCESS
   =================================== */
.moving-process {
    background: var(--bg-soft);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.process-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: var(--accent-gold);
    color: var(--text-inverse);
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(200, 162, 77, 0.3);
}

.step-content {
    padding-top: 4px;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.step-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ===================================
   PRICING TRANSPARENCY
   =================================== */
.pricing-transparency {
    background: var(--bg-white);
}

.pricing-includes {
    margin-top: 1.75rem;
    padding: 1.5rem;
    background: var(--bg-soft);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.includes-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.includes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.includes-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.includes-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.includes-list li i {
    color: var(--whatsapp-green);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pricing-factors {
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.factors-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-gold);
    display: inline-block;
}

.factor-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.factor-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.factor-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(200, 162, 77, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.factor-icon i {
    font-size: 1.05rem;
    color: var(--accent-gold);
}

.factor-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.factor-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* ===================================
   FINAL CTA — reuses master classes
   .final-cta-section, .cta-content,
   .cta-title, .cta-subtitle,
   .cta-phone, .cta-hours, .cta-buttons
   are all defined in master.css
   =================================== */

/* ===================================
   mb-lg-0 utility
   =================================== */
@media (min-width: 992px) {
    .mb-lg-0 { margin-bottom: 0 !important; }
}

/* ===================================
   RESPONSIVE — TABLET (≤ 991px)
   =================================== */
@media (max-width: 991px) {
    .page-header {
        padding: 80px 0 50px;
    }

    /* Gallery — 4 columns on tablet */
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: none;
        grid-auto-rows: 180px;
        gap: 8px;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .pricing-factors {
        margin-top: 2rem;
    }
}

/* ===================================
   RESPONSIVE — MOBILE (≤ 767px)
   =================================== */
@media (max-width: 767px) {
    .page-header {
        padding: 70px 0 40px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .service-image {
        height: 175px;
    }

    .service-content {
        padding: 1.25rem;
    }

    .service-title {
        font-size: 1.05rem;
    }

    .service-description {
        font-size: 0.875rem;
    }

    /* Gallery — 3 columns on mobile landscape */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 130px;
        gap: 6px;
    }

    .gallery-overlay {
        opacity: 1; /* Always visible on touch */
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .pricing-factors {
        padding: 1.5rem;
    }
}

/* ===================================
   RESPONSIVE — SMALL MOBILE (≤ 575px)
   =================================== */
@media (max-width: 575px) {
    .service-image {
        height: 155px;
    }

    .service-content {
        padding: 1rem;
    }

    .service-icon {
        width: 44px;
        height: 44px;
    }

    .service-icon i {
        font-size: 1.15rem;
    }

    .service-features li {
        font-size: 0.825rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 110px;
        gap: 5px;
    }

    .gallery-overlay span {
        font-size: 0.65rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.05rem;
    }

    .step-title {
        font-size: 0.95rem;
    }

    .step-description {
        font-size: 0.825rem;
    }

    .pricing-factors {
        padding: 1.25rem;
    }

    .includes-heading,
    .factors-heading {
        font-size: 0.95rem;
    }
}

/* ===================================
   RESPONSIVE — ULTRA SMALL (≤ 374px)
   =================================== */
@media (max-width: 374px) {
    .service-image {
        height: 135px;
    }

    .service-content {
        padding: 0.875rem;
    }

    .service-title {
        font-size: 0.95rem;
    }

    .service-description,
    .service-features li {
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
        gap: 5px;
    }

    .gallery-overlay {
        opacity: 1;
    }
}

/* ===================================
   LIGHTBOX
   =================================== */
.lb-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.93);
    align-items: center;
    justify-content: center;
}

.lb-backdrop.lb-active {
    display: flex;
}

/* Stage — centres the image */
.lb-stage {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lb-img {
    max-width: 88vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    opacity: 0;
    transition: opacity 0.25s ease;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.lb-img.lb-loaded {
    opacity: 1;
}

.lb-caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.3px;
}

.lb-counter {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    text-align: center;
}

/* Close button */
.lb-close {
    position: fixed;
    top: 18px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10000;
}

.lb-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(90deg);
}

/* Prev / Next buttons */
.lb-prev,
.lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10000;
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-prev:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.08);
}

.lb-next:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.08);
}

/* Mobile lightbox */
@media (max-width: 575px) {
    .lb-img {
        max-width: 96vw;
        max-height: 75vh;
    }

    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }

    .lb-prev,
    .lb-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lb-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lb-caption {
        font-size: 0.8rem;
    }
}