/*
Theme Name: Desert Comfort Mechanical
Theme URI: https://www.desertcomfortmechanical.com/
Description: Custom blog theme matching the Desert Comfort Mechanical marketing site.
Version: 1.0.0
Author: Desert Comfort Mechanical
*/

/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --color-primary:   #1e3a8a;
  --color-secondary: #2563eb;
  --color-accent:    #3b82f6;
  --color-copper:    #A44C28;
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50:  #f8fafc;
  --color-white:     #ffffff;
  /* Matches Tailwind v4 default font-family-sans (the React site's font) */
  --font-sans: ui-sans-serif, system-ui, sans-serif,
               'Apple Color Emoji', 'Segoe UI Emoji',
               'Segoe UI Symbol', 'Noto Color Emoji';
  --max-width: 80rem;
  --nav-height: 104px;     /* logo 80px + 12px padding top + 12px padding bottom */
  --banner-height: 44px;   /* single-line desktop banner: py-3 (24px) + ~20px text */
  --radius-lg: .75rem;
  --radius-xl: 1rem;
  --shadow-card: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-card-hover: 0 10px 25px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
}

/* ── Reset / base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-slate-900);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* nav + banner are both fixed; padding clears space for both */
  padding-top: calc(var(--nav-height) + var(--banner-height));
}
/* On mobile the banner stacks (tag + cta on separate lines) — bigger padding */
@media (max-width: 639px) {
  :root { --banner-height: 68px; }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Skip link ──────────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 9999;
  background: var(--color-white);
  color: var(--color-secondary);
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: .375rem;
  box-shadow: 0 0 0 3px var(--color-secondary);
}
.skip-link:focus { left: 0.5rem; }

/* ── Shared layout ──────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Buttons — matches EnterpriseButton.tsx exactly ────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;                    /* gap-2 */
  font-family: var(--font-sans);
  font-weight: 600;              /* font-semibold */
  text-transform: uppercase;     /* uppercase */
  letter-spacing: .05em;         /* tracking-wide */
  border-radius: .5rem;          /* rounded-lg */
  border: none;
  cursor: pointer;
  transition: all .2s;           /* transition-all duration-200 */
  white-space: nowrap;
  text-decoration: none;
  width: 100%;                   /* w-full (collapses to sm:w-auto below) */
}
@media (min-width: 640px) { .btn { width: auto; } } /* sm:w-auto */

/* size md: px-6 py-3 text-sm */
.btn--md { font-size: .875rem; padding: .75rem 1.5rem; }
/* size lg: px-8 py-4 text-base */
.btn--lg { font-size: 1rem; padding: 1rem 2rem; }

/* primary: bg-gradient-to-r from-blue-600 to-blue-500, shadow-lg */
.btn--primary {
  background: linear-gradient(to right, #2563eb, #3b82f6);
  color: var(--color-white);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}
.btn--primary:hover {
  background: linear-gradient(to right, #1d4ed8, #2563eb);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}

/* secondary: backgroundColor = COLORS.primary (#1e3a8a), hover:opacity-90 */
.btn--secondary { background: #1e3a8a; color: var(--color-white); }
.btn--secondary:hover { opacity: .9; }

/* outline: border-2 border-current text-slate-700, hover:bg-slate-50 */
.btn--outline {
  background: transparent;
  color: var(--color-slate-700);
  border: 2px solid currentColor;
}
.btn--outline:hover { background: var(--color-slate-50); }

.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }    /* md icon w-4 h-4 */
.btn--lg svg { width: 1.25rem; height: 1.25rem; }           /* lg icon w-5 h-5 */

/* ── Nav — matches React Nav.tsx exactly ────────────────────────────────────── */

/* ── Header / Nav ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: var(--nav-height);
  background: var(--color-white);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
/* Offset for WordPress admin bar when client is logged in */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.nav {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 12px 0 12px 0;
  padding-inline: 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Inline nav links — always hidden; nav lives in the hamburger dropdown */
.nav__links { display: none !important; }

/* Right-side action group: holds CTAs + divider + hamburger.
   Matches React's `hidden lg:flex items-center gap-4` wrapper. */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem; /* gap-4 */
}

/* Desktop CTAs — hidden below 1024px, visible on lg+
   (matches React's `lg:hidden` breakpoint = Tailwind lg = 1024px) */
.nav__ctas { display: none; }
@media (min-width: 1024px) {
  .nav__ctas {
    display: flex;
    align-items: center;
    gap: 1rem; /* gap-4 */
  }
}

/* Decorative vertical divider — hidden below 1024px, visible on lg+
   Matches React's `h-6 w-px bg-slate-300` */
.nav__divider { display: none; }
@media (min-width: 1024px) {
  .nav__divider {
    display: block;
    width: 1px;
    height: 1.5rem; /* h-6 = 24px */
    background: var(--color-slate-300);
    flex-shrink: 0;
  }
}

/* Hamburger — always visible (desktop + mobile) */
.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--color-slate-700);
  border-radius: .375rem;
  transition: background .15s;
}
.nav__toggle:hover { background: var(--color-slate-100); }

.nav__toggle svg { width: 1.5rem; height: 1.5rem; display: block; }
.nav__toggle .icon-close { display: none; }
.site-header.nav-open .nav__toggle .icon-menu  { display: none; }
.site-header.nav-open .nav__toggle .icon-close { display: block; }

/* Mobile dropdown — animated slide+fade.
   Matches the React site's Framer Motion `{height:0→auto, opacity:0→1, duration:0.25}`.
   - max-height animates the "grow" feel (Framer's height auto)
   - opacity fades smoothly
   - visibility is delayed on close so it only flips to hidden AFTER the fade completes
     (prevents click/focus on hidden links and avoids a jarring snap) */
.nav__mobile {
  position: absolute;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--color-white);
  border-top: 1px solid #f1f5f9;   /* slate-100 — matches React's border-slate-100 */
  /* NOTE: no padding here — the inner wrapper handles px-6/py-4 to align with the nav above */

  /* Hidden state */
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden !important;
  pointer-events: none;

  /* Closing transition */
  transition:
    max-height 0.25s ease,
    opacity    0.25s ease,
    visibility 0s linear 0.25s;
}

.site-header.nav-open .nav__mobile {
  max-height: 800px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transition:
    max-height 0.25s ease,
    opacity    0.25s ease,
    visibility 0s linear 0s;
}

/* Inner wrapper: matches React `mx-auto max-w-7xl px-6 py-4 flex flex-col gap-4`.
   This is what makes the dropdown items horizontally align with the nav logo above. */
.nav__mobile-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 1rem 1.5rem;            /* py-4 px-6 */
  display: flex;
  flex-direction: column;
  gap: 1rem;                       /* gap-4 — same gap between UL and CTA group */
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;                       /* gap-4 between each link (matches React) */
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__mobile-links a {
  display: block;
  font-size: 1rem;                 /* base — matches React's inherited text-base */
  font-weight: 500;                /* font-medium */
  color: var(--color-slate-700);
  padding: .5rem .75rem;           /* py-2 px-3 */
  border-radius: .5rem;            /* rounded-lg */
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav__mobile-links a:hover,
.nav__mobile-links a.active {
  color: var(--color-secondary);
  background: #eff6ff;             /* bg-blue-50 */
}

.nav__mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: .75rem;                     /* gap-3 */
  padding-top: 1rem;               /* pt-4 */
  border-top: 1px solid #f1f5f9;   /* border-slate-100 */
}
/* On lg+ the CTAs live in the header, so don't duplicate them in the dropdown.
   Matches React's `lg:hidden` on the mobile CTA wrapper. */
@media (min-width: 1024px) {
  .nav__mobile-ctas { display: none; }
}

/* ── Veteran banner — matches src/components/VeteranBanner/VeteranBanner.tsx ─ */
.veteran-banner {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  z-index: 40;                                              /* under nav (9999) */
  background: linear-gradient(to right, #1e3a8a, #1e40af);  /* blue-900 → blue-800 */
  color: var(--color-white);
  padding: .75rem 0;                                        /* py-3 */
}
/* Push banner below WP admin bar when logged in */
.admin-bar .veteran-banner { top: calc(var(--nav-height) + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .veteran-banner { top: calc(var(--nav-height) + 46px); }
}

.veteran-banner__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  flex-direction: column;        /* mobile: stack */
  align-items: center;
  justify-content: center;
  gap: .25rem;                   /* gap-1 */
  text-align: center;
  font-size: 1rem;               /* text-base */
}
@media (min-width: 640px) {
  .veteran-banner__inner {
    flex-direction: row;         /* sm:flex-row */
    gap: .75rem;                 /* sm:gap-3 */
  }
}

.veteran-banner__tag {
  font-weight: 600;              /* font-semibold */
  letter-spacing: .025em;        /* tracking-wide */
}

.veteran-banner__sep {
  display: none;                 /* hidden on mobile */
  color: #93c5fd;                /* text-blue-300 */
}
@media (min-width: 640px) {
  .veteran-banner__sep { display: inline; }  /* sm:inline */
}

.veteran-banner__cta {
  color: #bfdbfe;                /* text-blue-200 */
  text-decoration: none;
  font-size: .875rem;            /* mobile: text-sm */
  transition: color .15s;
}
@media (min-width: 640px) {
  .veteran-banner__cta { font-size: 1rem; } /* sm:text-base */
}
.veteran-banner__cta:hover { color: var(--color-white); }

/* ── Blog listing ───────────────────────────────────────────────────────────── */
.blog-section {
  padding: 5rem 0;
  background: var(--color-slate-50);
  min-height: calc(100vh - var(--nav-height));
}

.blog-section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.blog-section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-slate-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.blog-section__subtitle {
  font-size: 1.125rem;
  color: var(--color-slate-600);
  max-width: 42rem;
  margin-inline: auto;
  line-height: 1.7;
}

/* Category filter tabs */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 0 auto 3rem;
  max-width: 100%;
}
.blog-filter-btn {
  appearance: none;
  cursor: pointer;
  padding: .625rem 1.25rem;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--color-slate-700);
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 9999px;
  transition: color .15s, background .15s, border-color .15s, box-shadow .15s;
}
.blog-filter-btn:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.blog-filter-btn.is-active {
  color: var(--color-white);
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: 0 4px 10px -2px rgba(37,99,235,.4);
}

/* Empty state when a filter matches no posts */
.blog-empty-filter {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-slate-600);
  font-size: 1.0625rem;
}

.blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* Hidden cards (when filtered out) */
.blog-card[hidden] { display: none !important; }

/* ── Post card ──────────────────────────────────────────────────────────────── */
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.blog-card__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-slate-200);
}
.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.blog-card:hover .blog-card__thumb img { transform: scale(1.04); }

.blog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__date {
  font-size: .8125rem;
  color: var(--color-slate-500);
  margin-bottom: .5rem;
}

.blog-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-slate-900);
  line-height: 1.4;
  margin-bottom: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--color-secondary); }

.blog-card__excerpt {
  font-size: .9rem;
  color: var(--color-slate-600);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-secondary);
  transition: color .15s, gap .15s;
  margin-top: auto;
}
.blog-card__read-more:hover { color: var(--color-primary); gap: .5rem; }

/* No-posts message */
.blog-empty {
  text-align: center;
  padding: 5rem 1.5rem;
  color: var(--color-slate-600);
  font-size: 1.125rem;
  grid-column: 1 / -1;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 .5rem;
  border-radius: .375rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-slate-700);
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  transition: background .15s, color .15s;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

/* ── Single post ────────────────────────────────────────────────────────────── */
.single-post {
  padding-bottom: 0;
}

.post-hero {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  background: var(--color-slate-200);
}
.post-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
}

.post-wrap {
  max-width: 52rem;
  margin-inline: auto;
  padding: 2.5rem 1.5rem 4rem;
}

.post-breadcrumb {
  font-size: .8125rem;
  color: var(--color-slate-500);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .375rem;
  flex-wrap: wrap;
}
.post-breadcrumb a { color: var(--color-secondary); }
.post-breadcrumb a:hover { text-decoration: underline; }
.post-breadcrumb .sep { color: var(--color-slate-400); }

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8125rem;
  color: var(--color-slate-500);
  margin-bottom: 2rem;
}
.post-meta .cat-link {
  background: #eff6ff;
  color: var(--color-secondary);
  padding: .2rem .625rem;
  border-radius: 999px;
  font-weight: 600;
}

.post-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-slate-900);
  line-height: 1.25;
  margin-bottom: 1.75rem;
}

/* Article body typography */
.post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-slate-700);
}
.post-content p          { margin-bottom: 1.25em; }
.post-content h2         { font-size: 1.5rem; font-weight: 700; color: var(--color-slate-900); margin: 2em 0 .75em; }
.post-content h3         { font-size: 1.25rem; font-weight: 700; color: var(--color-slate-900); margin: 1.75em 0 .625em; }
.post-content h4         { font-size: 1.0625rem; font-weight: 700; color: var(--color-slate-900); margin: 1.5em 0 .5em; }
.post-content ul,
.post-content ol         { margin: 0 0 1.25em 1.5em; }
.post-content ul         { list-style: disc; }
.post-content ol         { list-style: decimal; }
.post-content li         { margin-bottom: .375em; }
.post-content a          { color: var(--color-secondary); text-decoration: underline; }
.post-content a:hover    { color: var(--color-primary); }
.post-content blockquote {
  border-left: 4px solid var(--color-secondary);
  padding: 1rem 1.5rem;
  margin: 1.5em 0;
  background: #eff6ff;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  color: var(--color-slate-700);
  font-style: italic;
}
.post-content img {
  border-radius: var(--radius-lg);
  margin: 1.5em 0;
  max-width: 100%;
}
.post-content pre {
  background: var(--color-slate-900);
  color: var(--color-slate-100);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-size: .875rem;
  line-height: 1.6;
  margin: 1.5em 0;
}
.post-content code {
  background: var(--color-slate-100);
  padding: .15em .4em;
  border-radius: .25rem;
  font-size: .9em;
}
.post-content pre code { background: transparent; padding: 0; font-size: inherit; }
.post-content hr { border: none; border-top: 1px solid var(--color-slate-200); margin: 2em 0; }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-secondary);
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-slate-200);
}
.post-back:hover { color: var(--color-primary); }

/* ── CTA band ───────────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--color-slate-900) 0%, var(--color-slate-800) 50%, var(--color-slate-900) 100%);
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--color-white);
  margin-top: 4rem;
}
.cta-band__inner { max-width: var(--max-width); margin-inline: auto; }
.cta-band__title {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: .75rem;
}
.cta-band__sub {
  color: var(--color-slate-300);
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-inline: auto;
  font-size: 1rem;
}
.cta-band__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
/* Matches React's <footer class="bg-slate-900"> with inner <div class="mx-auto max-w-7xl px-6 py-16">
   — dark background extends edge-to-edge, content is constrained to max-w-7xl + 24px padding. */
.site-footer {
  background: var(--color-slate-900);
  color: var(--color-slate-300);
  padding-top: 64px;     /* py-16 top portion */
  padding-bottom: 24px;
}

.footer-grid {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;   /* px-6 — lives inside the max-width like React */
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: span 2; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.footer-logo img { height: 48px; width: auto; }

.footer-tagline {
  font-size: .875rem;
  color: var(--color-slate-400);
  max-width: 28rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-slate-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-300);
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--color-secondary); color: var(--color-white); }
.footer-social svg { width: 1.125rem; height: 1.125rem; }

.footer-col h4 {
  font-size: .75rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a {
  font-size: .875rem;
  color: var(--color-slate-400);
  transition: color .15s;
}
.footer-col a:hover { color: var(--color-white); }

.footer-bottom {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 1.5rem 1.5rem;  /* px-6 — lives inside the max-width like React */
  border-top: 1px solid var(--color-slate-800);
  font-size: .8125rem;
  color: var(--color-slate-500);
}

/* ── 404 page ───────────────────────────────────────────────────────────────── */
.page-404 {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--color-slate-50);
}
.page-404__inner { max-width: 32rem; }
.page-404__code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-slate-200);
  line-height: 1;
  margin-bottom: .5rem;
}
.page-404__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 1rem;
}
.page-404__text {
  color: var(--color-slate-600);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ── Utilities ──────────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
