/* =========================================================
   SID ENGINEERS — SECTORS PAGE
   File: assets/css/sid-sectors.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-border: #e4e2dc;
    --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: 950px;
    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 {
    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);
}

.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. SECTORS (WITH BACKGROUND IMAGES) ---------- */

.sid-sectors {
    background: var(--sid-paper);
}

.sid-sectors-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.sid-sector-card {
    position: relative; /* Required for overlay */
    display: flex;
    min-width: 0;
    min-height: 420px; /* Increased height to show off the image */
    flex-direction: column;
    border-radius: 10px;
    padding: 0; /* Padding moved to inner content */
    border: 1px solid var(--sid-border);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.sid-sector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(16, 35, 58, 0.2);
}

/* Dark gradient overlay for text readability */
.sid-sector-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(11, 23, 37, 0.3) 0%,
        rgba(11, 23, 37, 0.85) 100%
    );
    transition: background 300ms ease;
    z-index: 1;
}

.sid-sector-card:hover .sid-sector-overlay {
    background: linear-gradient(
        180deg,
        rgba(11, 23, 37, 0.2) 0%,
        rgba(11, 23, 37, 0.95) 100%
    );
}

/* Content wrapper sitting above the overlay */
.sid-sector-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px 34px 34px;
}

.sid-sector-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}

.sid-sector-number {
    color: var(--sid-gold-light);
    font-family: var(--sid-font-heading);
    font-size: 27px;
    font-weight: 500;
    line-height: 1.2;
}

.sid-sector-line {
    width: 34px;
    height: 1px;
    background: var(--sid-gold-light);
}

.sid-sector-label {
    color: #e0e0e0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.sid-sector-card h2 {
    max-width: 450px;
    margin-bottom: 14px;
    color: var(--sid-white);
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.25;
}

.sid-sector-card p {
    max-width: 470px;
    margin-bottom: 30px;
    color: #d0d7de;
    font-size: 14px;
    line-height: 1.9;
}

.sid-sector-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: auto 0 0;
    padding: 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    list-style: none;
}

.sid-sector-tags li {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #e0e0e0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
    transition: border-color 220ms ease, color 220ms ease, background-color 220ms ease;
}

.sid-sector-card:hover .sid-sector-tags li {
    border-color: var(--sid-gold-light);
    color: var(--sid-gold-light);
    background: rgba(185, 155, 101, 0.1);
}

/* ---------- 06. CTA ---------- */

.sid-cta {
    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-size: clamp(38px, 5vw, 62px);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.sid-cta-content h2 span {
    color: var(--sid-gold-light);
}

.sid-cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.sid-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #e2e5e7;
    font-size: 12px;
    font-weight: 600;
}

.sid-cta-link span {
    color: var(--sid-gold-light);
    font-size: 17px;
    transition: transform 220ms ease;
}

.sid-cta-link:hover span {
    transform: translateX(4px);
}

.sid-cta-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-cta-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-sector-card {
        min-height: 380px;
        padding: 0;
    }
    
    .sid-sector-content {
        padding: 28px 24px 28px;
    }
}

/* ---------- 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-sectors-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sid-sector-card {
        min-height: 360px;
    }

    .sid-sector-content {
        padding: 24px 22px 26px;
    }

    .sid-sector-top {
        margin-bottom: 26px;
    }

    .sid-sector-card h2 {
        font-size: 25px;
    }

    .sid-sector-card p {
        margin-bottom: 24px;
        font-size: 13px;
    }

    .sid-cta-layout {
        min-height: 0;
        padding-top: 67px;
        padding-bottom: 100px;
    }

    .sid-cta-content h2 {
        font-size: clamp(37px, 10vw, 51px);
    }

    .sid-cta-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .sid-cta-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;
    }
}