/* 
 * HBF Connect Enterprise SaaS - Core Stylesheet
 * Brand Foundation: Deep Royal Navy (#002a74) and Golden Yellow (#ffb800)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --bg: #ffffff;
  --bg-darker: #051937; /* deep blue for footer */
  --bg-gradient: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --surface-solid: #f1f5f9;
  
  --brand: #002a74;
  --brand-light: #004ac9;
  --accent: #ffb800;
  --accent-rgb: 255, 184, 0;
  --accent-dim: rgba(255, 184, 0, 0.08);
  
  --ink: #0a1530;
  --muted: #475569;
  --border: rgba(0, 42, 116, 0.15);
  --border-light: rgba(255, 184, 0, 0.4);
  
  /* Statuses */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Radius & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-glow: 0 10px 30px rgba(255, 184, 0, 0.15), 0 2px 8px rgba(0, 42, 116, 0.05);
  --shadow-brand: 0 8px 32px rgba(0, 42, 116, 0.15);
  
  --max-width: 1240px;
  
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Base Layout */
.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.section-header.left-aligned {
  text-align: left;
  margin-left: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border-light);
  border-radius: 50px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--muted);
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand) 30%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

/* Glassmorphism Card base */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-heading);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  color: #fff;
  box-shadow: var(--shadow-brand);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 74, 201, 0.4), var(--shadow-glow);
  border-color: var(--accent);
}

.btn-accent {
  background: var(--accent);
  color: var(--bg-darker);
  box-shadow: var(--shadow-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 184, 0, 0.4);
  background: #fff;
}

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

.btn-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 184, 0, 0.35);
}

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

.btn-ghost:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

/* Header Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 42, 116, 0.05);
  transition: all 0.3s ease;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

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

.brand img {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.primary-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--ink);
}

.primary-nav a.is-active::after,
.primary-nav a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Home Hero Grid */
.hero-section {
  padding-top: 70px;
  padding-bottom: 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 24px;
}

.hero-copy p {
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-row {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.trust-row p {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.trust-logos {
  display: flex;
  gap: 30px;
  align-items: center;
  opacity: 0.7;
}

.trust-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* AI Matching Simulator - Interactive UI Mockup */
.hero-visual {
  width: 100%;
}

.simulator-window {
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-brand);
  overflow: hidden;
}

.sim-header {
  background: var(--brand);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-dots {
  display: flex;
  gap: 6px;
}

.sim-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.sim-dots span:nth-child(1) { background: #ef4444; }
.sim-dots span:nth-child(2) { background: #f59e0b; }
.sim-dots span:nth-child(3) { background: #10b981; }

.sim-body {
  padding: 24px;
}

.sim-selectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.sim-btn {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  font-weight: 500;
}

.sim-btn:hover, .sim-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.sim-input-box {
  background: #060b1e;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  min-height: 64px;
  font-size: 0.9rem;
  position: relative;
  font-family: var(--font-body);
}

.sim-input-box .cursor {
  display: inline-block;
  width: 2px;
  height: 15px;
  background: var(--accent);
  animation: blink 0.8s infinite;
  vertical-align: middle;
}

@keyframes blink {
  50% { opacity: 0; }
}

.sim-console {
  background: #030716;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 200px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #a7f3d0;
  overflow-y: auto;
}

.console-line {
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(4px);
  animation: fadeUp 0.3s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.sim-results {
  display: none;
}

.score-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-top: 14px;
}

.score-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--success);
}

/* Interactive Roadmap (Timeline) */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand), var(--accent), var(--brand));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding: 30px 0;
  width: 50%;
  position: relative;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  margin-left: 50%;
  justify-content: flex-start;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 10px var(--accent);
  z-index: 2;
}

.timeline-item:nth-child(even)::after {
  left: -8px;
  right: auto;
}

.timeline-content {
  width: 85%;
  padding: 24px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.timeline-number {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

/* Problem Split Cards */
.split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.problem-side {
  border-color: rgba(239, 68, 68, 0.2);
}
.problem-side:hover {
  border-color: var(--error);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.solution-side {
  border-color: rgba(16, 185, 129, 0.2);
}
.solution-side:hover {
  border-color: var(--success);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-side .icon-circle {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.solution-side .icon-circle {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.card-list {
  list-style: none;
  margin-top: 20px;
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.card-list li i {
  flex-shrink: 0;
  margin-top: 4px;
}

.problem-side li i { color: var(--error); }
.solution-side li i { color: var(--success); }

/* Grid columns layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Feature Table Comparison */
.comparison-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th, .comp-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.comp-table th {
  background: var(--brand);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
}

.comp-table td:nth-child(2) {
  color: rgba(239, 68, 68, 0.8);
}

.comp-table td:nth-child(3) {
  color: var(--accent);
  font-weight: 600;
  background: rgba(255, 184, 0, 0.02);
}

.comp-table tr:last-child td {
  border-bottom: none;
}

.comp-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Dynamic Capability Node Graph CSS */
.graph-container {
  min-height: 400px;
  position: relative;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
}

.graph-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.graph-nodes {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.node {
  position: absolute;
  padding: 12px 20px;
  border-radius: 50px;
  background: var(--bg);
  border: 2px solid var(--brand);
  box-shadow: 0 4px 15px rgba(0, 42, 116, 0.4);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.node.active, .node:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.node-center {
  top: 45%;
  left: 45%;
  background: var(--brand-light);
  border-color: var(--accent);
  font-size: 1rem;
}

/* Node layout positioning coordinates */
.node-1 { top: 15%; left: 15%; }
.node-2 { top: 15%; left: 75%; }
.node-3 { top: 75%; left: 18%; }
.node-4 { top: 75%; left: 70%; }
.node-5 { top: 45%; left: 12%; }
.node-6 { top: 45%; left: 78%; }

/* Solutions split pane layout */
.solutions-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.tab-trigger {
  padding: 16px 36px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-trigger.active, .tab-trigger:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  box-shadow: var(--shadow-glow);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* FAQ Accordion UI */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 184, 0, 0.4);
}

.faq-trigger {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-trigger i {
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #f8fafc;
}

.faq-content p {
  padding: 0 24px 24px 24px;
  font-size: 0.95rem;
}

.faq-item.active .faq-content {
  max-height: 300px;
}

.faq-item.active .faq-trigger i {
  transform: rotate(180deg);
}

.faq-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.1);
}

/* Map placeholder & contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid var(--border-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-brand);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Map Container */
.map-container {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 50px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  filter: invert(90%) hue-rotate(180deg) grayscale(80%) contrast(90%);
}

/* Footer layout */
.site-footer {
  border-top: 4px solid var(--accent);
  background: #03102c;
  padding: 80px 0 40px 0;
  color: #cbd5e1;
}
.site-footer p {
  color: #94a3b8 !important;
}
.site-footer a {
  transition: all 0.2s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 20px;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent) !important; /* Golden yellow for headers */
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #cbd5e1 !important;
}

.footer-col ul li a:hover {
  color: #ffffff !important;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b !important;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #94a3b8 !important;
}

.footer-bottom a:hover {
  color: #ffffff !important;
}

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

/* Notification banner styles */
.alert-banner {
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

/* Responsive adjusters */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .trust-logos {
    justify-content: center;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    justify-content: flex-start;
    padding-left: 40px;
  }
  .timeline-item:nth-child(even) {
    margin-left: 0;
  }
  .timeline-item::after {
    left: 11px;
    right: auto;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    justify-content: flex-start;
    padding-left: 40px;
  }
  .timeline-item:nth-child(even) {
    margin-left: 0;
  }
  .timeline-item::after {
    left: 11px;
    right: auto;
  }
  .split-cards {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}


/* Navigation Collapse on Smaller Screens */
@media (max-width: 1120px) {
  .primary-nav {
    display: none;
  }
  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #03102c;
    border-bottom: 1px solid var(--border);
    padding: 30px;
    gap: 20px;
    z-index: 999;
  }
  .nav-toggle {
    display: block;
  }
  .tablet-hide {
    display: none !important;
  }
}
