/* ==========================================================================
   Herdsman Group Pty Ltd — herdsmangrouptec.site
   Art direction: basalt plains of Melbourne's west. Deep basalt green,
   wattle-gold accent used sparingly, cool stone neutrals, soft shapes.
   ========================================================================== */

:root {
  /* Colour */
  --primary: #2E4A43;
  --primary-deep: #1D2E2A;
  --primary-soft: #E2EAE6;
  --footer-bar: #253A35;
  --accent: #8C5E14;
  --accent-light: #E0B865;
  --accent-hover: #EBC97F;
  --accent-soft: #F6ECD6;
  --bg: #F2F4F1;
  --surface: #FFFFFF;
  --stone: #E6EAE5;
  --border: #D3D9D3;
  --border-strong: #87938D;
  --text-dark: #1B2422;
  --text-light: #56625D;
  --on-dark: #F2F4F1;
  --on-dark-muted: #B7C5BF;
  --line-dark: rgba(242, 244, 241, 0.14);
  --line-dark-strong: rgba(242, 244, 241, 0.5);
  --pattern: rgba(242, 244, 241, 0.055);
  --glow: rgba(224, 184, 101, 0.2);
  --nav-bg: rgba(242, 244, 241, 0.84);

  /* Type */
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --fs-hero: clamp(2.25rem, 5vw, 4rem);
  --fs-page-hero: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h2-legal: clamp(1.3rem, 2.2vw, 1.6rem);
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.075rem, 1.6vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.78rem;
  --measure: 66ch;

  /* Spacing scale */
  --s0: 0.25rem;
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;

  /* Shape, layout, depth */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --container: 1140px;
  --gutter: clamp(1.25rem, 4vw, 1.5rem);
  --nav-h: 4.25rem;
  --shadow-sm: 0 1px 2px rgba(27, 36, 34, 0.05);
  --shadow: 0 1px 2px rgba(27, 36, 34, 0.04), 0 8px 24px rgba(27, 36, 34, 0.07);
  --shadow-lg: 0 2px 4px rgba(10, 18, 16, 0.1), 0 28px 56px rgba(10, 18, 16, 0.32);
  --ease: 180ms ease;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s3);
}

h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

p { margin: 0 0 var(--s3); max-width: var(--measure); }

a { color: var(--accent); text-underline-offset: 0.2em; transition: color var(--ease); }
a:hover { color: var(--primary); }

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

strong { font-weight: 650; }

.skip-link {
  position: absolute;
  left: var(--s3);
  top: calc(-1 * var(--s6));
  z-index: 100;
  padding: var(--s1) var(--s3);
  background: var(--primary);
  color: var(--on-dark);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: var(--s2); color: var(--on-dark); }

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

.eyebrow {
  display: inline-block;
  margin: 0 0 var(--s2);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead { font-size: var(--fs-lead); color: var(--text-light); line-height: 1.6; }

.section { padding-block: var(--s7); }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

.section-head { max-width: 46rem; margin-bottom: var(--s5); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--text-light); }
.section-foot { margin-top: var(--s5); }

.text-link { font-weight: 650; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--text-dark);
  text-decoration: none;
}
.brand:hover { color: var(--text-dark); }

.brand-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--accent-light);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark-lg { width: 3.5rem; height: 3.5rem; font-size: 1.45rem; border-radius: var(--radius-sm); }

.brand-name { font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s0);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: block;
  padding: var(--s1) var(--s3);
  border-radius: var(--radius-pill);
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--ease), color var(--ease);
}
.nav-link:hover { background: var(--stone); color: var(--text-dark); }

.nav-link[aria-current="page"] { color: var(--primary); font-weight: 650; }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: var(--s3);
  right: var(--s3);
  bottom: var(--s0);
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

.nav-cta { margin-left: var(--s2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--s0);
  width: 2.75rem;
  height: 2.75rem;
  padding: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: var(--radius-pill);
  background: var(--text-dark);
  transition: transform var(--ease), opacity var(--ease);
}

.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: 0.8rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), color var(--ease), border-color var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent-light); color: var(--text-dark); border-color: var(--accent-light); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--text-dark); box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--on-dark); }

.btn-outline-light { background: transparent; color: var(--on-dark); border-color: var(--line-dark-strong); }
.btn-outline-light:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--primary-deep); }

.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.92rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60vh;
  padding-block: var(--s7) calc(var(--s7) + var(--s5));
  color: var(--on-dark);
  background:
    radial-gradient(60rem 30rem at 85% 5%, var(--glow), transparent 60%),
    repeating-radial-gradient(circle at 80% 45%, transparent 0 26px, var(--pattern) 26px 27px),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-deep) 75%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s6)), 0 100%);
}

.hero .eyebrow { color: var(--accent-light); }

.hero h1 { font-size: var(--fs-hero); max-width: 16ch; margin-bottom: var(--s4); }

.hero .lead { color: var(--on-dark-muted); max-width: 48ch; margin-bottom: var(--s5); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--s6);
  align-items: center;
}

.hero-visual { position: relative; padding: var(--s4) 0; }

.panel-back {
  position: absolute;
  top: 0;
  right: var(--s5);
  width: 80%;
  height: 88%;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--pattern);
  transform: rotate(-6deg);
}

.id-card {
  position: relative;
  max-width: 24rem;
  margin-left: auto;
  padding: var(--s5);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

.id-name {
  margin: var(--s4) 0 var(--s0);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.id-tagline { margin: 0; font-size: var(--fs-small); color: var(--text-light); }

.id-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s1) var(--s3);
  margin: var(--s4) 0 0;
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
  font-size: var(--fs-small);
}
.id-meta dt { color: var(--text-light); }
.id-meta dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }

.id-art { display: block; width: 100%; height: auto; margin-top: var(--s4); color: var(--primary); }
.id-art path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.id-art .id-art-river { stroke: var(--accent); }

/* Page hero (inner pages) */
.page-hero {
  min-height: 0;
  padding-block: var(--s6) calc(var(--s6) + var(--s4));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s5)), 0 100%);
}
.page-hero h1 { font-size: var(--fs-page-hero); max-width: 22ch; }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Split bands ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s6);
  align-items: start;
}
.split-center { align-items: center; }
.split h2 { font-size: var(--fs-h2); }

.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }

.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s3);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border);
}
.principle:last-child { border-bottom: 0; padding-bottom: 0; }
.principle h3 { margin-bottom: var(--s0); }
.principle p { margin: 0; color: var(--text-light); }

.icon-tile {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
}
.icon-tile svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-tile-gold { background: var(--accent-soft); color: var(--accent); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--s4);
}
.services-grid-3 { grid-template-columns: repeat(3, 1fr); }

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s5) var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.service-card h3 { margin: var(--s2) 0 0; }
.service-card p { margin: 0; color: var(--text-light); font-size: 1rem; }

.section-alt .service-card { background: var(--bg); }

/* ---------- Plains illustration ---------- */
.plains-visual {
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--primary-soft) 70%);
  border: 1px solid var(--border);
}
.plains-visual svg { display: block; width: 100%; height: auto; }
.plains-sun { fill: var(--accent-light); }
.plains-far { fill: var(--primary); opacity: 0.28; }
.plains-mid { fill: var(--primary); opacity: 0.55; }
.plains-near { fill: var(--primary); }
.plains-river { fill: none; stroke: var(--accent-light); stroke-width: 3; stroke-linecap: round; }
.plains-fence { fill: none; stroke: var(--on-dark); stroke-width: 1.5; opacity: 0.6; }

/* ---------- Credentials ---------- */
.credentials { padding-block: var(--s6); }

.cred-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.cred-item { padding: var(--s4); border-left: 1px solid var(--border); }
.cred-item:first-child { border-left: 0; }
.cred-item dt { font-size: var(--fs-small); color: var(--text-light); margin-bottom: var(--s0); }
.cred-item dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.cred-note { margin: var(--s3) 0 0; font-size: var(--fs-small); color: var(--text-light); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.step { padding-top: var(--s3); border-top: 2px solid var(--primary); }
.step-num {
  display: block;
  margin-bottom: var(--s1);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}
.step h3 { margin-bottom: var(--s1); }
.step p { margin: 0; color: var(--text-light); font-size: 1rem; }

/* ---------- Fact sheet (about) ---------- */
.fact-sheet {
  margin: 0;
  padding: var(--s4) var(--s5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.fact-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: var(--s3);
  padding-block: var(--s2);
  border-bottom: 1px solid var(--border);
}
.fact-row:last-child { border-bottom: 0; }
.fact-row dt { font-size: var(--fs-small); color: var(--text-light); padding-top: var(--s0); }
.fact-row dd { margin: 0; font-weight: 600; }

.prose p { color: var(--text-dark); }
.prose h2 { font-size: var(--fs-h2); }

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: var(--s6);
  color: var(--on-dark);
  background:
    repeating-radial-gradient(circle at 10% 120%, transparent 0 22px, var(--pattern) 22px 23px),
    var(--primary);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
}
.cta-band h2 { font-size: var(--fs-h2); margin-bottom: var(--s1); }
.cta-band p { margin: 0; color: var(--on-dark-muted); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s6);
  align-items: start;
}

.contact-list { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s4); }
.contact-item { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: center; }
.contact-label { display: block; font-size: var(--fs-small); color: var(--text-light); }
.contact-value { font-weight: 650; overflow-wrap: anywhere; }

.form-card {
  padding: var(--s5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: var(--fs-h2-legal); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.form-field { display: grid; gap: var(--s1); margin-bottom: var(--s3); }
.form-field label { font-size: 0.95rem; font-weight: 650; }
.form-optional { font-weight: 400; color: var(--text-light); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-dark);
  font: inherit;
  transition: border-color var(--ease), background-color var(--ease);
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--primary); background: var(--surface); }

.form-note { margin: var(--s3) 0 0; font-size: var(--fs-small); color: var(--text-light); }

/* ---------- Legal ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: var(--s6);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--s4));
  padding: var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: var(--fs-small);
}
.legal-toc h2 { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 650; letter-spacing: 0; margin-bottom: var(--s2); }
.legal-toc ol { margin: 0; padding-left: var(--s4); display: grid; gap: var(--s1); }
.legal-toc a { color: var(--text-dark); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); text-decoration: underline; }

.legal-meta { font-size: var(--fs-small); color: var(--text-light); }

.legal-body h2 {
  font-size: var(--fs-h2-legal);
  margin-top: var(--s5);
  scroll-margin-top: calc(var(--nav-h) + var(--s3));
}
.legal-body h2:first-of-type { margin-top: var(--s3); }
.legal-body ul { max-width: var(--measure); margin: 0 0 var(--s3); padding-left: var(--s4); }
.legal-body li { margin-bottom: var(--s1); }

/* ---------- Footer ---------- */
.footer { background: var(--primary-deep); color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: var(--s5);
  padding-block: var(--s6);
}

.footer .brand { color: var(--on-dark); }
.footer .brand:hover { color: var(--on-dark); }

.footer-title {
  margin-bottom: var(--s3);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.footer-blurb { margin: var(--s3) 0; font-size: 0.95rem; max-width: 38ch; }
.footer-reg { margin: 0; font-size: var(--fs-small); line-height: 1.7; }

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); font-size: 0.95rem; }
.footer a { color: var(--on-dark-muted); text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--accent-light); text-decoration: underline; }

.footer-bottom { background: var(--footer-bar); border-top: 1px solid var(--line-dark); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  padding-block: var(--s3);
  font-size: var(--fs-small);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: var(--s4); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .split, .contact-grid { gap: var(--s5); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .services-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .legal-layout { grid-template-columns: 13rem 1fr; gap: var(--s5); }
}

@media (max-width: 768px) {
  .section { padding-block: var(--s6); }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s0);
    padding: var(--s3) var(--gutter) var(--s4);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-open .nav-links { display: flex; }
  .nav-link { padding: var(--s2) var(--s3); border-radius: var(--radius-sm); }
  .nav-link[aria-current="page"] { background: var(--primary-soft); }
  .nav-link[aria-current="page"]::after { left: 0; right: auto; top: var(--s2); bottom: var(--s2); width: 3px; height: auto; }
  .nav-cta { margin: var(--s2) 0 0; }
  .nav-cta .btn { width: 100%; }

  .hero { min-height: 0; padding-block: var(--s6) calc(var(--s6) + var(--s5)); }
  .page-hero { padding-block: var(--s5) calc(var(--s5) + var(--s4)); }
  .hero-grid, .split, .contact-grid, .legal-layout { grid-template-columns: 1fr; }
  .hero-visual { display: none; }

  .services-grid-3, .steps { grid-template-columns: 1fr; }

  .cred-list { grid-template-columns: 1fr 1fr; }
  .cred-item { border-left: 0; border-top: 1px solid var(--border); }
  .cred-item:nth-child(-n+2) { border-top: 0; }
  .cred-item:nth-child(even) { border-left: 1px solid var(--border); }

  .fact-sheet { padding: var(--s3) var(--s4); }
  .fact-row { grid-template-columns: 1fr; gap: 0; }

  .form-card { padding: var(--s4); }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .legal-toc { position: static; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); padding-block: var(--s5); }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .cred-list { grid-template-columns: 1fr; }
  .cred-item, .cred-item:nth-child(even) { border-left: 0; }
  .cred-item:nth-child(2) { border-top: 1px solid var(--border); }
  .btn-group .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:hover { transform: none; }
  .panel-back, .id-card { transform: none; }
}
