/* =========================
   BODY OVERRIDE
   ========================= */
body {
    color: #09072e;
    background: #f3f3f1;
}

/* =========================
   HEADER — COLOR OVERRIDES ONLY
   (layout already in style.css)
   ========================= */
.header-nav a {
    color: #09072e;
}

.header-nav a::after {
    background: #09072e;
}

.header-socials a {
    color: #09072e;
    background: rgba(9, 7, 46, 0.06);
    border-color: rgba(9, 7, 46, 0.14);
}

.header-socials a:hover {
    background: var(--color-primary);
    color: #fff;
}

.menu-toggle {
    background: rgba(9, 7, 46, 0.06);
    border-color: rgba(9, 7, 46, 0.18);
}

.menu-toggle span {
    background: #09072e;
}

.menu-toggle:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.menu-toggle:hover span {
    background: #fff;
}

/* =========================
   WORK PAGE
   ========================= */
.work-page-section {
    width: 100%;
    background: #f3f3f1;
    padding: 140px 70px 100px;
    color: #111;
}

.work-page-container {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
}

/* Work item row */
.work-item {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px 0 70px;
    border-top: 1px solid rgba(0, 0, 0, 0.35);
    text-decoration: none;
    color: #111;
    transition: opacity 0.35s ease;
}

.work-item + .work-item {
    margin-top: 20px;
}

.work-item-image {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.work-item-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
    will-change: transform;
}

.work-meta {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(0, 0, 0, 0.75);
    text-transform: uppercase;
}

.work-item-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 26px;
    align-items: start;
    min-height: 100%;
}

.work-item-content h2 {
    font-size: clamp(1rem, 2.2vw, 3rem);
    line-height: 2;
    letter-spacing: -0.5px;
    font-weight: 700;
    text-transform: uppercase;
    max-width: 1100px;
    text-decoration: none;
    transition: color 0.35s ease;
}

.work-arrow {
    font-size: 2.4rem;
    line-height: 1;
    color: #111;
    padding-top: 6px;
    transition: transform 0.35s ease, color 0.35s ease;
}

/* Hover states */
.work-item:hover .work-item-image img {
    transform: scale(1.02);
}

.work-item:hover .work-arrow {
    transform: translateX(8px);
    color: var(--color-primary);
}

.work-item:hover .work-item-content h2 {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.work-item:not(:hover) .work-item-image img {
    will-change: auto;
}

/* =========================
   REDUCED MOTION
   ========================= */
@media (prefers-reduced-motion: reduce) {
    .work-item-image img,
    .work-arrow,
    .work-item-content h2 {
        transition: none !important;
    }
    .work-item:hover .work-item-image img { transform: none; }
    .work-item:hover .work-arrow          { transform: none; }
    .work-item-image img                  { will-change: auto; }
}

/* =========================
   MOBILE NAV OVERRIDE
   On light-bg pages the toggle button needs dark spans.
   The glass panel itself is inherited from style.css.
   ========================= */
@media (max-width: 900px) {
    /* Toggle button adapts to light background */
    .menu-toggle {
        background: rgba(9, 7, 46, 0.06);
        border-color: rgba(9, 7, 46, 0.18);
    }

    .menu-toggle span {
        background: #09072e;
    }

    .menu-toggle.active {
        background: rgba(76, 94, 255, 0.15);
        border-color: rgba(76, 94, 255, 0.5);
    }

    .menu-toggle.active span {
        background: #fff;
    }
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1200px) {
    .work-page-section { padding: 120px 40px 80px; }
    .work-item { grid-template-columns: 380px 1fr; }
}

@media (max-width: 900px) {
    .work-page-section { padding: 110px 24px 70px; }
    .work-item { grid-template-columns: 1fr; gap: 16px; padding: 18px 0 50px; }
    .work-item-image img { height: 260px; }
    .work-item-content { gap: 18px; }
    .work-item-content h2 { letter-spacing: 0px; line-height: 1.4; }
    .work-arrow { font-size: 2rem; }
}

@media (max-width: 600px) {
    .work-page-section { padding: 100px 18px 60px; }
    .work-item-image img { height: 220px; }
    .work-item-content { grid-template-columns: 1fr; }
    .work-arrow { padding-top: 0; font-size: 1.6rem; }
}
