/* ===== base reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== body ===== */
body {
  background: #0b111a;
  color: #e8f0ff;
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
}

/* FIX: Add left cushion, keep right at 1280px */
.container {
  width: min(1280px, 96vw);
  margin: 0 auto;
  padding: 0 20px 0 60px;
}
.rail-left { padding-left: 2px; }

/* ===== header / nav ===== */
header {
  background: #0c1320;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 30;
}
/* FIX: Adjust nav padding to align right edge perfectly */
header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 16px 20px 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  height: 38px;
  width: auto;
}
/* FIX: Blue tagline for version tracking */
.brand .tag {
  font-size: 1rem;
  font-weight: 700;
  color: #89a8ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}
nav.menu {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  white-space: nowrap;
  margin-left: auto;
}
nav.menu a {
  color: #d8e5ff;
  font-weight: 600;
  opacity: .9;
  text-decoration: none;
}
nav.menu a:hover { opacity: 1; }
nav.menu .has-drop { position: relative; }
nav.menu .drop {
  position: absolute;
  top: 100%;
  left: 0;
  background: #0f1420;
  border: 1px solid #2a2f3a;
  border-radius: 8px;
  padding: .4rem 0;
  display: none;
  min-width: 240px;
  z-index: 60;
}
nav.menu .drop a {
  display: block;
  padding: .35rem .7rem;
  font-size: .85rem;
}
nav.menu .drop a:hover { background: rgba(255,255,255,.05); }
nav.menu .has-drop:hover .drop,
nav.menu .has-drop:focus-within .drop { display: block; }

/* ===== hero ===== */
.hero {
  position: relative;
  min-height: 420px;
  background: #0b1222;
  isolation: isolate;
  margin-bottom: 16px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero-computer.jpg') center/cover no-repeat;
  opacity: .22;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 380px at 18% -10%, rgba(60,110,255,.35), transparent 60%),
    radial-gradient(900px 520px at 100% 100%, rgba(20,60,220,.28), transparent 60%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.9fr;
  gap: 24px;
  padding: 48px 0 28px;
  align-items: start;
}
/* FIX: Tighten left hero column to match main width */
.hero-inner > div:first-child {
  max-width: 90%;
}
.kicker {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: .8rem;
  display: inline-block;
}
.title {
  font-size: 46px;
  line-height: 1.08;
  margin: 14px 0 10px;
  color: #3066ff;
}
/* FIX: Remove max-width so copy runs full width under title */
.sub {
  color: #a9b8d6;
  margin: 0;
  font-size: 1.05rem;
}

/* ===== contact panel ===== */
/* this sits inside the same container rails as the nav */
#contact {
  width: 100%;
  max-width: 540px;          /* back to tighter box */
  margin-left: auto;         /* right column */
  background: rgba(11,17,26,.45);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 16px;
  backdrop-filter: blur(4px);
  padding: 18px 18px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
#contact h2 {
  color: #3066ff;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
}
#contact h2 a {
  color: #fff;
  text-decoration: none;
}
#contact form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#contact input,
#contact textarea {
  width: 100%;
  background: rgba(15,22,34,.65);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 9px 11px;
  color: #e8f0ff;
  font: inherit;
}
#contact textarea { min-height: 90px; }
#contact .submit {
  background: linear-gradient(180deg,#3066ff 0%,#1d4fff 100%);
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

/* ===== main ===== */
main { padding-bottom: 36px; }
.band { padding: 28px 0; }

/* FIX: Remove right padding for alignment */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
  padding-right: 0;
}

/* panels */
.band .panel {
  background: #121927;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 20px 24px 20px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.band .panel h2,
.band .panel h3 {
  color: #3066ff;
  margin-top: 0;
  margin-bottom: 10px;
}
/* FIX: Larger paragraph font size */
.band .panel p { 
  margin-bottom: 10px;
  font-size: 1.05rem;
}
/* FIX: White links in Find Us section */
.band .panel p a {
  color: #fff;
  text-decoration: none;
}
.band .panel p a:hover {
  text-decoration: underline;
}
.band .panel p a:visited {
  color: #89a8ff;
}

/* FAQ section link colors */
#faq h3 a {
  color: #3066ff;
  text-decoration: none;
}
#faq h3 a:hover {
  text-decoration: underline;
}
#faq h3 a:visited {
  color: #89a8ff;
}

/* map */
#results-and-location iframe {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 12px;
}

/* FAQ */
#faq .panel {
  background: #121927;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 20px 24px 20px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
#faq .faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 30px;
}
#faq h3 {
  color: #3066ff;
  margin: 10px 0 4px;
}
/* FIX: Larger FAQ paragraph font size */
#faq p {
  color: #d5e1f9;
  margin: 0 0 10px;
  font-size: 1.05rem;
}

/* FIX: Footer styling aligned with page */
footer {
  background: #0c1320;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 24px 0;
  margin-top: 40px;
}
footer .ft {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #a9b8d6;
}
footer .ft a {
  color: #d8e5ff;
  text-decoration: none;
}
footer .ft a:hover {
  text-decoration: underline;
}

/* Pager navigation */
.cap-pager {
  text-align: center;
  padding: 20px 0;
  margin: 0 auto;
}
.cap-pager a {
  color: #d8e5ff;
  text-decoration: none;
  font-weight: 600;
}
.cap-pager a:hover {
  color: #fff;
}
.cap-sep {
  color: #a9b8d6;
  margin: 0 10px;
}

/* Hamburger menu styles */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #e8f0ff;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* responsive */
@media (max-width: 980px) {
  /* Hide tagline on mobile */
  .brand .tag { display: none; }
  
  /* Reduce hero title size on mobile */
  .title {
    font-size: 28px;
    line-height: 1.15;
  }
  
  /* Reduce kicker font size on mobile */
  .kicker {
    font-size: 0.75rem !important;
  }

  
  /* Show hamburger, hide desktop menu */
  .hamburger { display: flex; }
  nav.menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0c1320;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 20px;
    gap: 0;
    transition: right 0.3s;
    z-index: 99;
    box-shadow: -4px 0 20px rgba(0,0,0,.5);
  }
  nav.menu.active {
    right: 0;
  }
  nav.menu a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  nav.menu .has-drop {
    width: 100%;
  }
  nav.menu .drop {
    position: static;
    display: none;
    border: none;
    background: transparent;
    padding: 0 0 0 20px;
    min-width: 0;
  }
  nav.menu .has-drop.active .drop {
    display: block;
  }
  
  .hero-inner { grid-template-columns: 1fr; }
  .hero-inner > div:first-child { padding-left: 20px; }
  .two-col { grid-template-columns: 1fr; padding-right: 0; }
  #faq .faq-grid { grid-template-columns: 1fr; }
  #contact { max-width: 100%; }
  footer .ft { flex-direction: column; text-align: center; }
  
  /* Mobile FAQ link colors for readability */
  #faq h3 a {
    color: #89a8ff;
  }
  #faq h3 a:visited {
    color: #89a8ff;
  }
}