/* ==========================================================================
   Stable Office Automation — site stylesheet
   Written for this site; no framework, no external fonts, no CDN.
   Sections: tokens · base · header · buttons · figures · home · catalogue
             · detail · about · contact · footer · responsive
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --ink:      #16181a;
  --ink-soft: #3c4248;
  --muted:    #6d747c;
  --line:     #e4e1dc;
  --line-2:   #eeece8;
  --paper:    #ffffff;
  --stone:    #f6f5f2;
  --stone-2:  #ecebe6;
  /* Brand palette, sampled from the company logo. */
  --accent:   #d8382b;   /* logo red, darkened slightly for text contrast */
  --accent-d: #b32b20;   /* hover / pressed */
  --accent-br:#e4483c;   /* the logo red exactly, for large blocks */
  --gold:     #f0cc60;   /* logo ellipse */

  --wrap:  1200px;
  --r:     3px;
  --shadow: 0 1px 2px rgba(22,24,26,.04), 0 8px 24px rgba(22,24,26,.05);
  --shadow-lift: 0 2px 4px rgba(22,24,26,.06), 0 18px 40px rgba(22,24,26,.10);
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -.021em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.16rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 1rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}

.link-arrow {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.link-arrow::after { content: " \2192"; color: var(--accent); }
.link-arrow:hover { color: var(--accent); }

/* --- Header ------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}

.brand { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.brand__logo { max-height: 46px; width: auto; }
.brand__mark {
  font-size: 1.42rem; font-weight: 600; letter-spacing: -.02em;
}
.brand__sub {
  font-size: .63rem; font-weight: 600; letter-spacing: .21em;
  text-transform: uppercase; color: var(--muted); margin-top: .3rem;
}

.nav ul { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; }

.nav > ul > li > a {
  display: block; padding: .6rem .85rem;
  font-size: .93rem; font-weight: 500; color: var(--ink-soft);
  border-radius: var(--r);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav > ul > li > a:hover { color: var(--ink); background: var(--stone); }
.nav a.is-current { color: var(--ink); }
.nav a.is-current::after {
  content: ""; display: block; height: 2px; background: var(--accent);
  margin-top: .34rem; border-radius: 2px;
}

/* Products dropdown */
.has-sub { position: relative; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 268px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lift);
  padding: .45rem; display: block !important;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub li { display: block; width: 100%; }
.sub a {
  display: block; padding: .55rem .8rem; font-size: .89rem;
  color: var(--ink-soft); border-radius: var(--r);
}
.sub a:hover { background: var(--stone); color: var(--ink); }

/* Mega menu — 25 categories in one flat list is unusable, so group them. */
.sub--mega { min-width: 780px; left: auto; right: 0; padding: 1.6rem 1.7rem 1.2rem; }
.mega {
  display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1.4rem 1.8rem;
}
.mega__col ul { display: block; margin: 0; padding: 0; list-style: none; }
.mega__h {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 .5rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line);
}
.mega__col li { display: block; }
.mega__col a {
  display: block; padding: .3rem 0; font-size: .86rem;
  color: var(--ink-soft); border-radius: 0;
}
.mega__col a:hover { color: var(--accent); background: none; }
.mega__all {
  display: inline-block; margin-top: 1.3rem; padding-top: .9rem;
  border-top: 1px solid var(--line); width: 100%;
  font-size: .85rem; font-weight: 500; color: var(--ink);
}
.mega__all:hover { color: var(--accent); }

/* Grouped filter chips on the catalogue page */
.filtergroup { margin-bottom: 1.5rem; }
.filtergroup__h {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem;
}
.filters--tight { margin-bottom: 0; }

.nav__cta a {
  background: var(--ink); color: #fff !important;
  padding: .66rem 1.15rem !important; border-radius: var(--r);
  font-size: .89rem; margin-left: .5rem;
  transition: background .2s var(--ease);
}
.nav__cta a:hover { background: var(--accent-d); }
.nav__cta a::after { display: none !important; }

.navtoggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 1px solid var(--line); border-radius: var(--r);
  cursor: pointer;
}
.navtoggle span { display: block; height: 1.5px; background: var(--ink); transition: .25s var(--ease); }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Buttons ------------------------------------------------------------ */
.btnrow { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 2rem; }

.btn {
  display: inline-block; padding: .82rem 1.6rem;
  font-size: .93rem; font-weight: 500; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  cursor: pointer; text-align: center;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn--primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent-d); border-color: var(--accent-d); }

.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn--ghost { background: transparent; border-color: rgba(255,255,255,.34); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* --- Figures & photo placeholders --------------------------------------- */
.figure {
  position: relative; overflow: hidden;
  background: var(--stone-2); border-radius: var(--r);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }

/* Shown until a real photo file exists at the path given in includes/data.php */
.figure--empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem;
  padding: 1.4rem; text-align: center;
  background:
    repeating-linear-gradient(45deg,
      rgba(22,24,26,.019) 0 10px, transparent 10px 20px),
    var(--stone-2);
  border: 1px solid var(--line);
}
.figure__tag {
  font-size: .58rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--paper);
  background: var(--muted); padding: .28rem .6rem; border-radius: 99px;
}
.figure__label {
  font-size: .82rem; line-height: 1.4; color: var(--muted); max-width: 22ch;
}

/* --- Home: hero --------------------------------------------------------- */
.hero { padding: clamp(3.2rem, 7vw, 6.4rem) 0 clamp(2.6rem, 5vw, 4.4rem); }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { margin-bottom: 1.5rem; }

/* --- Home: stats -------------------------------------------------------- */
.stats { border-block: 1px solid var(--line); background: var(--stone); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
}
.stat {
  background: var(--stone); padding: 2.1rem 1.5rem;
  display: flex; flex-direction: column; gap: .35rem;
}
.stat__n { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 400; letter-spacing: -.03em; }
.stat__l { font-size: .82rem; color: var(--muted); line-height: 1.45; }

/* --- Sections ----------------------------------------------------------- */
.section { padding: clamp(3.4rem, 7vw, 6rem) 0; }
.section--tint { background: var(--stone); border-block: 1px solid var(--line); }
.section__h { margin-bottom: 1rem; max-width: 20ch; }
.section__intro { max-width: 60ch; color: var(--ink-soft); }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-bottom: 2.8rem; flex-wrap: wrap;
}
.section__head .section__h { margin-bottom: 0; }

/* --- Home: capability cards --------------------------------------------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin-top: 3rem;
}
.card { background: var(--paper); padding: 2.2rem 1.9rem; }
.card__n {
  display: block; font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; color: var(--accent); margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .7rem; }
.card p { font-size: .93rem; color: var(--muted); line-height: 1.65; }

/* --- Category grid ------------------------------------------------------ */
.catgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.6rem;
}
.cat {
  display: block; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: transparent; }
.cat .figure { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.cat__body { padding: 1.5rem 1.6rem 1.7rem; }
.cat__body h3 { margin-bottom: .5rem; }
.cat__body p { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.cat__count {
  display: inline-block; margin-top: 1rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.catgrid--compact .cat__body { padding: 1.5rem 1.6rem; }

/* --- Project grid ------------------------------------------------------- */
.projgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2rem 1.6rem;
}
.projgrid--full { gap: 3rem 1.8rem; }
.proj .figure { margin-bottom: 1.3rem; }
.proj__year {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  color: var(--accent); margin-bottom: .5rem;
}
.proj__body h2, .proj__body h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.proj__scope { font-size: .89rem; color: var(--ink-soft); font-weight: 500; }
.proj__detail { font-size: .91rem; color: var(--muted); line-height: 1.65; }

/* --- CTA band ----------------------------------------------------------- */
.cta { background: var(--ink); color: #fff; padding: clamp(3rem, 6vw, 4.8rem) 0; }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2.4rem; flex-wrap: wrap;
}
.cta h2 { margin-bottom: .6rem; }
.cta p { color: rgba(255,255,255,.72); max-width: 52ch; }
.cta .btnrow { margin-top: 0; }

/* --- Page heads & breadcrumbs ------------------------------------------- */
.pagehead {
  padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: var(--stone);
}
.pagehead--tall { padding-block: clamp(4rem, 9vw, 7rem); }
.pagehead h1 { margin-bottom: 1.1rem; }

.crumbs {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  font-size: .82rem; color: var(--muted); margin-bottom: 1.5rem;
}
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--line); }
.crumbs--detail { padding-top: 1.8rem; margin-bottom: 0; }

/* --- Catalogue ---------------------------------------------------------- */
.catalogue { padding-block: clamp(2.2rem, 4vw, 3.4rem); }

.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1rem; font-size: .87rem; font-weight: 500;
  border: 1px solid var(--line); border-radius: 99px;
  color: var(--ink-soft); background: var(--paper);
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip__n { font-size: .74rem; color: var(--muted); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on .chip__n { color: rgba(255,255,255,.6); }

.prodgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(258px, 100%), 1fr));
  gap: 2.2rem 1.6rem;
}
.prod { display: block; transition: transform .22s var(--ease); }
.prod:hover { transform: translateY(-3px); }
.prod .figure { margin-bottom: 1rem; transition: box-shadow .22s var(--ease); }
.prod:hover .figure { box-shadow: var(--shadow-lift); }
.prod__cat {
  font-size: .7rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .45rem;
}
.prod__name { font-size: 1.06rem; margin-bottom: .3rem; }
.prod__code { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }

.empty { color: var(--muted); padding: 3rem 0; }

/* --- Product detail ----------------------------------------------------- */
.detail {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.2rem);
  padding-block: clamp(2rem, 4vw, 3.2rem) clamp(3.4rem, 7vw, 5.5rem);
  align-items: start;
}
.detail__media { position: sticky; top: 100px; }
.thumbs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .8rem; margin-top: .8rem;
}
.detail__info h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: .7rem; }
.detail__code { font-size: .84rem; color: var(--muted); letter-spacing: .04em; margin-bottom: 1.6rem; }
.detail__code strong { color: var(--ink); font-weight: 600; }
.detail__headline {
  font-size: 1.16rem; font-weight: 500; line-height: 1.45;
  color: var(--ink); margin-bottom: 1rem; max-width: 40ch;
}
.detail__desc { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); }
.detail__desc br + br { content: ""; display: block; height: .5rem; }

.specs { margin: 2.2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.spec {
  display: grid; grid-template-columns: 150px 1fr; gap: 1.4rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.spec dt {
  font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}
.spec dd { margin: 0; font-size: .93rem; line-height: 1.65; color: var(--ink-soft); }

.detail__note {
  margin-top: 1.8rem; padding: 1.1rem 1.3rem;
  background: var(--stone); border-left: 2px solid var(--gold);
  font-size: .88rem; color: var(--muted); border-radius: 0 var(--r) var(--r) 0;
}

/* --- About -------------------------------------------------------------- */
.prose-grid {
  display: grid; grid-template-columns: 1.25fr .75fr;
  gap: clamp(2.2rem, 5vw, 4.5rem); align-items: start;
}
.prose h2 { font-size: 1.5rem; margin: 2.6rem 0 .9rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); max-width: 68ch; }

.prose-aside { position: sticky; top: 100px; display: grid; gap: 1.6rem; }
.factbox {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem 1.7rem; background: var(--stone);
}
.factbox h3 { margin-bottom: 1.1rem; }
.factbox dl { margin: 0; }
.factbox dl > div { padding: .75rem 0; border-top: 1px solid var(--line); }
.factbox dl > div:first-of-type { border-top: 0; padding-top: 0; }
.factbox dt {
  font-size: .7rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .25rem;
}
.factbox dd { margin: 0; font-size: .91rem; line-height: 1.5; }

/* --- Contact ------------------------------------------------------------ */
.contact-grid {
  display: grid; grid-template-columns: 1.35fr .65fr;
  gap: clamp(2.2rem, 5vw, 4.5rem); align-items: start;
}
.form__h { font-size: 1.4rem; margin-bottom: 1.8rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.3rem; }
.field label {
  display: block; font-size: .84rem; font-weight: 600;
  margin-bottom: .45rem; color: var(--ink);
}
.req { color: var(--accent); }

.field input, .field textarea {
  width: 100%; padding: .82rem .95rem;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216,56,43,.13);
}
.field [aria-invalid="true"] { border-color: #b3402f; }

.err { font-size: .83rem; color: #b3402f; margin: .4rem 0 0; }
.hint { font-size: .82rem; color: var(--muted); margin: .5rem 0 0; }

/* Spam trap — hidden from people, left in the DOM for bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1.5rem 1.7rem; border-radius: var(--r); margin-bottom: 2rem; }
.notice h2 { font-size: 1.28rem; margin-bottom: .6rem; }
.notice--ok { background: var(--stone); border-left: 3px solid var(--gold); }
.notice--bad { background: #fdf3f1; border-left: 3px solid #b3402f; color: #7d2c20; }
.notice--bad a { text-decoration: underline; }

.contact-side { display: grid; gap: 1.4rem; }
.side-block {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem 1.6rem; background: var(--stone);
}
.side-block h2 { font-size: 1.02rem; margin-bottom: .9rem; }
.side-city { font-size: .78rem; font-weight: 600; letter-spacing: .1em;
             text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.side-block address { font-style: normal; font-size: .92rem; line-height: 1.65; color: var(--ink-soft); }
.side-block p { margin-top: .9rem; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: .6rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list__k {
  display: block; font-size: .7rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .15rem;
}
.contact-list a:hover { color: var(--accent); }

.hours { margin: 0; }
.hours > div { display: flex; justify-content: space-between; gap: 1rem;
               padding: .5rem 0; border-top: 1px solid var(--line); font-size: .88rem; }
.hours > div:first-child { border-top: 0; padding-top: 0; }
.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; font-weight: 500; white-space: nowrap; }

/* --- Footer ------------------------------------------------------------- */
.site-foot {
  background: var(--ink); color: rgba(255,255,255,.66);
  padding: clamp(3rem, 6vw, 4.6rem) 0 2rem; font-size: .91rem;
}
.site-foot .brand__mark { color: #fff; font-size: 1.3rem; }
.foot-logo { max-height: 52px; width: auto; }
.site-foot .brand__sub { color: rgba(255,255,255,.42); display: block; margin-top: .3rem; }

.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 2.6rem; padding-bottom: 3rem;
}
.foot-blurb { margin-top: 1.2rem; max-width: 34ch; line-height: 1.65; font-size: .89rem; }

.foot-h {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #fff; margin-bottom: 1.1rem;
}
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: .55rem; font-size: .89rem; }
.foot-list a { transition: color .18s var(--ease); }
.foot-list a:hover { color: #fff; }
.foot-addr { font-style: normal; margin-top: 1.1rem; font-size: .89rem; line-height: 1.6; }

.foot-base {
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.11);
  font-size: .81rem; color: rgba(255,255,255,.48);
}
.foot-base p { margin: 0; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1000px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__inner,
  .detail,
  .prose-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .hero__media { order: -1; }
  .detail__media, .prose-aside { position: static; }

  /* Mobile navigation */
  .navtoggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .nav.is-open { max-height: 88vh; overflow-y: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .8rem 1.5rem 1.6rem; }
  .nav > ul > li > a { padding: .85rem 0; border-bottom: 1px solid var(--line-2); }
  .nav a.is-current::after { display: none; }
  .nav a.is-current { color: var(--accent); }

  .sub--mega { min-width: 0; right: auto; padding: 0; }
  .mega { grid-template-columns: 1fr; gap: .9rem; }
  .mega__all { margin-top: .8rem; }
  .sub {
    position: static; min-width: 0; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 .6rem .9rem;
    border-left: 1px solid var(--line);
    margin: .3rem 0 .6rem;
  }
  .nav__cta a { margin: 1rem 0 0; text-align: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--wrap), 100% - 2.2rem); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .spec { grid-template-columns: 1fr; gap: .3rem; }
  .stats__grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .btnrow .btn { flex: 1 1 100%; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
}

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

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-head, .site-foot, .cta, .filters, .btnrow, .navtoggle { display: none !important; }
  body { font-size: 12pt; }
  .detail { grid-template-columns: 1fr; }
}
