/* ============================================================
   AIRFOIL MARINE — stylesheet
   Drop into your WordPress theme (Custom CSS or child theme).
   ============================================================ */

:root {
  --bg:           #070d14;
  --bg-2:         #0c151f;
  --surface:      #111d2a;
  --surface-2:    #18263650;
  --border:       #1f3245;
  --border-soft:  #16273a;
  --text:         #e8eef5;
  --text-dim:     #8ea4b8;
  --text-mute:    #5d7388;
  --accent:       #5dd0e6;   /* Garmin chartplotter cyan */
  --accent-dim:   #2a8a9f;
  --warn:         #ffb547;
  --max:          1180px;
  --gap:          clamp(16px, 3vw, 28px);
  --radius:       4px;
  --radius-lg:    8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 40px);
}

/* ----- subtle radar grid background, very low key ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(93,208,230,0.06), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 60px, rgba(255,255,255,0.012) 60px 61px),
    repeating-linear-gradient(90deg, transparent 0 60px, rgba(255,255,255,0.012) 60px 61px);
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

/* =========== NAV =========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 13, 20, 0.78);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand img { width: 52px; height: 52px; opacity: 0.95; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 18px;
}
.brand-text span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: 0.15s ease;
}
.nav-phone:hover { color: var(--accent); }
.nav-phone svg { flex: 0 0 14px; opacity: 0.7; }
.nav-phone:hover svg { opacity: 1; }
@media (max-width: 540px) {
  .nav-phone span { display: none; }
  .nav-phone { padding: 8px; }
  .nav-phone svg { width: 18px; height: 18px; opacity: 1; }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--accent-dim);
  background: rgba(93,208,230,0.08);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  transition: 0.15s ease;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* =========== HERO =========== */
.hero {
  padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 7vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 60px);
  align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.3fr 1fr; }
  .hero-grid.hero-single { grid-template-columns: 1fr; }
}
.hero-grid.hero-single { text-align: center; }
.hero-grid.hero-single > div { width: 100%; max-width: 1000px; margin: 0 auto; }
.hero-grid.hero-single .eyebrow { justify-content: center; }
.hero-grid.hero-single h1 { max-width: 22ch; margin: 0 auto 22px; }
.hero-grid.hero-single p.lede { max-width: 760px; margin: 0 auto 32px; }
.hero-grid.hero-single .btn-row { justify-content: center; }
.hero-grid.hero-single .coords { justify-content: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 32px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: #fff;
  color: var(--bg);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* hero logo block */
.hero-mark {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.hero-mark img {
  width: 92%;
  filter: drop-shadow(0 0 60px rgba(93,208,230,0.25));
  opacity: 0.94;
}
.hero-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(93,208,230,0.10), transparent 60%),
    conic-gradient(from 0deg, rgba(93,208,230,0.0) 0deg, rgba(93,208,230,0.18) 90deg, rgba(93,208,230,0.0) 180deg);
  border-radius: 50%;
  animation: sweep 8s linear infinite;
  filter: blur(2px);
}
@keyframes sweep {
  to { transform: rotate(360deg); }
}
.hero-mark::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(93,208,230,0.18);
  border-radius: 50%;
}

/* coords strip */
.coords {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.coords span b {
  color: var(--text-dim);
  font-weight: 500;
  margin-right: 8px;
}

/* =========== CREDENTIALS / LOGO WALL =========== */
.creds {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.012);
  padding: clamp(40px, 6vw, 64px) 0;
}
.creds-label {
  text-align: center;
  margin-bottom: 30px;
}
.logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.logo-tile {
  flex: 1 1 92px;
  min-width: 0;
  max-width: 170px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  transition: 0.2s ease;
}
.logo-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.logo-tile img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
/* white-on-transparent logos → recolor to black so they read on the white tile */
.logo-tile img.logo-recolor {
  filter: brightness(0);
}
/* the NMEA badge is square; give it a touch more height */
.logo-tile:last-child img { max-height: 52px; }
@media (max-width: 560px) {
  .logo-tile { flex: 1 1 calc(50% - 6px); max-width: none; }
}

/* =========== BRANDS ROW =========== */
.brands {
  padding: 44px 0;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.008);
}
.brands-label {
  text-align: center;
  margin-bottom: 14px;
}
.brands-note {
  text-align: center;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* =========== SECTIONS =========== */
section {
  padding: clamp(60px, 9vw, 110px) 0;
}
.section-head {
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 720px;
}
.section-head h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 8px 0 14px;
  font-weight: 700;
  text-wrap: balance;
}
.section-head p {
  font-size: 17px;
  color: var(--text-dim);
  margin: 0;
}

/* =========== SERVICES =========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service {
  background: var(--bg-2);
  padding: 30px 26px;
  transition: 0.2s ease;
  position: relative;
}
.service:hover {
  background: var(--surface);
}
.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 18px;
}
.service h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.service p {
  font-size: 14.5px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.55;
}
.service-brands {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  opacity: 0.85;
}

/* =========== ABOUT / WHY ============ */
.about {
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255,255,255,0.012), transparent);
}
.about-grid {
  display: grid;
  gap: clamp(30px, 5vw, 50px);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-card {
  padding: 32px;
  border: 1px solid var(--border-soft);
  background: var(--bg-2);
  border-radius: var(--radius-lg);
}
.about-card h3 {
  font-size: 22px;
  margin: 0 0 14px;
  font-weight: 700;
}
.about-card p {
  color: var(--text-dim);
  margin: 0 0 12px;
  font-size: 15.5px;
}
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.bullet-list li {
  padding: 10px 0 10px 24px;
  position: relative;
  border-top: 1px dashed var(--border-soft);
  font-size: 15px;
  color: var(--text-dim);
}
.bullet-list li:first-child { border-top: none; }
.bullet-list li::before {
  content: "›";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

/* =========== SERVICE AREA =========== */
.area {
  text-align: center;
  border-top: 1px solid var(--border-soft);
}
.area-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.area h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.area h2 em {
  font-style: normal;
  color: var(--accent);
}
.area-sub {
  max-width: 580px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 17px;
}
.area-cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========== FORM =========== */
.form-section {
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.form-shell {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.form-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(93,208,230,0.04);
}
.form-header .mono { margin: 0; }
.form-header .led {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.form-header .led::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  50% { opacity: 0.35; }
}
form {
  padding: 28px;
  display: grid;
  gap: 22px;
}
.row {
  display: grid;
  gap: 22px;
}
@media (min-width: 640px) {
  .row.two { grid-template-columns: 1fr 1fr; }
  .row.three { grid-template-columns: 1fr 1fr 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field label .req { color: var(--accent); margin-left: 4px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 14px;
  font-size: 15px;
  border-radius: var(--radius);
  font-family: inherit;
  transition: 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(93,208,230,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%235dd0e6' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 38px;
}

.checkgroup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.checkitem {
  position: relative;
}
.checkitem input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; left: 0; top: 0; }
.checkitem label {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dim);
  transition: 0.15s ease;
}
.checkitem label::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  border: 1px solid var(--border);
  margin-right: 10px;
  vertical-align: -2px;
  border-radius: 2px;
  background: var(--bg);
  transition: 0.15s ease;
}
.checkitem input:checked + label {
  color: var(--text);
  border-color: var(--accent-dim);
  background: rgba(93,208,230,0.06);
}
.checkitem input:checked + label::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--bg-2);
}

.radiogroup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radioitem { position: relative; display: inline-block; }
.radioitem input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; left: 0; top: 0; }
.radioitem label {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dim);
  transition: 0.15s ease;
}
.radioitem input:checked + label {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}

.submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px dashed var(--border-soft);
}
.submit-note {
  font-size: 12.5px;
  color: var(--text-mute);
}

/* form success state */
.form-success {
  padding: 50px 30px;
  text-align: center;
  display: none;
}
.form-success.active { display: block; }
.form-success .mono { color: var(--accent); }
.form-success h3 {
  font-size: 26px;
  margin: 14px 0 10px;
}
.form-success p { color: var(--text-dim); }

/* =========== FOOTER =========== */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 50px 0 30px;
  background: var(--bg-2);
}
.foot-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
@media (min-width: 720px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand img { width: 48px; opacity: 0.9; }
.foot-brand p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 36ch;
}
.foot-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot-col a, .foot-col p {
  display: block;
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0 0 8px;
}
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* utility focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
