/* ══════════════════════════════════════════════
   Custom Workwear — Stylesheet
   Edit colors, typography, and layout here.
   ══════════════════════════════════════════════ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-primary: #111111;
    --text-secondary: #4a4a4a;
    --text-tertiary: #777777;
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f7;
    --border: #e2e2e2;
    --border-light: #eeeeee;
    --accent: #1a1a1a;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
}

/* ── Navigation ──────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

nav .nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

nav .logo {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
}

nav .nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav .nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

nav .nav-links a:hover {
    color: var(--text-primary);
}

.lang-toggle {
    display: flex;
    border: 1px solid var(--border);
    overflow: hidden;
}

.lang-toggle button {
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.lang-toggle button.active {
    background: var(--text-primary);
    color: #ffffff;
}

.lang-toggle button:not(.active):hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ── Sections ────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.7;
}

.divider {
    width: 48px;
    height: 2px;
    background: var(--text-primary);
    margin: 3rem 0;
}

/* ── Hero ────────────────────────────────────── */
.hero {
    padding-top: 140px;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.hero .section-title {
    font-size: 3.2rem;
    max-width: 700px;
}

.hero .section-subtitle {
    margin-bottom: 2rem;
}

.hero-meta {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-meta-item .label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.hero-meta-item .value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ── Product Gallery ─────────────────────────── */
.product-section {
    background: var(--bg-secondary);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 4rem;
}

.product-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--text-primary);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gallery-main {
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 16 / 9;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease;
}

.gallery-thumb {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 1;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.gallery-thumb.active {
    border-color: var(--text-primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.03);
}

.gallery-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* ── Specs Table ─────────────────────────────── */
.specs-section {
    border-bottom: 1px solid var(--border);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-light);
}

.specs-table td {
    padding: 0.85rem 0;
    vertical-align: top;
}

.specs-table td:first-child {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    width: 40%;
    padding-right: 1rem;
}

.specs-table td:last-child {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 400;
}

/* ── Features ────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2rem;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: var(--text-secondary);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── Faraday Section ─────────────────────────── */
.faraday-section {
    background: var(--accent);
    color: #ffffff;
}

.faraday-section .section-label {
    color: #999999;
}

.faraday-section .section-title {
    color: #ffffff;
}

.faraday-section .section-subtitle {
    color: #cccccc;
}

.faraday-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.faraday-spec {
    padding: 1.5rem 0;
    border-top: 1px solid #333333;
}

.faraday-spec h4 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999999;
    margin-bottom: 0.5rem;
}

.faraday-spec p {
    font-size: 0.95rem;
    color: #dddddd;
    line-height: 1.6;
}

.faraday-ref-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.faraday-ref-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #2a2a2a;
    position: relative;
}

.faraday-ref-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #222;
}

.faraday-ref-image .ref-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #ffffff;
}

/* ── Construction ────────────────────────────── */
.construction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-top: 3rem;
    border: 1px solid var(--border);
}

.construction-item {
    padding: 2.5rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.construction-item:nth-child(2n) {
    border-right: none;
}

.construction-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.construction-item .number {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.construction-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.construction-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── Pocket Layout ───────────────────────────── */
.pocket-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.pocket-list {
    list-style: none;
}

.pocket-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.pocket-list li:first-child {
    border-top: 1px solid var(--border-light);
}

.pocket-name {
    font-size: 0.95rem;
    font-weight: 500;
}

.pocket-detail {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* ── Additional Products ─────────────────────── */
.additional-section {
    background: var(--bg-secondary);
    text-align: center;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
    transition: border-color 0.2s;
}

.product-card:hover {
    border-color: var(--text-secondary);
}

.product-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-card p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.product-card .status {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    color: var(--text-tertiary);
}

/* ── Reference Images ────────────────────────── */
.ref-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.ref-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.ref-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

.ref-image .ref-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #ffffff;
}

/* ── Footer ──────────────────────────────────── */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ── Lightbox ────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
    .hero .section-title { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .hero-meta { flex-wrap: wrap; gap: 1.5rem; }

    .specs-grid,
    .faraday-grid,
    .pocket-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid { grid-template-columns: 1fr 1fr; }

    .construction-grid { grid-template-columns: 1fr; }
    .construction-item { border-right: none; }
    .construction-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .construction-item:last-child { border-bottom: none; }

    .product-cards,
    .ref-images,
    .faraday-ref-images { grid-template-columns: 1fr; }

    .gallery-row { grid-template-columns: repeat(2, 1fr); }
    .product-header { flex-direction: column; gap: 1.5rem; }
    nav .nav-right { gap: 1rem; }
}

@media (max-width: 600px) {
    section { padding: 4rem 0; }
    .container { padding: 0 1.25rem; }
    .hero { padding-top: 110px; }
    .hero .section-title { font-size: 1.75rem; }
    .section-title { font-size: 1.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    nav .nav-links { gap: 1rem; }
    nav .nav-links a { font-size: 0.7rem; }
    .lang-toggle button { padding: 0.3rem 0.5rem; font-size: 0.65rem; }
}
