/* ==========================================================================
   FRONTIER FOUNDRY UNIFIED DESIGN SYSTEM — LLC PARENT THEME (METALLIC GOLD)
   Shared industrial forge chassis matching frontierfoundrymfg.com
   ========================================================================== */

:root {
  --ff-bg-void: #070a0f;
  --ff-bg-forge: #0c1118;
  --ff-bg-panel: #121923;
  --ff-bg-elevated: #182230;
  --ff-border: rgba(148, 163, 184, 0.16);
  --ff-border-strong: rgba(148, 163, 184, 0.28);

  /* Division Accent: Metallic Gold (Frontier Foundry LLC) */
  --ff-accent: #d4af37;
  --ff-accent-2: #f59e0b;
  --ff-accent-bright: #facc15;
  --ff-accent-rgb: 212, 175, 55;
  --ff-accent-ink: #070a0f;

  /* Sister Division Accents */
  --ff-gold: #d4af37;
  --ff-orange: #f97316;
  --ff-emerald: #10b981;
  --ff-hearth: #d97706;

  --ff-text-100: #f1f5f9;
  --ff-text-200: #e2e8f0;
  --ff-text-300: #cbd5e1;
  --ff-text-400: #94a3b8;
  --ff-text-500: #64748b;

  --ff-font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --ff-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ff-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --ff-max-w: 1280px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--ff-bg-void);
  color: var(--ff-text-100);
  font-family: var(--ff-font-sans);
  overflow-x: clip;
}

body.ff-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--ff-bg-void);
  background-image:
    radial-gradient(circle at 78% 12%, rgba(var(--ff-accent-rgb), 0.14), transparent 46%),
    radial-gradient(circle at 12% 78%, rgba(56, 189, 248, 0.06), transparent 44%);
  color: var(--ff-text-100);
  font-family: var(--ff-font-sans);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.ff-body a {
  color: inherit;
  text-decoration: none;
}

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

.ff-container {
  width: 100%;
  max-width: var(--ff-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .ff-container { padding-left: 1.75rem; padding-right: 1.75rem; }
}
@media (min-width: 1024px) {
  .ff-container { padding-left: 2rem; padding-right: 2rem; }
}

.ff-display { font-family: var(--ff-font-display); }
.ff-mono { font-family: var(--ff-font-mono); }

.ff-blueprint {
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Skip Link */
.ff-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ff-accent);
  color: var(--ff-accent-ink);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 0.5rem 0;
}
.ff-skip-link:focus { left: 0; }

/* ==========================================================================
   TOP NETWORK SWITCHER BAR (UNIFIED ACROSS ALL 4 DOMAINS)
   ========================================================================== */
.ff-network-bar {
  background: rgba(5, 8, 13, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.75rem;
  color: var(--ff-text-400);
}

.ff-network-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.ff-network-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.ff-network-label {
  font-family: var(--ff-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ff-text-500);
  margin-right: 0.35rem;
}

.ff-net-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ff-text-400);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.ff-net-pill:hover {
  color: var(--ff-text-100);
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(148, 163, 184, 0.22);
}

.ff-net-pill.is-current {
  color: var(--ff-text-100);
  background: rgba(var(--ff-accent-rgb), 0.14);
  border-color: rgba(var(--ff-accent-rgb), 0.4);
  font-weight: 600;
}

.ff-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex-shrink: 0;
}
.ff-dot-gold { background: var(--ff-gold); }
.ff-dot-orange { background: var(--ff-orange); }
.ff-dot-emerald { background: var(--ff-emerald); }
.ff-dot-hearth { background: var(--ff-hearth); }

.ff-network-meta {
  display: none;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--ff-font-mono);
  font-size: 0.7rem;
  color: var(--ff-text-400);
}
@media (min-width: 768px) {
  .ff-network-meta { display: flex; }
}

.ff-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #34d399;
}

/* ==========================================================================
   STICKY GLASS HEADER & MOBILE DRAWER
   ========================================================================== */
.ff-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 10, 15, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

body.admin-bar .ff-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .ff-header { top: 46px; }
}

.ff-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.ff-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.ff-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(var(--ff-accent-rgb), 0.22), rgba(15, 22, 32, 0.95));
  border: 1px solid rgba(var(--ff-accent-rgb), 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(var(--ff-accent-rgb), 0.16);
}

.ff-brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.ff-brand-title {
  font-family: var(--ff-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.ff-brand-sub {
  font-family: var(--ff-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ff-accent);
  margin-top: 2px;
}

.ff-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 960px) {
  .ff-nav { display: flex; }
}

.ff-nav a {
  padding: 0.5rem 0.85rem;
  border-radius: 0.55rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ff-text-300);
  border: 1px solid transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.ff-nav a:hover,
.ff-nav a.is-active {
  color: var(--ff-accent-bright);
  background: rgba(var(--ff-accent-rgb), 0.1);
  border-color: rgba(var(--ff-accent-rgb), 0.28);
}

.ff-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ff-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.65rem;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: var(--ff-text-100);
  cursor: pointer;
}

@media (min-width: 960px) {
  .ff-mobile-toggle { display: none; }
}

.ff-mobile-drawer {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(7, 10, 15, 0.98);
  padding: 1rem 1.25rem 1.25rem;
}

.ff-mobile-drawer.is-open {
  display: block;
}

.ff-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ff-mobile-grid a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(18, 25, 35, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ff-text-200);
}

.ff-mobile-grid a:hover {
  border-color: rgba(var(--ff-accent-rgb), 0.45);
  color: var(--ff-accent-bright);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.ff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.ff-btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  border-radius: 0.65rem;
}

.ff-btn-primary {
  background: linear-gradient(135deg, var(--ff-accent) 0%, var(--ff-accent-2) 100%);
  color: var(--ff-accent-ink);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 24px rgba(var(--ff-accent-rgb), 0.25);
}

.ff-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(var(--ff-accent-rgb), 0.36);
}

.ff-btn-steel {
  background: rgba(30, 41, 59, 0.72);
  color: var(--ff-text-100);
  border-color: rgba(148, 163, 184, 0.26);
}

.ff-btn-steel:hover {
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(var(--ff-accent-rgb), 0.55);
  transform: translateY(-1px);
}

.ff-hide-mobile { display: none; }
@media (min-width: 640px) {
  .ff-hide-mobile { display: inline-flex; }
}

/* ==========================================================================
   SECTIONS, HERO, CARDS & GRIDS
   ========================================================================== */
.ff-section {
  padding: 4.5rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  scroll-margin-top: 84px;
}

@media (min-width: 1024px) {
  .ff-section { padding: 5.5rem 0; }
}

.ff-hero {
  position: relative;
  padding: 3.75rem 0 4.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .ff-hero { padding: 5rem 0 5.5rem; }
}

.ff-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ff-hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3.25rem;
  }
}

.ff-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--ff-accent-rgb), 0.36);
  background: rgba(var(--ff-accent-rgb), 0.1);
  color: var(--ff-accent-bright);
  font-family: var(--ff-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ff-h1 {
  font-family: var(--ff-font-display);
  font-size: clamp(2.15rem, 4.4vw, 3.65rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 1.15rem 0 0;
}

.ff-gradient-text {
  background: linear-gradient(95deg, #fde68a 0%, var(--ff-accent) 50%, var(--ff-accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ff-lead {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--ff-text-300);
}

.ff-cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.ff-metrics {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ff-metric-val {
  font-family: var(--ff-font-mono);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
}

.ff-metric-val span { color: var(--ff-accent); font-size: 0.85rem; }

.ff-metric-lbl {
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: var(--ff-text-400);
  line-height: 1.35;
}

/* Machined Cards */
.ff-card {
  background: linear-gradient(180deg, rgba(24, 34, 48, 0.84) 0%, rgba(15, 22, 32, 0.96) 100%);
  border: 1px solid var(--ff-border);
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ff-card-hover {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.ff-card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--ff-accent-rgb), 0.45);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.56), 0 0 30px rgba(var(--ff-accent-rgb), 0.12);
}

.ff-visual-frame {
  padding: 0.6rem;
  border-radius: 1.5rem;
}

.ff-visual-inner {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ff-visual-inner img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}
@media (min-width: 640px) {
  .ff-visual-inner img { height: 430px; }
}

.ff-visual-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 15, 0.92) 0%, rgba(7, 10, 15, 0.18) 55%, transparent 100%);
}

.ff-visual-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: rgba(7, 10, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

/* Section Headers */
.ff-section-head {
  max-width: 44rem;
  margin-bottom: 2.75rem;
}

.ff-section-kicker {
  font-family: var(--ff-font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ff-accent);
}

.ff-h2 {
  font-family: var(--ff-font-display);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0.5rem 0 0;
}

.ff-section-sub {
  margin: 0.75rem 0 0;
  font-size: 0.98rem;
  color: var(--ff-text-400);
  line-height: 1.65;
}

/* 3-Column Division Grid — Always Spacious, Never Squeezed */
.ff-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .ff-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.ff-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .ff-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

/* Division Portal Cards */
.ff-div-card {
  display: flex;
  flex-direction: column;
  padding: 1.85rem;
  position: relative;
  overflow: hidden;
  border-top-width: 3px;
}

.ff-div-card.is-hearth { border-top-color: var(--ff-hearth); }
.ff-div-card.is-hearth:hover { border-color: rgba(217, 119, 6, 0.55); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 32px rgba(217, 119, 6, 0.14); }

.ff-div-card.is-mfg { border-top-color: var(--ff-orange); }
.ff-div-card.is-mfg:hover { border-color: rgba(249, 115, 22, 0.55); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 32px rgba(249, 115, 22, 0.14); }

.ff-div-card.is-labs { border-top-color: var(--ff-emerald); }
.ff-div-card.is-labs:hover { border-color: rgba(16, 185, 129, 0.55); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 32px rgba(16, 185, 129, 0.14); }

.ff-div-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.ff-div-icon {
  width: 46px;
  height: 46px;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ff-div-icon-hearth { background: rgba(217, 119, 6, 0.14); border: 1px solid rgba(217, 119, 6, 0.35); color: #fbbf24; }
.ff-div-icon-mfg    { background: rgba(249, 115, 22, 0.14); border: 1px solid rgba(249, 115, 22, 0.35); color: #fb923c; }
.ff-div-icon-labs   { background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.35); color: #34d399; }

.ff-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-family: var(--ff-font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ff-tag-hearth { background: rgba(217, 119, 6, 0.14); color: #fcd34d; border: 1px solid rgba(217, 119, 6, 0.32); }
.ff-tag-mfg    { background: rgba(249, 115, 22, 0.14); color: #fdba74; border: 1px solid rgba(249, 115, 22, 0.32); }
.ff-tag-labs   { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.32); }
.ff-tag-gold   { background: rgba(212, 175, 55, 0.14); color: #fde68a; border: 1px solid rgba(212, 175, 55, 0.35); }

.ff-div-title {
  font-family: var(--ff-font-display);
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.22;
  color: #ffffff;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.ff-div-desc {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--ff-text-300);
}

.ff-bullets {
  list-style: none;
  padding: 1rem 0 0;
  margin: 1.1rem 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--ff-text-300);
}

.ff-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.ff-bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin-top: 0.45rem;
  flex-shrink: 0;
  background: var(--ff-accent);
}
.ff-div-card.is-hearth .ff-bullets li::before { background: var(--ff-hearth); }
.ff-div-card.is-mfg .ff-bullets li::before    { background: var(--ff-orange); }
.ff-div-card.is-labs .ff-bullets li::before   { background: var(--ff-emerald); }

.ff-div-actions {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ff-div-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--ff-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1.05rem;
  border-radius: 0.65rem;
  transition: transform 0.18s ease, background 0.18s ease;
}

.ff-div-cta:hover { transform: translateX(2px); }

.ff-div-cta-hearth { background: rgba(217, 119, 6, 0.16); color: #fcd34d; border: 1px solid rgba(217, 119, 6, 0.4); }
.ff-div-cta-mfg    { background: rgba(249, 115, 22, 0.16); color: #fdba74; border: 1px solid rgba(249, 115, 22, 0.4); }
.ff-div-cta-labs   { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.4); }

.ff-div-sublink {
  font-size: 0.78rem;
  color: var(--ff-text-400);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ff-div-sublink:hover { color: #ffffff; }

/* About / Leadership / Pillars */
.ff-pillar {
  padding: 1.4rem;
}
.ff-pillar h3 {
  font-family: var(--ff-font-display);
  font-size: 1.08rem;
  margin: 0.65rem 0 0.4rem;
  color: #ffffff;
}
.ff-pillar p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ff-text-400);
  line-height: 1.6;
}

/* Contact Form */
.ff-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .ff-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ff-field { display: flex; flex-direction: column; gap: 0.4rem; }
.ff-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ff-text-300);
}

.ff-input, .ff-select, .ff-textarea {
  width: 100%;
  background: #0b1119;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.75rem;
  padding: 0.72rem 0.9rem;
  color: #f8fafc;
  font-family: var(--ff-font-sans);
  font-size: 0.9rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ff-input:focus, .ff-select:focus, .ff-textarea:focus {
  outline: none;
  border-color: var(--ff-accent);
  box-shadow: 0 0 0 3px rgba(var(--ff-accent-rgb), 0.18);
}

.ff-form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  display: none;
}
.ff-form-status.is-success {
  display: block;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #a7f3d0;
}
.ff-form-status.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: #fecaca;
}

/* WordPress Standard Inner Page Shell */
.ff-page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.ff-prose {
  padding: 3rem 0 4.5rem;
  color: var(--ff-text-300);
  font-size: 1rem;
  line-height: 1.75;
}
.ff-prose h2, .ff-prose h3 {
  font-family: var(--ff-font-display);
  color: #ffffff;
  margin-top: 2rem;
}
.ff-prose a { color: var(--ff-accent-bright); text-decoration: underline; }

/* ==========================================================================
   UNIFIED FOOTER
   ========================================================================== */
.ff-footer {
  background: #05080d;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 3.75rem 0 2.25rem;
}

.ff-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

@media (min-width: 768px) {
  .ff-footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
    gap: 2rem;
  }
}

.ff-footer h4 {
  font-family: var(--ff-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ff-text-200);
  margin: 0 0 0.9rem;
}

.ff-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--ff-text-400);
}

.ff-footer ul a:hover {
  color: var(--ff-accent-bright);
}

.ff-footer-badges {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ff-footer-badge {
  font-family: var(--ff-font-mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--ff-text-400);
}

.ff-footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--ff-text-500);
}
