/* ============================================================
   REYA TEX LTD — public site stylesheet  (app.css)
   Teal / navy industrial brand. Font: Inter.
   Signature: "selvedge" accent rule on eyebrows & titles,
   evoking the finished edge of woven fabric.
   ============================================================ */

:root {
    color-scheme: light;

    --primary:        #1E8DB5;
    --primary-dark:   #136381;
    --secondary:      #0F3A5A;
    --secondary-deep: #0A2A42;
    --accent:         #35c3e6;

    --ink:      #14212b;
    --body:     #40515e;
    --muted:    #6b7c89;
    --line:     #e2e9ee;
    --bg:       #ffffff;
    --bg-soft:  #f3f7fa;
    --bg-tint:  #eef5f9;

    --success-bg:#e7f8ef; --success-ink:#146c43; --success-bd:#b6e7cc;
    --error-bg:  #fdecef; --error-ink:  #b02a37; --error-bd:  #f5c2c9;

    --gradient: linear-gradient(135deg, #1E8DB5 0%, #0F3A5A 100%);
    --radius:   15px;
    --radius-sm:10px;
    --shadow-sm: 0 2px 8px rgba(15,58,90,.06);
    --shadow:    0 10px 30px rgba(15,58,90,.10);
    --shadow-lg: 0 20px 50px rgba(15,58,90,.16);
    --container: 1200px;
    --ease: cubic-bezier(.4, 0, .2, 1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--body);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- selvedge accent (signature) ---------- */
.section-eyebrow, .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--primary); margin-bottom: .6rem;
}
.section-eyebrow::before, .hero-eyebrow::before {
    content: ""; width: 34px; height: 3px; border-radius: 2px;
    background: repeating-linear-gradient(90deg, var(--primary) 0 5px, transparent 5px 8px);
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .82rem 1.6rem; border-radius: 999px; font: inherit; font-weight: 700;
    border: 2px solid transparent; cursor: pointer; transition: all .22s var(--ease);
    white-space: nowrap;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(30,141,181,.32); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(30,141,181,.42); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-outline:hover { background: #fff; color: var(--secondary); border-color: #fff; }
.btn-light { background: #fff; color: var(--secondary); box-shadow: var(--shadow); }
.btn-light:hover { color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-block { width: 100%; }

.section .btn-outline { color: var(--primary-dark); border-color: var(--primary); }
.section .btn-outline:hover { background: var(--primary); color: #fff; }

/* ---------- top utility bar ---------- */
.topbar { background: var(--secondary-deep); color: #cfe1ec; font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar-tagline { letter-spacing: .04em; }
.topbar-mail { color: #fff; font-weight: 600; }
.topbar-mail:hover { color: var(--accent); }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { height: 46px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.32rem; letter-spacing: .02em; color: var(--secondary); }
.brand-accent { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-block; padding: .55rem .9rem; border-radius: 999px; font-weight: 600; color: var(--ink); position: relative; }
.nav-link:hover { color: var(--primary-dark); background: var(--bg-tint); }
.nav-link.active { color: var(--primary-dark); }
.nav-link.active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 2px; width: 18px; height: 3px; border-radius: 2px; background: var(--primary); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.nav-toggle span { height: 2px; width: 100%; background: var(--secondary); border-radius: 2px; transition: .25s var(--ease); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(460px, 72vh, 660px); overflow: hidden; background: var(--secondary-deep); display: flex; }
.hero--plain { background: var(--gradient); }
.hero-slides, .hero-slides .slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slides .slide { object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); }
.hero-slides .slide.is-active { opacity: 1; }
.hero-overlay { position: relative; z-index: 2; width: 100%; display: flex; align-items: center; background: linear-gradient(115deg, rgba(10,42,66,.58) 0%, rgba(15,58,90,.38) 45%, rgba(30,141,181,.14) 100%); }
.hero-overlay .container { padding-block: 3rem; }
.hero-eyebrow { color: #9fe0f4; }
.hero-eyebrow::before { background: repeating-linear-gradient(90deg, #9fe0f4 0 5px, transparent 5px 8px); }
.hero-title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; max-width: 15ch; margin-bottom: .5rem; text-shadow: 0 2px 16px rgba(6,26,44,.60), 0 1px 3px rgba(6,26,44,.45); }
.hero-sub { color: #eaf4fb; font-size: 1.1rem; letter-spacing: .06em; font-weight: 500; margin-bottom: 1.8rem; text-shadow: 0 1px 10px rgba(6,26,44,.55); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* staggered load-in for hero copy */
@keyframes heroRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-eyebrow, .hero-title, .hero-sub, .hero-actions { animation: heroRise .7s var(--ease) both; }
.hero-title   { animation-delay: .08s; }
.hero-sub     { animation-delay: .16s; }
.hero-actions { animation-delay: .24s; }

.hero-controls { position: absolute; z-index: 3; right: 22px; bottom: 22px; display: flex; gap: .5rem; }
.gbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: rgba(10,42,66,.4); color: #fff; font-size: 1rem; cursor: pointer; backdrop-filter: blur(4px); transition: .2s var(--ease); }
.gbtn:hover { background: var(--primary); border-color: var(--primary); }

.hero-dots { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 24px; display: flex; gap: .5rem; }
.hero-dot { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.28); cursor: pointer; transition: width .3s var(--ease), background .25s var(--ease); }
.hero-dot:hover { background: rgba(255,255,255,.65); }
.hero-dot.is-active { width: 26px; background: #fff; border-color: #fff; }

/* ---------- stat strip ---------- */
.stat-strip { background: var(--gradient); color: #fff; }
.stat-strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: clamp(2.2rem, 4vw, 3rem) 0; text-align: center; }
.stat { display: flex; flex-direction: column; gap: .35rem; position: relative; padding: 0 1rem; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 10%; height: 80%; width: 3px; border-radius: 2px; background: repeating-linear-gradient(180deg, rgba(255,255,255,.55) 0 5px, transparent 5px 9px); }
.stat-num { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.stat-label { font-size: .82rem; text-transform: uppercase; color: #d6e8f1; letter-spacing: .1em; font-weight: 600; }

/* ---------- generic section ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--muted { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 0 2.6rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.empty-state { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2.5rem; text-align: center; color: var(--muted); }

/* ---------- MD message ---------- */
.md-block { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.md-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/4; object-fit: cover; }
.md-quote { position: relative; padding-left: 1.4rem; border-left: 3px solid var(--primary); color: var(--body); font-size: 1.05rem; }
.md-sign { margin-top: 1.2rem; font-weight: 800; color: var(--ink); display: flex; flex-direction: column; }
.md-sign span { font-weight: 500; color: var(--muted); font-size: .92rem; }

/* ---------- feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon { width: 58px; height: 58px; object-fit: contain; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.12rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- how we work (process rail) ---------- */
.process-rail { list-style: none; margin: 0; padding: 0; display: flex; }
.process-step { flex: 1; position: relative; text-align: center; padding: 0 .6rem; }
.process-step:not(:last-child)::after {
    content: ""; position: absolute; top: 24.5px; left: 50%; width: 100%; height: 3px; z-index: 0;
    background: repeating-linear-gradient(90deg, var(--primary) 0 6px, transparent 6px 11px); opacity: .5;
}
.process-node {
    position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%; background: var(--gradient); color: #fff;
    box-shadow: 0 6px 16px rgba(30,141,181,.35); margin-bottom: 1rem;
}
.process-num { font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.process-title { font-size: 1.08rem; color: var(--secondary); margin-bottom: .4rem; }
.process-desc { margin: 0; color: var(--muted); font-size: .92rem; max-width: 22ch; margin-inline: auto; }

@media (max-width: 760px) {
    .process-rail { flex-direction: column; }
    .process-step { flex: none; text-align: left; padding: 0 0 1.9rem; display: grid; grid-template-columns: 52px 1fr; column-gap: 1.1rem; }
    .process-step:not(:last-child)::after {
        top: 52px; left: 24.5px; width: 3px; height: calc(100% - 52px);
        background: repeating-linear-gradient(180deg, var(--primary) 0 6px, transparent 6px 11px);
    }
    .process-node { grid-column: 1; grid-row: 1 / span 2; margin-bottom: 0; }
    .process-title { grid-column: 2; margin-bottom: .3rem; }
    .process-desc { grid-column: 2; max-width: none; margin-inline: 0; }
}

/* ---------- products ---------- */
.product-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 240px; max-width: 460px; }
.search-box input { width: 100%; padding: .85rem 1.1rem .85rem 2.7rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b7c89' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 1rem center; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(30,141,181,.14); }
.product-count { color: var(--muted); font-size: .9rem; font-weight: 600; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.product-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); will-change: transform; }
.product-card:hover { box-shadow: var(--shadow); }
.product-card h3 { font-size: 1.15rem; margin-bottom: .9rem; color: var(--secondary); }
.product-specs { display: flex; flex-direction: column; gap: .5rem; }
.spec { display: flex; flex-direction: column; margin: 0; font-size: .95rem; color: var(--ink); }
.spec-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
mark { background: #fff2ab; color: inherit; padding: 0 .1em; border-radius: 3px; }
.search-empty { text-align: center; color: var(--muted); padding: 2rem 0; }

/* ---------- certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.2rem; align-items: center; }
.cert-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; align-items: center; justify-content: center; min-height: 120px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.cert-item:hover { transform: translateY(-4px); }
.cert-logo { max-height: 74px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .78; transition: .25s var(--ease); }
.cert-item:hover .cert-logo { filter: grayscale(0); opacity: 1; }

/* ---------- export reach ---------- */
.reach-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.reach-intro p { color: var(--body); font-size: 1.05rem; max-width: 52ch; }
.reach-points { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.4rem; }
.reach-point { display: flex; align-items: flex-start; gap: .6rem; color: var(--ink); font-weight: 500; }
.reach-point svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--primary); margin-top: .2rem; }

.reach-markets { background: var(--secondary); color: #dceaf3; border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.reach-markets-label { display: flex; align-items: center; gap: .55rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: #9fe0f4; margin-bottom: 1.2rem; }
.reach-markets-label svg { flex: 0 0 auto; width: 18px; height: 18px; }
.reach-fact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.reach-fact-list li { display: flex; align-items: flex-start; gap: .6rem; font-weight: 600; color: #fff; line-height: 1.35; }
.reach-fact-list li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: .4rem; }

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

/* ---------- CTA band ---------- */
.cta-band { background: var(--gradient); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-inner p { color: #dceaf3; max-width: 46ch; margin: 0 auto 1.6rem; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--secondary-deep); color: #fff; padding: clamp(2.6rem, 6vw, 4.2rem) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(30,141,181,.5), transparent 70%); }
.page-hero .section-eyebrow { color: #9fe0f4; }
.page-hero .section-eyebrow::before { background: repeating-linear-gradient(90deg, #9fe0f4 0 5px, transparent 5px 8px); }
.page-title { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 .4rem; }
.page-lead { color: #cfe1ec; max-width: 60ch; margin: 0; font-size: 1.05rem; }

/* ---------- data table (notices) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th { text-align: left; background: var(--bg-tint); color: var(--secondary); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); }
.data-table td { padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--bg-soft); }
.col-serial { width: 60px; color: var(--muted); }
.col-date { width: 140px; white-space: nowrap; }
.file-link { font-weight: 700; color: var(--primary-dark); }
.file-link::after { content: " ↓"; }
.file-actions { display: inline-flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.file-link--view { color: var(--primary); }
.file-link--view::after { content: " ↗"; }
.muted { color: var(--muted); }

/* ---------- company profile ---------- */
.profile-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.6rem; }
.pdf-viewer { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1rem; min-height: 340px; border: 1px solid var(--line); border-radius: var(--radius); background: #eef2f5; box-shadow: var(--shadow); }
.pdf-viewer .pdf-page { display: block; height: auto; max-width: 100%; border-radius: 6px; box-shadow: 0 4px 16px rgba(15,58,90,.14); background: #fff; }
.pdf-viewer-status { display: flex; align-items: center; gap: .6rem; padding: 3rem 1rem; color: var(--muted); font-weight: 600; }
.pdf-spinner { flex: 0 0 auto; width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: pdfspin .8s linear infinite; }
@keyframes pdfspin { to { transform: rotate(360deg); } }
.pdf-viewer-note { margin: 0; color: var(--muted); font-weight: 600; text-align: center; }
.pdf-open-link { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.5rem; border-radius: var(--radius-sm); background: var(--gradient); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 8px 20px rgba(30,141,181,.32); transition: transform .2s var(--ease); }
.pdf-open-link:hover { color: #fff; transform: translateY(-2px); }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.5rem; margin-bottom: 1.4rem; }
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .4rem; }
.req { color: var(--error-ink); }
.form-control { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(30,141,181,.14); }
textarea.form-control { resize: vertical; min-height: 130px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-weight: 500; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: var(--success-ink); border-color: var(--success-bd); }
.alert-error { background: var(--error-bg); color: var(--error-ink); border-color: var(--error-bd); }

.contact-aside { background: var(--secondary); color: #dceaf3; border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.2rem); }
.contact-aside h3 { color: #fff; }
.contact-mail { display: inline-block; margin: .3rem 0 1.4rem; font-size: 1.15rem; font-weight: 700; color: #fff; border-bottom: 2px solid var(--primary); }
.contact-mail:hover { color: var(--accent); }
.contact-note { display: flex; flex-direction: column; gap: .3rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .92rem; }
.contact-note strong { color: #fff; }

/* ---------- locations (interactive map + office list) ---------- */
.locations-layout { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(1.2rem, 3vw, 2rem); align-items: start; }

.location-list { display: flex; flex-direction: column; gap: .9rem; }
.location-item {
    width: 100%; text-align: left; cursor: pointer; font: inherit;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .75rem;
    box-shadow: inset 3px 0 0 transparent;
    transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.location-item:hover { border-color: var(--primary); background: var(--bg-tint); }
.location-item.is-active {
    border-color: var(--primary); background: var(--bg-tint);
    box-shadow: inset 3px 0 0 var(--primary), var(--shadow-sm);
}

.location-item-head { display: flex; align-items: center; gap: .8rem; }
.location-item-pin {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-tint); color: var(--primary-dark);
    transition: background .2s var(--ease), color .2s var(--ease);
}
.location-item-pin svg { width: 20px; height: 20px; }
.location-item.is-active .location-item-pin { background: var(--gradient); color: #fff; }
.location-item-titles { display: flex; flex-direction: column; line-height: 1.3; }
.location-item-name { font-weight: 800; font-size: 1.05rem; color: var(--secondary); letter-spacing: -.01em; }
.location-item-locality { font-size: .85rem; color: var(--muted); }

.location-item-meta { display: flex; flex-direction: column; gap: .45rem; }
.location-item-line { display: flex; align-items: flex-start; gap: .55rem; font-size: .92rem; color: var(--body); }
.location-item-line svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: .18rem; color: var(--primary); }
.location-item-addr { color: var(--muted); }

.location-map {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); align-self: start;
}
.location-map-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); background: #fff;
}
.location-map-active { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--secondary); min-width: 0; }
.location-map-active svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--primary); }
.location-map-active span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-map-ext { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.location-map-ext svg { width: 15px; height: 15px; }
.location-map-frame { position: relative; height: clamp(420px, 56vh, 560px); line-height: 0; background: var(--bg-soft); }
.location-map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.location-map-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: .95rem; }

@media (min-width: 881px) {
    .location-map { position: sticky; top: 92px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--secondary-deep); color: #a9c2d2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding: 3.2rem 0 2rem; }
.footer-logo { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: .8rem; }
.footer-logo img { height: 38px; width: auto; }
.footer-brand p { max-width: 42ch; color: #9fb6c6; font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: #a9c2d2; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .87rem; color: #8aa4b6; }
.footer-bottom .container { padding-block: 1.2rem; }

/* ---------- 404 ---------- */
.error-page { text-align: center; }
.error-code { font-size: clamp(4rem, 14vw, 9rem); font-weight: 800; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page .section-cta { justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
    .nav-toggle { display: flex; }
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; }
    .nav-links {
        flex-direction: column; align-items: stretch; gap: .2rem;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        padding: .6rem; max-height: 0; overflow: hidden; transform-origin: top;
        transition: max-height .3s var(--ease), padding .3s var(--ease);
    }
    .nav-links:not(.open) { max-height: 0; padding-block: 0; }
    .nav-links.open { max-height: 420px; }
    .nav-link { padding: .8rem 1rem; border-radius: var(--radius-sm); }
    .nav-link.active::after { display: none; }
    .nav-link.active { background: var(--bg-tint); }

    .md-block { grid-template-columns: 1fr; }
    .md-photo { max-width: 260px; }
    .contact-layout { grid-template-columns: 1fr; }
    .locations-layout { grid-template-columns: 1fr; }
    .stat + .stat::before { display: none; }
}

@media (max-width: 560px) {
    .topbar-tagline { display: none; }
    .topbar-inner { justify-content: center; }
    .stat-strip-inner { grid-template-columns: 1fr; gap: 1.4rem; }
    .hero-actions .btn, .profile-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .product-card { transform: none !important; }
    .hero-eyebrow, .hero-title, .hero-sub, .hero-actions { animation: none !important; }
}
