/* ============================================================
   services.css — Services listing page
   Includes: services-hero (same two-column template as about/work/
   case-study/contact), services-rows (alternating image/content rows).
   Dock and footer are shared across every page and live in
   css/global.css instead of being duplicated here.
   ============================================================ */

/* ============================================================
   1. SERVICES-HERO — same structure as .ab-hero / .work-hero / .cs-hero
   ============================================================ */
.services-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
    background: #ffffff;
    overflow: hidden;
    padding: clamp(110px, 13vw, 160px) clamp(24px, 6vw, 96px) clamp(56px, 7vw, 88px);
}

.services-hero__deco {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.services-hero__inner {
    position: relative;
    z-index: 1;
    flex: 0 0 50%;
    max-width: 50%;
}

.services-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-muted);
}
.services-hero__bc-link { color: var(--color-muted); text-decoration: none; transition: color 0.2s; }
.services-hero__bc-link:hover { color: var(--color-fg); }
.services-hero__bc-sep { opacity: 0.4; }
.services-hero__bc-current { color: var(--color-fg); font-weight: 700; }

.services-hero__eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.services-hero__headline {
    margin: 0 0 20px;
    font-family: "Karla", sans-serif;
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-fg);
}
.services-hero__line { display: block; overflow: hidden; }
.services-hero__line-inner { display: block; }
.services-hero__headline em {
    font-style: italic;
    font-weight: 700;
    background: linear-gradient(135deg, #f7b42c 0%, #fc575e 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-hero__sub {
    margin: 0;
    font-size: clamp(15px, 1.6vw, 19px);
    line-height: 1.65;
    color: var(--color-muted);
    max-width: 520px;
}

/* ---- right-side visual panel ---- */
.services-hero__visual {
    position: relative;
    z-index: 1;
    flex: 0 0 46%;
    max-width: 46%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    /* Initial state — wipes open top-to-bottom via js/services.js, same
       clip-path mechanic as .about__image-mask / .print-cta__visual. */
    clip-path: inset(0% 0 100% 0);
    will-change: clip-path;
}

.services-hero__visual-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

/* ============================================================
   2. SERVICES-LIST — alternating rows (image/content flip each row),
      a richer presentation than a plain uniform card grid
   ============================================================ */
.services-list {
    position: relative;
    background: #faf8f4;
    padding: clamp(64px, 8vw, 100px) clamp(24px, 6vw, 96px) clamp(96px, 10vw, 140px);
    overflow: hidden;
}

/* Fills the empty side gutters beside the centered 1100px row content on
   wide screens — same floating-orb recipe as .scene__services (svc-orb),
   animated in js/services.js. */
.services-list__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.svc-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

.svc-orb--1 {
    width: 260px; height: 260px;
    top: 4%; left: -3%;
    background: radial-gradient(circle, rgba(247, 180, 44, 0.35) 0%, transparent 68%);
    filter: blur(3px);
}
.svc-orb--2 {
    width: 220px; height: 220px;
    bottom: 8%; right: -2%;
    background: radial-gradient(circle, rgba(252, 87, 94, 0.32) 0%, transparent 68%);
    filter: blur(3px);
}
.svc-orb--3 {
    width: 100px; height: 100px;
    top: 42%; right: 2%;
    background: radial-gradient(circle, rgba(247, 180, 44, 0.4) 0%, transparent 65%);
    filter: blur(2px);
}
.svc-orb--4 {
    width: 90px; height: 90px;
    bottom: 28%; left: 3%;
    background: radial-gradient(circle, rgba(252, 87, 94, 0.38) 0%, transparent 65%);
    filter: blur(2px);
}

/* Thin outline rings — same concentric-ring motif as the page heroes'
   .services-hero__deco, just placed in the row section's own gutters. */
.svc-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}
.svc-ring--1 {
    width: 220px; height: 220px;
    top: 10%; right: 4%;
    border: 1.5px solid rgba(247, 180, 44, 0.18);
}
.svc-ring--2 {
    width: 140px; height: 140px;
    bottom: 12%; left: 5%;
    border: 1.5px solid rgba(252, 87, 94, 0.2);
}

@media (max-width: 1300px) {
    .services-list__deco {
        display: none;
    }
}

.services-rows {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: clamp(56px, 7vw, 96px);
}

.services-row {
    display: flex;
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
}

/* Every other row flips: image right, content left. */
.services-row--reverse {
    flex-direction: row-reverse;
}

.services-row__media {
    position: relative;
    flex: 0 0 46%;
    max-width: 46%;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}
.services-row__media img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services-row__content {
    flex: 1 1 50%;
}

.services-row__index {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.services-row__title {
    margin: 0 0 14px;
    font-family: "Karla", sans-serif;
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 800;
    color: var(--color-fg);
}

.services-row__desc {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-muted);
    max-width: 480px;
}

.services-row__tags {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.services-row__tags li {
    padding: 7px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(14, 27, 51, 0.08);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-fg);
}

.services-row__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 22px;
    border-radius: 999px;
    border: 1px solid rgba(14, 27, 51, 0.15);
    color: var(--color-fg);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.services-row__link:hover {
    border-color: transparent;
    background: rgba(14, 27, 51, 0.05);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767.98px) {
    .services-row,
    .services-row--reverse {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
    }
    .services-row__media {
        flex: none;
        max-width: 100%;
    }

    .services-hero {
        flex-direction: column;
    }
    .services-hero__inner {
        flex: none;
        max-width: 100%;
    }
    .services-hero__visual {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
}
