/* ============================================
   SERVICES — EDITORIAL STACKED ROWS
   Replaces .services-grid with full-width
   horizontal cards, alternating visual panels.
   ============================================ */

/* Override the old grid entirely */
#services .services-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Each card becomes a horizontal band ── */
.srv-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: background 0.5s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.srv-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

.srv-row:hover { background: rgba(255, 255, 255, 0.018); }

/* Flip: odd rows put text right, visual left */
.srv-row.flip { direction: rtl; }
.srv-row.flip > * { direction: ltr; }

/* ── Text half ── */
.srv-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 4.5rem;
    position: relative;
    z-index: 2;
    background-color: #00000079;

}

@media (max-width: 900px) {
    .srv-text { padding: 3rem 2rem; }
}

/* Big ghost index number */
.srv-index {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(5rem, 9vw, 9rem);
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    pointer-events: none;
    transition: -webkit-text-stroke-color 0.4s ease, color 0.4s ease;
    user-select: none;
}

.srv-row.flip .srv-index {
    right: auto;
    left: 2rem;
}

.srv-row:hover .srv-index {
    -webkit-text-stroke-color: rgba(176, 152, 120, 0.5);
}

/* Label above title */
.srv-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(176, 152, 120, 0.65);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.srv-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: rgba(176, 152, 120, 0.7);
    flex-shrink: 0;
}

/* Title */
.srv-title-big {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    transition: color 0.3s ease;
}

/* Description */
.srv-desc-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.8;
    max-width: 420px;
    margin-bottom: 2rem;
}

/* Feature pills */
.srv-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2.25rem;
}

.srv-pill {
    padding: 0.28rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.38);
    font-weight: 500;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.srv-row:hover .srv-pill {
    background: rgba(176, 152, 120, 0.07);
    border-color: rgba(176, 152, 120, 0.18);
    color: rgba(176, 152, 120, 0.8);
}

/* CTA link */
.srv-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, gap 0.3s ease;
}

.srv-row:hover .srv-link-btn {
    color: rgba(176, 152, 120, 0.9);
    gap: 1rem;
}

.srv-link-btn svg {
    transition: transform 0.3s ease;
}

.srv-row:hover .srv-link-btn svg {
    transform: translateX(4px);
}

/* ── Visual half ── */
.srv-visual {
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

/* Dark base — handled by .srv-visual-inner block near bottom of file */

/* Gradient overlay so text side blends */
.srv-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Normal card: gradient fades LEFT edge (toward text) */
.srv-visual::after {
    background: linear-gradient(to right, var(--srv-bg, #0a0a0a) 0%, transparent 40%);
}

/* Flipped card: gradient fades RIGHT edge */
.srv-row.flip .srv-visual::after {
    background: linear-gradient(to left, var(--srv-bg, #0a0a0a) 0%, transparent 40%);
}

/* Atmospheric color blob per service */
.srv-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.5s ease, transform 0.7s ease;
}

.srv-row:hover .srv-blob {
    opacity: 0.9;
    transform: scale(1.15);
}

/* Grid texture overlay */
.srv-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.srv-row:hover .srv-grid-lines { opacity: 1; }

/* Service icon in visual panel */
.srv-icon-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.srv-row:hover .srv-icon-display {
    transform: translate(-50%, -54%);
}

.srv-icon-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.srv-row:hover .srv-icon-ring {
    border-color: rgba(176, 152, 120, 0.4);
    box-shadow: 0 0 40px rgba(176, 152, 120, 0.15);
}

.srv-icon-ring::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: border-color 0.4s ease;
}

.srv-row:hover .srv-icon-ring::before {
    border-color: rgba(176, 152, 120, 0.15);
}

.srv-icon-ring svg {
    width: 42px;
    height: 42px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.srv-row:hover .srv-icon-ring svg { opacity: 1; }

/* "Explore" text appears on hover */
.srv-explore-hint {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(176, 152, 120, 0.7);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.srv-row:hover .srv-explore-hint {
    opacity: 1;
    transform: translateY(0);
}

/* ── srv-visual-inner: dark background base ── */
.srv-visual-inner {
    position: absolute;
    inset: 0;
    background: #0c0c0c;
    overflow: hidden;
}

/* ── Full-bleed background photo ── */
.srv-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.45;
    filter: grayscale(25%) brightness(0.7);
    transition: opacity 0.6s ease, filter 0.6s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.srv-row:hover .srv-bg-img {
    opacity: 0.65;
    filter: grayscale(5%) brightness(0.85);
    transform: scale(1.05);
}

/* Dark scrim between photo and blobs */
.srv-photo-scrim {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 6, 0.45);
    z-index: 1;
    transition: background 0.5s ease;
}

.srv-row:hover .srv-photo-scrim {
    background: rgba(6, 6, 6, 0.3);
}

/* Z-index stack: photo → scrim → blobs → grid → icon */
.srv-bg-img      { z-index: 0; }
.srv-blob        { z-index: 2; }
.srv-grid-lines  { z-index: 3; }
.srv-icon-display { z-index: 5; }


@media (max-width: 768px) {
    .srv-row,
    .srv-row.flip {
        grid-template-columns: 1fr;
        direction: ltr;
        min-height: auto;
        /* Strong separator between cards */
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        margin-bottom: 0;
    }

    .srv-row:last-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    /* Image panel always shows, tall enough to read */
    .srv-visual {
        min-height: 260px;
        order: -1; /* Photo always on top, text below */
    }

    /* On mobile the side-edge gradient doesn't make sense — fade bottom instead */
    .srv-visual::after,
    .srv-row.flip .srv-visual::after {
        background: linear-gradient(to top, #0a0a0a 0%, transparent 40%);
    }

    /* Shrink ghost number so it doesn't cover text */
    .srv-index {
        font-size: 4rem;
        right: 1rem;
        top: 0.75rem;
    }

    .srv-row.flip .srv-index {
        left: auto;
        right: 1rem;
    }

    .srv-text {
        padding: 2rem 1.5rem 2.5rem;
    }
}