:root {
    --navy: #0b1020;
    --navy-soft: #121827;
    --gold: #b89548;
    --gold-dark: #997636;
    --text: #262626;
    --muted: #6b6b6b;
    --line: #e7e3dc;
    --paper: #ffffff;
    --soft: #f7f5f0;
    --success-bg: #eef9f0;
    --success-border: #bfe4c5;
    --danger: #b42318;
    --radius: 12px;
    --shadow: 0 18px 50px rgba(11, 16, 32, .09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

.narrow {
    width: min(980px, calc(100% - 48px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--navy);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.header-inner {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-inline: clamp(16px, 2vw, 32px);
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity .2s ease, transform .2s ease;
}

.brand:hover,
.brand:focus-visible {
    opacity: .88;
    transform: translateY(-1px);
}

.brand-logo {
    width: 74px;
    max-height: 52px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .18));
}

.brand-copy {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-weight: 800;
    font-size: 22px;
    line-height: 1.05;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--gold);
    font-weight: 700;
    font-size: 13px;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 34px;
    font-weight: 700;
}

.main-nav a {
    position: relative;
    color: rgba(255, 255, 255, .82);
    padding: 10px 0;
    transition: color .2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
    color: #fff;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.language-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.language-current {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 10px 0;
}

.language-current::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    border-top: 5px solid var(--gold);
    border-inline: 4px solid transparent;
    transform: translateY(-1px);
}

.language-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 58px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: var(--navy-soft);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease;
}

.language-switch:hover .language-menu,
.language-switch:focus-within .language-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.language-menu a {
    display: block;
    padding: 6px 10px;
    color: #fff;
    font-weight: 900;
    text-align: center;
}

.language-menu a::after {
    display: none;
}

.language-menu a:hover,
.language-menu a:focus-visible {
    color: var(--gold);
}

.home-hero {
    position: relative;
    min-height: calc(100svh - 88px);
    display: grid;
    overflow: hidden;
    background: var(--navy);
}

.home-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transform: none;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: transparent;
}

.home-hero-caption {
    position: absolute;
    left: clamp(18px, 4vw, 64px);
    bottom: clamp(24px, 7vh, 72px);
    z-index: 1;
    display: grid;
    gap: 4px;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    text-shadow: 0 4px 18px rgba(0, 0, 0, .62), 0 1px 2px rgba(0, 0, 0, .7);
    transition: opacity .22s ease, transform .22s ease;
}

.home-hero:hover .home-hero-caption {
    opacity: 1;
    transform: translateY(0);
}

.home-hero-caption-title,
.home-hero-caption-subtitle {
    display: block;
    font-weight: 900;
    line-height: 1.12;
}

.home-hero-caption-title {
    font-size: clamp(27px, calc(4vw - 3px), 43px);
}

.home-hero-caption-subtitle {
    font-size: clamp(20px, calc(4vw - 10px), 36px);
}

.home-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 72px 0 92px;
}

.home-hero h1 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 10px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.1;
    text-shadow: 0 12px 32px rgba(0, 0, 0, .38);
}

.home-hero p {
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .88);
    text-transform: uppercase;
    letter-spacing: 7px;
    font-weight: 700;
}

.home-actions {
    margin-top: 62px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.home-actions a {
    min-width: 150px;
    padding: 14px 22px;
    border: 1px solid rgba(11, 16, 32, .22);
    border-radius: 12px;
    color: #101010;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
    font-weight: 800;
    font-size: 20px;
    transition: transform .2s ease, background .2s ease;
}

.home-actions a:hover,
.home-actions a:focus-visible {
    transform: translateY(-2px);
    background: #fff;
}

.page-hero {
    background:
        linear-gradient(135deg, rgba(255,255,255,.04) 25%, transparent 25%) 0 0 / 28px 28px,
        linear-gradient(135deg, transparent 75%, rgba(255,255,255,.035) 75%) 0 0 / 28px 28px,
        var(--navy-soft);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.about-page-hero {
    background:
        linear-gradient(180deg, rgba(11, 16, 32, .46), rgba(11, 16, 32, .68)),
        url("../images/about-denim.jpeg") center 45% / cover no-repeat;
}

.page-hero-inner {
    min-height: 188px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 42px 0;
}

.page-hero h1 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 7px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.page-hero p {
    margin: 8px 0 0;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--gold);
    font-weight: 800;
}

.stats-row {
    border-bottom: 1px solid var(--line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid var(--line);
}

.stats-grid article {
    min-height: 112px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    border-right: 1px solid var(--line);
}

.stats-grid strong {
    color: var(--gold);
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
}

.stats-grid span {
    color: var(--muted);
    font-size: 14px;
}

.content-section {
    padding: 54px 0 74px;
}

.content-section p {
    margin: 0 0 24px;
}

.content-section h2 {
    margin: 36px 0 20px;
    font-size: 22px;
    line-height: 1.2;
}

.section-title {
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 118px;
    height: 2px;
    background: var(--gold);
}

.factory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 32px 0 24px;
}

.factory-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 22px rgba(11, 16, 32, .04);
}

.factory-head {
    padding: 18px 22px;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.factory-head h3 {
    margin: 0 0 2px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 16px;
}

.factory-head span {
    color: var(--muted);
    font-size: 13px;
}

.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 22px 20px;
}

.brand-tags span {
    border: 1px solid #d5bf79;
    color: var(--gold-dark);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    background: #fffdf7;
}

.sustainability-box {
    margin: 28px 0;
    padding: 20px 24px;
    border: 1px solid #b9dfc1;
    border-radius: var(--radius);
    background: #effaf1;
}

.sustainability-box h3 {
    margin: 0 0 8px;
    color: #2f7c45;
}

.sustainability-box ul {
    margin: 0;
    padding-left: 20px;
    columns: 2;
}

.sustainability-box li::marker {
    color: #42a85d;
}

.highlight-note {
    margin-top: 28px;
    padding: 22px 26px;
    border-left: 5px solid var(--gold);
    background: var(--soft);
}

.lead-text {
    color: var(--muted);
    font-size: 18px;
}

.career-form {
    margin-top: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    color: #5a5a5a;
    font-size: 14px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid #dedede;
    border-radius: 10px;
    background: #fff;
    padding: 16px 18px;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input[type="file"] {
    padding: 13px 16px;
}

textarea {
    resize: vertical;
    min-height: 132px;
}

input::placeholder,
textarea::placeholder {
    color: #7c7c7c;
}

input:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(184, 149, 72, .16);
}

.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.form-inline-error {
    color: var(--danger);
    font-size: 14px;
    font-weight: 800;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    background: #fff;
    color: #151515;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    font-size: 17px;
    box-shadow: 0 8px 20px rgba(11, 16, 32, .07);
    transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.primary-button:hover,
.primary-button:focus-visible {
    border-color: var(--gold);
    color: var(--gold-dark);
    transform: translateY(-1px);
}

.alert {
    margin: 16px 0 22px;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 700;
}

.alert-success {
    border: 1px solid var(--success-border);
    background: var(--success-bg);
    color: #1b6f2e;
}

.validation-summary,
.field-validation {
    color: var(--danger);
    font-weight: 700;
    font-size: 13px;
}

.validation-summary ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 68px;
    align-items: start;
}

.contact-info h2 {
    margin: 0 0 22px;
    font-size: 22px;
}

.contact-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    margin-bottom: 24px;
    align-items: start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #f8f6f0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .03);
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: var(--gold-dark);
    font-weight: 800;
}

.map-card {
    min-height: 360px;
    display: block;
    overflow: hidden;
    border: 1px solid #e1ded8;
    border-radius: var(--radius);
    background: #e9e5df;
    box-shadow: var(--shadow);
}

.map-frame {
    display: block;
    width: 100%;
    min-height: 360px;
    height: 100%;
    border: 0;
}

.hours-card {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.hours-card h3 {
    margin: 0 0 4px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
}

.hours-card p {
    margin: 0;
    font-weight: 700;
}

code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #f1f1f1;
}

@media (max-width: 820px) {
    .container,
    .narrow {
        width: min(100% - 30px, 1120px);
    }

    .header-inner {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 16px;
        gap: 16px;
    }

    .main-nav {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-logo {
        width: 62px;
        max-height: 44px;
    }

    .home-hero {
        min-height: 620px;
    }

    .home-hero h1 {
        letter-spacing: 5px;
    }

    .home-hero p,
    .page-hero p {
        letter-spacing: 3px;
    }

    .stats-grid,
    .factory-grid,
    .form-row,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        border-top: 1px solid var(--line);
    }

    .sustainability-box ul {
        columns: 1;
    }

    .map-card,
    .map-frame {
        min-height: 300px;
    }
}

@media (max-width: 520px) {
    .header-inner {
        padding: 16px 14px;
    }

    .main-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 16px;
        overflow-x: visible;
    }

    .main-nav a {
        min-width: 0;
        padding: 8px 0;
        font-size: 14px;
        white-space: nowrap;
    }

    .language-switch {
        min-width: 0;
    }

    .language-current {
        padding: 8px 0;
        font-size: 14px;
    }

    .language-menu {
        left: 0;
        right: auto;
    }

    .home-hero-caption {
        left: 14px;
        right: 14px;
        bottom: 24px;
    }

    .home-hero-caption-title {
        font-size: 25px;
    }

    .home-hero-caption-subtitle {
        font-size: 18px;
    }
}
