/* ============================================================
   service-details.css — the single service-details template page.
   In WordPress this becomes single-service.php; every service reuses
   this one layout via the service fields (see services.html).
   Dock and footer are shared across every page and live in
   css/global.css instead of being duplicated here.
   ============================================================ */

/* ============================================================
   1. SD-HERO — same two-column structure as .ab-hero / .work-hero /
      .cs-hero / .contact-hero / .services-hero
   ============================================================ */
.sd-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);
}

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

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

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

.sd-hero__headline {
    margin: 0 0 18px;
    font-family: "Karla", sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-fg);
}

.sd-hero__sub {
    margin: 0 0 28px;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.65;
    color: var(--color-muted);
    max-width: 520px;
}

.sd-hero__meta {
    list-style: none;
    margin: 0 0 28px;
    padding: clamp(20px, 3vw, 28px) 0;
    max-width: 240px;
    border-top: 1px solid rgba(14, 27, 51, 0.1);
    border-bottom: 1px solid rgba(14, 27, 51, 0.1);
}

.sd-hero__meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sd-hero__meta-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.sd-hero__meta-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-fg);
}

.sd-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f7b42c, #fc575e);
    color: #faf8f4;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sd-hero__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(252, 87, 94, 0.35);
}

/* ---- right-side visual panel ---- */
.sd-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/service-details.js,
       same clip-path mechanic as .about__image-mask / .print-cta__visual. */
    clip-path: inset(0% 0 100% 0);
    will-change: clip-path;
}

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

/* ============================================================
   1b. SD-STATS — dark strip of concrete numbers between hero and
      features, breaks up the white/off-white rhythm and gives the
      page a more "expert credentials" feel up top
   ============================================================ */
.sd-stats {
    background: #0e1b33;
    padding: clamp(32px, 4vw, 48px) clamp(24px, 6vw, 96px);
}

.sd-stats__grid {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 3vw, 32px);
    text-align: center;
}

.sd-stats__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 12px;
    border-left: 1px solid rgba(250, 248, 244, 0.12);
}
.sd-stats__item:first-child {
    border-left: none;
}

.sd-stats__num {
    font-family: "Karla", sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    background: linear-gradient(135deg, #f7b42c 0%, #fc575e 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sd-stats__label {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(250, 248, 244, 0.7);
}

/* ============================================================
   2. SD-FEATURES — richer 2-column "how we deliver" pillars, matches
      the goodlookingdesign.co.uk service-page reference's feature
      section but with more visual weight per card
   ============================================================ */
.sd-features {
    position: relative;
    background: #faf8f4;
    padding: clamp(64px, 8vw, 100px) clamp(24px, 6vw, 96px);
    overflow: hidden;
}

/* Fills the empty side gutters beside the centered content — same
   floating-orb/ring recipe used on services.html, animated in
   js/service-details.js. */
.sd-features__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 1300px) {
    .sd-features__deco {
        display: none;
    }
}

.sd-features__intro {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto clamp(40px, 5vw, 56px);
    text-align: center;
}

.sd-features__eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 14px;
}

.sd-features__heading {
    margin: 0;
    font-family: "Karla", sans-serif;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--color-fg);
}

.sd-features__grid {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 980px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 2.4vw, 28px);
}

.sd-features__card {
    position: relative;
    padding: clamp(28px, 3.2vw, 36px) clamp(26px, 3vw, 32px);
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(14, 27, 51, 0.07);
    box-shadow: 0 16px 32px rgba(14, 27, 51, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sd-features__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px rgba(14, 27, 51, 0.09);
}

.sd-features__index {
    display: block;
    font-family: "Karla", sans-serif;
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #f7b42c 0%, #fc575e 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.sd-features__card-title {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 800;
    color: var(--color-fg);
}

.sd-features__card-desc {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--color-muted);
}

/* ============================================================
   2b. SD-PROCESS — numbered step-by-step timeline, gives each service
      concrete, specific detail instead of generic feature copy
   ============================================================ */
.sd-process {
    background: #ffffff;
    padding: clamp(64px, 8vw, 100px) clamp(24px, 6vw, 96px);
}

.sd-process__intro {
    max-width: 720px;
    margin: 0 auto clamp(40px, 5vw, 56px);
    text-align: center;
}

.sd-process__eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 14px;
}

.sd-process__heading {
    margin: 0;
    font-family: "Karla", sans-serif;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--color-fg);
}

.sd-process__grid {
    position: relative;
    list-style: none;
    counter-reset: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 2.4vw, 24px);
}

/* Connecting line running behind the step numbers, same "journey"
   motif as a horizontal roadmap/timeline. */
.sd-process__grid::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        rgba(14, 27, 51, 0.15) 0 8px,
        transparent 8px 16px
    );
    z-index: 0;
}

.sd-process__step {
    position: relative;
    z-index: 1;
    padding-top: 4px;
}

.sd-process__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7b42c, #fc575e);
    color: #faf8f4;
    font-family: "Karla", sans-serif;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 10px 22px rgba(252, 87, 94, 0.28);
}

.sd-process__step-title {
    margin: 0 0 10px;
    font-size: 16.5px;
    font-weight: 800;
    color: var(--color-fg);
}

.sd-process__step-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--color-muted);
}

/* Decorative orbs + rings reused inside .sd-features__deco — same
   recipe as .svc-orb / .svc-ring on services.html. */
.svc-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}
.svc-orb--1 {
    width: 220px; height: 220px;
    top: 6%; left: -4%;
    background: radial-gradient(circle, rgba(247, 180, 44, 0.32) 0%, transparent 68%);
    filter: blur(3px);
}
.svc-orb--2 {
    width: 180px; height: 180px;
    bottom: 8%; right: -3%;
    background: radial-gradient(circle, rgba(252, 87, 94, 0.3) 0%, transparent 68%);
    filter: blur(3px);
}
.svc-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}
.svc-ring--1 {
    width: 160px; height: 160px;
    top: 46%; right: 3%;
    border: 1.5px solid rgba(247, 180, 44, 0.2);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767.98px) {
    .sd-hero {
        flex-direction: column;
    }
    .sd-hero__inner {
        flex: none;
        max-width: 100%;
    }
    .sd-hero__visual {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .sd-process__grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: clamp(32px, 5vw, 44px);
    }
    .sd-process__grid::before {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .sd-hero__meta {
        max-width: none;
    }
    .sd-stats__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sd-stats__item {
        border-left: none;
        padding: 0;
        border-top: 1px solid rgba(250, 248, 244, 0.12);
        padding-top: 16px;
    }
    .sd-stats__item:first-child {
        border-top: none;
        padding-top: 0;
    }
    .sd-features__grid {
        grid-template-columns: 1fr;
    }
    .sd-process__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Chicago pages: hero link line + optional page-text block
   ============================================================ */
.sd-hero__local { margin: 14px 0 0; font-size: 15px; color: var(--color-muted); }
.sd-hero__local a { color: var(--color-accent); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(252, 87, 94, 0.35); }
.sd-hero__local a:hover { border-color: var(--color-accent); }
.sd-local { background: #ffffff; padding: clamp(56px, 7vw, 96px) clamp(24px, 6vw, 96px); }
.sd-local__inner { max-width: 860px; margin: 0 auto; font-size: 17px; line-height: 1.75; color: #3d4250; }
.sd-local__inner h2 { margin: 40px 0 14px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--color-fg); }
.sd-local__inner h2:first-child { margin-top: 0; }
.sd-local__inner h3 { margin: 24px 0 8px; font-size: 19px; font-weight: 700; color: var(--color-fg); }
.sd-local__inner p { margin: 0 0 16px; }
.sd-local__inner ul { margin: 0 0 18px; padding: 0; list-style: none; }
.sd-local__inner ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.sd-local__inner ul li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #f7b42c, #fc575e); }
.sd-local__inner a { color: var(--color-accent); font-weight: 600; text-underline-offset: 3px; }
.sd-local__inner a:hover { color: var(--color-fg); }
.sd-local__card { margin: 24px 0 0; padding: 20px 24px; border-radius: 16px; background: #faf8f4; border: 1px solid rgba(14, 27, 51, 0.07); }
.sd-local__card p:last-child { margin-bottom: 0; }
