/* ==========================================================================
   INTER-MEDICS INC. — site styles
   Brand: #001B53 navy · #106FC3 blue · #95B5EC sky · #FFFFFF white
   ========================================================================== */

:root {
    --navy: #001B53;
    --navy-90: #0B2763;
    --blue: #106FC3;
    --blue-dark: #0C5DA6;
    --sky: #95B5EC;
    --sky-20: #E3ECFB;
    --sky-10: #F1F5FD;
    --white: #FFFFFF;

    --bg: #F7F9FD;
    --surface: #FFFFFF;
    --ink: #001B53;
    --text: #22324F;
    --muted: #55637F;
    --line: #DDE5F3;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(0, 27, 83, 0.06);
    --shadow: 0 1px 2px rgba(0, 27, 83, 0.05), 0 8px 24px -12px rgba(0, 27, 83, 0.18);
    --shadow-lg: 0 2px 4px rgba(0, 27, 83, 0.04), 0 24px 48px -20px rgba(0, 27, 83, 0.28);

    --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.015em; }
h3, h4 { font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 100;
    background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--blue);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.lead { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px;
    font: inherit; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
    border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
    transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 16px -8px rgba(16, 111, 195, .7); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-90); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--sky-20); color: var(--navy); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ---------- Preview notice ---------- */
.notice-bar {
    background: var(--navy); color: rgba(255, 255, 255, .82);
    font-size: 0.8rem; text-align: center; padding: 7px var(--gutter);
}
.notice-bar strong { color: var(--white); font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-mark .bg { fill: var(--navy); }
.site-footer .brand-mark .bg { fill: var(--blue); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.06em; }
.brand-sub { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; color: var(--muted); margin-top: 5px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    position: relative; padding: 8px 14px; border-radius: 999px;
    color: var(--text); font-weight: 600; font-size: 0.94rem;
}
.main-nav a:hover { color: var(--navy); background: var(--sky-10); }
.main-nav a[aria-current="page"] { color: var(--navy); }
.main-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.quote-pill .count {
    display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
    border-radius: 999px; background: var(--white); color: var(--blue); font-size: 0.75rem; font-weight: 800;
}
.quote-pill .count[hidden] { display: none; }

.nav-toggle {
    display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--white); color: var(--navy); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
    /* backdrop-filter would make the header the containing block of the fixed menu */
    .site-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h)); bottom: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        padding: 16px var(--gutter) 32px; background: var(--white);
        border-top: 1px solid var(--line);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .18s, transform .18s, visibility .18s;
        overflow-y: auto;
    }
    .main-nav a { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }
    .main-nav a[aria-current="page"] { background: var(--sky-10); }
    .main-nav a[aria-current="page"]::after { display: none; }
    body.nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
    body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) {
    .brand-sub { display: none; }
    .quote-pill .label { display: none; }
    .quote-pill { padding: 0 14px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-white { background: var(--white); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 14px; max-width: 20ch; }
.section-head .lead { max-width: 46ch; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--line); }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(700px 420px at 92% 10%, rgba(149, 181, 236, .38), transparent 70%),
        radial-gradient(520px 360px at 70% 100%, rgba(16, 111, 195, .10), transparent 70%);
}
.hero-inner {
    position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
    align-items: center; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px);
}
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); margin: 18px 0 20px; }
.hero h1 em { font-style: italic; color: var(--blue); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 36px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--blue); }

.hero-panel {
    position: relative; background: linear-gradient(160deg, var(--navy) 0%, #062a73 60%, var(--blue) 140%);
    border-radius: var(--radius-lg); padding: 28px; color: var(--white); box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.hero-panel::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(149, 181, 236, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(149, 181, 236, .10) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-panel > * { position: relative; z-index: 1; }
.panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.panel-top span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.panel-top .dot { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .7); letter-spacing: 0.06em; }
.panel-top .dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6EE7B7; box-shadow: 0 0 0 4px rgba(110, 231, 183, .18); }
.panel-wave { width: 100%; height: 70px; margin: 4px 0 22px; color: var(--sky); }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel-tile {
    display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(149, 181, 236, .2); color: var(--white);
    transition: background-color .18s, border-color .18s;
}
.panel-tile:hover { background: rgba(255, 255, 255, .12); border-color: rgba(149, 181, 236, .45); color: var(--white); }
.panel-tile svg { width: 28px; height: 28px; color: var(--sky); flex: none; }
.panel-tile strong { display: block; font-size: 0.92rem; line-height: 1.25; }
.panel-tile small { display: block; color: rgba(255, 255, 255, .6); font-size: 0.76rem; margin-top: 2px; }

@media (max-width: 920px) {
    .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .panel-grid { grid-template-columns: 1fr; }
}

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(600px 300px at 100% 0%, rgba(149, 181, 236, .32), transparent 70%);
}
.page-hero .wrap { position: relative; padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(40px, 6vw, 64px); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); margin: 14px 0 16px; max-width: 18ch; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
    display: flex; flex-direction: column; gap: 14px; padding: 26px; min-height: 250px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--text); box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sky); color: var(--text); }
.cat-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-20); color: var(--blue); }
.cat-icon svg { width: 28px; height: 28px; }
.cat-card h3 { font-size: 1.15rem; }
.cat-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.cat-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.9rem; color: var(--blue); }
.cat-link svg { width: 16px; height: 16px; transition: transform .18s; }
.cat-card:hover .cat-link svg { transform: translateX(3px); }
@media (max-width: 1020px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } .cat-card { min-height: 0; } }

/* ---------- Audience ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 14px 0 18px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.audience-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.audience-list li {
    display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius);
    background: var(--bg); border: 1px solid var(--line);
}
.audience-list svg { width: 24px; height: 24px; color: var(--blue); flex: none; margin-top: 2px; }
.audience-list strong { display: block; color: var(--ink); font-size: 0.98rem; }
.audience-list span { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
@media (max-width: 560px) { .audience-list { grid-template-columns: 1fr; } }

.note-chip {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 14px;
    background: var(--sky-10); border: 1px solid var(--sky-20); border-radius: 10px; color: var(--navy); font-size: 0.9rem; font-weight: 600;
}
.note-chip svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li {
    position: relative; padding: 28px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
    counter-increment: step;
}
.steps li::before {
    content: "0" counter(step); display: block; font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600; color: var(--sky); line-height: 1; margin-bottom: 18px;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.94rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px);
    background: linear-gradient(120deg, var(--navy) 0%, #0a2f7a 55%, var(--blue) 130%); color: var(--white);
    display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
}
.cta-band::after {
    content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
    border: 1px solid rgba(149, 181, 236, .25); box-shadow: 0 0 0 60px rgba(149, 181, 236, .05), 0 0 0 120px rgba(149, 181, 236, .04);
    pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .78); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.prose p + p { margin-top: 16px; }
.prose p { color: var(--muted); font-size: 1.04rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.value .cat-icon { margin-bottom: 18px; }
.value h3 { font-size: 1.1rem; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 0.94rem; }
@media (max-width: 880px) { .values { grid-template-columns: 1fr; } }

.fact-card { padding: 28px; border-radius: var(--radius); background: var(--navy); color: var(--white); }
.fact-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; }
.fact-card dl { margin: 0; display: grid; gap: 16px; }
.fact-card dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.fact-card dd { margin: 4px 0 0; color: rgba(255, 255, 255, .88); font-size: 0.95rem; }

/* ---------- Catalog ---------- */
.catalog-bar {
    position: sticky; top: var(--header-h); z-index: 30; background: rgba(247, 249, 253, .94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.catalog-bar-inner { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; -webkit-overflow-scrolling: touch; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
    flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
    background: transparent; border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.cat-tab:hover { border-color: var(--sky); color: var(--navy); }
.cat-tab.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.cat-tab .n { font-size: 0.75rem; opacity: .65; font-variant-numeric: tabular-nums; }

.search { position: relative; flex: 0 0 260px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
    width: 100%; height: 42px; padding: 0 14px 0 42px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--white); font: inherit; font-size: 0.92rem; color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(16, 111, 195, .15); }
@media (max-width: 760px) {
    .catalog-bar-inner { flex-direction: column; align-items: stretch; gap: 10px; }
    .search { flex: none; }
}

.cat-section { padding-top: 56px; scroll-margin-top: calc(var(--header-h) + 80px); }
.cat-section:last-child { padding-bottom: 24px; }
.cat-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.cat-section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.cat-section-head p { color: var(--muted); max-width: 56ch; font-size: 0.97rem; margin-top: 6px; }
.cat-section-head .count { color: var(--muted); font-size: 0.88rem; font-weight: 600; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 440px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow); border-color: #c9d7f0; transform: translateY(-2px); }
.product-media {
    position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
    background:
        radial-gradient(circle at 50% 45%, var(--white) 0%, var(--sky-10) 55%, var(--sky-20) 100%);
    color: var(--navy); border-bottom: 1px solid var(--line);
}
.product-media svg { width: 42%; height: auto; max-width: 112px; }
.product-media .tag {
    position: absolute; left: 12px; top: 12px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--blue); background: var(--white); border: 1px solid var(--sky-20); padding: 4px 9px; border-radius: 999px;
}
.product-body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.product-body h3 { font-size: 1rem; line-height: 1.3; }
.product-body p { color: var(--muted); font-size: 0.875rem; line-height: 1.5; flex: 1; }
.product-body .btn { margin-top: 10px; }
.add-quote[aria-pressed="true"] { background: var(--sky-20); color: var(--navy); border-color: var(--sky-20); box-shadow: none; }
.add-quote[aria-pressed="true"]:hover { background: #d5e2f8; color: var(--navy); }

.empty-state { text-align: center; padding: 64px 16px; color: var(--muted); }
.empty-state h3 { margin-bottom: 8px; }

.catalog-foot { margin-top: 56px; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px dashed var(--sky); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.catalog-foot h3 { font-size: 1.1rem; }
.catalog-foot p { color: var(--muted); font-size: 0.94rem; margin-top: 4px; }

/* Floating quote tray */
.quote-tray {
    position: fixed; left: 50%; bottom: 20px; z-index: 40; transform: translate(-50%, 140%);
    display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; border-radius: 999px;
    background: var(--navy); color: var(--white); box-shadow: var(--shadow-lg);
    transition: transform .25s ease; max-width: calc(100% - 32px);
}
.quote-tray.is-visible { transform: translate(-50%, 0); }
.quote-tray span { font-size: 0.92rem; font-weight: 600; white-space: nowrap; }
.quote-tray strong { color: var(--sky); }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 920px) { .form-layout { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 1.5rem; }
.card-sub { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset + fieldset { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
legend { padding: 0; margin-bottom: 18px; font-weight: 800; color: var(--ink); font-size: 1.02rem; display: flex; align-items: center; gap: 10px; }
legend .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sky-20); color: var(--blue); font-size: 0.8rem; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-size: 0.86rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid #cdd8ec;
    background: var(--white); font: inherit; font-size: 0.95rem; color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355637F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(16, 111, 195, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C2333A; }
.field .err { display: none; color: #B42318; font-size: 0.8rem; margin-top: 5px; font-weight: 600; }
.field.has-error .err { display: block; }
.hint { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.form-actions .hint { margin: 0; }

/* Quote item list */
.q-items { display: grid; gap: 10px; }
.q-item {
    display: grid; grid-template-columns: 52px 1fr 92px 40px; align-items: center; gap: 12px;
    padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.q-thumb { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; background: var(--sky-20); color: var(--navy); }
.q-thumb svg { width: 30px; height: 30px; }
.q-item strong { display: block; color: var(--ink); font-size: 0.92rem; line-height: 1.3; }
.q-item small { color: var(--muted); font-size: 0.78rem; }
.q-item input { width: 100%; height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid #cdd8ec; font: inherit; text-align: center; color: var(--ink); background: var(--white); }
.q-item input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(16, 111, 195, .15); }
.q-item .qty-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--white); border-color: var(--line); color: #B42318; }
.icon-btn svg { width: 18px; height: 18px; }
.q-empty { padding: 20px; border: 1px dashed #cdd8ec; border-radius: 12px; color: var(--muted); font-size: 0.92rem; text-align: center; }
.q-empty a { font-weight: 700; }
@media (max-width: 480px) {
    .q-item { grid-template-columns: 44px 1fr 40px; }
    .q-thumb { width: 44px; height: 44px; }
    .q-item .qty { grid-column: 2 / 3; }
}

.side-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.side-list li { display: flex; gap: 12px; font-size: 0.92rem; color: var(--muted); }
.side-list svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }
.side-list strong { color: var(--ink); display: block; }

.contact-method { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-method:first-of-type { padding-top: 4px; }
.contact-method:last-of-type { border-bottom: 0; padding-bottom: 0; }
.contact-method .cat-icon { width: 46px; height: 46px; flex: none; }
.contact-method .cat-icon svg { width: 22px; height: 22px; }
.contact-method h3 { font-size: 0.98rem; }
.contact-method p { color: var(--muted); font-size: 0.92rem; margin-top: 3px; }
.contact-method a { font-weight: 700; word-break: break-all; }

.success { text-align: center; padding: clamp(24px, 6vw, 56px) 8px; }
.success .cat-icon { margin: 0 auto 20px; width: 64px; height: 64px; border-radius: 50%; background: #E3F6EC; color: #0F7B4A; }
.success .cat-icon svg { width: 32px; height: 32px; }
.success h2 { margin-bottom: 10px; }
.success p { color: var(--muted); max-width: 46ch; margin: 0 auto; }
.success .form-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 64px 0 44px; }
.site-footer .brand, .site-footer .brand:hover { color: var(--white); }
.site-footer .brand-sub { color: var(--sky); }
.footer-about { margin-top: 18px; max-width: 40ch; font-size: 0.92rem; }
.site-footer h4 { color: var(--white); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.93rem; }
.footer-links a { color: rgba(255, 255, 255, .72); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 28px; border-top: 1px solid rgba(149, 181, 236, .18); font-size: 0.82rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- Utilities ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.quote-pill .mobile-only { display: none; }
@media (max-width: 520px) { .quote-pill .mobile-only { display: block; } }
