/* =========================================================================
   صنایع چوب ترکمان — design system
   Warm walnut / oak / brass palette, RTL-first (logical properties only).
   ========================================================================= */

/* ---------- Font -------------------------------------------------------- */
@font-face {
    font-family: "IRANSans";
    src: url("/fonts/IranSans/IRANSansWeb-Regular.woff2") format("woff2"),
         url("/fonts/IranSans/IRANSansWeb-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSans";
    src: url("/fonts/IranSans/IRANSansWeb-Medium.woff2") format("woff2"),
         url("/fonts/IranSans/IRANSansWeb-Medium.woff") format("woff");
    font-weight: 500 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSans";
    src: url("/fonts/IranSans/IRANSansWeb-Bold.woff2") format("woff2"),
         url("/fonts/IranSans/IRANSansWeb-Bold.woff") format("woff");
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/vazirmatn/Vazirmatn-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ------------------------------------------------------ */
:root {
    --font: "IRANSans", Tahoma, system-ui, sans-serif;
    --font-heading: "Vazirmatn", "IRANSans", Tahoma, sans-serif;

    --walnut-950: #17110c;
    --walnut-900: #221912;
    --walnut-800: #33251a;
    --walnut-700: #4a3524;
    --walnut-600: #6b4c33;
    --oak-500: #a27650;
    --oak-400: #bf9369;
    --oak-300: #d8b893;
    --oak-200: #eadac3;
    --oak-100: #f4ebdf;
    --cream: #fbf8f3;
    --paper: #fffdfa;
    --brass-500: #c3893b;
    --brass-600: #a56f27;
    --brass-100: #f6e7d0;
    --sage-600: #4f6150;
    --sage-100: #e6ece4;

    --ink: #1e1915;
    --ink-soft: #463d35;
    --muted: #776b61;
    --line: #eae1d5;
    --line-strong: #d9cab6;

    --success: #3d7a4e;
    --success-soft: #e3f0e6;
    --danger: #b0442e;
    --danger-soft: #f8e4df;
    --info: #3d6787;
    --info-soft: #e2edf5;
    --warning: #a7741f;
    --warning-soft: #f8edd8;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-xs: 0 1px 2px rgb(45 28 14 / 0.06);
    --shadow-sm: 0 2px 6px -2px rgb(45 28 14 / 0.1), 0 1px 2px rgb(45 28 14 / 0.05);
    --shadow: 0 18px 40px -20px rgb(58 34 14 / 0.35);
    --shadow-lg: 0 40px 80px -32px rgb(58 34 14 / 0.45);

    --container: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --header-height: 76px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.9;
    color: var(--ink);
    background: var(--cream);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: var(--grain);
    opacity: 0.035;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brass-600); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brass-500) 70%, transparent);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection { background: var(--brass-100); color: var(--walnut-900); }

h1, h2, h3, h4 {
    margin: 0 0 0.6em;
    font-weight: 700;
    line-height: 1.65;
    color: var(--walnut-900);
    text-wrap: balance;
}

h1, h2 { font-family: var(--font-heading); font-weight: 600; }
h1 { font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.375rem); }
h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); line-height: 1.7; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    top: -100px;
    z-index: 100;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--walnut-900);
    color: var(--cream);
}
.skip-link:focus { top: 1rem; color: var(--cream); }

/* ---------- Layout ------------------------------------------------------ */
.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-block-end: clamp(2rem, 4vw, 3rem);
}
.section-head__text { max-width: 640px; }
.section-head h2 { margin-block-end: 0.35em; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-block-end: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brass-600);
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

.stack > * + * { margin-block-start: 1rem; }

/* ---------- Buttons, chips, badges ------------------------------------- */
.btn {
    --btn-bg: var(--walnut-800);
    --btn-fg: var(--cream);
    --btn-border: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.7rem 1.5rem;
    border: 1.5px solid var(--btn-border);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--brass { --btn-bg: var(--brass-500); --btn-fg: #fff; }
.btn--brass:hover { --btn-bg: var(--brass-600); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--walnut-800); --btn-border: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--paper); --btn-border: var(--walnut-700); }
.btn--light { --btn-bg: var(--cream); --btn-fg: var(--walnut-900); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--cream); --btn-border: rgb(255 255 255 / 0.35); }
.btn--outline-light:hover { --btn-bg: rgb(255 255 255 / 0.08); --btn-border: var(--cream); }
.btn--danger { --btn-bg: var(--danger); --btn-fg: #fff; }
.btn--sm { min-height: 38px; padding: 0.45rem 1rem; font-size: 0.88rem; }
.btn--sm svg { width: 17px; height: 17px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; pointer-events: none; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink-soft);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.icon-btn:hover { color: var(--walnut-900); border-color: var(--line-strong); background: var(--oak-100); }
.icon-btn svg { width: 19px; height: 19px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: var(--oak-100);
    color: var(--walnut-700);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.5;
}
.chip svg { width: 15px; height: 15px; }
.chip--glass {
    background: rgb(255 253 250 / 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--walnut-800);
    box-shadow: var(--shadow-xs);
}
.chip--dark { background: rgb(23 17 12 / 0.55); color: var(--cream); backdrop-filter: blur(6px); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--new { background: var(--info-soft); color: var(--info); }
.badge--progress { background: var(--warning-soft); color: var(--warning); }
.badge--done { background: var(--success-soft); color: var(--success); }
.badge--muted { background: #efebe6; color: var(--muted); }
.badge--draft { background: #efebe6; color: var(--muted); }
.badge--live { background: var(--success-soft); color: var(--success); }
.badge--star { background: var(--brass-100); color: var(--brass-600); }
.badge--star::before { display: none; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--brass-600);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
a:hover .link-arrow svg, .link-arrow:hover svg { transform: translateX(-4px); }

/* ---------- Header ------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    background: rgb(251 248 243 / 0.82);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-block-end: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgb(45 28 14 / 0.4); }

.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--walnut-900);
    flex: none;
}
.brand:hover { color: var(--walnut-900); }
.brand__mark { width: 56px; height: 56px; flex: none; object-fit: contain; }
.brand__text { display: grid; line-height: 1.25; }
.brand__name { font-weight: 800; font-size: 1.08rem; }

.main-nav { margin-inline-start: auto; }
.main-nav__list { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.main-nav__link {
    position: relative;
    display: block;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--ink-soft);
    transition: color 0.2s, background-color 0.2s;
}
.main-nav__link:hover { color: var(--walnut-900); background: var(--oak-100); }
.main-nav__link.active { color: var(--walnut-900); }
.main-nav__link.active::after {
    content: "";
    position: absolute;
    inset-inline: 1rem;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--brass-500);
}

.site-header__cta { flex: none; }

.nav-toggle__button { display: none; }
.nav-toggle:focus-visible + .nav-toggle__button { outline: 3px solid rgb(195 137 59 / 0.7); outline-offset: 2px; }

@media (max-width: 960px) {
    .site-header__inner { gap: 1rem; }
    .site-header__cta { display: none; }
    .nav-toggle__button {
        display: inline-grid;
        place-items: center;
        width: 46px;
        height: 46px;
        margin-inline-start: auto;
        border-radius: 14px;
        border: 1px solid var(--line-strong);
        background: var(--paper);
        cursor: pointer;
    }
    .nav-toggle__button svg { width: 22px; height: 22px; }
    .main-nav {
        position: fixed;
        inset: var(--header-height) 0 auto 0;
        margin: 0;
        padding: 1rem var(--gutter) 1.5rem;
        background: var(--cream);
        border-block-end: 1px solid var(--line);
        box-shadow: var(--shadow);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    }
    .main-nav__list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
    .main-nav__link { padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-size: 1.05rem; }
    .main-nav__link.active { background: var(--oak-100); }
    .main-nav__link.active::after { display: none; }
    .main-nav__cta { display: block; margin-top: 0.75rem; }
    .nav-toggle:checked ~ .main-nav { opacity: 1; visibility: visible; transform: none; }
}
@media (min-width: 961px) { .main-nav__cta { display: none; } }

/* ---------- Hero -------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 8vw, 6.5rem);
}
.hero::before {
    content: "";
    position: absolute;
    inset-block-start: -30%;
    inset-inline-end: -15%;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(216 184 147 / 0.45), transparent 65%);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.hero__title { margin-block-end: 0.5em; }
.hero__title em {
    position: relative;
    font-style: normal;
    color: var(--brass-600);
    white-space: nowrap;
}
.hero__title em::after {
    content: "";
    position: absolute;
    inset-inline: -4%;
    bottom: -0.12em;
    height: 0.38em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 50 4, 120 2, 197 9' fill='none' stroke='%23c3893b' stroke-width='5' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    z-index: -1;
}

.hero__lead {
    max-width: 560px;
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    color: var(--ink-soft);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-block: 2rem 2.5rem; }

.hero__perks {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hero__perks li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }
.hero__perks .perk-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--brass-600);
    flex: none;
}
.hero__perks svg { width: 19px; height: 19px; }

.hero__visual { position: relative; }
.hero__panel {
    position: relative;
    aspect-ratio: 5 / 6;
    border-radius: var(--radius-xl) var(--radius-xl) 120px var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--oak-100);
}
.hero__panel .art, .hero__panel img { width: 100%; height: 100%; object-fit: contain; }
.hero__panel--photo { aspect-ratio: 5 / 4; }

.hero__float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    border-radius: 20px;
    background: rgb(255 253 250 / 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    border: 1px solid rgb(255 255 255 / 0.7);
}
.hero__float--stats { inset-block-start: 9%; inset-inline-end: -7%; }
.hero__float--swatches { inset-block-end: 8%; inset-inline-start: -9%; flex-direction: column; align-items: start; gap: 0.5rem; }
.hero__float-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--walnut-800);
    color: var(--oak-200);
}
.hero__float-icon svg { width: 22px; height: 22px; }
.hero__float strong { display: block; font-size: 1.15rem; line-height: 1.3; color: var(--walnut-900); }
.hero__float span { font-size: 0.82rem; color: var(--muted); }

.swatches { display: flex; gap: 0.4rem; }
.swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--paper);
    box-shadow: 0 0 0 1px var(--line-strong);
}

.hero__seal {
    position: absolute;
    z-index: 2;
    inset-block-start: -36px;
    inset-inline-start: 6%;
    width: 128px;
    height: 128px;
    padding: 6px;
    border-radius: 50%;
    background: var(--cream);
    box-shadow: var(--shadow);
    color: var(--walnut-800);
}
.hero__seal svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.hero__seal::after {
    content: "";
    position: absolute;
    inset: 38%;
    border-radius: 50%;
    background: var(--brass-500);
    box-shadow: 0 0 0 6px rgb(195 137 59 / 0.2);
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { max-width: 520px; margin-inline: auto; width: 100%; }
    .hero__float--stats { inset-inline-end: -2%; }
    .hero__float--swatches { inset-inline-start: -2%; }
    .hero__perks { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* ---------- Furniture art (illustrated placeholders) --------------------- */
.art {
    --art-panel: #f6ead9;
    --art-panel-2: #ead8bf;
    --art-panel-3: #c99f71;
    --art-accent: #c3893b;
    --art-ink: #2b1d13;
    width: 100%;
    height: 100%;
    background: #4a3524;
}
.art--walnut { --art-panel: #f6ead9; --art-panel-2: #e7d2b5; --art-panel-3: #b88a5c; --art-ink: #2a1c12; }
.art--oak { --art-panel: #fffaf2; --art-panel-2: #f1e3cf; --art-panel-3: #8b5f3c; --art-ink: #3b2a1d; }
.art--ash { --art-panel: #fffdf8; --art-panel-2: #efe3d2; --art-panel-3: #6b4c33; --art-ink: #3b2a1d; }
.art--olive { --art-panel: #f4efe3; --art-panel-2: #e2dac6; --art-panel-3: #a98a5d; --art-ink: #20291c; }
.art--smoke { --art-panel: #f1ebe2; --art-panel-2: #ddd4c7; --art-panel-3: #b08b62; --art-ink: #1f2220; }

.art .p { fill: var(--art-panel); stroke: var(--art-ink); stroke-width: 2.2; stroke-linejoin: round; }
.art .p2 { fill: var(--art-panel-2); stroke: var(--art-ink); stroke-width: 2.2; stroke-linejoin: round; }
.art .p3 { fill: var(--art-panel-3); stroke: var(--art-ink); stroke-width: 2.2; stroke-linejoin: round; }
.art .ln { fill: none; stroke: var(--art-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.art .h { fill: none; stroke: var(--art-accent); stroke-width: 4; stroke-linecap: round; }
.art .dot { fill: var(--art-ink); }
.art .accent { fill: var(--art-accent); }
.art .mirror { fill: url(#art-mirror); stroke: var(--art-ink); stroke-width: 2.2; }
.art .screen { fill: url(#art-screen); stroke: var(--art-ink); stroke-width: 2.2; }
.art .shine { fill: none; stroke: rgb(255 255 255 / 0.75); stroke-width: 3; stroke-linecap: round; }
.art .leaf { fill: #6f8a5b; stroke: var(--art-ink); stroke-width: 1.8; }
.art .floor-shadow { fill: rgb(0 0 0 / 0.22); }
.art .floor { stroke: rgb(255 255 255 / 0.18); stroke-width: 2; }

/* ---------- Cards: categories ------------------------------------------- */
.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); color: inherit; }
.category-card__art { aspect-ratio: 5 / 4; overflow: hidden; background: var(--oak-100); }
.category-card__art .art, .category-card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.category-card:hover .category-card__art .art, .category-card:hover .category-card__art img { transform: scale(1.05); }
.category-card__body { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem 1.25rem; }
.category-card__name { margin: 0; font-size: 1.08rem; }
.category-card__count { font-size: 0.85rem; color: var(--muted); }
.category-card__go {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--oak-100);
    color: var(--walnut-800);
    flex: none;
    transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.category-card__go svg { width: 18px; height: 18px; }
.category-card:hover .category-card__go { background: var(--walnut-800); color: var(--cream); transform: rotate(-45deg); }

/* ---------- Cards: products --------------------------------------------- */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card__media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--oak-100); }
.product-card__media img, .product-card__media .art { width: 100%; height: 100%; object-fit: contain; }
.product-card__media .art { transition: transform 0.7s var(--ease); }
.product-card:hover .product-card__media .art { transform: scale(1.06); }
.product-card__media .chip { position: absolute; inset-block-start: 0.85rem; inset-inline-start: 0.85rem; }
.product-card__image-count, .product-card__video-badge {
    position: absolute;
    inset-block-end: 0.85rem;
    inset-inline-end: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgb(255 253 250 / 0.95);
    color: var(--walnut-900);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
}
.product-card__image-count svg, .product-card__video-badge svg { width: 16px; height: 16px; }
.product-card__video-badge { inset-inline-end: auto; inset-inline-start: 0.85rem; background: var(--walnut-900); border-color: transparent; color: var(--paper); }
.product-media { min-width: 0; }
.product-media > .gallery { position: static; }
.product-media--sticky { position: sticky; top: calc(var(--header-height) + 1.5rem); }
.product-videos { margin-top: 1.5rem; }
.product-videos > h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 1.15rem; }
.product-videos > h2 > svg { width: 21px; height: 21px; flex: 0 0 21px; color: var(--brass-600); }
.product-videos > h2 > span { margin-inline-start: auto; font-family: inherit; font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.product-video { margin: 0 0 1rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.product-video video { width: 100%; max-height: 520px; aspect-ratio: 16 / 10; background: #191613; object-fit: contain; }
.product-video figcaption { padding: 0.65rem 1rem; font-size: 0.88rem; color: var(--muted); }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.3rem; }
.product-card__title { margin: 0 0 0.4rem; font-size: 1.08rem; line-height: 1.6; }
.product-card__title a::after { content: ""; position: absolute; inset: 0; }
.product-card__summary {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__footer { margin-top: auto; }

/* ---------- Cards: projects --------------------------------------------- */
.project-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 4.6;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--cream);
    isolation: isolate;
    box-shadow: var(--shadow-sm);
}
.project-card:hover { color: var(--cream); }
.project-card--wide { aspect-ratio: 16 / 10; }
.project-card img, .project-card .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s var(--ease); }
.project-card:hover img, .project-card:hover .art { transform: scale(1.05); }
.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgb(23 17 12 / 0.92) 0%, rgb(23 17 12 / 0.45) 38%, transparent 70%);
}
.project-card__body { position: absolute; inset-inline: 0; bottom: 0; padding: 1.5rem; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-block-end: 0.75rem; }
.project-card__title { margin: 0 0 0.3rem; color: #fff; font-size: 1.25rem; }
.project-card__summary { margin: 0; font-size: 0.9rem; color: rgb(251 248 243 / 0.8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Process ----------------------------------------------------- */
.process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.process::before {
    content: "";
    position: absolute;
    inset-inline: 12%;
    top: 34px;
    border-top: 2px dashed var(--line-strong);
}
.process__step { position: relative; text-align: center; padding-inline: 0.5rem; }
.process__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    border-radius: 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--brass-600);
    box-shadow: var(--shadow-sm);
}
.process__icon svg { width: 30px; height: 30px; }
.process__num {
    position: absolute;
    inset-block-start: -10px;
    inset-inline-end: -10px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--walnut-800);
    color: var(--cream);
    font-size: 0.8rem;
    font-weight: 800;
}
.process__step h3 { margin-block-end: 0.4rem; }
.process__step p { margin: 0; font-size: 0.93rem; color: var(--muted); }
@media (max-width: 860px) {
    .process { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
    .process::before { display: none; }
}
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* ---------- Showcase (dark materials band) ------------------------------ */
.showcase {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: radial-gradient(120% 140% at 85% 0%, #4a3524 0%, var(--walnut-900) 55%, var(--walnut-950) 100%);
    color: var(--oak-200);
    padding: clamp(2rem, 6vw, 4.5rem);
    isolation: isolate;
}
.showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--grain);
    opacity: 0.12;
    mix-blend-mode: overlay;
}
.showcase__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.showcase h2 { color: var(--cream); }
.showcase p { color: rgb(234 218 195 / 0.8); }
.showcase .eyebrow { color: var(--oak-300); }
.materials { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.materials li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    background: rgb(255 255 255 / 0.05);
    border: 1px solid rgb(255 255 255 / 0.08);
    font-weight: 600;
    color: var(--cream);
}
.materials .swatch { width: 30px; height: 30px; border-color: rgb(255 255 255 / 0.25); box-shadow: none; flex: none; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: rgb(255 255 255 / 0.04);
    border: 1px solid rgb(255 255 255 / 0.08);
}
.stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2; color: var(--oak-300); font-weight: 800; }
.stat span { font-size: 0.92rem; color: rgb(234 218 195 / 0.75); }
@media (max-width: 860px) {
    .showcase__grid { grid-template-columns: 1fr; }
    .materials { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------------------------------------------------- */
.cta-band {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: var(--radius-xl);
    background: linear-gradient(120deg, var(--brass-600), #8c5a1f 60%, var(--walnut-700));
    color: var(--cream);
    isolation: isolate;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--grain);
    opacity: 0.18;
    mix-blend-mode: overlay;
}
.cta-band::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-inline-end: -80px;
    inset-block-start: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 50px solid rgb(255 255 255 / 0.07);
}
.cta-band h2 { color: #fff; margin-block-end: 0.3em; }
.cta-band p { margin: 0; color: rgb(255 248 238 / 0.85); max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Page hero & breadcrumbs ------------------------------------- */
.page-hero {
    position: relative;
    padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1.75rem, 3vw, 2.5rem);
    background:
        radial-gradient(60% 120% at 100% 0%, rgb(216 184 147 / 0.35), transparent 60%),
        linear-gradient(to bottom, var(--oak-100), var(--cream));
    border-block-end: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.6; margin-block-end: 0.6rem; }
.page-hero p { max-width: 66ch; margin: 0; color: var(--muted); font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem); line-height: 1.95; }

.breadcrumbs { margin-block-end: 0.85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 0.4rem; color: var(--line-strong); }
.breadcrumbs a:hover { color: var(--brass-600); }
.breadcrumbs [aria-current] { color: var(--ink-soft); font-weight: 600; }

/* ---------- Filters ----------------------------------------------------- */
.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-block-end: 2rem;
}
.filter-pills { display: flex; gap: 0.5rem; overflow-x: auto; padding-block: 0.25rem; scrollbar-width: none; }
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill {
    flex: none;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: all 0.2s;
}
.filter-pill:hover { border-color: var(--walnut-700); color: var(--walnut-900); }
.filter-pill.is-active { background: var(--walnut-800); border-color: var(--walnut-800); color: var(--cream); }
.filter-pill small { opacity: 0.7; font-weight: 500; }

.search-box { position: relative; flex: 0 1 320px; }
.search-box input {
    width: 100%;
    min-height: 46px;
    padding: 0.6rem 2.8rem 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
}
.search-box input:focus { outline: none; border-color: var(--brass-500); box-shadow: 0 0 0 4px rgb(195 137 59 / 0.15); }
.search-box button {
    position: absolute;
    inset-block: 4px;
    inset-inline-start: 4px;
    display: grid;
    place-items: center;
    width: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--walnut-800);
    color: var(--cream);
}
.search-box button svg { width: 18px; height: 18px; }

.result-note { margin-block-end: 1.25rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- Pager ------------------------------------------------------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 0.4rem; margin-block-start: 3rem; }
.pager a, .pager span {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding-inline: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-weight: 600;
}
.pager a:hover { border-color: var(--walnut-700); }
.pager .is-current { background: var(--walnut-800); border-color: var(--walnut-800); color: var(--cream); }
.pager .is-disabled { opacity: 0.4; }
.pager svg { width: 18px; height: 18px; }

/* ---------- Empty state ------------------------------------------------- */
.empty-state {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--paper);
    text-align: center;
    color: var(--muted);
}
.empty-state__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--oak-100); color: var(--oak-500); }
.empty-state__icon svg { width: 30px; height: 30px; }
.empty-state h3 { margin: 0.5rem 0 0; color: var(--walnut-800); }
.empty-state p { margin: 0 0 0.75rem; max-width: 420px; }

/* ---------- Product details --------------------------------------------- */
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } }

.gallery { position: sticky; top: calc(var(--header-height) + 1.5rem); }
.gallery__stage { position: relative; }
.gallery__main {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--oak-100);
    box-shadow: var(--shadow);
}
.gallery__main img, .gallery__main .art { width: 100%; height: 100%; object-fit: contain; }
.gallery__zoom { position: absolute; inset-block-end: 1rem; inset-inline-end: 1rem; }
.gallery__nav, .lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgb(255 252 246 / 0.95);
    color: var(--walnut-900);
    box-shadow: var(--shadow);
    transform: translateY(-50%);
    transition: background 0.2s, box-shadow 0.2s;
}
.gallery__nav:hover, .lightbox__nav:hover { background: var(--paper); box-shadow: var(--shadow-lg); }
.gallery__nav svg, .lightbox__nav svg { width: 24px; height: 24px; }
.gallery__nav--left, .lightbox__nav--left { left: 0.75rem; }
.gallery__nav--right, .lightbox__nav--right { right: 0.75rem; }
.gallery__count, .lightbox__count {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    padding: 0.3rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgb(255 252 246 / 0.95);
    color: var(--walnut-900);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(-50%);
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 0.6rem; margin-top: 0.85rem; }
.gallery__thumb {
    padding: 0;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--oak-100);
    opacity: 0.75;
    transition: opacity 0.2s, border-color 0.2s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { border-color: var(--brass-500); opacity: 1; }

.product-info__summary { font-size: 1.12rem; color: var(--ink-soft); }
.product-info__toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.product-share { position: relative; max-width: 100%; }
.product-share > summary { list-style: none; min-height: 44px; }
.product-share > summary::-webkit-details-marker { display: none; }
.product-share[open] > summary { background: var(--oak-100); border-color: var(--oak-400); }
.product-share__panel { position: absolute; z-index: 20; inset-inline-end: 0; top: calc(100% + 0.6rem); width: min(330px, calc(100vw - 2 * var(--gutter))); padding: 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.product-share__panel > p { font-size: 0.85rem; color: var(--ink-soft); margin-block-end: 0.8rem; }
.product-share__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-end: 0.85rem; }
.product-share__actions > .btn { flex: 1 1 auto; min-height: 44px; }
.product-share__link { display: block; margin-block-end: 0.65rem; }
.product-share__link input { width: 100%; min-width: 0; min-height: 44px; padding: 0.65rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--cream); font-family: var(--font); font-size: 0.78rem; text-align: left; }
.product-share__panel > .btn { min-height: 44px; }
.product-share__panel .product-share__status { margin: 0.6rem 0 0; min-height: 1.6em; font-size: 0.8rem; color: var(--sage-600); }
.product-share [hidden] { display: none; }
.info-block { padding-block: 1.5rem; border-block-start: 1px solid var(--line); }
.info-block h2 { font-size: 1rem; margin-block-end: 0.85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.5rem; }
.info-block h2 svg { width: 20px; height: 20px; color: var(--brass-600); }

.color-options { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.color-option {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.9rem 0.35rem 0.4rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-size: 0.9rem;
    font-weight: 600;
}
.color-option .swatch { width: 26px; height: 26px; }

.dimensions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.dimension { padding: 0.9rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-align: center; }
.dimension span { display: block; font-size: 0.8rem; color: var(--muted); }
.dimension strong { font-size: 1.2rem; color: var(--walnut-900); }
.dimension small { font-size: 0.78rem; color: var(--muted); margin-inline-start: 0.2rem; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table tr + tr { border-top: 1px dashed var(--line-strong); }
.spec-table th { width: 38%; padding: 0.75rem 0; text-align: start; font-weight: 600; color: var(--muted); vertical-align: top; }
.spec-table td { padding: 0.75rem 0; color: var(--ink); }

.inquiry-box {
    margin-block-start: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--oak-100), var(--paper));
    border: 1px solid var(--line);
}
.inquiry-box p { margin-block-end: 1rem; color: var(--ink-soft); font-size: 0.95rem; }
.inquiry-box__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.prose { font-size: 1.04rem; color: var(--ink-soft); max-width: 72ch; }
.prose p { margin-block-end: 1.1em; }

/* ---------- Lightbox ---------------------------------------------------- */
.lightbox {
    width: min(96vw, 1100px);
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--oak-100);
    overflow: hidden;
}
.lightbox::backdrop { background: rgb(15 10 6 / 0.82); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; }
.lightbox__close { position: absolute; z-index: 2; inset-block-start: 0.75rem; inset-inline-end: 0.75rem; }
.lightbox__nav[hidden], .lightbox__count[hidden] { display: none; }

/* ---------- Project details --------------------------------------------- */
.gallery--project { position: static; }
.gallery--project .gallery__main { aspect-ratio: 21 / 9; }
.gallery--project .gallery__thumbs { grid-template-columns: repeat(auto-fill, 96px); }
@media (max-width: 700px) { .gallery--project .gallery__main { aspect-ratio: 4 / 3; } }
.facts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.fact { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); font-size: 0.92rem; }
.fact svg { width: 19px; height: 19px; color: var(--brass-600); }
.fact span { color: var(--muted); }

/* ---------- Forms ------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.4rem; align-content: start; }
.field > label, .field-label { font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
.field .hint { font-size: 0.8rem; color: var(--muted); }
.req { color: var(--danger); margin-inline-start: 0.15rem; }

.input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]), .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.9; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
    outline: none;
    border-color: var(--brass-500);
    box-shadow: 0 0 0 4px rgb(195 137 59 / 0.15);
}
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: var(--danger); }
.field input[dir="ltr"] { text-align: left; }
.validation-message { font-size: 0.82rem; color: var(--danger); }
.validation-errors { margin: 0 0 1rem; padding: 0.85rem 1.2rem; border-radius: var(--radius); background: var(--danger-soft); color: var(--danger); font-size: 0.9rem; list-style-position: inside; }

.check { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; accent-color: var(--brass-500); }

.alert {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    line-height: 1.8;
}
.alert svg { width: 22px; height: 22px; flex: none; margin-top: 0.15rem; }
.alert--success { background: var(--success-soft); color: var(--success); }
.alert--error { background: var(--danger-soft); color: var(--danger); }
.alert--info { background: var(--info-soft); color: var(--info); }
.alert--warning { background: var(--warning-soft); color: var(--warning); }

.honeypot { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contact ----------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.panel { padding: clamp(1.4rem, 3vw, 2.25rem); border-radius: var(--radius-xl); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-list { display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
.contact-item { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 1rem; min-height: 88px; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s var(--ease); }
a.contact-item:hover { border-color: var(--brass-500); transform: translateX(-3px); color: inherit; }
.contact-item__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--walnut-800); color: var(--oak-200); }
.contact-item__icon svg { display: block; width: 21px; height: 21px; }
.contact-item__content { min-width: 0; text-align: start; }
.contact-item__content > span { display: block; margin-block-end: 0.2rem; font-size: 0.8rem; color: var(--muted); }
.contact-item__content > strong { display: block; font-size: 1rem; line-height: 1.85; color: var(--walnut-900); overflow-wrap: anywhere; }
.contact-item__content > strong[dir="ltr"] { width: fit-content; max-width: 100%; unicode-bidi: isolate; }
.location-card { background: linear-gradient(145deg, var(--oak-100), var(--paper)); }
.location-card__pin { display: grid; place-items: center; width: 56px; height: 56px; margin-block-end: 1rem; border-radius: var(--radius); background: var(--walnut-800); color: var(--oak-200); }
.location-card__pin svg { width: 28px; height: 28px; }
.location-card h2 { font-size: 1.35rem; }
.location-card p { color: var(--ink-soft); }
.location-map-shell { position: relative; margin-block: 1.25rem; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--oak-100); }
.location-map { height: 310px; width: 100%; direction: ltr; font-family: var(--font); }
.location-map__fallback { display: grid; place-items: center; height: 100%; padding: 1rem; margin: 0; text-align: center; direction: rtl; }
.location-map.is-ready .location-map__fallback:not([hidden]) { position: absolute; inset: 0; z-index: 600; background: rgb(255 253 250 / 0.94); }
.location-map__fallback[hidden] { display: none; }
.location-map__badge { position: absolute; z-index: 500; inset-block-start: 12px; inset-inline-end: 12px; max-width: calc(100% - 80px); padding: 0.3rem 0.65rem; border-radius: 8px; background: var(--paper); color: var(--walnut-900); box-shadow: var(--shadow-sm); font-size: 0.75rem; pointer-events: none; }
.location-map .leaflet-popup-content { direction: rtl; text-align: start; font-family: var(--font); line-height: 1.9; }
.location-map .leaflet-popup-content strong { display: block; }
.location-map .leaflet-tooltip { direction: rtl; font-family: var(--font); }
.location-map .leaflet-control-attribution { font-family: sans-serif; font-size: 10px; }
.location-map .leaflet-control-attribution a { color: #27618b; text-decoration: underline; }
.location-map__marker { border: 0; background: transparent; }
.location-map__marker span { display: block; width: 30px; height: 30px; border: 4px solid var(--paper); border-radius: 50% 50% 50% 0; background: var(--walnut-800); box-shadow: var(--shadow-sm); transform: rotate(-45deg); }
.location-map__marker span::after { content: ""; position: absolute; width: 8px; height: 8px; inset: 7px; border-radius: 50%; background: var(--oak-200); }
@media (max-width: 480px) { .contact-item { gap: 0.8rem; padding: 0.9rem; } .location-map { height: 270px; } .location-card__actions > .btn { flex: 1 1 auto; } }
.location-card__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.location-card .location-card__note { margin: 1rem 0 0; font-size: 0.82rem; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- About ------------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.25rem; }
.value-card { padding: 1.75rem; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.value-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-block-end: 1.1rem; border-radius: 16px; background: var(--brass-100); color: var(--brass-600); }
.value-card__icon svg { width: 25px; height: 25px; }
.value-card h3 { margin-block-end: 0.4rem; }
.value-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-grid__art { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1rem, 2.5vw, 1.5rem);
}
.team-card {
    flex: 1 1 210px;
    min-width: min(100%, 210px);
    max-width: 280px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-xs);
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s var(--ease);
}
.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}
.team-card__portrait {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--oak-100);
}
.team-card__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease);
}
.team-card:hover .team-card__portrait img { transform: scale(1.035); }
.team-card__role {
    position: absolute;
    inset-inline: 0.85rem auto;
    inset-block-end: 0.85rem;
    max-width: calc(100% - 1.7rem);
    padding: 0.35rem 0.75rem;
    border: 1px solid rgb(255 255 255 / 0.3);
    border-radius: 999px;
    background: rgb(23 17 12 / 0.78);
    color: var(--cream);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.6;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.team-card__body { padding: 1.1rem 1.2rem 1.25rem; }
.team-card__body h3 { margin-block-end: 0.8rem; font-size: 1.08rem; }
.team-card__phone {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-block-start: 0.8rem;
    border-block-start: 1px solid var(--line);
    color: var(--ink-soft);
}
.team-card__phone:hover { color: var(--brass-600); }
.team-card__phone-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 11px;
    background: var(--brass-100);
    color: var(--brass-600);
}
.team-card__phone-icon svg { width: 18px; height: 18px; }
.team-card__phone small { display: block; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.team-card__phone strong { display: block; color: inherit; font-size: 0.92rem; font-weight: 700; unicode-bidi: isolate; }

@media (max-width: 520px) {
    .team-card { max-width: 360px; }
}

/* ---------- Footer ------------------------------------------------------ */
.site-footer {
    position: relative;
    margin-top: clamp(3rem, 8vw, 6rem);
    padding-block: clamp(3rem, 7vw, 5rem) 1.5rem;
    background: var(--walnut-950);
    color: rgb(234 218 195 / 0.78);
    isolation: isolate;
    overflow: hidden;
}
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: 0.08; }
.site-footer a:hover { color: var(--oak-300); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--cream); margin-block-end: 1rem; }
.site-footer h3 { font-size: 1rem; color: var(--cream); margin-block-end: 1rem; }
.footer-links { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.footer-contact { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: start; }
.footer-contact svg { width: 19px; height: 19px; flex: none; margin-top: 0.3rem; color: var(--oak-400); }
.social-btn {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    border: 1px solid rgb(255 255 255 / 0.12);
    color: var(--oak-200);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.social-btn:hover { background: var(--brass-500); border-color: var(--brass-500); color: #fff !important; }
.social-btn svg { width: 20px; height: 20px; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: clamp(2rem, 5vw, 3.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.08);
    font-size: 0.85rem;
    color: rgb(234 218 195 / 0.55);
}
.footer-bottom .ltr { direction: ltr; letter-spacing: 0.08em; }

/* ---------- Reveal-on-scroll (armed by site.js only) -------------------- */
.reveal-armed { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-armed.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .reveal-armed { opacity: 1; transform: none; }
}

/* ---------- Not found / error ------------------------------------------- */
.status-page { display: grid; place-items: center; min-height: 60vh; text-align: center; padding-block: 4rem; }
.status-page__code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; line-height: 1; color: var(--oak-300); }
.status-page p { color: var(--muted); max-width: 460px; margin-inline: auto; }

/* ---------- Blazor UI --------------------------------------------------- */
#blazor-error-ui {
    position: fixed;
    inset-inline: 1rem;
    bottom: 1rem;
    z-index: 1000;
    display: none;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius);
    background: var(--walnut-900);
    color: var(--cream);
    box-shadow: var(--shadow-lg);
}
#blazor-error-ui .reload { color: var(--oak-300); text-decoration: underline; margin-inline: 0.5rem; }
#blazor-error-ui .dismiss { cursor: pointer; float: left; }
