/* ==========================================================================
   Skywalk Denim — site styles
   Palette taken from the material itself: raw indigo, rinse wash, bleached
   fade, and the red line of the selvedge edge (the only accent colour).
   ========================================================================== */

/* Archivo variable font (SIL Open Font License, see assets/fonts/OFL.txt).
   Self-hosted: no request to Google, faster and KVKK-friendly. */
@font-face {
    font-family: "Archivo";
    src: url("../fonts/archivo-variable.woff") format("woff");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
}

:root {
    --indigo: #1b2440;        /* raw denim */
    --indigo-deep: #121933;   /* footer, overlays */
    --rinse: #34507f;         /* rinse wash, links & hover */
    --fade: #dfe5ed;          /* bleached denim, section backgrounds */
    --fade-soft: #f1f4f7;
    --paper: #ffffff;
    --ink: #141a2b;
    --ink-soft: #4a5368;
    --line: #d3d9e2;
    --selvedge: #b3302a;      /* the red ID line on selvedge denim */
    --wa: #1f8f4e;            /* WhatsApp actions, darkened for contrast */

    --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --wrap: 1320px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(56px, 8vw, 112px);
    --radius: 2px;

    --step--1: 0.875rem;
    --step-0: 1rem;
    --step-1: 1.25rem;
    --step-2: 1.6rem;
    --step-3: clamp(2rem, 3.2vw, 2.6rem);
    --step-4: clamp(2.6rem, 6vw, 4.6rem);
    --step-5: clamp(3rem, 8.5vw, 7.2rem);
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--step-0);
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    font-variation-settings: "wdth" 100;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--rinse); text-underline-offset: 0.18em; }
a:hover { color: var(--indigo); }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
    outline: 3px solid var(--selvedge);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 16px; background: var(--paper); color: var(--indigo); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }

/* Condensed display type: the workwear-label voice of the site */
.section-title,
.page-title,
.hero__title,
.intro__title,
.wholesale-cta__title,
.product__title,
.card__title,
.collection-tile__name,
.wordmark,
.not-found__code {
    font-variation-settings: "wdth" 68;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    line-height: 0.95;
}

.section-title { font-size: var(--step-3); color: var(--indigo); }
.muted { color: var(--ink-soft); }

.text-link {
    display: inline-block; font-weight: 600; color: var(--indigo); text-decoration: underline;
    text-decoration-thickness: 1px; text-underline-offset: 0.3em;
}
.text-link:hover { color: var(--selvedge); }

.prose p + p, .prose p + h2, .prose h2 + p { margin-top: 1em; }
.prose h2 { font-size: var(--step-1); font-weight: 700; color: var(--indigo); margin-top: 1.6em; }
.prose { max-width: 68ch; }

/* ---------- The selvedge edge ---------- */
/* White woven band with the red identification line through its middle. */
.selvedge {
    height: 9px;
    background:
        linear-gradient(to bottom,
            transparent 0, transparent 3px,
            var(--selvedge) 3px, var(--selvedge) 6px,
            transparent 6px),
        repeating-linear-gradient(90deg, #ffffff 0 3px, #eef1f5 3px 4px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.selvedge--dark {
    background:
        linear-gradient(to bottom,
            transparent 0, transparent 3px,
            var(--selvedge) 3px, var(--selvedge) 6px,
            transparent 6px),
        repeating-linear-gradient(90deg, #e9edf2 0 3px, #d6dce5 3px 4px);
    border-color: var(--indigo-deep);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
    min-height: 48px; padding: 0.7em 1.4em;
    border: 2px solid transparent; border-radius: var(--radius);
    font-weight: 700; font-size: var(--step-0); line-height: 1.2; text-decoration: none;
    font-variation-settings: "wdth" 88;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn .icon { width: 1.2em; height: 1.2em; flex: none; }
.btn--block { width: 100%; }
.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--rinse); color: #fff; }
.btn--light { background: #fff; color: var(--indigo); }
.btn--light:hover { background: var(--fade); color: var(--indigo); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #17733e; color: #fff; }
.btn--outline { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.btn--outline:hover { background: var(--indigo); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: #fff; color: var(--indigo); }

.icon { width: 24px; height: 24px; }

.icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1.5px solid var(--indigo); border-radius: 50%;
    background: transparent; color: var(--indigo);
}
.icon-btn:hover { background: var(--indigo); color: #fff; }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; color: var(--indigo); }
.icon-btn--light { border-color: rgba(255,255,255,.75); color: #fff; }
.icon-btn--light:hover { background: #fff; color: var(--indigo); }

/* ---------- Top bar & header ---------- */

.topbar { background: var(--indigo-deep); color: #d9dfea; font-size: var(--step--1); }
.topbar__inner { display: flex; justify-content: center; gap: 0.75em; padding-block: 8px; flex-wrap: wrap; text-align: center; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.logo { display: inline-flex; color: var(--indigo); text-decoration: none; flex: none; }
.logo:hover { color: var(--indigo); }
.logo img { height: 52px; width: auto; }
.site-footer .logo img { height: 60px; }
.logo--light { color: #fff; }
.logo--light:hover { color: #fff; }

.wordmark { display: inline-flex; align-items: baseline; gap: 0.3em; }
.wordmark__main { font-size: 1.85rem; font-variation-settings: "wdth" 62; font-weight: 900; letter-spacing: 0.02em; }
.wordmark__sub {
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.32em;
    font-variation-settings: "wdth" 125; padding-left: 0.4em; border-left: 3px solid var(--selvedge);
}

.main-nav { margin-left: auto; }
.main-nav__list { display: flex; gap: clamp(14px, 1.8vw, 28px); }
.main-nav__list a {
    display: block; padding-block: 8px; color: var(--ink); text-decoration: none;
    font-weight: 600; font-size: 0.95rem; white-space: nowrap; border-bottom: 2px solid transparent;
}
.main-nav__list a:hover { color: var(--rinse); }
.main-nav__list a.is-active { border-bottom-color: var(--selvedge); color: var(--indigo); }
.main-nav__mobile-extra { display: none; }

.site-header__tools { display: flex; align-items: center; gap: 12px; }

.lang { display: flex; border: 1.5px solid var(--indigo); border-radius: var(--radius); overflow: hidden; }
.lang a {
    padding: 6px 10px; font-size: 0.8rem; font-weight: 700; color: var(--indigo); text-decoration: none;
    font-variation-settings: "wdth" 110; letter-spacing: 0.06em;
}
.lang a[aria-current="true"] { background: var(--indigo); color: #fff; }
.lang a:not([aria-current]):hover { background: var(--fade); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
    position: absolute; left: 10px; width: 24px; height: 2px; background: var(--indigo); content: "";
    transition: transform .2s, top .2s, opacity .2s;
}
.menu-toggle__bars { top: 21px; }
.menu-toggle__bars::before { left: 0; top: -8px; }
.menu-toggle__bars::after { left: 0; top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
    .menu-toggle { display: inline-block; }
    .site-header__tools { margin-left: auto; }
    .main-nav {
        position: fixed; inset: var(--header-h, 120px) 0 0 0; z-index: 49;
        background: var(--paper); padding: 24px var(--gutter) 40px; overflow-y: auto;
        display: none; margin: 0; border-top: 1px solid var(--line);
    }
    .main-nav.is-open { display: block; }
    .main-nav__list { flex-direction: column; gap: 0; }
    .main-nav__list a {
        padding-block: 16px; border-bottom: 1px solid var(--line);
        font-size: var(--step-2); font-variation-settings: "wdth" 70; font-weight: 800; text-transform: uppercase;
    }
    .main-nav__list a.is-active { border-bottom-color: var(--line); color: var(--selvedge); }
    .main-nav__mobile-extra { display: block; margin-top: 28px; }
    body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */

.hero { position: relative; background: var(--indigo); color: #fff; overflow: hidden; }
.hero__slides { display: grid; }
.hero__slide {
    grid-area: 1 / 1; position: relative; min-height: min(86vh, 820px);
    display: flex; align-items: flex-end; visibility: hidden; opacity: 0;
    transition: opacity .8s ease, visibility 0s linear .8s;
}
.hero__slide.is-active { visibility: visible; opacity: 1; transition: opacity .8s ease, visibility 0s; }
.hero__slide picture, .hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__slide img { object-fit: cover; object-position: 70% 40%; }
.hero__slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(18,25,51,.86) 0%, rgba(18,25,51,.55) 45%, rgba(18,25,51,.05) 100%),
                linear-gradient(0deg, rgba(18,25,51,.6) 0%, rgba(18,25,51,0) 40%);
}
.hero__content { position: relative; z-index: 1; padding-block: 120px 132px; }
.hero__title { font-size: var(--step-5); max-width: 11ch; }
.hero__text { margin-top: 20px; max-width: 42ch; font-size: var(--step-1); line-height: 1.45; color: #e3e8f0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__nav {
    position: absolute; left: 0; right: 0; bottom: 32px; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; margin-inline: auto;
}
.hero__dots { display: flex; gap: 10px; }
.hero__dot {
    width: 44px; height: 44px; border: 0; padding: 0; background: transparent; position: relative;
}
/* Each dot is a stitch: a short dash that fills in when active */
.hero__dot::before {
    content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; transform: translateY(-50%);
    background: rgba(255,255,255,.4);
}
.hero__dot[aria-current="true"]::before { background: var(--selvedge); box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
.hero__arrows { display: flex; gap: 10px; }

/* ---------- Intro ---------- */

.intro__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro__title { font-size: var(--step-4); color: var(--indigo); }
.intro__text { font-size: var(--step-1); line-height: 1.55; max-width: 46ch; }
.intro__body > * + * { margin-top: 32px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--indigo); }
.facts__item { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 0 0; }
.facts dd { order: -1; }
.facts__item + .facts__item { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dd {
    font-size: var(--step-3); font-weight: 800; color: var(--indigo); line-height: 1;
    font-variation-settings: "wdth" 68;
}
.facts dt { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.35; }

/* ---------- Product rails & cards ---------- */

.rail { padding-block: clamp(48px, 6vw, 88px); }
.rail + .rail { padding-top: 0; }
.rail__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.rail__controls { display: flex; align-items: center; gap: 10px; }
.rail__controls .text-link { margin-right: 10px; }
.rail__track {
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((min(100vw, var(--wrap)) - 2 * var(--gutter) - 3 * 20px) / 4);
    gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__item { scroll-snap-align: start; }
@media (max-width: 1080px) { .rail__track { grid-auto-columns: calc((100vw - 2 * var(--gutter) - 2 * 16px) / 2.6); gap: 16px; } }
@media (max-width: 600px)  { .rail__track { grid-auto-columns: 72vw; } }

.card { position: relative; }
.card__media { display: block; position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--fade); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__alt { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
@media (hover: hover) { .card:hover .card__alt { opacity: 1; } }
.card__body { padding-top: 14px; }
.card__title { font-size: var(--step-2); }
.card__title a { color: var(--indigo); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card__title a:hover { color: var(--selvedge); }
.card__title a:focus-visible { outline: none; }
.card:has(.card__title a:focus-visible) { outline: 3px solid var(--selvedge); outline-offset: 4px; }
.card__meta { margin-top: 6px; font-size: var(--step--1); color: var(--ink-soft); display: flex; gap: 10px; }
.card__sizes { color: var(--ink); font-weight: 600; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 20px; }
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; } }

/* ---------- Wholesale CTA band ---------- */

.wholesale-cta { background: var(--indigo); color: #e3e8f0; }
.wholesale-cta__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    padding-block: clamp(40px, 5vw, 64px); flex-wrap: wrap;
}
.wholesale-cta__title { font-size: var(--step-3); color: #fff; max-width: 28ch; margin-bottom: 10px; }
.wholesale-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Collections ---------- */

.collections .section-title { margin-bottom: 28px; }
.collections__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.collection-tile {
    position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; color: #fff; text-decoration: none;
    background: var(--indigo);
}
.collection-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.collection-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,25,51,.85), rgba(18,25,51,0) 60%); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .collection-tile:hover img { transform: scale(1.04); } }
.collection-tile__label { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; }
.collection-tile__name { display: block; font-size: var(--step-4); }
.collection-tile__desc { display: block; margin-top: 8px; max-width: 44ch; color: #dfe5ed; font-size: var(--step--1); }
.collection-tile:hover { color: #fff; }

/* ---------- Facility / split section ---------- */

.facility { display: grid; grid-template-columns: 1fr 1fr; background: var(--fade); }
.facility__media { min-height: 420px; position: relative; }
.facility__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facility__body {
    padding: clamp(40px, 6vw, 96px) var(--gutter); max-width: 640px;
    display: flex; flex-direction: column; gap: 20px; align-items: flex-start; justify-content: center;
}
.facility--flip .facility__media { order: 2; }
.facility__location { font-weight: 700; color: var(--indigo); }
.brands { width: 100%; border-top: 1px solid #b9c3d2; padding-top: 18px; }
.brands__label { font-size: var(--step--1); color: var(--ink-soft); }
.brands__list { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 8px; }
.brands__list li {
    font-size: var(--step-1); font-weight: 700; color: var(--indigo);
    font-variation-settings: "wdth" 80;
}

.values { display: grid; gap: 22px; width: 100%; }
.values div { border-left: 3px solid var(--selvedge); padding-left: 16px; }
.values dt { font-weight: 800; font-size: var(--step-1); color: var(--indigo); font-variation-settings: "wdth" 80; }
.values dd { color: var(--ink-soft); }

/* ---------- Page header & breadcrumbs ---------- */

.page-header { background: var(--fade); padding-block: clamp(32px, 4vw, 56px) clamp(40px, 5vw, 72px); }
.page-title { font-size: var(--step-4); color: var(--indigo); max-width: 18ch; }
.page-lead { margin-top: 20px; max-width: 60ch; font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 22px; list-style: none; font-size: var(--step--1); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: #8a94a8; }
.crumbs a { color: var(--ink-soft); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.crumbs--product ol { margin: 24px 0; }

.result-count { color: var(--ink-soft); margin-bottom: 24px; font-size: var(--step--1); }
.empty { padding: 40px 0; max-width: 52ch; }
.catalog-download { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 32px; }
.catalog-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }

/* ---------- Product page ---------- */

.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.gallery { display: grid; gap: 12px; }
.gallery__main { background: var(--fade); aspect-ratio: 2 / 3; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.gallery__thumb { padding: 0; border: 2px solid transparent; background: var(--fade); aspect-ratio: 2 / 3; overflow: hidden; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--selvedge); }

.product__info { position: sticky; top: 110px; display: grid; gap: 26px; }
.product__category a { color: var(--ink-soft); font-size: var(--step--1); }
.product__title { font-size: var(--step-5); color: var(--indigo); margin-top: -12px; }
.product__price { font-weight: 600; color: var(--ink-soft); }
.product__label { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); margin-bottom: 10px; }
.product__actions { display: grid; gap: 10px; }

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes li {
    min-width: 52px; padding: 10px 12px; text-align: center; border: 1.5px solid var(--indigo);
    font-weight: 700; color: var(--indigo); font-variation-settings: "wdth" 85;
}

.specs { display: grid; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-soft); }
.specs dd { font-weight: 600; }

/* ---------- Private label steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; counter-reset: step; }
.steps__item { counter-increment: step; border-top: 2px solid var(--indigo); padding-top: 18px; }
.steps__item::before {
    content: counter(step); display: block; font-size: var(--step-4); font-weight: 900; line-height: 1;
    color: var(--selvedge); font-variation-settings: "wdth" 62; margin-bottom: 12px;
}
.steps__title { font-size: var(--step-1); color: var(--indigo); margin-bottom: 8px; }
.steps p { color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 6vw, 96px); }
.about__lead {
    font-size: var(--step-2); line-height: 1.3; font-weight: 600; color: var(--indigo);
    font-variation-settings: "wdth" 85;
}

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__info { display: grid; gap: 28px; }
.contact__block { border-top: 2px solid var(--indigo); padding-top: 14px; }
.contact__label { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.contact__block a { color: var(--ink); font-weight: 600; }
.contact__buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.contact__buttons .btn { color: #fff; }
.contact__buttons .btn--outline { color: var(--indigo); }
.contact__buttons .btn--outline:hover { color: #fff; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Forms ---------- */

.form-section { background: var(--fade-soft); }
.form-block__title { font-size: var(--step-2); font-weight: 800; color: var(--indigo); font-variation-settings: "wdth" 75; }
.form-block__text { margin-top: 8px; color: var(--ink-soft); }
.form-block .notice, .form-grid { margin-top: 24px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field__optional { font-weight: 400; color: var(--ink-soft); margin-left: 6px; font-size: var(--step--1); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea,
.newsletter input {
    width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--ink);
    background: var(--paper); border: 1.5px solid #9aa5b8; border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field textarea:focus-visible, .newsletter input:focus-visible { outline-offset: 0; border-color: var(--indigo); }
.has-error input, .has-error textarea, [aria-invalid="true"] { border-color: var(--selvedge) !important; }
.field-error { color: var(--selvedge); font-size: var(--step--1); font-weight: 600; }

.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 4px 12px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--indigo); }
.field--check label { font-weight: 400; font-size: var(--step--1); line-height: 1.5; }
.field--check .field-error { grid-column: 2; }
.form-actions { margin-top: 6px; }

.notice { padding: 14px 16px; border-left: 4px solid; font-weight: 600; }
.notice--ok { background: #e6f3ec; border-color: var(--wa); color: #14532d; }
.notice--error { background: #f8e7e6; border-color: var(--selvedge); color: #7a1f1a; }

@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--indigo-deep); color: #c3cbda; margin-top: 0; }
.site-footer a { color: #e6eaf1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.newsletter { background: var(--indigo); }
.newsletter__inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
    padding-block: clamp(36px, 5vw, 56px);
}
.newsletter__title { font-size: var(--step-2); color: #fff; font-weight: 800; font-variation-settings: "wdth" 75; }
.newsletter__row { display: flex; gap: 10px; }
.newsletter__row .btn { white-space: nowrap; }
.newsletter input { border-color: transparent; }
.newsletter .field-error { color: #ffb4ae; margin-top: 8px; }
.newsletter .notice--ok { background: rgba(255,255,255,.1); color: #fff; }

.site-footer__grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px;
    padding-block: clamp(48px, 6vw, 80px) 40px;
}
.site-footer__brand p { margin-top: 12px; font-size: var(--step--1); }
.site-footer__heading { font-size: var(--step--1); font-weight: 700; color: #fff; margin-bottom: 14px; letter-spacing: 0.02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul:not(.social) li + li { margin-top: 8px; }
.site-footer address { font-size: 0.95rem; line-height: 1.6; }
.site-footer address strong { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
}
.social a:hover { background: #fff; color: var(--indigo); }
.social .icon { width: 20px; height: 20px; }
.site-footer__bottom { font-size: var(--step--1); }
.site-footer__bottom p { border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px; }

/* ---------- Floating WhatsApp ---------- */

.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
    background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(18,25,51,.3);
}
.wa-float:hover { color: #fff; background: #17733e; }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- 404 ---------- */

.not-found { text-align: left; }
.not-found__code { font-size: clamp(6rem, 18vw, 12rem); color: var(--fade); line-height: .8; margin-bottom: 12px; }
.not-found__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Responsive layout changes ---------- */

@media (max-width: 960px) {
    .intro__grid, .about, .contact, .product, .newsletter__inner { grid-template-columns: 1fr; }
    .facility { grid-template-columns: 1fr; }
    .facility--flip .facility__media { order: 0; }
    .facility__media { min-height: 0; aspect-ratio: 4 / 3; }
    .product__info { position: static; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .hero__slide { min-height: 78vh; }
    .hero__content { padding-block: 96px 112px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .collections__grid { grid-template-columns: 1fr; }
    .collection-tile__label { left: 18px; right: 18px; bottom: 18px; }
    .facts { grid-template-columns: 1fr; }
    .facts__item + .facts__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .facts__item { flex-direction: row; align-items: baseline; gap: 14px; padding: 14px 0; }
    .facts dd { min-width: 3.2em; }
    .rail__controls .icon-btn { display: none; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .newsletter__row { flex-direction: column; }
    .topbar span { display: none; }
    .wordmark__main { font-size: 1.6rem; }
    .logo img { height: 44px; }
    .lang a { padding: 6px 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
    .topbar, .site-header, .site-footer, .wa-float, .hero__nav, .rail__controls { display: none !important; }
}
