/* ================================================================
   services.css — Shiv Transport Packers & Movers — Services Page
   Path: /assets/css/services.css
   Depends on: /assets/css/master.css
   ================================================================ */

/* ── 1. PAGE HERO ──────────────────────────────────────────────── */
.svc-hero {
    position: relative;
    background: linear-gradient(135deg, #071e35 0%, #0B2C4D 45%, #0d3d6e 100%);
    padding: 80px 0 96px;
    overflow: hidden;
    text-align: center;
}

.svc-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 10% 80%, rgba(242,101,34,0.18) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 90% 15%, rgba(242,101,34,0.13) 0%, transparent 65%),
        radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 28px 28px;
    pointer-events: none;
}

.svc-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.svc-hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: var(--white);
    font-weight: 800;
    line-height: 1.18;
    margin: 14px 0 20px;
}

.svc-hero-sub {
    font-size: 1.08rem;
    color: rgba(255,255,255,0.76);
    line-height: 1.8;
    max-width: 580px;
    margin: 0 auto 28px;
}

.svc-hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.5);
    font-family: var(--font-head);
    font-weight: 500;
}
.svc-hero-breadcrumb a       { color: rgba(255,255,255,0.65); transition: color var(--ease); }
.svc-hero-breadcrumb a:hover { color: var(--accent); }
.svc-hero-breadcrumb i       { font-size: 0.7rem; }
.svc-hero-breadcrumb span    { color: var(--accent); }

/* Wave divider */
.svc-hero-wave {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    line-height: 0;
}
.svc-hero-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

/* ── 2. QUICK-NAV ──────────────────────────────────────────────── */
.svc-quicknav {
    background: var(--white);
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-h);
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.quicknav-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.qn-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--white);
    transition: all var(--ease);
    white-space: nowrap;
}
.qn-item i { color: var(--accent); font-size: 0.9rem; }
.qn-item:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(242,101,34,0.3);
}
.qn-item:hover i { color: var(--white); }

/* ── 3. SERVICES DETAIL BLOCKS ─────────────────────────────────── */
.services-detail { background: var(--white); }

.svc-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 56px 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: calc(var(--header-h) + 72px);
}
.svc-block:last-child { border-bottom: none; }

/* Alternating layout */
.svc-block--reverse { direction: rtl; }
.svc-block--reverse > * { direction: ltr; }

/* Image side */
.svc-block-img { position: relative; }

.svc-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.svc-img-wrap img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    background: var(--light);
}
.svc-img-wrap:hover img { transform: scale(1.04); }

/* Icon badge on image */
.svc-img-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(242,101,34,0.45);
    z-index: 2;
}

/* Content side */
.svc-number {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(242,101,34,0.1);
    border: 1px solid rgba(242,101,34,0.25);
    border-radius: 20px;
    padding: 4px 14px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.svc-title {
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.svc-desc {
    font-size: 0.97rem;
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 22px;
}

.svc-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.svc-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.5;
}
.svc-benefits li i {
    color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.svc-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* WhatsApp CTA button */
.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: var(--white);
    padding: 11px 22px;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-wa:hover {
    background: #1fb859;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,211,102,0.35);
}

/* ── 4. WHY OUR SERVICES ────────────────────────────────────────── */
.svc-why { background: var(--light); }

.svc-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 16px;
}

.svc-why-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1.5px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
    text-align: center;
}
.svc-why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(242,101,34,0.25);
}

.swc-icon-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(242,101,34,0.1);
    border: 2px solid rgba(242,101,34,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent);
    margin: 0 auto 20px;
    transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.svc-why-card:hover .swc-icon-ring {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.svc-why-card h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.svc-why-card p {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 20px;
}

.swc-accent-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease);
}
.svc-why-card:hover .swc-accent-bar { transform: scaleX(1); }

//* ── 5. GALLERY ─────────────────────────────────────────────────── */
.gallery-section { background: var(--white); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
}

/* Remove the special 2-column span for video - makes ALL items uniform */
/* .gallery-grid .gallery-item:nth-child(10) {
    grid-column: span 2;
} */

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: #e2e8f0;
    aspect-ratio: 4 / 3;  /* All items exactly same shape */
    width: 100%;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--ease), transform var(--ease);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Crops images to fill box uniformly */
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}

/* For video items - keep same aspect ratio */
.gallery-item--video {
    background: #0B2C4D;
    position: relative;
}

.gallery-item--video .gallery-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11,44,77,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background var(--ease);
}
.gallery-item--video:hover .gallery-video-overlay { background: rgba(11,44,77,0.7); }

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    transition: transform var(--ease), box-shadow var(--ease);
    box-shadow: 0 4px 20px rgba(242,101,34,0.5);
}
.gallery-item--video:hover .play-btn {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(242,101,34,0.65);
}
.gallery-video-overlay span {
    color: var(--white);
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ── 6. LIGHTBOX / MODAL ────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 15, 28, 0.92);
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lightbox-panel {
    position: relative;
    z-index: 1;
    max-width: 920px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.lightbox-body {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
}
.lightbox-body img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-lg);
}
.lightbox-body video {
    width: 100%;
    max-height: 75vh;
    border-radius: var(--radius-lg);
    background: #000;
    display: block;
}
.lightbox-body iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: var(--radius-lg);
}

.lightbox-caption {
    color: rgba(255,255,255,0.65);
    font-size: 0.86rem;
    text-align: center;
    max-width: 680px;
    padding: 0 16px;
    line-height: 1.5;
    font-family: var(--font-head);
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: -52px;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1.5px solid rgba(255,255,255,0.2);
    transition: background var(--ease), transform var(--ease);
}
.lightbox-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg);
}

/* Prev / Next nav */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--ease), transform var(--ease);
    z-index: 2;
}
.lightbox-nav:hover { background: var(--accent); border-color: var(--accent); }

.lightbox-prev { left: -64px; }
.lightbox-next { right: -64px; }

/* Loading spinner inside lightbox */
.lb-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin: 60px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 7. CTA SECTION ─────────────────────────────────────────────── */
.svc-cta-section {
    background: linear-gradient(135deg, #061929 0%, #0B2C4D 50%, #0f3d6e 100%);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.svc-cta-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 70% at 10% 90%, rgba(242,101,34,0.18) 0%, transparent 65%),
        radial-gradient(ellipse 45% 55% at 90% 10%, rgba(242,101,34,0.12) 0%, transparent 65%);
    pointer-events: none;
}

.svc-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.svc-cta-text { margin-bottom: 36px; }
.svc-cta-text h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 14px;
    line-height: 1.3;
}
.svc-cta-text p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.svc-cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 1rem;
}

.svc-cta-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.55);
    font-family: var(--font-head);
    font-weight: 500;
}
.svc-cta-trust-row span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.svc-cta-trust-row i { color: var(--accent); }

/* ── 8. RESPONSIVE ──────────────────────────────────────────────── */

/* Tablet — 1023px */
@media (max-width: 1023px) {
    .svc-hero { padding: 64px 0 80px; }

    /* Quick nav: scrollable on mobile */
    .quicknav-grid {
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        flex-wrap: nowrap;
    }
    .quicknav-grid::-webkit-scrollbar { height: 3px; }
    .quicknav-grid::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

    /* Services: switch to single column */
    .svc-block,
    .svc-block--reverse {
        grid-template-columns: 1fr;
        gap: 32px;
        direction: ltr;
        padding: 40px 0;
    }
    .svc-img-wrap img { height: 280px; }

    /* Why grid: 2 cols */
    .svc-why-grid { grid-template-columns: repeat(2, 1fr); }

    /* Gallery: 2 cols */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid .gallery-item:nth-child(10) { grid-column: span 1; }

    /* Lightbox nav: move inside on tablet */
    .lightbox-prev { left: -48px; }
    .lightbox-next { right: -48px; }
}

/* Large mobile — 767px */
@media (max-width: 767px) {
    .svc-hero { padding: 52px 0 72px; }

    .svc-why-grid { grid-template-columns: 1fr; }

    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

    /* Lightbox nav: inside panel */
    .lightbox-panel { padding: 0 44px; }
    .lightbox-prev  { left: -4px; }
    .lightbox-next  { right: -4px; }
    .lightbox-close { top: -48px; right: 0; }

    .svc-cta-actions { flex-direction: column; align-items: stretch; }
    .svc-cta-actions a { justify-content: center; }
    .svc-cta-trust-row { gap: 12px; flex-direction: column; }
}

/* Small mobile — 480px */
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-grid .gallery-item:nth-child(10) { grid-column: span 1; }

    .svc-ctas { flex-direction: column; }
    .svc-ctas a { justify-content: center; }

    .lightbox-panel { padding: 0 8px; }
    .lightbox-prev, .lightbox-next { display: none; }
    .lightbox-close { top: -48px; }
}