/* ==========================================================================
   IronNest — Main Stylesheet
   Design: Dark editorial magazine · Industrial strength · Premium fitness
   Fonts: Playfair Display (display) + Source Sans 3 (body)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --navy:         #1A1A2E;
  --navy-dark:    #0D0D1A;
  --navy-mid:     #252542;
  --navy-light:   #3A3A58;
  --red:          #E63946;
  --red-dark:     #C12A35;
  --red-muted:    rgba(230, 57, 70, 0.12);

  /* Surface Colors */
  --parchment:    #FFFBF5;
  --parchment-mid:#F5EFE3;
  --surface:      #FFFFFF;
  --surface-alt:  #F8F7F4;

  /* Text Colors */
  --text:         #1A1A2E;
  --text-mid:     #3D3B4F;
  --text-muted:   #6B6875;
  --text-light:   #9B99A8;
  --text-inverse: #FFFFFF;
  --text-inverse-muted: rgba(255,255,255,0.65);

  /* Border */
  --border:       #E2DDD6;
  --border-dark:  rgba(26,26,46,0.15);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'Source Code Pro', 'Courier New', monospace;

  /* Font Sizes — fluid via clamp() */
  --text-xs:    clamp(0.70rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm:    clamp(0.82rem, 0.78rem + 0.25vw, 0.875rem);
  --text-base:  clamp(0.95rem, 0.90rem + 0.3vw, 1rem);
  --text-lg:    clamp(1.0rem,  0.95rem + 0.4vw, 1.125rem);
  --text-xl:    clamp(1.1rem,  1.0rem  + 0.6vw, 1.25rem);
  --text-2xl:   clamp(1.25rem, 1.1rem  + 0.9vw, 1.5rem);
  --text-3xl:   clamp(1.5rem,  1.25rem + 1.5vw, 2rem);
  --text-4xl:   clamp(2rem,    1.6rem  + 2.0vw, 2.75rem);
  --text-5xl:   clamp(2.5rem,  2.0rem  + 2.5vw, 3.5rem);
  --text-6xl:   clamp(3rem,    2.4rem  + 3.0vw, 4.5rem);

  /* Spacing — 8px base scale */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Shadows — navy-tinted, layered */
  --shadow-xs:   0 1px 4px rgba(26,26,46,0.08);
  --shadow-sm:   0 2px 8px rgba(26,26,46,0.10);
  --shadow-md:   0 4px 20px rgba(26,26,46,0.13);
  --shadow-lg:   0 8px 40px rgba(26,26,46,0.17);
  --shadow-card: 0 2px 8px rgba(26,26,46,0.07), 0 8px 24px rgba(26,26,46,0.10);
  --shadow-card-hover: 0 4px 16px rgba(26,26,46,0.10), 0 20px 56px rgba(26,26,46,0.16);
  --shadow-red:  0 4px 20px rgba(230,57,70,0.28);

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0.0, 0, 0.2, 1);
  --dur-fast:    160ms;
  --dur-base:    260ms;
  --dur-slow:    440ms;

  /* Layout */
  --container:   1200px;
  --narrow:      800px;
  --header-h:    72px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::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-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--parchment);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  color: var(--red-dark);
}

ul, ol { list-style: none; }

button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
}

button { cursor: pointer; }

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

p { max-width: 68ch; }

/* --------------------------------------------------------------------------
   3. 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: 0;
}

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

.wrap {
  width: 100%;
  max-width: var(--narrow);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

/* --------------------------------------------------------------------------
   4. Scroll Reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-slow) var(--ease-smooth),
    transform var(--dur-slow) var(--ease-smooth);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background-color: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow var(--dur-base) var(--ease-smooth);
}

.site-header.header--shadowed {
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-4);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-inverse);
  letter-spacing: -0.02em;
}

/* Nav */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-list a {
  display: block;
  padding: 6px 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition:
    color var(--dur-fast) var(--ease-smooth),
    background-color var(--dur-fast) var(--ease-smooth);
}

.nav-list a:hover {
  color: var(--text-inverse);
  background-color: rgba(255,255,255,0.08);
}

/* Header CTA */
.header-cta {
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-smooth), opacity var(--dur-base) var(--ease-smooth);
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--navy-dark);
  z-index: 99;
  padding: var(--sp-4);
  overflow-y: auto;
}

.mobile-nav[data-nav-menu] {
  display: none;
}

.mobile-nav[data-nav-menu].is-open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--sp-4);
}

.mobile-nav-list a {
  display: block;
  padding: 14px 16px;
  font-size: var(--text-lg);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-radius: var(--radius-md);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background-color var(--dur-fast) var(--ease-smooth);
}

.mobile-nav-list a:hover {
  background-color: rgba(255,255,255,0.06);
  color: #fff;
}

.mobile-nav-cta {
  padding-top: var(--sp-2);
}

.mobile-nav-cta .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

body.scroll-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-smooth),
    color var(--dur-fast) var(--ease-smooth),
    border-color var(--dur-fast) var(--ease-smooth),
    transform var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-fast) var(--ease-smooth);
  white-space: nowrap;
  min-height: 44px;
}

.btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background-color: var(--red);
  color: var(--text-inverse);
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}

.btn--primary:hover {
  background-color: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(230,57,70,0.38);
}

.btn--secondary {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--secondary:hover {
  background-color: var(--navy);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.btn--ghost {
  background-color: transparent;
  color: var(--red);
  border-color: var(--red);
}

.btn--ghost:hover {
  background-color: var(--red);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.btn--ghost-light {
  background-color: transparent;
  color: var(--text-inverse);
  border-color: rgba(255,255,255,0.5);
}

.btn--ghost-light:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: var(--text-inverse);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 14px 32px;
  font-size: var(--text-base);
  min-height: 52px;
}

/* --------------------------------------------------------------------------
   7. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-smooth);
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb-sep {
  color: var(--text-light);
  font-size: 0.8em;
}

/* --------------------------------------------------------------------------
   8. Section Scaffolding
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--sp-12);
}

.section--dark {
  background-color: var(--navy);
  color: var(--text-inverse);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-inverse);
}

.section--parchment {
  background-color: var(--parchment);
}

.section-header {
  margin-bottom: var(--sp-8);
}

.section-header.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-2);
}

.section--dark .section-eyebrow {
  color: var(--red);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-2);
  max-width: 18ch;
}

.section-header.centered .section-title {
  max-width: 28ch;
}

.section-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 52ch;
}

.section--dark .section-sub {
  color: var(--text-inverse-muted);
}

/* --------------------------------------------------------------------------
   9. Page Hero (non-homepage)
   -------------------------------------------------------------------------- */
.page-hero {
  background-color: var(--navy);
  padding-top: calc(var(--header-h) + var(--sp-10));
  padding-bottom: var(--sp-10);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(230,57,70,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-inverse);
  margin-bottom: var(--sp-2);
}

.page-hero-sub {
  font-size: var(--text-lg);
  color: var(--text-inverse-muted);
  max-width: 52ch;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. Prose Layout (About, Legal Pages)
   -------------------------------------------------------------------------- */
.prose-layout {
  padding-top: calc(var(--header-h) + var(--sp-10));
  padding-bottom: var(--sp-12);
}

.prose {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text);
  max-width: 72ch;
}

.prose h2 {
  font-size: var(--text-3xl);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.03em;
  color: var(--navy);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--border);
}

.prose h3 {
  font-size: var(--text-2xl);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
  color: var(--navy);
}

.prose p {
  margin-bottom: var(--sp-3);
  max-width: none;
}

.prose ul, .prose ol {
  margin-bottom: var(--sp-3);
  padding-left: var(--sp-3);
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.prose a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--red-dark); }

.prose-lead {
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.prose-callout {
  background-color: var(--navy);
  color: var(--text-inverse);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--red);
  margin-block: var(--sp-5);
  font-size: var(--text-base);
  line-height: 1.65;
}

.prose-callout p { max-width: none; color: var(--text-inverse); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   11. Homepage Hero
   -------------------------------------------------------------------------- */
.homepage-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-16);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1600&q=80');
  background-size: cover;
  background-position: center 30%;
  transform-origin: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--navy-dark) 0%, rgba(13,13,26,0.80) 40%, rgba(13,13,26,0.30) 75%, transparent 100%),
    linear-gradient(to right, rgba(13,13,26,0.50) 0%, transparent 60%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + var(--sp-8));
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-3);
}

.hero-eyebrow-line {
  display: block;
  width: 32px;
  height: 2px;
  background-color: var(--red);
  border-radius: 2px;
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text-inverse);
  line-height: 1.05;
  margin-bottom: var(--sp-4);
  max-width: 16ch;
}

.hero-title em {
  font-style: italic;
  color: var(--red);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-inverse-muted);
  max-width: 44ch;
  line-height: 1.6;
  margin-bottom: var(--sp-6);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.45);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   12. Value Props
   -------------------------------------------------------------------------- */
.value-props {
  padding-block: var(--sp-8);
  background-color: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.value-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-1);
}

.value-prop {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-right: 1px solid rgba(255,255,255,0.07);
}

.value-prop:last-child {
  border-right: none;
}

.value-prop-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--red-muted);
  border: 1px solid rgba(230,57,70,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-prop-icon svg {
  color: var(--red);
}

.value-prop-text h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.value-prop-text p {
  font-size: var(--text-sm);
  color: var(--text-inverse-muted);
  line-height: 1.5;
  max-width: none;
}

/* --------------------------------------------------------------------------
   13. Article Cards
   -------------------------------------------------------------------------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.article-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--dur-base) var(--ease-smooth),
    box-shadow var(--dur-base) var(--ease-smooth);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.article-card__img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth);
}

.article-card:hover .article-card__img {
  transform: scale(1.05);
}

.article-card__body {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__cat {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-1);
}

.article-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: var(--sp-2);
}

.article-card__title a {
  color: inherit;
  text-decoration: none;
}

.article-card__title a:hover {
  color: var(--red);
}

.article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: none;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border);
}

.article-card__meta {
  font-size: var(--text-xs);
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.article-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  transition: gap var(--dur-fast) var(--ease-spring);
}

.article-card__read-more:hover {
  gap: 10px;
  color: var(--red-dark);
}

/* Featured Card */
.article-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.article-card.featured .article-card__img-wrap {
  aspect-ratio: unset;
  min-height: 300px;
}

.article-card.featured .article-card__title {
  font-size: var(--text-3xl);
}

.article-card.featured .article-card__body {
  padding: var(--sp-5) var(--sp-6);
  justify-content: center;
}

/* --------------------------------------------------------------------------
   14. Category Cards
   -------------------------------------------------------------------------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.category-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.category-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth);
}

.category-card:hover .category-card__img {
  transform: scale(1.06);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,26,0.85) 0%, rgba(13,13,26,0.30) 60%, transparent 100%);
  transition: background var(--dur-base) var(--ease-smooth);
}

.category-card:hover .category-card__overlay {
  background: linear-gradient(to top, rgba(13,13,26,0.92) 0%, rgba(13,13,26,0.45) 60%, transparent 100%);
}

.category-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-4);
}

.category-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.category-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-inverse);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.category-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: gap var(--dur-fast) var(--ease-spring), color var(--dur-fast) var(--ease-smooth);
}

.category-card:hover .category-card__arrow {
  gap: 10px;
  color: var(--text-inverse);
}

/* --------------------------------------------------------------------------
   15. Lead Magnet / Email Signup
   -------------------------------------------------------------------------- */
.lead-magnet {
  background-color: var(--navy);
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-12);
}

.lead-magnet::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 100% at 100% 50%, rgba(230,57,70,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 80% at 0% 50%, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none;
}

.lead-magnet .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: center;
}

.lead-magnet__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-2);
}

.lead-magnet__headline {
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-inverse);
  margin-bottom: var(--sp-2);
  line-height: 1.1;
}

.lead-magnet__sub {
  font-size: var(--text-lg);
  color: var(--text-inverse-muted);
  line-height: 1.6;
  max-width: 44ch;
}

.lead-magnet__form {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-xl);
  padding: var(--sp-5) var(--sp-6);
}

.lead-magnet__input-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.email-input,
.form-input {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background-color: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-fast) var(--ease-smooth);
  min-height: 48px;
}

.email-input:focus,
.form-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.15);
}

.form-legal {
  font-size: var(--text-xs);
  color: var(--text-inverse-muted);
  line-height: 1.5;
  max-width: none;
}

/* --------------------------------------------------------------------------
   16. Free Guide Page
   -------------------------------------------------------------------------- */
.guide-hero {
  background-color: var(--navy);
  padding-top: calc(var(--header-h) + var(--sp-10));
  padding-bottom: var(--sp-12);
  position: relative;
  overflow: hidden;
}

.guide-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 100% 60%, rgba(230,57,70,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 40%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.guide-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--sp-10);
  align-items: start;
}

.guide-hero__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-2);
}

.guide-hero__title {
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-inverse);
  line-height: 1.05;
  margin-bottom: var(--sp-3);
}

.guide-hero__sub {
  font-size: var(--text-lg);
  color: var(--text-inverse-muted);
  line-height: 1.65;
  margin-bottom: var(--sp-5);
  max-width: 48ch;
}

.guide-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--text-base);
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.guide-checklist li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--red);
}

.guide-card {
  background-color: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--sp-5) var(--sp-5);
  box-shadow: 0 8px 48px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}

.guide-card h3 {
  font-size: var(--text-2xl);
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.guide-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  max-width: none;
}

.guide-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.guide-form .btn {
  width: 100%;
  justify-content: center;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-base) var(--ease-smooth), transform var(--dur-base) var(--ease-smooth);
}

.benefit:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.benefit__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--red-muted);
  border: 1px solid rgba(230,57,70,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit__icon svg { color: var(--red); }

.benefit__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.benefit__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: none;
}

/* TOC Preview */
.toc-preview {
  background-color: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-6);
  max-width: 640px;
  margin-inline: auto;
}

.toc-preview h3 {
  font-size: var(--text-xl);
  color: var(--navy);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
}

.toc-preview ol {
  list-style: none;
  counter-reset: toc-counter;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-preview ol li {
  counter-increment: toc-counter;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--text-base);
  color: var(--text-mid);
  line-height: 1.4;
}

.toc-preview ol li::before {
  content: counter(toc-counter, decimal-leading-zero);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--red);
  background-color: var(--red-muted);
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  min-width: 36px;
  text-align: center;
}

/* Bottom CTA */
.bottom-cta {
  background-color: var(--navy-dark);
  padding-block: var(--sp-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bottom-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(230,57,70,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.bottom-cta .container { position: relative; z-index: 1; }

.bottom-cta h2 {
  font-size: var(--text-4xl);
  color: var(--text-inverse);
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-2);
}

.bottom-cta p {
  font-size: var(--text-lg);
  color: var(--text-inverse-muted);
  margin-bottom: var(--sp-5);
  max-width: 44ch;
  margin-inline: auto;
}

.inline-form {
  display: flex;
  gap: var(--sp-2);
  max-width: 480px;
  margin-inline: auto;
}

.inline-form .form-input {
  flex: 1;
}

.inline-form .btn {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: var(--sp-10);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .site-logo {
  display: inline-flex;
  margin-bottom: var(--sp-3);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-inverse-muted);
  line-height: 1.6;
  max-width: none;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-inverse);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-inverse-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-smooth);
  line-height: 1.4;
}

.footer-links a:hover { color: var(--text-inverse); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-4);
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--text-inverse-muted);
  max-width: none;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--text-inverse-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-smooth);
}

.footer-legal a:hover { color: var(--text-inverse); }

/* Bottom CTA legal text (dark background variant) */
.bottom-cta__legal {
  color: rgba(255,255,255,0.45);
  font-size: var(--text-xs);
  margin-top: var(--sp-2);
}

/* Form legal link */
.form-legal__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-card.featured {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .article-card.featured .article-card__img-wrap {
    aspect-ratio: 16 / 8;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lead-magnet .container {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
  }

  .guide-hero__inner {
    grid-template-columns: 1fr;
  }

  .guide-card {
    max-width: 480px;
  }

  .value-props-grid {
    grid-template-columns: 1fr;
  }

  .value-prop {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .value-prop:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card.featured {
    grid-column: 1;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .inline-form {
    flex-direction: column;
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .hero-title {
    font-size: var(--text-4xl);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }
}
