:root {
  --bg: #ffffff;
  --paper: #f8f8f8;
  --ink: #1a1a1a;
  --muted: #666666;
  --red: #e0142a;
  --line: #e0e0e0;
}

body.dark-mode {
  --bg: #0a0a0a;
  --paper: #111;
  --ink: #f3f3f3;
  --muted: #a8a8a8;
  --red: #e0142a;
  --line: #1f1f1f;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Add scroll margin to all sections with IDs to account for sticky header */
section[id] {
  scroll-margin-top: 80px;
}
* {
  box-sizing: border-box;
}

body {
  width: 100%;
  max-width: 100vw;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
a {
  color: var(--ink);
  text-decoration: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
body.dark-mode .site-header {
  background: rgba(10, 10, 10, 0.85);
}

body.dark-mode .navmenu a:before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

body.dark-mode .navmenu a:hover {
  background: rgba(224, 20, 42, 0.1);
  box-shadow: 0 4px 15px rgba(224, 20, 42, 0.2);
}

body.dark-mode .navmenu .cta:hover {
  box-shadow: 0 8px 25px rgba(224, 20, 42, 0.4);
}

body.dark-mode .btn:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .btn.primary:hover {
  box-shadow: 0 12px 35px rgba(224, 20, 42, 0.4);
}

body.dark-mode .btn.ghost:hover {
  color: white;
  background: rgba(224, 20, 42, 0.1);
  box-shadow: 0 10px 30px rgba(224, 20, 42, 0.3);
}

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

.brand-logo {
  height: 34px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.brand-logo.bounce,
.footer-logo.bounce {
  animation: logoBouncePulse 0.6s ease-out;
}

@keyframes logoBouncePulse {
  0% { transform: scale(1); }
  25% { transform: scale(1.1) translateY(-4px); }
  50% { transform: scale(1.05) translateY(-2px); }
  75% { transform: scale(1.02) translateY(-1px); }
  100% { transform: scale(1); }
}

.brand-text {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.3px;
  text-decoration: none;
}
.footer-logo {
  height: 26px;
  display: block;
  margin-bottom: 8px;
  transition: opacity 0.2s ease;
}
.navmenu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navmenu li {
  display: flex;
  align-items: center;
}
.navmenu a {
  opacity: 0.9;
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  overflow: hidden;
}

.navmenu a:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: all 0.5s;
}

.navmenu a:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: rgba(224, 20, 42, 0.1);
  color: var(--ink);
  box-shadow: 0 4px 15px rgba(224, 20, 42, 0.2);
}

.navmenu a:hover:before {
  left: 100%;
}
.navmenu .cta {
  border: 2px solid var(--ink);
  padding: 8px 14px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.navmenu .cta:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--red);
  transition: all 0.4s ease;
  z-index: -1;
}

.navmenu .cta:hover {
  border-color: var(--red);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(224, 20, 42, 0.4);
  background: rgba(224, 20, 42, 0.1);
}

.navmenu .cta:hover:before {
  left: 0;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 6px 10px;
}
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--line);
  transition: 0.3s;
  border-radius: 28px;
  border: 2px solid var(--line);
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--ink);
  transition: 0.3s;
  border-radius: 50%;
}

.theme-switch:hover .slider {
  border-color: var(--ink);
}

.theme-switch input:checked + .slider {
  background: var(--red);
  border-color: var(--red);
}

.theme-switch input:checked + .slider:before {
  transform: translateX(22px);
  background: white;
}
.hero {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-family: "League Spartan", Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 0.98;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.slash {
  color: var(--red);
  margin-right: 10px;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
}
.actions {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.6s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn:hover:before {
  left: 100%;
}

.btn.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}

.btn.primary:before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.btn.primary:hover {
  background: var(--red);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(224, 20, 42, 0.4);
}

.btn.ghost {
  background: transparent;
}

.btn.ghost:before {
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
}

.btn.ghost:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(224, 20, 42, 0.1);
  box-shadow: 0 10px 30px rgba(224, 20, 42, 0.3);
}

.btn.ghost:hover:before {
  opacity: 0.1;
}
.pills {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.pills li {
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
}
.media-frame {
  border: 12px solid var(--paper);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.media-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.numbers {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.num {
  font-family: "League Spartan", Inter, sans-serif;
  color: var(--red);
  font-size: 56px;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.panels {
  padding: 50px 0;
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.panel.accent {
  background: var(--red);
  color: var(--bg);
  border-color: transparent;
}
.page-head {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 40px 0 10px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 6px;
}
.kicker {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.container.narrow {
  max-width: 900px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  border-radius: 14px;
  padding: 18px;
}
.card.solid {
  background: var(--paper);
  border: 1px solid var(--line);
}
.card.outline {
  background: transparent;
  border: 2px solid var(--ink);
}
.grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

#services {
  background: linear-gradient(135deg, rgba(0, 40, 104, 0.05), rgba(59, 130, 246, 0.05));
  border-radius: 20px;
  padding: 40px 28px;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
}

#services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), var(--red), rgba(59, 130, 246, 0.3), transparent);
}

#services .card.solid:first-child {
  border-left: 4px solid rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, var(--paper), rgba(59, 130, 246, 0.02));
}

#services .card.solid:last-child {
  border-left: 4px solid var(--red);
  background: linear-gradient(135deg, var(--paper), rgba(224, 20, 42, 0.02));
}

#services .card.solid h3 {
  position: relative;
}

#services .card.solid:first-child h3::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: rgba(59, 130, 246, 0.4);
  border-radius: 2px;
}

#services .card.solid:last-child h3::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: rgba(224, 20, 42, 0.4);
  border-radius: 2px;
}

body.dark-mode #services {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(0, 40, 104, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.15);
}

body.dark-mode #services::before {
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), var(--red), rgba(59, 130, 246, 0.4), transparent);
}
.tight {
  margin: 0;
  padding-left: 18px;
}
.note {
  border-left: 4px solid var(--red);
  padding: 8px 12px;
  background: var(--paper);
  border-radius: 8px;
}
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  padding: 28px 0;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-contact a {
  display: block;
}
.subfooter {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  color: var(--muted);
}
.stack {
  display: grid;
  gap: 12px;
}
.stack input,
.stack textarea,
.stack select {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px;
  border-radius: 10px;
}

.modern-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--paper);
  border: 2px solid var(--line);
  color: var(--ink);
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(224, 20, 42, 0.1);
}

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

.form-submit {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  display: block;
  padding: 16px 24px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(224, 20, 42, 0.3);
}
#contact {
  background: linear-gradient(135deg, rgba(0, 40, 104, 0.35), rgba(59, 130, 246, 0.25), rgba(224, 20, 42, 0.15));
  border: 2px solid rgba(59, 130, 246, 0.5);
  border-radius: 24px;
  padding: 48px 28px;
  margin: 40px auto;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15), 0 4px 16px rgba(224, 20, 42, 0.1);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), var(--red), rgba(59, 130, 246, 0.6), transparent);
}

#contact::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), rgba(59, 130, 246, 0.4), transparent);
}

#contact .page-head {
  border-bottom-color: rgba(59, 130, 246, 0.6);
  border-bottom-width: 4px;
}

#contact .page-head h1 {
  color: var(--ink);
  text-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

#contact .lead {
  color: var(--ink);
  opacity: 0.9;
}

body.dark-mode #contact {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(0, 40, 104, 0.15), rgba(224, 20, 42, 0.08));
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(59, 130, 246, 0.2);
}

body.dark-mode #contact::before {
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.7), var(--red), rgba(59, 130, 246, 0.7), transparent);
}

body.dark-mode #contact::after {
  background: linear-gradient(90deg, transparent, var(--red), rgba(59, 130, 246, 0.5), transparent);
}

body.dark-mode #contact .page-head {
  border-bottom-color: rgba(59, 130, 246, 0.5);
}

body.dark-mode #contact .page-head h1 {
  color: var(--ink);
  text-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

#team .card.solid {
  border: 2px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1), 0 2px 8px rgba(224, 20, 42, 0.05);
  position: relative;
  overflow: hidden;
}

#team .card.solid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), var(--red), rgba(59, 130, 246, 0.6), transparent);
}

body.dark-mode #team .card.solid {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(59, 130, 246, 0.15);
}

body.dark-mode #team .card.solid::before {
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.7), var(--red), rgba(59, 130, 246, 0.7), transparent);
}

#team .profile-image > div {
  border: 2px solid rgba(59, 130, 246, 0.6) !important;
}

body.dark-mode #team .profile-image > div {
  border-color: rgba(59, 130, 246, 0.7) !important;
}

/* Hide flag emoji by default */
.flag-mobile {
  display: none;
}

@media (max-width: 1460px) {
  .jet-image {
    display: none !important;
  }
  .eagle-image {
    display: none !important;
  }
}

@media (max-width: 622px) {
  /* Show flag emoji only on very small screens */
  .flag-mobile {
    display: inline;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-media {
    display: none;
  }
  .panel-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
  .numbers-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  #contact {
    margin: 40px 16px;
    padding: 32px 24px;
  }
  #services {
    margin: 40px 16px;
  }
  .footer-grid {
    padding: 28px 16px;
  }
  .subfooter {
    padding: 12px 16px;
  }
  .nav-toggle {
    display: inline-block;
  }
  .navmenu {
    display: none;
    position: absolute;
    right: 16px;
    top: 74px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .navmenu.show {
    display: flex;
  }
  .navmenu li {
    width: 100%;
    justify-content: flex-start;
  }
  .navmenu .theme-switch {
    margin-top: 8px;
    align-self: flex-start;
  }
  .brand-text {
    display: block;
    font-size: 14px;
  }
  .numbers {
    display: none;
  }
}
