/*
Theme Name: Strata
Theme URI: https://example.com/strata
Author: Gagandeep Singh
Description: A custom theme for geotechnical, geological and geophysical investigation contractors. Service pages with depth and method data, a machinery fleet register, a client and project record, and a working enquiry form. No page builder required.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: strata
Tags: business, services, portfolio, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Tokens — a wet-slate and drill-mud palette
   ========================================================================== */
:root {
  --slate:    #1b2422;  /* ground dark */
  --slate-2:  #2f3d39;
  --depth:    #2f4a44;  /* deep strata */
  --stone:    #eceeea;  /* page */
  --white:    #ffffff;
  --rock:     #55605c;  /* muted text */
  --line:     #d3d8d2;
  --core:     #a9662f;  /* rock core ochre — strata marker */
  --core-lt:  #c99257;
  --hivis:    #d9a400;  /* actions only */

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --step--1: clamp(0.8rem, 0.77rem + 0.14vw, 0.875rem);
  --step-0:  clamp(1rem, 0.97rem + 0.18vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.11rem + 0.44vw, 1.44rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(1.95rem, 1.55rem + 2vw, 3rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3.4vw, 4.3rem);

  --gutter: clamp(1.15rem, 4vw, 3rem);
  --max: 1220px;
  --radius: 3px;
}

/* ==========================================================================
   2. 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; } }

body {
  margin: 0;
  background: var(--stone);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

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

a { color: var(--core); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--slate); }

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

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--hivis);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 0.5rem; left: 0.5rem; width: auto; height: auto;
  clip: auto; z-index: 999; background: var(--slate); color: #fff;
  padding: 0.6rem 1rem; font-family: var(--font-mono); font-size: var(--step--1);
}

.wrap { width: min(100% - (var(--gutter) * 2), var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - (var(--gutter) * 2), 760px); margin-inline: auto; }

/* ==========================================================================
   3. Utility
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rock);
  display: block;
  margin-bottom: 0.9rem;
}
.eyebrow--core { color: var(--core); }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--slate); border-radius: var(--radius);
  background: var(--slate); color: #fff; text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--hivis); border-color: var(--hivis); color: var(--slate); }
.btn--hivis { background: var(--hivis); border-color: var(--hivis); color: var(--slate); }
.btn--hivis:hover { background: var(--slate); border-color: var(--slate); color: #fff; }
.btn--ghost { background: transparent; color: var(--slate); }
.btn--ghost:hover { background: var(--slate); border-color: var(--slate); color: #fff; }
.btn--on-dark { border-color: rgba(255,255,255,0.35); background: transparent; color: #fff; }
.btn--on-dark:hover { background: #fff; border-color: #fff; color: var(--slate); }

/* ==========================================================================
   4. Header — a utility bar above a sticky nav
   ========================================================================== */
.topbar {
  background: var(--slate);
  color: #a9b3ae;
  font-family: var(--font-mono);
  font-size: var(--step--1);
}
.topbar__inner { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; padding: 0.55rem 0; }
.topbar a { color: #dfe4e0; text-decoration: none; }
.topbar a:hover { color: var(--hivis); }
.topbar__meta { display: flex; flex-wrap: wrap; gap: 1.5rem; }
@media (max-width: 700px) { .topbar__est { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--stone) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0.9rem 0; }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--slate); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; line-height: 1.1; display: block; }
.brand__sub { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rock); display: block; }
.custom-logo { max-height: 46px; width: auto; }

.nav > ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; align-items: center; }
.nav a {
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--slate); text-decoration: none;
  padding: 0.4rem 0; border-bottom: 2px solid transparent; display: block;
}
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { border-bottom-color: var(--hivis); }

/* Dropdown for Services */
.nav li { position: relative; }
.nav .sub-menu {
  list-style: none; margin: 0; padding: 0.5rem 0;
  position: absolute; top: 100%; left: -0.9rem; min-width: 250px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgba(27,36,34,0.5);
  display: none; z-index: 10;
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: block; }
.nav .sub-menu a { padding: 0.5rem 0.9rem; border-bottom: none; text-transform: none; letter-spacing: 0.01em; }
.nav .sub-menu a:hover { background: var(--stone); color: var(--core); }
.nav .menu-item-has-children > a::after { content: " ▾"; font-size: 0.7em; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.55rem 0.85rem;
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; color: var(--slate);
}

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto 0; background: var(--stone);
    border-bottom: 1px solid var(--line); display: none;
    padding: 1rem var(--gutter) 1.5rem; max-height: 75vh; overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav .sub-menu {
    position: static; display: block; border: none; box-shadow: none;
    background: transparent; padding: 0 0 0.5rem 1rem; min-width: 0;
  }
  .nav .sub-menu a { color: var(--rock); }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero {
  position: relative; background: var(--slate); color: var(--stone);
  padding: clamp(3.5rem, 9vw, 7rem) 0 0;
  overflow: hidden;
}
.hero::after {
  /* Faint strata banding across the base of the hero. */
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: repeating-linear-gradient(
    180deg,
    rgba(169,102,47,0.10) 0 14px,
    rgba(47,74,68,0.10) 14px 22px,
    rgba(255,255,255,0.03) 22px 38px
  );
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero__lede { font-size: var(--step-1); color: #b9c2bd; max-width: 46ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; padding-bottom: clamp(2.5rem, 6vw, 4rem); }

/* Credential counters sit on the hero base */
.stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid rgba(255,255,255,0.16);
}
.stats__item { padding: 1.5rem 1.25rem 1.75rem; border-right: 1px solid rgba(255,255,255,0.16); }
.stats__item:last-child { border-right: none; }
.stats__num { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); color: var(--hivis); display: block; line-height: 1; }
.stats__label { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: #98a39e; margin-top: 0.5rem; display: block; }
@media (max-width: 620px) { .stats__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.16); } }

/* ==========================================================================
   6. Sections
   ========================================================================== */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--dark { background: var(--slate); color: var(--stone); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--core-lt); }
.section--dark p { color: #b9c2bd; }
.section--depth { background: var(--depth); color: var(--stone); }
.section--depth h2, .section--depth h3 { color: var(--white); }
.section--depth p { color: #c3d1cd; }
.section--line { border-top: 1px solid var(--line); }

.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--rock); font-size: var(--step-1); }
.section--dark .section__head p, .section--depth .section__head p { color: #b9c2bd; }

.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ==========================================================================
   7. THE DEPTH RAIL — the signature.
   Services are pinned at the depth they actually operate at.
   ========================================================================== */
.rail { position: relative; margin-top: 1rem; }
.rail::before {
  content: ""; position: absolute; left: 74px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--core-lt), var(--core) 40%, var(--depth));
}
@media (max-width: 720px) { .rail::before { left: 8px; } }

.rail__row {
  display: grid; grid-template-columns: 74px 1fr; gap: 0;
  position: relative; padding: 0 0 2.25rem;
}
.rail__depth {
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500;
  color: var(--core); text-align: right; padding-right: 1.15rem; padding-top: 0.15rem;
  white-space: nowrap;
}
.section--dark .rail__depth { color: var(--core-lt); }

.rail__body { padding-left: 1.6rem; position: relative; }
.rail__body::before {
  /* the tick that marks this service's depth on the rail */
  content: ""; position: absolute; left: -5px; top: 0.45rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--stone); border: 2px solid var(--core);
}
.section--dark .rail__body::before { background: var(--slate); }
.rail__row:hover .rail__body::before { background: var(--hivis); border-color: var(--hivis); }

.rail__body h3 { margin: 0 0 0.35rem; }
.rail__body h3 a { color: inherit; text-decoration: none; }
.rail__body h3 a:hover { color: var(--core); }
.section--dark .rail__body h3 a:hover { color: var(--hivis); }
.rail__body p { margin: 0 0 0.6rem; color: var(--rock); max-width: 62ch; }
.section--dark .rail__body p { color: #b9c2bd; }

.rail__meta { font-family: var(--font-mono); font-size: var(--step--1); color: var(--rock); display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.section--dark .rail__meta { color: #8d9a95; }

@media (max-width: 720px) {
  .rail__row { grid-template-columns: 1fr; }
  .rail__depth { text-align: left; padding: 0 0 0.4rem 1.6rem; }
  .rail__body { padding-left: 1.6rem; }
  .rail__body::before { top: -1.75rem; left: -5px; }
}

/* ==========================================================================
   8. Cards
   ========================================================================== */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--slate); box-shadow: 0 18px 38px -30px rgba(27,36,34,0.6); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

.card__media { aspect-ratio: 16 / 10; background: var(--line); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card__body h3 { margin: 0; font-size: var(--step-1); }
.card__body h3 a { color: inherit; text-decoration: none; }
.card__body h3 a:hover { color: var(--core); }
.card__excerpt { color: var(--rock); font-size: 0.96rem; margin: 0; }
.card__foot {
  margin-top: auto; padding-top: 0.8rem; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--rock);
  display: flex; flex-wrap: wrap; gap: 0.3rem 1rem;
}

/* Capability tick list */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.ticks li { display: flex; gap: 0.75rem; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: none; width: 9px; height: 9px; margin-top: 0.5rem;
  background: var(--hivis); transform: rotate(45deg);
}

/* ==========================================================================
   9. Spec table — machinery register, client list, project list
   ========================================================================== */
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 620px; }
.spec caption { text-align: left; padding: 1rem 1.15rem; font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--rock); border-bottom: 1px solid var(--line); }
.spec th, .spec td { text-align: left; padding: 0.85rem 1.15rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th {
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--rock);
  background: var(--stone); position: sticky; top: 0;
}
.spec tbody tr:last-child th, .spec tbody tr:last-child td { border-bottom: none; }
.spec tbody tr:hover { background: #f7f8f6; }
.spec .num { font-family: var(--font-mono); color: var(--core); font-weight: 500; width: 4rem; }
.spec .qty { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }

/* Two-column fact list used on service pages */
.facts { width: 100%; border-collapse: collapse; font-size: 0.96rem; margin: 2rem 0; }
.facts th, .facts td { text-align: left; padding: 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th {
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--rock); width: 36%;
}

/* ==========================================================================
   10. Client logo wall
   ========================================================================== */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logo-cell {
  background: var(--white); aspect-ratio: 3 / 2;
  display: grid; place-items: center; padding: 1.1rem;
}
.logo-cell img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.25s ease, opacity 0.25s ease; }
.logo-cell:hover img { filter: none; opacity: 1; }
.logo-cell span {
  font-family: var(--font-mono); font-size: 0.72rem; text-align: center;
  color: var(--rock); text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.4;
}

/* ==========================================================================
   11. Page header / content
   ========================================================================== */
.page-hero {
  background: var(--slate); color: var(--white);
  padding: clamp(2.75rem, 7vw, 5rem) 0;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background: repeating-linear-gradient(180deg, rgba(169,102,47,0.12) 0 10px, transparent 10px 26px);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 0.4rem; }
.page-hero p { color: #b9c2bd; max-width: 58ch; font-size: var(--step-1); }
.breadcrumb { font-family: var(--font-mono); font-size: var(--step--1); color: #8d9a95; margin-bottom: 1rem; }
.breadcrumb a { color: #b9c2bd; text-decoration: none; }
.breadcrumb a:hover { color: var(--hivis); }

.entry-hero { margin: 0 auto clamp(2rem, 5vw, 3rem); }
.entry-hero img { border-radius: var(--radius); }

.entry-content { font-size: 1.06rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: var(--step-2); margin-top: 2.1em; }
.entry-content h3 { margin-top: 1.7em; }
.entry-content ul, .entry-content ol { padding-left: 1.2rem; }
.entry-content li + li { margin-top: 0.35em; }
.entry-content blockquote {
  margin: 2em 0; padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--core); font-size: var(--step-1); color: var(--slate-2);
}
.entry-content code { font-family: var(--font-mono); font-size: 0.88em; background: #e2e6e1; padding: 0.15em 0.4em; border-radius: 2px; }
.entry-content img { border-radius: var(--radius); }
.entry-content figcaption { font-family: var(--font-mono); font-size: var(--step--1); color: var(--rock); margin-top: 0.5rem; }
.alignwide { width: min(100vw - (var(--gutter) * 2), 1040px); margin-inline: auto; }

/* ==========================================================================
   12. Forms
   ========================================================================== */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--rock);
}
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.8rem 0.95rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white); color: var(--slate); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--core); }
.field textarea { min-height: 150px; resize: vertical; }
.field__hint { font-size: 0.85rem; color: var(--rock); }
.field--error input, .field--error textarea { border-color: #a3342a; }
.field__error { font-family: var(--font-mono); font-size: var(--step--1); color: #a3342a; }
.hp { position: absolute; left: -9999px; }
@media (min-width: 640px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; } }

.notice { padding: 0.95rem 1.15rem; border-radius: var(--radius); font-size: 0.95rem; border-left: 3px solid; }
.notice--ok { background: #e6f1ea; border-color: #2f7d55; color: #1d5136; }
.notice--bad { background: #f8e9e7; border-color: #a3342a; color: #75241c; }

.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--white); }
.contact__card dt { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.07em; color: var(--rock); }
.contact__card dd { margin: 0.25rem 0 1.15rem; }
.contact__card dd:last-child { margin-bottom: 0; }
.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; line-height: 0; }
.map iframe { width: 100%; height: 420px; border: 0; }

/* ==========================================================================
   13. CTA band, pagination, footer, 404
   ========================================================================== */
.cta-band {
  background: var(--core); color: #fff; border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: center;
}
.cta-band h2 { color: #fff; margin: 0; font-size: var(--step-2); max-width: 24ch; }
.cta-band p { color: rgba(255,255,255,0.88); margin: 0.4rem 0 0; max-width: 46ch; }
.cta-band .btn { background: var(--white); border-color: var(--white); color: var(--slate); }
.cta-band .btn:hover { background: var(--slate); border-color: var(--slate); color: #fff; }

.pagination { margin-top: 2.5rem; display: flex; justify-content: center; }
.pagination .page-numbers {
  font-family: var(--font-mono); font-size: var(--step--1);
  padding: 0.5rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius);
  margin: 0 0.2rem; text-decoration: none; color: var(--slate); background: var(--white);
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--slate); color: #fff; border-color: var(--slate); }

.site-footer { background: var(--slate); color: #98a39e; padding: clamp(2.75rem, 6vw, 4rem) 0 1.75rem; }
.site-footer a { color: #dfe4e0; }
.site-footer a:hover { color: var(--hivis); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.25rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__grid h4 {
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.09em; color: #6d7a75; margin-bottom: 0.9rem;
}
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.95rem; }
.footer__grid a { text-decoration: none; }
.footer__bar {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.13);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--font-mono); font-size: var(--step--1); color: #6d7a75;
}

.error-404 { padding: clamp(3.5rem, 9vw, 7rem) 0; text-align: center; }
.error-404 .btn { margin: 0 0.3rem; }
