/* ============================================================
   AGMDC — AmpliTech Group Microwave Design Center
   styles.css
   ------------------------------------------------------------
   BRAND NOTE: The hex values below approximate the new
   amplitechgroup.com dark look.  To match exactly, use a color
   picker on the corporate site and update the four --ink values
   and --signal accent here.  Everything on the site derives
   from these tokens.
   ============================================================ */

:root {
  /* Palette */
  --ink-950: #070b14;   /* page background, deep space navy */
  --ink-900: #0c1322;   /* alternating section background */
  --ink-800: #131c30;   /* cards, panels */
  --ink-700: #1d2946;   /* borders, hairlines */
  --paper:   #e9eef6;   /* primary text */
  --paper-dim: #9daabf; /* secondary text */
  --signal:  #4da3ff;   /* primary accent, signal blue */
  --signal-deep: #1e6fd9;
  --band-active: #ffb454; /* amber, used ONLY in the spectrum device */

  /* Type */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --max-w: 1120px;
  --pad-x: 24px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--ink-950);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ------------------------------------------------------------
   Type scale
   ------------------------------------------------------------ */
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: 0.6em; }
h3 { font-size: 1.12rem; font-weight: 700; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  display: block;
  margin-bottom: 14px;
}

.lede {
  color: var(--paper-dim);
  font-size: 1.12rem;
  max-width: 46em;
}

/* ------------------------------------------------------------
   Header / nav
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-700);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; }
.brand .tag {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--paper-dim);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--paper-dim);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--paper); text-decoration: none; }

.btn {
  display: inline-block;
  background: var(--signal);
  color: var(--ink-950);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--signal-deep); color: var(--paper); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--ink-700);
}
.btn-ghost:hover { border-color: var(--signal); background: transparent; color: var(--signal); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink-700);
  color: var(--paper);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink-900);
    border-bottom: 1px solid var(--ink-700);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px var(--pad-x); width: 100%; }
  .nav-cta { display: none; }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  padding: 88px 0 64px;
  /* HERO IMAGE: to add a satellite/space background like the
     corporate site, save an image to images/hero/ and swap in:
     background: linear-gradient(rgba(7,11,20,.78), rgba(7,11,20,.94)),
                 url("../images/hero/space.jpg") center/cover no-repeat; */
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(77, 163, 255, 0.14), transparent 60%),
    var(--ink-950);
  border-bottom: 1px solid var(--ink-700);
}

.hero h1 { max-width: 15em; }

.hero .lede { margin: 22px 0 30px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ------------------------------------------------------------
   Spectrum device (signature element)
   A datasheet-style band legend, DC to 50 GHz and beyond.
   Amber = bands with active AGMDC satcom programs.
   ------------------------------------------------------------ */
.spectrum {
  margin-top: 58px;
}

.spectrum-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 10px;
}

.spectrum-legend { display: flex; gap: 18px; }
.spectrum-legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.swatch.covered { background: var(--signal); opacity: 0.55; }
.swatch.active { background: var(--band-active); }

.bands {
  display: flex;
  gap: 4px;
}

.band {
  flex: 1;
  border-radius: 6px;
  padding: 12px 4px 10px;
  text-align: center;
  background: var(--ink-800);
  border-top: 3px solid rgba(77, 163, 255, 0.55);
}

.band .band-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.band .band-range {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--paper-dim);
  display: block;
  margin-top: 3px;
  white-space: nowrap;
}

.band.active {
  border-top-color: var(--band-active);
  background: #1a1a2b;
}
.band.active .band-name { color: var(--band-active); }

@media (max-width: 720px) {
  .bands { flex-wrap: wrap; }
  .band { flex: 1 1 21%; }
  .spectrum-caption { flex-direction: column; gap: 6px; }
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
section { padding: 80px 0; }
section.alt { background: var(--ink-900); border-top: 1px solid var(--ink-700); border-bottom: 1px solid var(--ink-700); }

.grid {
  display: grid;
  gap: 22px;
  margin-top: 40px;
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid.cols-3 { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--paper-dim); font-size: 0.98rem; }

.card .spec {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  display: block;
  margin-bottom: 12px;
}

/* Capability list */
.cap-list {
  list-style: none;
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 44px;
}
.cap-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--ink-700);
  color: var(--paper);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.cap-list li::before {
  content: "▸";
  color: var(--signal);
  font-size: 0.8rem;
}
@media (max-width: 720px) { .cap-list { grid-template-columns: 1fr; } }

/* Facilities table */
.facility-table {
  width: 100%;
  margin-top: 34px;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.facility-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--ink-700);
  vertical-align: top;
}
.facility-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  white-space: nowrap;
  width: 220px;
}
.facility-table td:last-child { color: var(--paper-dim); }
@media (max-width: 640px) {
  .facility-table td { display: block; width: 100% !important; }
  .facility-table td:first-child { border-bottom: 0; padding-bottom: 2px; }
}

/* Foundry wall */
.foundry-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.foundry {
  border: 1px solid var(--ink-700);
  border-radius: 8px;
  padding: 14px 22px;
  background: #eef2f8;   /* light chip so mixed-format logos always read */
  color: #22304a;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
}
.foundry img {
  height: 32px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

/* Team */
.bio-card { display: flex; gap: 26px; align-items: flex-start; }
.bio-photo {
  flex: 0 0 148px;
  width: 148px;
  height: 148px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--ink-700);
}
@media (max-width: 640px) { .bio-card { flex-direction: column; } }

/* Contact */
.contact-panel {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
}
@media (max-width: 860px) { .contact-panel { grid-template-columns: 1fr; } }

.contact-line {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-700);
  font-size: 0.98rem;
}
.contact-line .k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  width: 110px;
  flex: none;
  padding-top: 4px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--ink-700);
  padding: 44px 0 56px;
  color: var(--paper-dim);
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--paper-dim); }
.footer-grid a:hover { color: var(--paper); }
.footer-head {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 14px;
}
.copyright { margin-top: 40px; font-size: 0.8rem; }
