/*
Theme Name:  TorqueSpecs
Theme URI:   https://gettorquespecs.com
Author:      Get Torque Specs
Description: A modern technical theme for the fastener torque specification lookup tool. Built on NASA/TM-2017-219475 data.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: torquespecs
*/

/* ─── Design System ─────────────────────────────────────────────────────────── */

:root {
  --c-dark:          #0f172a;
  --c-dark-80:       #1e293b;
  --c-dark-60:       #334155;
  --c-accent:        #194aa4;
  --c-accent-hover:  #133e8f;
  --c-accent-light:  #dbeafe;
  --c-accent-muted:  rgba(25, 74, 164, 0.12);
  --c-accent-bright: #6096e8;

  --c-bg:            #f8fafc;
  --c-surface:       #ffffff;
  --c-surface-2:     #f1f5f9;
  --c-border:        #e2e8f0;
  --c-border-dark:   #cbd5e1;

  --c-text:          #1e293b;
  --c-text-muted:    #64748b;
  --c-text-subtle:   #94a3b8;

  --c-warn:          #b45309;

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow:     0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.15), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.2), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 0 3px rgba(25, 74, 164, 0.25);

  --radius-sm:  4px;
  --radius:     8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-full: 9999px;

  --transition: 150ms ease;
  --transition-md: 250ms ease;
  --transition-lg: 400ms ease;

  --container: 1200px;
  --container-sm: 800px;
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── Typography ─────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.375rem); }
h4 { font-size: 1.125rem; }

p { color: var(--c-text-muted); line-height: 1.75; }

/* ─── Layout ─────────────────────────────────────────────────────────────────── */

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

.container--sm {
  max-width: var(--container-sm);
}

section { position: relative; }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition-md);
  white-space: nowrap;
}

.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn--sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}

.btn--accent {
  background: var(--c-accent);
  color: #fff;
}
.btn--accent:hover {
  background: var(--c-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(25, 74, 164, 0.25);
}

.btn--outline {
  border: 1.5px solid var(--c-border-dark);
  color: var(--c-text);
  background: var(--c-surface);
}
.btn--outline:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-muted);
}

.btn--ghost {
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

.btn--dark {
  background: var(--c-dark);
  color: #fff;
}
.btn--dark:hover {
  background: var(--c-dark-60);
  transform: translateY(-1px);
}

.btn svg { flex-shrink: 0; }

/* ─── Badges ─────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--accent {
  background: var(--c-accent-muted);
  color: var(--c-accent-hover);
  border: 1px solid rgba(25, 74, 164, 0.35);
}

.badge--dark {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.12);
}

.badge--outline {
  background: transparent;
  color: var(--c-text-muted);
  border: 1.5px solid var(--c-border-dark);
}

/* ─── Section Headers ────────────────────────────────────────────────────────── */

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-header .badge { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { font-size: 1.0625rem; }

/* ─── Site Header ────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition-md), box-shadow var(--transition-md),
              border-color var(--transition-md);
  border-bottom: 1px solid transparent;
}

.site-header--scrolled {
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.05);
}

.site-header.is-inner {
  position: sticky;
  background: var(--c-dark);
  border-color: rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.site-logo__icon {
  width: 32px;
  height: 32px;
  background: var(--c-accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-logo__icon svg { color: #fff; }

.site-logo__text span { color: var(--c-accent-bright); }

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: 0.25rem; }

.primary-nav a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.primary-nav a:hover,
.primary-nav a.current_page_item > a,
.primary-nav .current-menu-item > a {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.header-cta { flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  transition: background var(--transition);
  padding: 8px 10px;
}

.nav-toggle:hover { background: rgba(255,255,255,0.12); }

.nav-toggle span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all var(--transition-md);
  transform-origin: center;
}

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

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 68px 0 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  padding: 1.5rem;
  overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,0.07);
  z-index: 99;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav.is-open { display: flex; }

.mobile-nav a {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}

.mobile-nav a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.mobile-nav .btn { margin-top: 1rem; width: 100%; justify-content: center; }

/* ─── Hero Section ───────────────────────────────────────────────────────────── */

.hero {
  background-color: var(--c-dark);
  background-image:
    radial-gradient(ellipse 80% 60% at 60% 50%, rgba(25, 74, 164, 0.14) 0%, transparent 70%),
    radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__eyebrow-line {
  width: 32px;
  height: 2px;
  background: var(--c-accent-bright);
  border-radius: 2px;
}

.hero__title {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
}

.hero__title em {
  font-style: normal;
  color: var(--c-accent-bright);
}

.hero__desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero__stat-value {
  display: block;
  font-size: 1.625rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ─── Preview Card (Hero Visual) ─────────────────────────────────────────────── */

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__visual-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(96, 150, 232, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.preview-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  width: 320px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.04) inset;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,150,232,0.85), transparent);
}

.preview-card__header {
  padding: 1.125rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-card__tag {
  background: rgba(96, 150, 232, 0.15);
  color: var(--c-accent-bright);
  border: 1px solid rgba(96,150,232,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.preview-card__body {
  padding: 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.preview-row + .preview-row {
  border-top: 1px solid rgba(255,255,255,0.05);
}

.preview-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

.preview-value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.preview-divider {
  height: 1px;
  background: rgba(96, 150, 232, 0.25);
  margin: 0.5rem 0;
}

.preview-row--result .preview-label {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
}

.preview-row--result .preview-value {
  font-size: 1rem;
  font-weight: 700;
}

.preview-value--accent { color: var(--c-accent-bright); }

.preview-card__footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.28);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Decorative dots */
.preview-card__dots {
  display: flex;
  gap: 5px;
  align-items: center;
}
.preview-card__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.preview-card__dots span:first-child { background: rgba(239,68,68,0.6); }
.preview-card__dots span:nth-child(2) { background: rgba(59,130,246,0.75); }
.preview-card__dots span:last-child { background: rgba(34,197,94,0.6); }

/* ─── How It Works ───────────────────────────────────────────────────────────── */

.how-it-works {
  padding: 6rem 0;
  background: var(--c-surface);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 2.25rem;
  left: calc(16.67% + 2rem);
  right: calc(16.67% + 2rem);
  height: 1px;
  background: linear-gradient(90deg, var(--c-accent), transparent 40%, transparent 60%, var(--c-accent));
  opacity: 0.3;
}

.step-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-md);
  position: relative;
}

.step-card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-lg), 0 0 0 4px var(--c-accent-muted);
  transform: translateY(-3px);
}

.step-card__number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--c-accent-muted);
  color: var(--c-accent-hover);
  border: 1.5px solid rgba(25,74,164,0.25);
}

.step-card h3 {
  margin-bottom: 0.625rem;
  font-size: 1.0625rem;
}

.step-card p { font-size: 0.9375rem; }

.step-card__detail {
  margin-top: 1.25rem;
  padding: 0.75rem;
  background: var(--c-surface-2);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

/* ─── Coverage / Data Section ────────────────────────────────────────────────── */

.coverage {
  padding: 6rem 0;
  background: var(--c-dark);
  background-image:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(25,74,164,0.1) 0%, transparent 60%);
}

.coverage__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.coverage__label {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coverage__label::before {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: var(--c-accent-bright);
  border-radius: 2px;
}

.coverage__title {
  color: #fff;
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3vw, 2.125rem);
}

.coverage__desc {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.coverage__source {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
}

.coverage__source-icon {
  color: var(--c-accent-bright);
  flex-shrink: 0;
  margin-top: 1px;
}

.coverage__source-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.coverage__source-text strong {
  display: block;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  margin-bottom: 0.125rem;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color var(--transition-md);
}

.stat-card:hover { border-color: rgba(96,150,232,0.4); }

.stat-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-accent-bright);
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat-card__label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  line-height: 1.4;
}

/* Material chips */
.material-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.material-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: all var(--transition);
}

.material-chip:hover {
  border-color: rgba(25,74,164,0.4);
  background: rgba(25,74,164,0.08);
  color: rgba(255,255,255,0.85);
}

.material-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.material-chip__fsu {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* ─── CTA Banner ─────────────────────────────────────────────────────────────── */

.cta-banner {
  padding: 6rem 0;
  background: var(--c-surface);
}

.cta-banner__inner {
  background: var(--c-dark);
  background-image:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(25,74,164,0.14) 0%, transparent 65%),
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}

.cta-banner__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent-bright), transparent);
  opacity: 0.7;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.875rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.cta-banner p {
  color: rgba(255,255,255,0.5);
  font-size: 1.0625rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta-banner__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Ad Slots ───────────────────────────────────────────────────────────────── */

.ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  /* width: 100%; */
  min-height: 100px;
  margin: 2.5rem;
  overflow: hidden;
}

/* Placeholder visible only when no ad content has been injected */
.ad-slot:not(:has(*)) {
  border: 1px dashed var(--c-dark-60);
  background: var(--c-surface);
  border-radius: var(--radius);
}

.ad-slot:not(:has(*))::before {
  content: 'Ad — ' attr(data-slot);
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--c-text-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ─── Site Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--c-dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 3.5rem 0 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}

.footer__brand p {
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-top: 0.875rem;
  max-width: 280px;
}

.footer__logo { margin-bottom: 0; }

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  padding: 0.2rem 0;
}

.footer__links a:hover { color: rgba(255,255,255,0.85); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy,
.footer__version {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.28);
}

.footer__citation {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.22);
  font-family: var(--font-mono);
}

/* ─── Inner Page ─────────────────────────────────────────────────────────────── */

.page-hero {
  background: var(--c-dark);
  padding: 8rem 0 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.5); font-size: 1.125rem; max-width: 560px; }

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
}

.page-breadcrumb a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.page-breadcrumb a:hover { color: var(--c-accent-bright); }
.page-breadcrumb svg { flex-shrink: 0; }

.page-content {
  padding: 4rem 0 6rem;
}

.page-content__inner {
  max-width: 760px;
}

.page-content p { margin-bottom: 1.25rem; }
.page-content h2 { margin: 2.5rem 0 1rem; }
.page-content h3 { margin: 2rem 0 0.75rem; }

/* ─── 404 ────────────────────────────────────────────────────────────────────── */

.page-404 {
  min-height: 80vh;
  background: var(--c-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.page-404__code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 900;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: -1rem;
}

.page-404 h1 { color: #fff; margin-bottom: 0.75rem; font-size: 1.875rem; }
.page-404 p { color: rgba(255,255,255,0.45); margin-bottom: 2rem; max-width: 400px; margin-inline: auto; }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .coverage__layout { grid-template-columns: 1fr; gap: 3rem; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .steps-grid::before { display: none; }
}

@media (max-width: 768px) {
  .hero { padding: 5rem 0 3rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .primary-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
  .cta-banner__inner { padding: 2.5rem 1.5rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .hero__stats { flex-wrap: wrap; gap: 1.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}

/* ─── WP Editor Styles ───────────────────────────────────────────────────────── */

.wp-block-image { margin: 2rem 0; border-radius: var(--radius-md); overflow: hidden; }
.wp-block-separator { border-color: var(--c-border); margin: 2rem 0; }
