/**
 * SMTDFM — Southern Machinery EMS Theme
 * Design system + component styles.
 * No external fonts, no render-blocking requests. Core Web Vitals first.
 */

/* ---------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------- */
:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ink: #0b1220;
  --ink-2: #1a2740;
  --ink-3: #46536b;
  --muted: #6b7a90;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --surface-3: #eef1f6;
  --line: #dde3ec;
  --line-2: #c9d3e0;

  --accent: #e2570f;
  --accent-hi: #ff6a13;
  --accent-lo: #b8410a;
  --accent-tint: #fff2ea;
  --teal: #0e7c86;
  --teal-tint: #e6f4f5;
  --green: #157347;
  --green-tint: #e8f5ec;
  --amber: #b45309;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06), 0 1px 3px rgba(11, 18, 32, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 18, 32, 0.07), 0 2px 4px rgba(11, 18, 32, 0.04);
  --shadow-lg: 0 18px 40px rgba(11, 18, 32, 0.12);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

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

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f8;
    --ink-2: #cdd7e6;
    --ink-3: #9fb0c7;
    --muted: #8b9ab2;
    --surface: #0d1420;
    --surface-2: #121b2a;
    --surface-3: #1a2436;
    --line: #24314a;
    --line-2: #33445f;
    --accent: #ff7a2a;
    --accent-hi: #ff8f4d;
    --accent-lo: #e2570f;
    --accent-tint: #2a170d;
    --teal: #35b3bd;
    --teal-tint: #0f2a2e;
    --green: #4ade80;
    --green-tint: #10261a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.55);
  }
}

/* ---------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-lo); text-decoration: none; }
a:hover { color: var(--accent-hi); }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
button { font: inherit; }
table { width: 100%; border-collapse: collapse; }
:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 2px; border-radius: 3px; }

/* ---------------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section--alt { background: var(--surface-2); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-lo); background: var(--accent-tint);
  padding: 6px 12px; border-radius: var(--r-pill); margin-bottom: 14px;
}
.section--ink .eyebrow { background: rgba(255, 255, 255, .12); color: #ffb894; }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-3); max-width: 68ch; }
.section--ink .lede { color: #c8d4e6; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.center .section-head { margin-inline: auto; }

/* ---------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, color .18s;
}
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-lo); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-lo); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--surface-3); color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn--sm { padding: 9px 14px; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------------------------------------------------------------
   5. Header
   --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red, blue)) {
  .site-header { background: var(--surface); }
}
.site-header__bar {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__logo { width: 180px; height: 50px; object-fit: contain; }
@media (max-width: 520px) { .brand__logo { width: 140px; height: 39px; } }
.brand__tag {
  font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border-left: 1px solid var(--line-2); padding-left: 12px; line-height: 1.25;
  max-width: 130px;
}
@media (max-width: 900px) { .brand__tag { display: none; } }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: block; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 600; font-size: .93rem;
}
.primary-nav a:hover { background: var(--surface-2); color: var(--accent-lo); }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--accent-lo); background: var(--accent-tint); }
.header-cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
@media (max-width: 1100px) {
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px;
    box-shadow: var(--shadow-md);
  }
  .primary-nav.is-open ul { flex-direction: column; gap: 2px; }
  .primary-nav.is-open a { padding: 12px; }
}
.nav-toggle {
  display: none; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer; color: var(--ink);
}
@media (max-width: 1100px) { .nav-toggle { display: inline-flex; } }
@media (max-width: 560px) { .header-cta .btn { display: none; } }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
  padding: 12px 18px; z-index: 100; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 92px); background: var(--surface); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 460px at 88% -10%, var(--accent-tint), transparent 62%),
    radial-gradient(700px 400px at 4% 108%, var(--teal-tint), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl { color: var(--accent-lo); }
.hero__lede { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--ink-3); max-width: 56ch; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.hero__stat { border-top: 3px solid var(--accent); padding-top: 12px; }
.hero__stat b { display: block; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--ink); line-height: 1.05; }
.hero__stat span { font-size: .82rem; color: var(--muted); }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.hero__badge {
  position: absolute; left: -10px; bottom: -18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px;
  box-shadow: var(--shadow-md); max-width: 260px;
}
.hero__badge b { display: block; color: var(--ink); font-size: .95rem; }
.hero__badge span { font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) { .hero__badge { display: none; } .hero__stats { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------
   7. Pain / diagnosis strip
   --------------------------------------------------------------- */
.pain { background: var(--surface-2); border-block: 1px solid var(--line); }
.pain__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
@media (max-width: 900px) { .pain__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pain__grid { grid-template-columns: 1fr; } }
.pain__item { background: var(--surface); padding: 26px 22px; }
.pain__item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.pain__item p { margin: 0; font-size: .93rem; color: var(--ink-3); }
.pain__num { font-family: var(--font-mono); font-size: .78rem; font-weight: 700; color: var(--accent-lo); display: block; margin-bottom: 8px; }

/* ---------------------------------------------------------------
   8. Cards
   --------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card__media { position: relative; background: var(--surface-3); aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__tag {
  position: absolute; top: 10px; left: 10px; background: color-mix(in srgb, var(--ink) 85%, transparent);
  color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 9px; border-radius: var(--r-sm);
}
.card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__model { font-family: var(--font-mono); font-size: .78rem; font-weight: 700; color: var(--accent-lo); }
.card__title { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--accent-lo); }
.card__text { font-size: .9rem; color: var(--ink-3); margin: 0; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .85rem; }
.card__link { font-weight: 700; color: var(--accent-lo); }
.card__link::after { content: " \2192"; }

/* Category tile */
.tile {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 24px 22px; text-decoration: none; color: inherit;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.tile__k { font-family: var(--font-mono); font-size: .74rem; font-weight: 800; color: var(--accent-lo); letter-spacing: .06em; }
.tile h3 { margin: 6px 0 8px; font-size: 1.08rem; }
.tile p { margin: 0 0 12px; font-size: .9rem; color: var(--ink-3); }
.tile__more { font-weight: 700; font-size: .88rem; color: var(--accent-lo); }

/* ---------------------------------------------------------------
   9. Value props
   --------------------------------------------------------------- */
.value { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .value { grid-template-columns: 1fr; } }
.value__item { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.value__item h3 { font-size: 1.06rem; }
.value__item p { margin: 0; font-size: .93rem; color: var(--ink-3); }
.value__icon {
  width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--accent-tint);
  color: var(--accent-lo); display: grid; place-items: center; margin-bottom: 14px;
}
.value__icon svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------
   10. Video grid
   --------------------------------------------------------------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.video-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.video-card__frame { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; border: 0; padding: 0; width: 100%; display: block; }
.video-card__frame img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.video-card__frame::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 54px; height: 54px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 6px 18px rgba(0,0,0,.35);
  -webkit-mask: polygon(38% 28%, 38% 72%, 72% 50%) , circle;
  mask: polygon(38% 28%, 38% 72%, 72% 50%);
}
.video-card__frame:hover::after { background: var(--accent-hi); }
.video-card__body { padding: 14px 16px 16px; }
.video-card__body h3 { font-size: .95rem; margin: 0 0 6px; line-height: 1.35; }
.video-card__meta { font-size: .78rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------
   11. Resource list
   --------------------------------------------------------------- */
.resource { display: grid; gap: 10px; }
.resource__row {
  display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.resource__row:hover { border-color: var(--accent); }
.resource__ext {
  display: grid; place-items: center; height: 34px; border-radius: var(--r-sm);
  font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  background: var(--teal-tint); color: var(--teal);
}
.resource__ext[data-ext="pdf"] { background: #fdecea; color: #c0392b; }
.resource__ext[data-ext="html"] { background: var(--teal-tint); color: var(--teal); }
.resource__ext[data-ext="xlsx"], .resource__ext[data-ext="xls"] { background: var(--green-tint); color: var(--green); }
.resource__title { font-weight: 700; color: var(--ink); font-size: .95rem; }
.resource__meta { font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) { .resource__row { grid-template-columns: 42px 1fr; } .resource__row .btn { display: none; } }

/* ---------------------------------------------------------------
   12. Spec table
   --------------------------------------------------------------- */
.spec-table { width: 100%; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 38%; background: var(--surface-2); font-weight: 700; color: var(--ink); }
@media (max-width: 560px) { .spec-table th { width: 45%; } }

/* ---------------------------------------------------------------
   13. Product single
   --------------------------------------------------------------- */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr; } }
.gallery__main { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.gallery__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.gallery__thumbs button {
  width: 84px; height: 64px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm);
  overflow: hidden; cursor: pointer; background: none;
}
.gallery__thumbs button[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-tint); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.bullets { list-style: none; padding: 0; margin: 0 0 1.4em; }
.bullets li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: .95rem; color: var(--ink-2); }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.chips li { font-size: .82rem; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); padding: 5px 11px; border-radius: var(--r-pill); }

/* FAQ accordion */
.faq { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--ink); font-size: .97rem;
  list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent-lo); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq__a { padding: 0 18px 18px; color: var(--ink-3); font-size: .94rem; }

/* ---------------------------------------------------------------
   14. Blog
   --------------------------------------------------------------- */
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.post-card:hover { border-color: var(--accent); }
.post-card__meta { font-size: .78rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.post-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent-lo); }
.post-card p { margin: 0; font-size: .92rem; color: var(--ink-3); }
.article { max-width: 780px; margin-inline: auto; }
.article h2 { margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article ul li { margin-bottom: .5em; }
.step { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin-bottom: 22px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-3); }
.callout { background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: var(--r-md); padding: 20px 22px; margin: 26px 0; }
.callout b { display: block; margin-bottom: 6px; color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.hook-box { border-left: 4px solid var(--accent); background: var(--surface-2); padding: 18px 22px; border-radius: 0 var(--r-md) var(--r-md) 0; margin-bottom: 28px; font-size: 1.05rem; color: var(--ink); }
.dk-tag {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}

/* ---------------------------------------------------------------
   15. CTA band
   --------------------------------------------------------------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(226, 87, 15, .5), transparent 65%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c8d4e6; max-width: 62ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------------------------------------------------------------
   16. Footer
   --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #b9c6da; padding-block: clamp(40px, 5vw, 68px) 28px; margin-top: 0; }
.site-footer a { color: #dbe4f0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; }
@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { width: 190px; height: 53px; object-fit: contain; margin-bottom: 14px; background: #fff; border-radius: var(--r-sm); padding: 6px 8px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.footer li { margin-bottom: 8px; }
.social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.social a {
  width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center; transition: background-color .18s, border-color .18s;
}
.social a:hover { background: var(--accent); border-color: var(--accent); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.footer__bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .84rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer__contact { font-size: .95rem; }
.footer__contact strong { color: #fff; display: block; }

/* ---------------------------------------------------------------
   17. Forms
   --------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: 11px 13px; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field .hint { font-size: .78rem; color: var(--muted); }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.form-msg { padding: 12px 16px; border-radius: var(--r-sm); font-size: .92rem; margin-bottom: 16px; }
.form-msg--ok { background: var(--green-tint); color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); }
.form-msg--err { background: #fdecea; color: #b13427; border: 1px solid #f3c3bd; }

/* ---------------------------------------------------------------
   18. Breadcrumb, pagination, misc
   --------------------------------------------------------------- */
.breadcrumb { font-size: .82rem; color: var(--muted); padding-block: 18px 4px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--line-2); }
.breadcrumb li:last-child::after { content: ""; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 700; }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.notice { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wp-caption-text, .gallery-caption { font-size: .82rem; color: var(--muted); }
.sticky-aside { position: sticky; top: calc(var(--header-h) + 18px); }
