/* Street Green – public site
   Colours are CSS variables so the brand can be adjusted in one place. */

:root {
    --sg-primary: #123C2D;
    --sg-primary-700: #0c2b20;
    --sg-primary-600: #184c39;
    --sg-secondary: #75B843;
    --sg-secondary-soft: #e7f3dc;
    --sg-bg: #F8FAF7;
    --sg-heading: #17221D;
    --sg-text: #33413a;
    --sg-muted: #5b6b62;
    --sg-card: #FFFFFF;
    --sg-line: #e1e8e2;
    --sg-line-strong: #c9d5cc;
    --sg-warning-bg: #fff6e0;
    --sg-warning-line: #f0d68a;
    --sg-focus: #2f7d18;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(18, 60, 45, .06);
    --shadow: 0 1px 2px rgba(18, 60, 45, .05), 0 8px 24px -12px rgba(18, 60, 45, .18);
    --shadow-lg: 0 24px 48px -24px rgba(12, 43, 32, .35);

    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Inter Tight", var(--font);
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --step--1: clamp(.83rem, .8rem + .1vw, .9rem);
    --step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
    --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
    --step-2: clamp(1.4rem, 1.25rem + .7vw, 1.8rem);
    --step-3: clamp(1.9rem, 1.55rem + 1.6vw, 2.9rem);
    --step-4: clamp(2.2rem, 1.7rem + 2.6vw, 3.7rem);

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--step-0);
    line-height: 1.6;
    color: var(--sg-text);
    background: var(--sg-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3 { color: var(--sg-heading); font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: var(--step-3); font-weight: 750; }
h2 { font-size: var(--step-2); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--sg-primary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--sg-primary-600); }
code { font-family: var(--mono); font-size: .9em; }

:focus-visible { outline: 3px solid var(--sg-focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.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;
}
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 100;
    background: var(--sg-primary); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 44px; padding: .6rem 1.15rem;
    font: 600 .95rem/1.2 var(--font); letter-spacing: -.005em;
    border-radius: 999px; border: 1.5px solid transparent;
    text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sg-primary); color: #fff; }
.btn-primary:hover { background: var(--sg-primary-600); color: #fff; }
.btn-accent { background: var(--sg-secondary); color: var(--sg-primary-700); }
.btn-accent:hover { background: #86c556; color: var(--sg-primary-700); }
.btn-outline { background: var(--sg-card); color: var(--sg-primary); border-color: var(--sg-line-strong); }
.btn-outline:hover { border-color: var(--sg-primary); color: var(--sg-primary); }
.btn-small { min-height: 36px; padding: .4rem .85rem; font-size: .875rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(248, 250, 247, .88);
    -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--sg-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--sg-primary); }
.brand-logo { display: block; height: 60px; width: auto; filter: drop-shadow(0 1px 2px rgba(12, 43, 32, .18)); }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem .9rem; border-radius: 999px; text-decoration: none;
    color: var(--sg-heading); font-weight: 550; font-size: .95rem;
}
.site-nav a:hover { background: var(--sg-secondary-soft); color: var(--sg-primary); }
.site-nav .nav-search { border: 1.5px solid var(--sg-line-strong); margin-left: .35rem; }
.nav-toggle {
    display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 1.5px solid var(--sg-line-strong); border-radius: 12px; background: var(--sg-card); color: var(--sg-heading); cursor: pointer;
}

@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: .25rem;
        padding: .75rem var(--gutter) 1rem; background: var(--sg-bg); border-bottom: 1px solid var(--sg-line);
        box-shadow: var(--shadow);
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: .8rem 1rem; }
    .site-nav .nav-search { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(117, 184, 67, .35), transparent 60%),
        radial-gradient(700px 380px at -10% 110%, rgba(117, 184, 67, .18), transparent 60%),
        var(--sg-primary);
    color: #e9f2ec;
    padding: clamp(3rem, 8vw, 2.5rem) 0 clamp(5.5rem, 10vw, 8rem);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 860px) auto; align-items: center; justify-content: space-between; gap: 2rem; }
.hero-art img { height: clamp(260px, 26vw, 360px); width: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35));  }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; } .hero-art { display: none; } }
.hero h1 { color: #fff; font-size: var(--step-4); font-weight: 800; letter-spacing: -.035em; margin-bottom: .35em; }
.hero-lead { font-size: var(--step-1); color: #cfe0d5; max-width: 38em; margin-bottom: 2rem; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sg-secondary);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-dark { color: #3f7f1f; }

.search {
    display: flex; align-items: center; gap: .5rem;
    background: #fff; border-radius: 999px; padding: .4rem .4rem .4rem 1.1rem;
    box-shadow: var(--shadow-lg); max-width: 680px;
}
.search-icon { color: var(--sg-muted); display: inline-flex; }
.search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    font: 500 1.05rem/1.4 var(--font); color: var(--sg-heading); padding: .7rem .25rem;
}
.search input::placeholder { color: #8a988f; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search:focus-within { box-shadow: 0 0 0 3px var(--sg-secondary), var(--shadow-lg); }
.search .btn { min-height: 48px; padding-inline: 1.4rem; }

.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.5rem 0 0; }
.hero-meta li {
    font-size: .875rem; color: #d7e6dc; padding: .35rem .8rem; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05);
}
.hero-meta strong { color: #fff; font-weight: 750; }

@media (max-width: 520px) {
    .search { flex-wrap: wrap; border-radius: var(--radius); padding: .5rem; }
    .search-icon { display: none; }
    .search input { padding: .6rem .5rem; flex-basis: 100%; }
    .search .btn { width: 100%; }
}

/* ---------- Manufacturer strip ---------- */
.maker { position: relative; z-index: 2; margin-top: -3.5rem; }
.maker-card {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0;
    background: var(--sg-card); border: 1px solid var(--sg-line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    overflow: hidden;
}
.maker-item { display: flex; align-items: center; gap: .9rem; padding: 1.25rem 1.4rem; min-width: 0; border-right: 1px solid var(--sg-line); }
.maker-item:last-child { border-right: 0; }
.maker-icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border-radius: 12px; background: var(--sg-secondary-soft); color: var(--sg-primary);
}
.maker-label { display: block; font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--sg-muted); }
.maker-value { display: block; font-weight: 650; color: var(--sg-heading); overflow-wrap: anywhere; text-decoration: none; }
a.maker-value:hover { color: var(--sg-primary); text-decoration: underline; }
@media (max-width: 720px) {
    .maker-item { border-right: 0; border-bottom: 1px solid var(--sg-line); }
    .maker-item:last-child { border-bottom: 0; }
}

/* ---------- Directory ---------- */
.directory { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.directory-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.directory-head h2 { margin-bottom: .15em; }
.directory-count { color: var(--sg-muted); margin: 0; }
.sort { display: flex; align-items: center; gap: .5rem; }
.sort label { font-size: .9rem; color: var(--sg-muted); font-weight: 600; }
select {
    font: 500 .95rem var(--font); color: var(--sg-heading);
    min-height: 44px; padding: .5rem 2.25rem .5rem .9rem; border-radius: 12px;
    border: 1.5px solid var(--sg-line-strong); background: var(--sg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23123C2D' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .9rem center;
    -webkit-appearance: none; appearance: none; cursor: pointer;
}

.product-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .product-grid { grid-template-columns: 1fr; } }

.product-card {
    position: relative; display: flex; flex-direction: column; gap: .9rem; height: 100%;
    padding: 1.25rem; border-radius: var(--radius); background: var(--sg-card);
    border: 1px solid var(--sg-line); box-shadow: var(--shadow-sm);
    text-decoration: none; color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.product-card:hover { border-color: var(--sg-secondary); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.product-card-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
    background: var(--sg-secondary-soft); color: var(--sg-primary);
}
.product-card-body { flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.product-card-name { font-family: var(--font-display); font-weight: 680; font-size: 1.05rem; line-height: 1.3; color: var(--sg-heading); overflow-wrap: anywhere; }
.product-card-meta { font-size: .875rem; color: var(--sg-muted); }
.product-card-cta {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .9rem; font-weight: 650; color: var(--sg-primary);
    padding-top: .85rem; border-top: 1px dashed var(--sg-line);
}
.product-card:hover .product-card-cta .icon { transform: translateX(3px); }
.product-card-cta .icon { transition: transform .15s; }

.is-loading .product-grid { opacity: .55; transition: opacity .2s; }

.empty-state {
    text-align: center; padding: 3rem 1.5rem; border: 1.5px dashed var(--sg-line-strong); border-radius: var(--radius-lg);
    background: var(--sg-card); color: var(--sg-muted);
}
.empty-state .icon { color: var(--sg-secondary); margin: 0 auto .75rem; display: block; }
.empty-state h3 { margin-bottom: .35em; }
.empty-state p { max-width: 34em; margin: 0 auto 1.25rem; }
.search-error {
    margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm);
    background: var(--sg-warning-bg); border: 1px solid var(--sg-warning-line); color: #5c4200;
}

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: 2rem; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 .85rem;
    border-radius: 12px; border: 1.5px solid var(--sg-line); background: var(--sg-card);
    text-decoration: none; font-weight: 600; color: var(--sg-heading);
}
a.page-link:hover { border-color: var(--sg-primary); color: var(--sg-primary); }
.page-link.is-current { background: var(--sg-primary); border-color: var(--sg-primary); color: #fff; }
.page-gap { align-self: center; color: var(--sg-muted); padding: 0 .25rem; }

/* ---------- Product page ---------- */
.page-band { background: linear-gradient(180deg, #edf4ee 0%, var(--sg-bg) 100%); border-bottom: 1px solid var(--sg-line); padding: 1.5rem 0 2.25rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1.75rem; font-size: .9rem; color: var(--sg-muted); }
.breadcrumb li:not(:last-child)::after { content: "→"; margin-left: .45rem; color: var(--sg-line-strong); }
.breadcrumb a { color: var(--sg-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--sg-primary); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--sg-heading); font-weight: 600; overflow-wrap: anywhere; }
.product-head h1 { overflow-wrap: anywhere; margin-bottom: .6em; }
.product-facts { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0; }
.product-facts div { min-width: 0; }
.product-facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-muted); }
.product-facts dd { margin: .15rem 0 0; font-weight: 600; color: var(--sg-heading); }
.code-pill { font-family: var(--mono); font-size: .9rem; background: var(--sg-card); border: 1px solid var(--sg-line-strong); padding: .15rem .55rem; border-radius: 6px; }

.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; padding: 2.25rem 0 4rem; align-items: start; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } }

.section-title { display: flex; align-items: center; gap: .6rem; font-size: var(--step-1); }
.count-badge { font: 700 .8rem var(--font); background: var(--sg-secondary-soft); color: var(--sg-primary); border-radius: 999px; padding: .15rem .6rem; }

.doc-grid { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
.doc-card {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
    padding: 1.25rem 1.4rem; background: var(--sg-card); border: 1px solid var(--sg-line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.doc-card-top { display: flex; align-items: center; gap: 1rem; min-width: 0; flex: 1 1 260px; }
.doc-icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
    border-radius: 14px; background: #fdecea; color: #b42318;
}
.doc-title { font-size: 1.05rem; margin: 0 0 .2rem; overflow-wrap: anywhere; }
.doc-meta { margin: 0; font-size: .875rem; color: var(--sg-muted); }
.doc-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 480px) { .doc-actions, .doc-actions .btn { width: 100%; } }

.notice { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.notice p { margin: 0; }
.notice-warning { background: var(--sg-warning-bg); border: 1px solid var(--sg-warning-line); color: #5c4200; }
.notice .icon { flex: none; margin-top: .15rem; }

.back-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.product-side { display: grid; gap: 1rem; position: sticky; top: 100px; }
@media (max-width: 900px) { .product-side { position: static; } }
.side-card { background: var(--sg-card); border: 1px solid var(--sg-line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.side-title { font-size: 1rem; margin-bottom: .9rem; }
.qr-card { text-align: center; }
.qr-image { margin: 0 auto .75rem; border-radius: 10px; border: 1px solid var(--sg-line); background: #fff; width: 200px; height: 200px; }
.qr-link { font-size: .85rem; overflow-wrap: anywhere; margin-bottom: .9rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.contact-list li { display: flex; align-items: center; gap: .6rem; overflow-wrap: anywhere; min-width: 0; }
.contact-list .icon { flex: none; color: var(--sg-muted); }

/* ---------- Message & error pages ---------- */
.message-page { padding: clamp(3rem, 10vw, 6rem) 0; }
.message-card {
    max-width: 560px; margin: 0 auto; text-align: center; background: var(--sg-card);
    border: 1px solid var(--sg-line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 5vw, 3rem); box-shadow: var(--shadow);
}
.message-icon { display: inline-flex; color: var(--sg-secondary); margin-bottom: 1rem; }
.message-card h1 { font-size: var(--step-2); }
.message-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.error-body { min-height: 100vh; display: flex; align-items: center; }
.error-body .message-page { width: min(100% - 2 * var(--gutter), var(--container)); }
.error-code { font: 800 3.5rem/1 var(--font-display); color: var(--sg-secondary); margin: 1.5rem 0 .5rem; letter-spacing: -.04em; }
.brand-center { justify-content: center; }
.brand-center .brand-logo { height: 120px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sg-primary-700); color: #b9cbbf; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand { max-width: 360px; }
.footer-brand p { margin-top: .9rem; font-size: .95rem; }
.brand-footer .brand-logo { height: 110px; }
.footer-contact p { margin: 0 0 .35rem; }
.footer-contact a { color: #e3efe7; }
.footer-contact a:hover { color: #fff; }
.footer-contact strong { color: #fff; }
.footer-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--sg-secondary); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1.25rem; font-size: .875rem; }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
    .site-header, .site-footer, .doc-actions, .qr-card button, .back-link { display: none !important; }
    body { background: #fff; }
}
