/* =========================================================
   SID ENGINEERS — REFERENCES PAGE
   File: assets/css/sid-references.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,
.sid-home button:focus-visible {
    outline: 2px solid var(--sid-gold);
    outline-offset: 4px;
}

/* ---------- 02. LAYOUT ---------- */

.sid-container {
    width: min(var(--sid-container), calc(100% - 64px));
    margin-inline: auto;
}

.sid-section {
    padding-block: 100px;
}

.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.04;
    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;
    flex-wrap: wrap;
    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. FILTERS ---------- */

.sid-projects {
    --sid-card: #0B1725;
    color: var(--sid-ink);
    background: #f8f7f3;
}

.sid-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.sid-home .sid-filter {
    padding: 11px 18px;
    color: #59636d;
    background: var(--sid-white);
    border: 1px solid var(--sid-border);
    border-radius: 5px;
    font-family: var(--sid-font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.sid-home .sid-filter:hover {
    color: var(--sid-navy);
    border-color: var(--sid-gold);
}

.sid-home .sid-filter.active {
    color: var(--sid-navy-deep);
    background: var(--sid-gold-light);
    border-color: var(--sid-gold-light);
}

/* ---------- 06. PROJECT CARDS ---------- */

.sid-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

/* The [hidden] attribute is set by main.js when filtering */
.sid-project[hidden] {
    display: none !important;
}

.sid-project {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border-radius: 55px 20px;
    overflow: hidden;
    background: var(--sid-card);
    transition: border-color 220ms ease;
    &:hover{
        transform: scale(1.05)
    }
}

.sid-project:hover {
    border-color: #262c37;
}

.sid-project-media {
    aspect-ratio: 4 / 3;
    margin: 0;
}

.sid-project-media img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 55px 20px 66px 0px;
    object-fit: cover;
}

.sid-project-body {
    flex: 1;
    padding: 22px 20px 26px;
}

.sid-project-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    color: var(--sid-gold-light);
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    line-height: 1.6;
    text-transform: uppercase;
}

.sid-project-sector {
    flex: 0 0 auto;
    color: #9da8b1;
    text-align: right;
}

.sid-project h2 {
    margin-bottom: 10px;
    color: var(--sid-white);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.sid-project-text {
    margin: 0;
    color: #9da6b0;
    font-size: 14px;
    line-height: 1.75;
}

.sid-empty {
    max-width: 560px;
    padding: 50px 0;
}

.sid-empty h2 {
    margin-bottom: 12px;
    color: var(--sid-ink);
    font-size: clamp(28px, 3.4vw, 40px);
}

.sid-empty p {
    color: var(--sid-muted);
}

/* ---------- 07. 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);
}

/* ---------- 08. TABLET ---------- */

@media (max-width: 1050px) {
    .sid-section {
        padding-block: 80px;
    }

    .sid-container {
        width: min(var(--sid-container), calc(100% - 48px));
    }

    .sid-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- 09. MOBILE ---------- */

@media (max-width: 700px) {
    .sid-container {
        width: calc(100% - 40px);
    }

    .sid-section {
        padding-block: 60px;
    }

    .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 {
        font-size: 14px;
    }

    .sid-breadcrumb {
        margin-bottom: 24px;
    }

    /* Filters scroll sideways instead of wrapping into many rows */
    .sid-filters {
        flex-wrap: nowrap;
        margin-inline: -20px;
        padding: 0 20px 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sid-filters::-webkit-scrollbar {
        display: none;
    }

    .sid-home .sid-filter {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .sid-projects-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sid-project-body {
        padding: 18px 18px 22px;
    }

    .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;
    }
}

/* ---------- 10. SMALL MOBILE ---------- */

@media (max-width: 380px) {
    .sid-container {
        width: calc(100% - 30px);
    }

    .sid-home .sid-button {
        gap: 12px;
        padding-inline: 14px;
        font-size: 11px;
    }
}

/* ---------- 11. 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;
    }
}