/* ==========================================================
   Gunn Access & Drone custom styles (over Bootstrap 5)
   ========================================================== */

:root {
  --ink: #0b0d10;          /* near-black backgrounds */
  --panel: #12171d;        /* raised dark panels */
  --panel-2: #171d24;      /* card surfaces */
  --line: #232b34;         /* hairline borders on dark */
  --blue: #0961bd;         /* brand blue */
  --blue-bright: #2586e6;  /* hover / accents on dark */
  --text: #e8eaed;         /* body text on dark */
  --muted: #9aa4af;        /* secondary text on dark */
  --light-bg: #f4f6f8;     /* light section background */
  --light-ink: #14181d;    /* headings on light */
  --light-muted: #55606b;  /* body on light */
}

html { scroll-behavior: smooth; }
body {
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3, h4, .display-font {
  font-family: "Oswald", "Barlow Condensed", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 600;
}

section { scroll-margin-top: 72px; }

.eyebrow {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .78rem;
  color: var(--blue-bright);
  margin-bottom: .75rem;
}
.on-light .eyebrow { color: var(--blue); }

.section-pad { padding: 5.5rem 0; }
@media (max-width: 767px) { .section-pad { padding: 3.75rem 0; } }

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(11, 13, 16, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s ease, box-shadow .3s ease;
  padding-top: .8rem;
  padding-bottom: .8rem;
}
.navbar.scrolled {
  background: rgba(11, 13, 16, .94);
  box-shadow: 0 1px 0 var(--line);
}
.brand-lockup { line-height: 1; }
.brand-lockup .brand-top {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: .06em;
  color: #fff;
  display: block;
}
.brand-lockup .brand-sub {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: .62rem;
  letter-spacing: .38em;
  color: var(--blue-bright);
  display: block;
  margin-top: .28rem;
}
.navbar .nav-link {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .12em;
  color: var(--text);
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--blue-bright); }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler:focus { box-shadow: 0 0 0 .15rem rgba(37, 134, 230, .4); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(232,234,237,.9)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  padding: .8rem 1.6rem;
  border-radius: .25rem;
}
.btn-brand:hover, .btn-brand:focus { background: var(--blue-bright); border-color: var(--blue-bright); color: #fff; }
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(232, 234, 237, .45);
  color: #fff;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  padding: .8rem 1.6rem;
  border-radius: .25rem;
}
.btn-ghost:hover, .btn-ghost:focus { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-call { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center; /* keep the technician in frame */
}
@media (max-width: 767px) {
  .hero-bg img { object-position: 90% center; } /* narrower crop: shift right side into view so Scott stays in frame */
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11,13,16,.88) 0%, rgba(11,13,16,.62) 45%, rgba(11,13,16,.25) 100%),
    linear-gradient(180deg, rgba(11,13,16,.35) 0%, rgba(11,13,16,0) 30%, rgba(11,13,16,.55) 100%);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
}
.hero h1 .accent { color: var(--blue-bright); }
.hero .strap {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .85rem;
  color: var(--text);
  border-left: 3px solid var(--blue);
  padding-left: .9rem;
  margin: 1.4rem 0 1.8rem;
}
.hero .lede { max-width: 34rem; color: #cdd3d9; font-size: 1.1rem; }

/* ---------- Credibility strip ---------- */
.cred-strip {
  background: var(--blue);
  color: #fff;
  padding: 1.1rem 0;
}
.cred-strip .item {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .84rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  justify-content: center;
}
.cred-strip svg { flex: 0 0 auto; opacity: .9; }

/* ---------- Light sections ---------- */
.on-light { background: var(--light-bg); color: var(--light-muted); }
.on-light h2, .on-light h3 { color: var(--light-ink); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1rem; }

/* ---------- Services ---------- */
.service-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: .4rem;
  padding: 1.9rem 1.7rem;
  height: 100%;
  transition: transform .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.service-card .icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(9, 97, 189, .16);
  border: 1px solid rgba(37, 134, 230, .35);
  border-radius: .35rem;
  margin-bottom: 1.2rem;
  color: var(--blue-bright);
}
.service-card h3 { font-size: 1.12rem; color: #fff; margin-bottom: .7rem; }
.service-card ul { padding-left: 0; list-style: none; margin: 0; }
.service-card li {
  color: var(--muted);
  font-size: .95rem;
  padding-left: 1.15rem;
  position: relative;
  margin-bottom: .45rem;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: .45rem; height: .45rem;
  background: var(--blue);
  clip-path: polygon(25% 0, 100% 50%, 25% 100%, 0 75%, 50% 50%, 0 25%);
}

/* ---------- Approach ---------- */
.approach {
  position: relative;
  background: var(--panel);
  overflow: hidden;
}
.approach .watermark {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 560px);
  opacity: .05;
  pointer-events: none;
}
.step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.9rem;
}
.step .num {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--blue-bright);
  border: 1px solid var(--line);
  background: var(--ink);
  border-radius: .35rem;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.step h3 { font-size: 1.05rem; color: #fff; margin-bottom: .3rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Gallery ---------- */
.gal-item {
  position: relative;
  display: block;
  border-radius: .35rem;
  overflow: hidden;
  border: 0;
  padding: 0;
  width: 100%;
  cursor: zoom-in;
  background: #dfe3e7;
}
.gal-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gal-item:hover img { transform: scale(1.04); }
.gal-item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem .9rem .7rem;
  background: linear-gradient(180deg, rgba(11,13,16,0), rgba(11,13,16,.78));
  color: #fff;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .74rem;
  text-align: left;
}
@media (max-width: 575px) { .gal-item img { height: 210px; } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 84vh;
  border-radius: .3rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox .lb-cap {
  position: absolute;
  bottom: 1.4rem;
  left: 0; right: 0;
  text-align: center;
  color: var(--muted);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
}
.lightbox .lb-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- About ---------- */
.about-img {
  border-radius: .4rem;
  overflow: hidden;
  border: 1px solid var(--line);
}
.about-img img { width: 100%; display: block; }
.badge-row img { height: 120px; width: auto; }
.qual {
  border-left: 3px solid var(--blue);
  padding-left: 1rem;
  margin-bottom: 1rem;
}
.qual strong { color: #fff; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; display: block; }
.qual span { color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { background: var(--panel); }
.contact .form-control, .contact .form-select {
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--text);
  padding: .8rem 1rem;
}
.contact .form-control:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 .15rem rgba(37, 134, 230, .25);
  background: var(--ink);
  color: var(--text);
}
.contact .form-control::placeholder { color: #5c6570; }
.contact label { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--muted); margin-bottom: .4rem; }
.contact-line {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.contact-line:hover { color: var(--blue-bright); }
.contact-line svg { color: var(--blue-bright); flex: 0 0 auto; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
footer {
  background: #07090b;
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  color: var(--muted);
  font-size: .92rem;
}
footer .brand-lockup .brand-top { font-size: 1.2rem; }
footer .badge-foot { width: 92px; height: auto; border-radius: 50%; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--blue-bright); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
