/* ========================================
   RW Coldstore — Service Page Template
   Extends styles.css for sector/service
   detail pages.
   ======================================== */

/* ── Service Page Hero ── */

.sp-hero {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--blue-950);
}

.sp-hero-bg {
    position: absolute;
    inset: 0;
}

.sp-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: brightness(0.35) saturate(0.6);
}

.sp-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 13, 27, 0.95) 0%, rgba(8, 13, 27, 0.8) 40%, rgba(8, 13, 27, 0.3) 100%),
        linear-gradient(180deg, rgba(8, 13, 27, 0.5) 0%, rgba(8, 13, 27, 0.4) 100%);
}

.sp-hero > .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: end;
    padding-top: 160px;
    padding-bottom: 56px;
}

.sp-hero-content {
    padding: 0;
}

.sp-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--blue-400);
    margin-bottom: 24px;
    transition: color 0.2s;
    opacity: 0;
    animation: fadeUp 0.6s 0.1s var(--ease) forwards;
}

.sp-breadcrumb:hover {
    color: var(--blue-300);
}

.sp-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.06;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s var(--ease) forwards;
}

.sp-hero-subtitle {
    font-size: 1.05rem;
    color: var(--slate-400);
    max-width: 520px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeUp 0.6s 0.3s var(--ease) forwards;
}

/* Hero metadata strip (right column, matches intro aside position) */
.sp-hero-strip {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    animation: fadeUp 0.6s 0.35s var(--ease) forwards;
}

.sp-hero-strip-item {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-hero-strip-item:last-of-type {
    border-bottom: none;
}

.sp-hero-strip-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue-400);
    margin-bottom: 5px;
}

.sp-hero-strip-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
}

.sp-hero-strip-cta {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(59, 130, 246, 0.06);
}

.sp-hero-strip-cta .btn {
    font-size: 0.8rem;
    padding: 10px 20px;
    width: 100%;
    text-align: center;
    display: block;
}

/* ── Service Page Sections ── */

.sp-section {
    padding: 96px 0;
    background: var(--blue-950);
    border-top: 1px solid var(--border);
}

.sp-section.sp-alt {
    background: var(--blue-900);
}

/* ── Intro Layout ── */

.sp-intro-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: start;
}

.sp-intro-content p {
    font-size: 0.95rem;
    color: var(--slate-400);
    line-height: 1.8;
    margin-bottom: 16px;
}

.sp-lead {
    font-size: 1.05rem !important;
    color: var(--slate-300) !important;
    line-height: 1.75 !important;
}

.sp-intro-aside {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.sp-aside-card {
    background: var(--blue-900);
    padding: 24px 28px;
}

.sp-alt .sp-aside-card {
    background: var(--blue-950);
}

.sp-aside-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue-400);
    margin-bottom: 6px;
}

.sp-aside-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.sp-aside-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.sp-aside-tags span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--slate-300);
    padding: 5px 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

/* ── Content Block (centred narrow) ── */

.sp-content-block {
    max-width: 760px;
}

.sp-content-header {
    margin-bottom: 28px;
}

.sp-content-title {
    font-size: clamp(1.4rem, 2.8vw, 1.85rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.sp-content-body p {
    font-size: 0.92rem;
    color: var(--slate-400);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ── Bullet Lists ── */

.sp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 24px;
    padding: 0;
}

.sp-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--slate-300);
    line-height: 1.6;
}

.sp-list li svg {
    flex-shrink: 0;
    color: var(--blue-500);
    margin-top: 4px;
}

/* ── Image Break ── */

.sp-image-break {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.sp-image-break-inner {
    position: relative;
    height: 360px;
    overflow: hidden;
}

.sp-image-break-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.65) saturate(0.8);
}

.sp-image-break-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 13, 27, 0.2) 0%, rgba(8, 13, 27, 0.4) 100%);
}

/* ── Services List (numbered) ── */

.sp-services-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    margin: 24px 0;
}

.sp-service-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s var(--ease);
}

.sp-service-item:last-child {
    border-bottom: none;
}

.sp-service-item:hover {
    background: var(--surface-hover);
}

.sp-service-num {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blue-500);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    width: 28px;
}

.sp-service-name {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--slate-300);
    line-height: 1.5;
}

.sp-service-item:hover .sp-service-name {
    color: var(--white);
}

/* ── Split Layout (content + image) ── */

.sp-split-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: start;
}

.sp-split-image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.sp-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75) saturate(0.85);
    transition: transform 0.6s var(--ease);
}

.sp-split-image:hover img {
    transform: scale(1.03);
}

/* ── Awareness Grid ── */

.sp-awareness-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.sp-awareness-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.sp-awareness-icon {
    width: 18px;
    height: 18px;
    color: var(--blue-400);
    flex-shrink: 0;
    margin-top: 2px;
}

.sp-awareness-item strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1px;
}

.sp-awareness-item span {
    font-size: 0.82rem;
    color: var(--slate-500);
}

/* ── Project Gallery ── */

.sp-gallery {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.sp-gallery-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.sp-gallery-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue-400);
}

.sp-gallery-count {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--slate-500);
    font-variant-numeric: tabular-nums;
}

.sp-gallery-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    grid-template-rows: 280px 280px;
    gap: 3px;
}

.sp-gallery-item {
    position: relative;
    overflow: hidden;
}

.sp-gallery-item:nth-child(1) {
    grid-row: 1 / 3;
}

.sp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(0.7);
    transition: all 0.6s var(--ease);
}

.sp-gallery-item:hover img {
    filter: brightness(0.8) saturate(0.85);
    transform: scale(1.05);
}

/* Number index on each image */
.sp-gallery-item::before {
    content: attr(data-index);
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--white);
    opacity: 0.4;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    transition: opacity 0.3s var(--ease);
}

.sp-gallery-item:hover::before {
    opacity: 0.8;
}

/* Bottom gradient */
.sp-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(8, 13, 27, 0.6) 100%);
    pointer-events: none;
}

.sp-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.03em;
    transform: translateY(4px);
    opacity: 0;
    transition: all 0.35s var(--ease);
}

.sp-gallery-item:hover .sp-gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Blue accent line on featured (first) image */
.sp-gallery-item:nth-child(1)::after {
    background:
        linear-gradient(180deg, transparent 50%, rgba(8, 13, 27, 0.65) 100%),
        linear-gradient(90deg, var(--blue-600) 0%, var(--blue-600) 3px, transparent 3px);
}

/* ── FAQ ── */

.sp-faq-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    max-width: 760px;
}

.sp-faq-item {
    padding: 28px 32px;
    border-bottom: 1px solid var(--border);
}

.sp-faq-item:last-child {
    border-bottom: none;
}

.sp-faq-question {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.35;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.sp-faq-answer {
    font-size: 0.88rem;
    color: var(--slate-400);
    line-height: 1.75;
}

/* ── Service Page Contact ── */

.sp-contact {
    background: var(--blue-900) !important;
}

.sp-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.sp-contact-info p {
    font-size: 0.92rem;
    color: var(--slate-400);
    line-height: 1.75;
    margin-bottom: 16px;
}

.sp-contact-note {
    font-size: 0.85rem !important;
    color: var(--slate-500) !important;
    border-left: 2px solid var(--blue-600);
    padding-left: 16px;
    margin-top: 24px !important;
    margin-bottom: 28px !important;
}

/* ========================================
   Responsive — Service Pages
   ======================================== */

@media (max-width: 1024px) {
    .sp-hero > .container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 140px;
        padding-bottom: 40px;
    }

    .sp-hero-strip {
        flex-direction: row;
        flex-wrap: wrap;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .sp-hero-strip-item {
        padding: 16px 24px 16px 0;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        flex: 1;
        min-width: 140px;
    }

    .sp-hero-strip-item:last-of-type {
        border-right: none;
    }

    .sp-hero-strip-cta {
        flex-basis: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .sp-hero-strip-cta .btn {
        width: auto;
        display: inline-block;
    }

    .sp-intro-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sp-split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sp-split-image {
        aspect-ratio: 16 / 9;
    }

    .sp-contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .sp-awareness-grid {
        grid-template-columns: 1fr;
    }

    .sp-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 240px 240px;
    }

    .sp-gallery-item:nth-child(1) {
        grid-row: 1 / 3;
    }

    .sp-gallery-item:nth-child(4),
    .sp-gallery-item:nth-child(5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .sp-hero > .container {
        padding-top: 120px;
        padding-bottom: 32px;
        gap: 24px;
    }

    .sp-hero-strip {
        flex-direction: column;
    }

    .sp-hero-strip-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 14px 20px;
        min-width: auto;
    }

    .sp-hero-strip-cta {
        padding: 18px 20px;
    }

    .sp-section {
        padding: 72px 0;
    }

    .sp-image-break-inner {
        height: 240px;
    }

    .sp-faq-item {
        padding: 24px 20px;
    }

    .sp-service-item {
        padding: 16px 20px;
    }

    .sp-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px;
        gap: 2px;
    }

    .sp-gallery-item:nth-child(1) {
        grid-row: auto;
        grid-column: 1 / 3;
    }

    .sp-gallery-item:nth-child(4),
    .sp-gallery-item:nth-child(5) {
        display: none;
    }

    .sp-gallery-caption {
        opacity: 1;
        transform: translateY(0);
        font-size: 0.65rem;
        padding: 10px 14px;
    }

    .sp-gallery-strip {
        padding: 16px 0;
    }
}