/* ==========================================================================
   RJCalculator.com - Modern Design System & Global Styles
   Speed-Optimized, Accessible, Responsive CSS
   ========================================================================== */

:root {
  /* Color Palette - Vibrant Dark Mode (Default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f293d;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(31, 41, 61, 0.95);
  --bg-glass: rgba(17, 24, 39, 0.65);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(99, 102, 241, 0.4);
  --border-focus: #6366f1;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0b0f19;

  /* Brand Accents & Gradients */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.15);
  
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;

  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);

  /* UI Tokens */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.25);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1240px;

  /* Color-Coded Result Metric Card Tokens (Dark Mode) */
  --card-cyan-bg: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(16, 185, 129, 0.05));
  --card-cyan-border: rgba(6, 182, 212, 0.35);
  --card-cyan-title: #38bdf8;
  --card-cyan-val: #f8fafc;
  --card-cyan-sub: #bae6fd;

  --card-indigo-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.05));
  --card-indigo-border: rgba(99, 102, 241, 0.35);
  --card-indigo-title: #a5b4fc;
  --card-indigo-val: #f8fafc;
  --card-indigo-sub: #c7d2fe;

  --card-amber-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(234, 88, 12, 0.05));
  --card-amber-border: rgba(245, 158, 11, 0.35);
  --card-amber-title: #fbbf24;
  --card-amber-val: #f8fafc;
  --card-amber-sub: #fde68a;

  --card-rose-bg: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(217, 70, 239, 0.05));
  --card-rose-border: rgba(244, 63, 94, 0.35);
  --card-rose-title: #fb7185;
  --card-rose-val: #f8fafc;
  --card-rose-sub: #fecdd3;

  --card-emerald-bg: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.05));
  --card-emerald-border: rgba(16, 185, 129, 0.35);
  --card-emerald-title: #34d399;
  --card-emerald-val: #f8fafc;
  --card-emerald-sub: #a7f3d0;

  --hero-amber-bg: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.25), transparent 75%), linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  --hero-amber-border: rgba(245, 158, 11, 0.5);
  --hero-amber-label: #fbbf24;
  --hero-amber-number: linear-gradient(135deg, #ffffff 30%, #fde68a 100%);
  --hero-amber-sub: #cbd5e1;

  --hero-indigo-bg: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.3), transparent 75%), linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  --hero-indigo-border: rgba(99, 102, 241, 0.5);
  --hero-indigo-label: #a5b4fc;
  --hero-indigo-number: linear-gradient(135deg, #ffffff 30%, #c7d2fe 100%);
  --hero-indigo-sub: #cbd5e1;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.75);

  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(99, 102, 241, 0.5);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.09);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

  /* Color-Coded Result Metric Card Tokens (Light Mode) */
  --card-cyan-bg: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(16, 185, 129, 0.04));
  --card-cyan-border: rgba(6, 182, 212, 0.45);
  --card-cyan-title: #0284c7;
  --card-cyan-val: #0f172a;
  --card-cyan-sub: #0369a1;

  --card-indigo-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.04));
  --card-indigo-border: rgba(99, 102, 241, 0.45);
  --card-indigo-title: #4338ca;
  --card-indigo-val: #0f172a;
  --card-indigo-sub: #4f46e5;

  --card-amber-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(234, 88, 12, 0.04));
  --card-amber-border: rgba(245, 158, 11, 0.45);
  --card-amber-title: #b45309;
  --card-amber-val: #0f172a;
  --card-amber-sub: #92400e;

  --card-rose-bg: linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(217, 70, 239, 0.04));
  --card-rose-border: rgba(244, 63, 94, 0.45);
  --card-rose-title: #be123c;
  --card-rose-val: #0f172a;
  --card-rose-sub: #9f1239;

  --card-emerald-bg: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.04));
  --card-emerald-border: rgba(16, 185, 129, 0.45);
  --card-emerald-title: #047857;
  --card-emerald-val: #0f172a;
  --card-emerald-sub: #065f46;

  --hero-amber-bg: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.15), transparent 75%), linear-gradient(135deg, #ffffff, #fef3c7);
  --hero-amber-border: rgba(245, 158, 11, 0.6);
  --hero-amber-label: #b45309;
  --hero-amber-number: linear-gradient(135deg, #78350f 0%, #b45309 100%);
  --hero-amber-sub: #475569;

  --hero-indigo-bg: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15), transparent 75%), linear-gradient(135deg, #ffffff, #e0e7ff);
  --hero-indigo-border: rgba(99, 102, 241, 0.6);
  --hero-indigo-label: #4338ca;
  --hero-indigo-number: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
  --hero-indigo-sub: #475569;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Ambient Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  transition: opacity var(--transition-slow);
}
.ambient-glow-1 {
  top: -150px;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
}
.ambient-glow-2 {
  top: 30%;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.02);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.brand-logo .brand-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn, .mobile-menu-btn, .header-search-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover, .header-search-btn:hover, .mobile-menu-btn:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
  color: var(--primary);
}

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

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3rem;
  text-align: center;
  position: relative;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.badge-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Hero Live Search Bar */
.search-container,
.search-wrapper {
  max-width: 680px;
  margin: 1.5rem auto 2.5rem;
  position: relative;
  width: 100%;
}

.search-box-wrapper,
.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full, 9999px);
  padding: 6px 14px 6px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-fast);
}

.search-box-wrapper:focus-within,
.search-input-group:focus-within {
  border-color: var(--primary, #6366f1);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  background: var(--bg-card, var(--bg-secondary));
}

.search-icon,
.search-icon-left {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  pointer-events: none;
}

.search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.02rem;
  font-family: inherit;
  outline: none;
  padding: 10px 8px 10px 0;
}

.search-input::placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-clear-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.search-clear-btn.visible {
  display: inline-flex;
}

.search-clear-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.search-kbd-badge {
  background: var(--bg-tertiary, rgba(255, 255, 255, 0.06));
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 6px);
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Category Filter Tabs */
.category-tabs-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.category-tab {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.category-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
  background: var(--bg-tertiary);
  transform: translateY(-1px);
}

.category-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.tab-count {
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.tool-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--primary-light);
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.tool-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab-icon svg {
  width: 17px;
  height: 17px;
}

.tool-card:hover .tool-icon-wrapper {
  transform: scale(1.08) rotate(3deg);
}

.tool-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.tool-badge.featured {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tool-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.4rem;
  flex: 1;
}

.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.tool-category-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tool-action-link {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.tool-card:hover .tool-action-link {
  gap: 8px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
  grid-column: 1 / -1;
  display: none;
}

.empty-state.show {
  display: block;
}

.empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Features / Benefits Section */
.features-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

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

.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.feature-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.feature-box p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 5rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-color-hover);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
}

.faq-icon {
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon,
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 0 1.5rem 1.25rem;
}

.faq-item.active .faq-answer,
.faq-item.open .faq-answer {
  display: block;
}

/* SEO Content Area */
.seo-rich-content {
  padding: 4rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.seo-rich-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.seo-rich-content p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

/* Site Footer */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 1rem 0 1.5rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* SVG Icon Helper Styles */
.svg-icon {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-section {
    padding: 3rem 0 2rem;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
