/* =========================================================
   SID ENGINEERS — SERVICES PAGE
   File: assets/css/sid-services.css
   Standalone: does not depend on sid-home.css
   ========================================================= */

/* ---------- 01. TOKENS & BASE ---------- */

.sid-home {
    --sid-navy: #101f30;
    --sid-navy-deep: #0b1725;
    --sid-ink: #172534;
    --sid-muted: #687480;
    --sid-gold: #b99b65;
    --sid-gold-light: #d2bc8f;
    --sid-paper: #f8f7f3;
    --sid-white: #ffffff;
    --sid-container: 1200px;
    --sid-font-body: "DM Sans", Arial, sans-serif;
    --sid-font-heading: "Manrope", Arial, sans-serif;

    color: var(--sid-ink);
    background: var(--sid-white);
    font-family: var(--sid-font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow: clip;
}

.sid-home *,
.sid-home *::before,
.sid-home *::after {
    box-sizing: border-box;
}

.sid-home a {
    color: inherit;
    text-decoration: none;
}

.sid-home p,
.sid-home h1,
.sid-home h2,
.sid-home h3 {
    margin-top: 0;
}

.sid-home h1,
.sid-home h2,
.sid-home h3 {
    color: inherit;
    font-family: var(--sid-font-heading);
    font-weight: 500;
    font-style: normal;
    letter-spacing: -0.035em;
}

.sid-home p:last-child {
    margin-bottom: 0;
}

.sid-home a:focus-visible {
    outline: 2px solid var(--sid-gold);
    outline-offset: 5px;
}

/* ---------- 02. LAYOUT ---------- */

.sid-container {
    width: min(var(--sid-container), calc(100% - 64px));
    margin-inline: auto;
}

.sid-section {
    padding-block: 112px;
}

.sid-home .sid-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #77796f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.17em;
    line-height: 1.5;
    text-transform: uppercase;
}

.sid-home .sid-eyebrow-light {
    color: #bdc4ca;
}

.sid-eyebrow-mark {
    display: inline-block;
    width: 24px;
    height: 1px;
    flex: 0 0 24px;
    background: var(--sid-gold);
}

/* ---------- 03. BUTTON ---------- */

.sid-home .sid-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 13px 17px 13px 21px;
    border: 1px solid transparent;
    font-family: var(--sid-font-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.sid-button-arrow {
    display: inline-grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 13px;
    transition: transform 220ms ease;
}

.sid-button:hover .sid-button-arrow {
    transform: translate(2px, -2px);
}

.sid-home .sid-button-gold {
    color: var(--sid-navy-deep);
    background: var(--sid-gold-light);
    border-color: var(--sid-gold-light);
}

.sid-home .sid-button-gold:hover {
    background: #e0cda5;
    border-color: #e0cda5;
}

/* ---------- 04. PAGE HERO ---------- */

.sid-home .sid-hero {
    position: relative;
    display: flex;
    align-items: center;
    max-height: 400px;
    padding: 80px 0 90px;
    color: var(--sid-white);
    background:
        linear-gradient(
            90deg,
            rgba(11, 23, 37, 0.94) 0%,
            rgba(11, 23, 37, 0.78) 55%,
            rgba(11, 23, 37, 0.48) 100%
        ),
        url("../images/hero.jpg") center / cover no-repeat;
}

.sid-home .sid-hero .sid-container {
    width: min(1400px, calc(100% - 100px));
    margin-inline: auto;
}

.sid-home .sid-hero-layout {
    display: block;
}

.sid-home .sid-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    padding-block: 25px;
}

.sid-home .sid-hero h1 {
    max-width: 800px;
    margin: 28px 0 24px;
    font-size: clamp(48px, 6.2vw, 84px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.sid-home .sid-hero-title-accent {
    display: inline;
    color: var(--sid-gold-light);
    font-weight: 600;
}

.sid-home .sid-hero-description {
    max-width: 650px;
    margin-bottom: 0;
    color: #d0d7de;
    font-size: 17px;
    line-height: 1.9;
}

.sid-home .sid-hero-bottom {
    position: absolute;
    right: 0;
    bottom: 30px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(1400px, calc(100% - 100px));
    margin: 0 auto;
    color: #a5b0ba;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.17em;
}

.sid-hero-bottom-rule {
    width: 50px;
    height: 1px;
    background: var(--sid-gold);
}

/* Breadcrumb */

.sid-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    color: #9da8b1;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sid-breadcrumb a {
    transition: color 220ms ease;
}

.sid-breadcrumb a:hover,
.sid-breadcrumb [aria-current="page"] {
    color: var(--sid-gold-light);
}

/* ---------- 05. SERVICES LIST ---------- */

.sid-services {
    background: var(--sid-paper);
}

.sid-services-list {
    border-top: 1px solid #dcdad3;
}

.sid-service-row {
    position: relative;
    display: grid;
    grid-template-columns: 75px 90px minmax(0, 1fr) 150px;
    align-items: center;
    gap: 24px;
    min-height: 180px;
    padding: 28px 0;
    border-bottom: 1px solid #dcdad3;
    transition: padding 220ms ease;
}

.sid-service-row:hover {
    padding-inline: 12px;
}

.sid-service-index {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    color: #85877f;
    font-size: 10px;
    letter-spacing: 0.1em;
}

.sid-service-index-line {
    width: 29px;
    height: 1px;
    background: var(--sid-gold);
}

.sid-service-code {
    color: #a58c5c;
    font-family: var(--sid-font-heading);
    font-size: 31px;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.sid-service-content h3 {
    margin-bottom: 9px;
    font-size: clamp(20px, 2.2vw, 27px);
    line-height: 1.3;
}

.sid-service-content p {
    max-width: 530px;
    margin: 0;
    color: var(--sid-muted);
    font-size: 13px;
    line-height: 1.8;
}

.sid-service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--sid-ink);
    font-size: 11px;
    font-weight: 600;
    transition: color 220ms ease;
}

/* Whole row clickable */
.sid-service-link::after {
    position: absolute;
    inset: 0;
    content: "";
}

.sid-service-row:hover .sid-service-link {
    color: #8c7650;
}

.sid-service-link-arrow {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    place-items: center;
    border: 1px solid #d5d2c9;
    border-radius: 50%;
    transition: background-color 220ms ease, color 220ms ease;
}

.sid-service-row:hover .sid-service-link-arrow {
    color: var(--sid-navy);
    background: var(--sid-gold-light);
    border-color: var(--sid-gold-light);
}

/* ---------- 06. CTA ---------- */

.sid-industries {
    position: relative;
    overflow: hidden;
    color: var(--sid-white);
    background:
        radial-gradient(ellipse at 82% 45%, rgba(56, 76, 93, 0.22), transparent 36%),
        var(--sid-navy-deep);
}

.sid-cta-layout {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 380px;
    padding-top: 90px;
    padding-bottom: 110px;
}

.sid-cta-content {
    position: relative;
    z-index: 2;
}

.sid-cta-content h2 {
    margin: 25px 0 34px;
    color: var(--sid-white);
    font-family: var(--sid-font-heading);
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.sid-cta-content h2 span {
    color: var(--sid-gold-light);
}

.sid-industries-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.sid-industries-footer {
    position: absolute;
    right: 0;
    bottom: 28px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #a7b0b8;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.sid-industries-footer-line {
    width: 45px;
    height: 1px;
    background: var(--sid-gold);
}

/* ---------- 07. TABLET ---------- */

@media (max-width: 1050px) {
    .sid-section {
        padding-block: 85px;
    }

    .sid-container {
        width: min(var(--sid-container), calc(100% - 48px));
    }

    .sid-service-row {
        grid-template-columns: 55px 70px minmax(0, 1fr) 135px;
        gap: 17px;
    }
}

/* ---------- 08. MOBILE ---------- */

@media (max-width: 700px) {
    .sid-container {
        width: calc(100% - 40px);
    }

    .sid-section {
        padding-block: 68px;
    }

    .sid-home .sid-hero {
        min-height: 0;
        padding: 53px 0 70px;
    }

    .sid-home .sid-hero .sid-container,
    .sid-home .sid-hero-bottom {
        width: calc(100% - 40px);
    }

    .sid-home .sid-hero-content {
        padding-block: 0;
    }

    .sid-home .sid-hero h1 {
        margin-top: 23px;
        margin-bottom: 20px;
        font-size: clamp(42px, 12vw, 60px);
    }

    .sid-home .sid-hero-description {
        max-width: 540px;
        font-size: 14px;
    }

    .sid-breadcrumb {
        margin-bottom: 24px;
    }

    .sid-service-row {
        grid-template-columns: 42px minmax(0, 1fr) 35px;
        gap: 12px;
        min-height: 0;
        padding-block: 24px;
    }

    .sid-service-row:hover {
        padding-inline: 0;
    }

    .sid-service-index {
        grid-row: 1 / 3;
        gap: 9px;
    }

    .sid-service-code {
        display: none;
    }

    .sid-service-content h3 {
        margin-bottom: 8px;
        font-size: 21px;
    }

    .sid-service-content p {
        font-size: 12px;
    }

    .sid-service-link {
        grid-column: 2 / 4;
        justify-content: flex-start;
        margin-top: 8px;
    }

    .sid-service-link-arrow {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .sid-cta-layout {
        min-height: 0;
        padding-top: 67px;
        padding-bottom: 100px;
    }

    .sid-cta-content h2 {
        font-size: clamp(37px, 10vw, 51px);
    }

    .sid-industries-footer {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 7px;
    }
}

/* ---------- 09. SMALL MOBILE ---------- */

@media (max-width: 380px) {
    .sid-container {
        width: calc(100% - 30px);
    }

    .sid-home .sid-button {
        gap: 12px;
        padding-inline: 14px;
        font-size: 11px;
    }
}

/* ---------- 10. REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
    .sid-home *,
    .sid-home *::before,
    .sid-home *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}