/* ==========================================================================
   SoCal Filters and Service — corporate site stylesheet
   Navy / steel-gray / white palette
   ========================================================================== */

:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.4rem + 2.25vw, 3.25rem);
  --text-3xl:  clamp(2.5rem, 1.6rem + 3.5vw, 4.5rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;

  /* Brand palette */
  --navy-900: #0b2545;     /* primary dark navy */
  --navy-800: #13315c;
  --navy-700: #1a4480;
  --navy-600: #2563a8;
  --navy-500: #3b82c4;     /* accent blue */
  --sky-200:  #dbeafe;

  --steel-900: #111827;
  --steel-700: #374151;
  --steel-600: #4b5563;
  --steel-500: #6b7280;    /* secondary text */
  --steel-400: #9ca3af;
  --steel-300: #d1d5db;
  --steel-200: #e5e7eb;
  --steel-100: #f3f4f6;
  --steel-50:  #f8fafc;

  --white: #ffffff;

  --accent: var(--navy-600);
  --accent-hover: var(--navy-700);

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--steel-50);
  --bg-dark: var(--navy-900);
  --text: var(--steel-900);
  --text-muted: var(--steel-600);
  --text-inverse: var(--white);
  --border: var(--steel-200);
  --border-strong: var(--steel-300);

  /* Layout */
  --container: 1240px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.18);

  --nav-h: 96px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy-900);
}
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: var(--space-3);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-8); } }

/* Section spacing */
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.section-tight { padding-block: clamp(var(--space-12), 6vw, var(--space-16)); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-inverse); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }

.section-header { max-width: 720px; margin-bottom: var(--space-12); }
.section-header.center { margin-inline: auto; text-align: center; }
.section-header p { color: var(--text-muted); font-size: var(--text-lg); margin-top: var(--space-4); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy-700);
  color: var(--white);
  border-color: var(--navy-700);
}
.btn-primary:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: var(--space-6);
}
.nav-logo { display: flex; align-items: center; gap: var(--space-3); }
.nav-logo img { height: 76px; width: auto; max-width: 280px; }
.nav-links { display: flex; align-items: center; gap: var(--space-2); list-style: none; padding: 0; }
.nav-links a {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--steel-700);
  border-radius: var(--radius-sm);
}
.nav-links a:hover { color: var(--navy-900); background: var(--steel-100); }
.nav-links a.active { color: var(--navy-900); }
.nav-cta { display: flex; align-items: center; gap: var(--space-3); }
.nav-phone {
  display: none;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy-900);
}
@media (min-width: 1024px) { .nav-phone { display: inline-flex; align-items: center; gap: var(--space-2); } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--navy-900); }
@media (min-width: 900px) { .nav-toggle { display: none; } }

.nav-links-wrap { display: flex; align-items: center; gap: var(--space-6); }
@media (max-width: 899px) {
  .nav-links-wrap {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) var(--space-6) var(--space-6);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-links-wrap.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: var(--space-3) var(--space-4); border-radius: var(--radius); }
  .nav-cta { flex-direction: column; align-items: stretch; gap: var(--space-3); }
  .nav-cta .btn { width: 100%; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding-block: var(--space-20);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero-warehouse.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11, 37, 69, 0.88) 0%, rgba(11, 37, 69, 0.72) 55%, rgba(19, 49, 92, 0.55) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 {
  color: var(--white);
  font-size: var(--text-3xl);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
}
.hero p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-8);
  max-width: 620px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero .eyebrow { color: #93c5fd; }

/* Subhero page (interior pages) */
.subhero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding-block: clamp(var(--space-16), 8vw, var(--space-20));
  text-align: center;
}
.subhero h1 {
  color: var(--white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}
.subhero p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-lg);
  max-width: 680px;
  margin-inline: auto;
}
.subhero .eyebrow { color: #93c5fd; }

/* ===== Stat strip ===== */
.stat-strip {
  background: var(--navy-900);
  color: var(--white);
  padding-block: var(--space-10);
}
.stat-strip .stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  text-align: center;
}
@media (min-width: 768px) {
  .stat-strip .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat-num {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ===== Feature grid ===== */
.feature-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-500);
}
.feature-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sky-200);
  color: var(--navy-700);
  border-radius: var(--radius);
  margin-bottom: var(--space-5);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: var(--space-2); }
.feature-card p { color: var(--text-muted); font-size: var(--text-base); }

/* ===== Product grid ===== */
.product-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-500);
}
.product-card-img {
  aspect-ratio: 4 / 3;
  background: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.product-card-img img {
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.03); }
/* Custom-build card uses a photographic warehouse image; keep it filling the frame */
#custom .product-card-img,
.product-card[href$="#custom"] .product-card-img {
  padding: 0;
  background: var(--steel-100);
  border-bottom: none;
}
#custom .product-card-img img,
.product-card[href$="#custom"] .product-card-img img {
  object-fit: cover;
}
/* Sizing reference diagram figure */
.sizing-figure {
  margin: 0 auto;
  max-width: 1100px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.sizing-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.sizing-figure figcaption {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--steel-600);
  line-height: 1.6;
  text-align: center;
}
/* NAFA member band */
.member-band {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-8) 0;
}
.member-band-inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  justify-content: center;
}
.member-badge {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.member-badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.member-badge img {
  display: block;
  width: 220px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}
.member-copy {
  flex: 1 1 400px;
  max-width: 640px;
}
.member-copy h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  color: var(--navy-900);
}
.member-copy p {
  color: var(--steel-600);
  margin: 0;
}
@media (max-width: 640px) {
  .member-band-inner { text-align: center; }
  .member-copy { flex-basis: 100%; }
}
.member-link-row {
  margin-top: var(--space-4);
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.aqmd-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 16px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.aqmd-link:hover {
  background: var(--navy-700, #13315c);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: var(--white);
}
.subhero-cta-row {
  margin-top: var(--space-5);
  margin-bottom: 0;
}
.linecard-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 20px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: 10px;
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.linecard-link:hover {
  background: var(--navy-700, #13315c);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md, 0 4px 10px rgba(15, 23, 42, 0.12));
  color: var(--white);
}
.product-card-body { padding: var(--space-6); flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 { margin-bottom: var(--space-2); }
.product-card-body .tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: var(--space-2);
}
.product-card-body p { color: var(--text-muted); margin-bottom: var(--space-4); }
.product-card-body ul {
  list-style: none; padding: 0; margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.product-card-body li {
  padding: var(--space-2) 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
}
.product-card-body li:first-child { border-top: none; }
.product-card-body li strong { color: var(--text); font-weight: 600; }

/* ===== Two column ===== */
.two-col {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: var(--space-20); }
  .two-col.reverse > :first-child { order: 2; }
}
.two-col img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.two-col p { color: var(--text-muted); font-size: var(--text-base); margin-bottom: var(--space-4); }
.two-col h2 { margin-bottom: var(--space-5); }

/* ===== CTA Band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding-block: clamp(var(--space-16), 7vw, var(--space-20));
  text-align: center;
}
.cta-band h2 {
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  max-width: 700px;
  margin-inline: auto;
}
.cta-band p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-lg);
  max-width: 620px;
  margin: 0 auto var(--space-8);
}
.cta-band .hero-ctas { justify-content: center; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: var(--space-16); }
}
.contact-info { display: flex; flex-direction: column; gap: var(--space-6); }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.contact-item .icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sky-200);
  color: var(--navy-700);
  border-radius: var(--radius);
}
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item h3 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: var(--space-1);
}
.contact-item p, .contact-item a { color: var(--text); font-size: var(--text-base); line-height: 1.5; }
.contact-item a:hover { color: var(--navy-700); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.form-card .lead { color: var(--text-muted); margin-bottom: var(--space-6); }
.form-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr 1fr;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-700);
  margin-bottom: var(--space-2);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font: inherit;
  font-size: var(--text-base);
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { min-height: 120px; resize: vertical; font-family: inherit; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.15);
}
.form-msg {
  padding: var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  display: none;
}
.form-msg.success { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-msg.error   { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ===== Hours table ===== */
.hours-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.hours-card h3 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: var(--space-4);
}
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
}
.hours-list li:first-child { border-top: none; }
.hours-list span:first-child { color: var(--text-muted); }
.hours-list span:last-child { color: var(--text); font-weight: 600; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  margin-bottom: var(--space-12);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img {
  height: 96px; width: auto; max-width: 320px;
  background: var(--white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}
.footer-brand p { font-size: var(--text-sm); line-height: 1.6; }
.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--space-2); font-size: var(--text-sm); }
.footer-col a { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }

/* Fade in on load */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { animation: fadeUp 0.6s ease both; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
}

/* White paper teaser (home) */
.whitepaper-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}
.whitepaper-body h2 { margin-top: var(--space-2); }
.whitepaper-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy-900);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.whitepaper-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.whitepaper-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.whitepaper-stat strong {
  color: var(--navy-900);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.whitepaper-stat span {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}
@media (max-width: 899px) {
  .whitepaper-teaser { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* Technical Library — download cards */
.resource-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.resource-doc {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.resource-doc:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--navy-900);
}
.resource-doc-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
}
.resource-doc-icon svg { width: 24px; height: 24px; }
.resource-doc-body { flex: 1; min-width: 0; }
.resource-doc-body .tag { margin-bottom: var(--space-2); }
.resource-doc-body h3 {
  margin: var(--space-1) 0 var(--space-2);
  font-size: var(--text-lg);
  color: var(--navy-900);
  line-height: 1.3;
}
.resource-doc-body p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0 0 var(--space-4);
}
.resource-doc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy-900);
  font-weight: 600;
  font-size: var(--text-sm);
}
.resource-doc:hover .resource-doc-cta { text-decoration: underline; }
@media (max-width: 599px) {
  .resource-doc { flex-direction: column; gap: var(--space-4); padding: var(--space-5); }
}

/* Resources page — "At a Glance" stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy-900);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-value {
  color: var(--navy-900);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.stat-card .stat-value-suffix {
  font-size: 0.55em;
  font-weight: 700;
  color: var(--navy-700);
  margin-left: 2px;
}
.stat-card .stat-label {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--steel-700);
  line-height: 1.5;
}
.stat-card .stat-source {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--steel-500);
  font-style: italic;
}

/* NAFA Best Practice Guidelines grid */
.nafa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.nafa-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy-900);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 160px;
}
.nafa-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--navy-600);
  border-top-color: var(--navy-600);
}
.nafa-card .nafa-year {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy-700);
  background: var(--steel-100);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.nafa-card h3 {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.35;
  color: var(--navy-900);
  flex: 1;
}
.nafa-card .nafa-download {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy-900);
  margin-top: auto;
}
.nafa-card:hover .nafa-download { text-decoration: underline; }
.nafa-footer-note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}
.nafa-footer-note a { color: var(--navy-700); }

/* Contact page — Terms and Conditions link */
.terms-link {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--white, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-left: 3px solid var(--navy-900, #0b2545);
  border-radius: 6px;
}
.terms-link a {
  display: inline-flex;
  align-items: center;
  color: var(--navy-900, #0b2545);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--text-sm, 0.9375rem);
}
.terms-link a:hover {
  text-decoration: underline;
}

/* Inline note inside product cards */
.product-note {
  margin-top: var(--space-3);
  padding: 10px 12px;
  background: #f8fafc;
  border-left: 3px solid var(--navy-900, #0b2545);
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--steel-700, #334155);
  line-height: 1.4;
}
.product-note strong {
  color: var(--navy-900, #0b2545);
  font-weight: 700;
}
