/* === Forbes Safety Solutions — Design System & Components === */

/* ---- Design Tokens ---- */
:root {
  /* Brand Colors */
  --navy: #1B2A4A;
  --navy-light: #243556;
  --navy-dark: #0F1A2E;
  --gold: #E8A838;
  --gold-light: #F0C060;
  --gold-dark: #D09020;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;

  /* Typography Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --text-base: 1rem;
  --text-lg: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem);
  --text-hero: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);

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

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

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

/* ---- Header / Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 42, 74, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--white);
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 700;
  font-size: var(--text-lg);
  white-space: nowrap;
}

.logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo .logo-text-safety {
  color: var(--gold);
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--duration-fast), background var(--duration-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast);
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-xl);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
}

.nav-dropdown-menu a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-menu a .dropdown-price {
  color: var(--gold);
  font-size: var(--text-xs);
  margin-left: var(--space-2);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy-dark);
  padding: 80px var(--space-6) var(--space-6);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
  font-weight: 500;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav a:hover {
  color: var(--gold);
}

.mobile-nav .mobile-nav-section-title {
  color: var(--gold);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.mobile-nav .mobile-nav-sub a {
  font-size: var(--text-base);
  padding-left: var(--space-4);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--navy-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('./assets/hero-bg.png') center / cover no-repeat;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 26, 46, 0.92) 0%, rgba(27, 42, 74, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: var(--space-16) 0;
}

.hero h1 {
  font-size: var(--text-hero);
  color: var(--white);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero h1 .gold {
  color: var(--gold);
}

.hero p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  max-width: 560px;
  line-height: 1.7;
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--navy);
  border-top: 1px solid rgba(232, 168, 56, 0.2);
  border-bottom: 1px solid rgba(232, 168, 56, 0.2);
  padding: var(--space-6) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.stat-number {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: 'General Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 168, 56, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-light);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ---- Section Styles ---- */
.section {
  padding: clamp(var(--space-12), 6vw, var(--space-24)) 0;
}

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

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-gray {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-base);
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.65);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

/* ---- Card Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

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

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-dark {
  background: var(--navy-light);
  border-color: rgba(255, 255, 255, 0.06);
}

.card-dark:hover {
  border-color: rgba(232, 168, 56, 0.3);
  background: rgba(36, 53, 86, 0.8);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(232, 168, 56, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--gold);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.6;
}

.card-dark p {
  color: rgba(255, 255, 255, 0.6);
}

/* Product Cards */
.product-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-card .product-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, rgba(232, 168, 56, 0.15), rgba(232, 168, 56, 0.05));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.product-card .product-icon svg {
  width: 28px;
  height: 28px;
}

.product-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.product-card .price {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--space-1);
}

.product-card .price-note {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-bottom: var(--space-4);
}

/* ---- Blog Cards ---- */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}

.blog-card-image {
  height: 180px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.blog-card-image .blog-category-tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--gold);
  color: var(--navy-dark);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}

.blog-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-body h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.blog-card-body h3 a {
  color: var(--navy);
  transition: color var(--duration-fast);
}

.blog-card-body h3 a:hover {
  color: var(--gold-dark);
}

.blog-card-body p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  flex: 1;
}

.blog-card-meta {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: var(--space-3);
}

/* ---- FAQ Section ---- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.section-dark .faq-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-4) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'General Sans', sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy);
  gap: var(--space-4);
}

.section-dark .faq-question {
  color: var(--white);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
  color: var(--gold);
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

.faq-answer-inner {
  padding-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.7;
}

.section-dark .faq-answer-inner {
  color: rgba(255, 255, 255, 0.65);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* ---- Trust Section ---- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.trust-item {
  text-align: center;
}

.trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  background: rgba(232, 168, 56, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.trust-icon svg {
  width: 24px;
  height: 24px;
}

.trust-item h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.trust-item p {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  text-align: center;
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(232, 168, 56, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  font-family: 'General Sans', sans-serif;
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  padding: var(--space-1) 0;
  transition: color var(--duration-fast);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--text-xs);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--duration-fast);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  padding: var(--space-4) 0;
  font-size: var(--text-xs);
  color: var(--gray-400);
}

.breadcrumbs a {
  color: var(--gray-500);
  transition: color var(--duration-fast);
}

.breadcrumbs a:hover {
  color: var(--gold-dark);
}

.breadcrumbs span {
  margin: 0 var(--space-2);
  color: var(--gray-300);
}

/* ---- Article Styles ---- */
.article-header {
  background: var(--navy);
  padding: var(--space-12) 0 var(--space-16);
}

.article-header h1 {
  color: var(--white);
  font-size: var(--text-3xl);
  max-width: 720px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

.article-category-tag {
  background: var(--gold);
  color: var(--navy-dark);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}

.article-content {
  padding: var(--space-12) 0;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-top: var(--space-4);
  border-top: 2px solid var(--gray-100);
}

.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-body h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.article-body p {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: var(--space-4);
}

.article-body ul, .article-body ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.article-body a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-fast);
}

.article-body a:hover {
  color: var(--navy);
}

.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-body blockquote p {
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
}

.article-body th {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
}

.article-body td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.article-body .callout {
  background: linear-gradient(135deg, rgba(232, 168, 56, 0.08), rgba(232, 168, 56, 0.03));
  border: 1px solid rgba(232, 168, 56, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

.article-body .callout p {
  margin-bottom: 0;
  color: var(--navy);
}

.article-body .callout strong {
  color: var(--gold-dark);
}

/* Related Articles */
.related-articles {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--gray-200);
}

.related-articles h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
}

/* Article CTA Banner */
.article-cta {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  margin: var(--space-8) 0;
}

.article-cta h3 {
  color: var(--white);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.article-cta p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-6);
}

/* ---- Category Page ---- */
.category-header {
  background: var(--navy);
  padding: var(--space-12) 0 var(--space-16);
}

.category-header h1 {
  color: var(--white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.category-header p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  font-size: var(--text-base);
  line-height: 1.7;
}

.template-list {
  display: grid;
  gap: var(--space-4);
}

.template-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  transition: all var(--duration-normal) var(--ease-out);
}

.template-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.template-info h3 {
  font-size: var(--text-base);
  font-family: 'General Sans', sans-serif;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.template-info p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: 0;
}

.template-price {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold-dark);
  margin-right: var(--space-4);
  white-space: nowrap;
}

.template-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

/* ---- Blog Hub ---- */
.blog-hub-header {
  background: var(--navy);
  padding: var(--space-12) 0 var(--space-16);
}

.blog-hub-header h1 {
  color: var(--white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.blog-hub-header p {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-base);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ---- Page Header (generic) ---- */
.page-header {
  background: var(--navy);
  padding: var(--space-10) 0 var(--space-12);
}

.page-header h1 {
  color: var(--white);
  font-size: var(--text-3xl);
}

/* ---- Services Grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  padding: var(--space-8);
  text-align: center;
}

.service-card .service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
}

.service-card .service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.7;
}

/* ---- Scroll Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-nav {
    display: block;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .card-grid,
  .card-grid-2,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

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

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

  .hero-content {
    padding: var(--space-10) 0;
  }

  .template-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .template-actions {
    width: 100%;
  }

  .template-price {
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem);
  }
}
