:root {
  --navy: #0F1F3D;
  --navy-mid: #1B3A6B;
  --orange: #E87722;
  --orange-light: #F5A054;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --slate: #4A5568;
  --teal: #0D9488;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --nav-height: 68px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--slate);
  background-color: var(--off-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  color: var(--navy);
}

h1 {
  font-weight: 800;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 700;
  font-size: clamp(24px, 4vw, 36px);
}

h3 {
  font-weight: 600;
  font-size: 20px;
}

p {
  margin-bottom: var(--space-md);
  font-size: 16px;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--orange-light);
}

/* Sections */
.section-dark {
  background-color: var(--navy);
  color: var(--off-white);
}

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

.section-padding {
  padding: var(--space-2xl) 5%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-align: center;
}

.btn-primary {
  background-color: var(--orange);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background-color: var(--orange-light);
  color: var(--white);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: var(--navy-mid);
  color: var(--white);
  border: none;
}

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

.btn-ghost {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: var(--nav-height);
  background-color: var(--white);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--navy);
}

.navbar .logo span {
  color: var(--orange);
}

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

.nav-links a {
  font-weight: 500;
  color: var(--navy);
}

.nav-links a:hover {
  color: var(--orange);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--white);
    border-bottom: 1px solid #e2e8f0;
    padding: var(--space-lg) 5%;
    gap: var(--space-md);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
    padding: 4px 0;
  }
}

/* Hero */
.hero {
  text-align: center;
  padding: 100px 5% 80px;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 18px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

/* Trust Strip */
.trust-strip {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: var(--radius-md);
  max-width: 800px;
  margin: 0 auto;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

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

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
}

/* Cards */
.card {
  background-color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.08);
}

/* Helper */
.text-center { text-align: center; }
.mb-2 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mt-4 { margin-top: var(--space-lg); }
.bg-off-white { background-color: var(--off-white); }

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Footer */
.site-footer {
  background: var(--navy);
  padding: var(--space-2xl) 5% var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* Animation Utils */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(232, 119, 34, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--orange-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(232, 119, 34, 0.5);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
}

/* Mobile Menu Improvements */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background-color: var(--white);
    padding: 80px 5% 40px;
    gap: var(--space-lg);
    z-index: 1000;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
  }

  @keyframes slideIn {
    from { opacity: 0; transform: translateX(-100%); }
    to { opacity: 1; transform: translateX(0); }
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--white);
    z-index: -1;
    border-bottom: 1px solid #e2e8f0;
  }

  .nav-links a {
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
  }

  .nav-links a:last-child {
    border-bottom: none;
    margin-top: auto;
  }

  .nav-links .btn {
    margin-top: 16px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Mobile menu close button */
  .nav-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .nav-close span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    position: absolute;
    top: 50%;
    left: 50%;
  }

  .nav-close span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .nav-close span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .nav-links.open ~ .nav-close,
  .nav-links.open + .nav-close {
    display: block;
  }

  .nav-links {
    position: fixed;
    padding-top: calc(var(--nav-height) + 20px);
  }

  .nav-close {
    display: block;
    top: calc(var(--nav-height) - 44px);
    z-index: 1002;
  }

  .nav-close.hidden {
    display: none;
  }

  /* Hero mobile adjustments */
  .hero {
    padding: 60px 5% 60px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }

  /* Process strip mobile */
  .process-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
