/* ETCH public site styles. Hand-written, no framework: tokens, base, header, hero, cards, filters, dialog, forms, footer. */
/* ===== Tokens ===== */
:root {
    --brand: #194447;
    --brand-2: #0f6b6f;
    --accent: #f5a524;
    --accent-ink: #2a1b00;
    --bg: #f6f8f8;
    --surface: #ffffff;
    --ink: #10201f;
    --muted: #55696a;
    --line: #dbe4e4;
    --danger: #b42318;
    --ok: #067647;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(16, 32, 31, .06), 0 8px 24px rgba(16, 32, 31, .08);
    --max: 1120px;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b1514; --surface: #121f1e; --ink: #e9f1f0; --muted: #9db3b2; --line: #243938;
        --brand: #7fd1d4; --brand-2: #4fb7bb; --danger: #ff8a80; --ok: #6ce0a6;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    }
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55;
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(40px, 7vw, 80px); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .75rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: .04em; line-height: 1.05; }
.brand small { display: block; font-weight: 600; letter-spacing: 0; font-size: .72rem; color: var(--muted); }
.mark { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.nav a[aria-current="page"] { color: var(--brand-2); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.nav .btn { margin-left: 6px; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; background: var(--accent); color: var(--accent-ink); transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn:hover { box-shadow: 0 6px 18px rgba(245, 165, 36, .35); }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: .92rem; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { box-shadow: none; background: color-mix(in srgb, currentColor 10%, transparent); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ===== Hero ===== */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(245, 165, 36, .22), transparent 60%), linear-gradient(160deg, #0d2c2f, #194447 55%, #0f6b6f); color: #fff; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: #d3e6e6; max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero .btn-ghost { color: #fff; }
.hero-photo { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: rgba(255, 255, 255, .08); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.search-box { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; max-width: 560px; margin: 22px 0 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; padding: 0 16px; color: #10201f; }
.search-box input:focus-visible { outline: none; }
.search-box:focus-within { outline: 3px solid var(--accent); }
.hint { color: #b9d4d4; font-size: .88rem; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } }

/* ===== Trust strip ===== */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 20px; font-weight: 600; font-size: .95rem; }
.trust li::before { content: "\2713"; color: var(--ok); font-weight: 800; margin-right: 8px; }

/* ===== Steps ===== */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; padding: 0; list-style: none; margin: 24px 0 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--surface); font-weight: 800; margin-bottom: 12px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }

/* ===== Product cards ===== */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s ease; }
.card:hover { transform: translateY(-3px); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-actions { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(135deg, #4f46e5, #818cf8); position: relative; overflow: hidden; }
.thumb[data-material="Brass"] { background: linear-gradient(135deg, #9a6a14, #f3c258); }
.thumb[data-material="Stainless Steel"] { background: linear-gradient(135deg, #5b6b7d, #cfd8e3); }
.thumb[data-material="Panaflex"] { background: linear-gradient(135deg, #0f766e, #5eead4); }
.thumb[data-material="Vinyl"] { background: linear-gradient(135deg, #be185d, #f9a8d4); }
.thumb::after { content: ""; color: rgba(255, 255, 255, .95); border: 4px solid rgba(255, 255, 255, .92); }
.thumb[data-type="letters"]::after { content: "Aa"; border: 0; font-size: 3rem; font-weight: 800; letter-spacing: -.04em; text-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.thumb[data-type="marker"]::after { width: 52%; height: 46%; border-radius: 10px; }
.thumb[data-type="signboard"]::after { width: 70%; height: 50%; border-radius: 6px; border-width: 6px; }
.thumb[data-type="sticker"]::after { width: 34%; aspect-ratio: 1; border-radius: 50%; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.tags li { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-2); }

/* ===== Filters ===== */
.toolbar { display: grid; gap: 14px; margin-bottom: 18px; }
.search-field { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 0 18px; min-height: 54px; }
.search-field:focus-within { border-color: var(--brand-2); }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); min-height: 50px; }
.search-field input:focus-visible { outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.chip-label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.result-count { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.empty { text-align: center; padding: 48px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ===== Dialog ===== */
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
dialog::backdrop { background: rgba(5, 15, 15, .6); backdrop-filter: blur(3px); }
.dlg-body { padding: 20px 22px 24px; display: grid; gap: 12px; }
.dlg-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.dlg-close { min-width: 44px; min-height: 44px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.dlg-list { margin: 0; padding-left: 1.2em; color: var(--muted); }
@media (max-width: 560px) { dialog { margin: auto auto 0; width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; } }

/* ===== About + FAQ ===== */
.split { display: grid; gap: 28px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); box-shadow: var(--shadow); }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; min-height: 52px; }
.faq details p { color: var(--muted); }
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: var(--radius); padding: clamp(24px, 5vw, 44px); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0; }

/* ===== Forms ===== */
.form { display: grid; gap: 18px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; background: var(--surface); display: grid; gap: 14px; }
.form legend { font-weight: 800; padding: 0 8px; }
.row { display: grid; gap: 14px; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .88rem; font-weight: 600; margin: 6px 0 0; }
.help { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.banner { border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; }
.banner.error { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.banner.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.preview { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.success { text-align: center; padding: 36px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.success .ref { font: 800 1.4rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: var(--brand-2); }
.page-head { padding-block: 36px 8px; }

/* ===== Footer ===== */
.site-footer { background: #0c2224; color: #cfe3e3; padding-block: 40px 28px; margin-top: 40px; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fine { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 18px; font-size: .85rem; color: #9db8b8; }

/* ===== Small screens + motion + print ===== */
@media (max-width: 560px) { .nav .hide-sm { display: none; } .brand small { display: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .hero-actions, .cta-band { display: none; } body { background: #fff; color: #000; } }
