/* ============================================================
   NJ Drone Studio — site.css v2 (Oct 25 2026)
   Muted navy→green system, Manrope/Inter type, uniform media
   tiles with lightbox, video hero support. Golden-ratio scale,
   Fibonacci spacing. Gold #F9C74F reserved for rare accents.
   ============================================================ */

:root {
  --navy: #0A1A2F; --night: #061120; --paper: #F7F5F0; --white: #FFFFFF;
  --band-1: #0A1A2F; --band-2: #14605A; --band-3: #1D8A66; --band-4: #27AE6B; --band-5: #3ED598;
  --grad-brand: linear-gradient(90deg,#0A1A2F 0%,#14605A 30%,#1D8A66 55%,#27AE6B 78%,#3ED598 100%);
  --grad-accent: linear-gradient(90deg,#1D8A66,#3ED598);
  --green: #30C47F; --green-deep: #15855A; --mint-bright: #30C47F;
  --teal: #0F766E; --teal-ink: #0B5752; --gold: #F9C74F;
  --ink: #0A1A2F; --slate: #44546A; --mint: #C2D8CD; --mist: #93A8B8;
  --cloud: #E6EBF1; --navy-line: #1C2E45; --card-dark: #10233C;
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --fs-sm: .8235rem; --fs-base: 1rem; --fs-lg: 1.272rem; --fs-h3: 1.618rem;
  --fs-h2: 2.058rem; --fs-h1: 2.618rem; --fs-hero: 3.8rem;
  --sp-1: 8px; --sp-2: 13px; --sp-3: 21px; --sp-4: 34px; --sp-5: 55px; --sp-6: 89px; --sp-7: 144px;
  --max-w: 1216px; --radius: 12px; --radius-lg: 18px;
  --gutter: clamp(20px, 4vw, 48px);
  --shadow-soft: 0 10px 30px rgba(10,26,47,.08);
}

/* ---------- reset + base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.65;
       color: var(--slate); background: var(--paper);
       -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, video, iframe { max-width: 100%; height: auto; }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.14;
              margin: 0 0 var(--sp-3); font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-lg); font-weight: 600; }
p, ul, ol { margin: 0 0 var(--sp-3); }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-ink); }
strong { color: var(--ink); }
::selection { background: var(--mint-bright); color: var(--navy); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sp-6) 0; }
.section--tight { padding: var(--sp-5) 0; }

.eyebrow { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
           letter-spacing: .22em; text-transform: uppercase; color: var(--teal);
           margin: 0 0 var(--sp-2); }
.eyebrow--gold { color: var(--gold); }
.eyebrow--mint { color: var(--mint-bright); }

.rule { height: 3px; border: 0; margin: 0; background: var(--grad-brand); border-radius: 2px; }
.rule--short { width: 89px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; font-family: var(--font-display); font-weight: 700;
       font-size: var(--fs-base); line-height: 1; padding: 16px 30px; border-radius: 10px;
       text-decoration: none; border: 0; cursor: pointer;
       transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-deep); color: var(--white); }
.btn--primary:hover { background: var(--green); color: var(--white); box-shadow: 0 8px 26px rgba(48,196,127,.35); }
.btn--light { background: var(--teal); color: var(--white); }
.btn--light:hover { background: var(--teal-ink); color: var(--white); }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--white); border: 1px solid var(--navy-line); backdrop-filter: blur(4px); }
.btn--ghost:hover { border-color: var(--green); color: var(--mint-bright); }
.btn--lg { padding: 19px 36px; font-size: var(--fs-lg); }

/* ---------- header ---------- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50;
               border-bottom: 1px solid var(--navy-line); }
.site-header__inner { display: flex; align-items: center; gap: var(--sp-4); min-height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark { height: 44px; width: auto; transform: translateY(3px); }
.brand__word { font-family: var(--font-display); font-size: 1.28rem; letter-spacing: .01em;
               display: flex; gap: 8px; align-items: baseline; }
.brand__nj { color: var(--green); font-weight: 800; }
.brand__drone { color: var(--white); font-weight: 700; }
.brand__studio { color: var(--green); font-weight: 700; letter-spacing: .06em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--sp-3); }
.nav a { color: #DCE4EE; text-decoration: none; font-weight: 500; font-size: .95rem;
         padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--mint-bright); border-bottom-color: var(--mint-bright); }
.nav .btn { margin-left: var(--sp-2); padding: 13px 22px; font-size: .95rem; }
.nav .btn--primary { background: var(--green); color: var(--white); }
.nav a.btn--primary:hover { background: #2BB171; color: var(--navy); border-bottom-color: transparent; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--grad-brand); }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 61.8fr 38.2fr;
               gap: var(--sp-5); align-items: center; padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
.hero h1 { color: var(--white); font-size: var(--fs-hero); line-height: 1.05; margin-bottom: var(--sp-3);
           letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--mint-bright); }
.hero p.lead { font-size: var(--fs-lg); color: var(--mint); max-width: 34em; }
.hero--page .hero__inner { padding-top: var(--sp-5); padding-bottom: var(--sp-5); grid-template-columns: 1fr; }
.hero--page h1 { font-size: var(--fs-h1); }
.hero .glow { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(60% 80% at 82% 112%, rgba(48,196,127,.13), transparent 60%),
    radial-gradient(45% 60% at 8% 122%, rgba(20,96,90,.24), transparent 60%); }

/* video hero: muted looping reel behind content */
.hero--video { min-height: min(72vh, 760px); display: flex; align-items: center; }
.hero--video .hero__inner { width: 100%; }
.hero__video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__video iframe { position: absolute; top: 50%; left: 50%; width: 177.78vh; min-width: 100%;
  height: 56.25vw; min-height: 100%; transform: translate(-50%,-50%); border: 0; opacity: .6; }
.hero__video::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,26,47,.74) 25%, rgba(10,26,47,.38) 60%, rgba(10,26,47,.18) 100%); }

/* ---------- cards ---------- */
.grid { display: grid; gap: var(--sp-4); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--cloud); border-radius: var(--radius-lg);
        padding: var(--sp-4); position: relative; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.card--link { display: block; text-decoration: none; color: inherit; }
.card--link h3 { color: var(--ink); }
.card--top-rule::before { content: ""; position: absolute; top: 0; left: var(--sp-4); right: var(--sp-4);
        height: 3px; border-radius: 0 0 3px 3px; background: var(--grad-accent); }
.card .more { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
        color: var(--teal); letter-spacing: .02em; }
.card:hover .more { color: var(--teal-ink); }
.card--dark { background: var(--card-dark); border-color: var(--navy-line); color: var(--mint); }
.card--dark h3 { color: var(--white); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h1);
             color: var(--green); line-height: 1; letter-spacing: -0.01em; }
.stat__label { color: var(--mint); font-size: var(--fs-sm); letter-spacing: .05em;
               text-transform: uppercase; margin-top: var(--sp-1); font-weight: 500; }

/* ---------- media: uniform clickable tiles + lightbox ---------- */
.frame { border-radius: var(--radius-lg); overflow: hidden; display: block; background: var(--night); }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame--video { aspect-ratio: 16/9; position: relative; box-shadow: var(--shadow-soft); }
.frame--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.caption { font-size: var(--fs-sm); color: var(--slate); margin-top: var(--sp-2); }

figure.tile { margin: 0; }
.tile a.lb { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--night);
  aspect-ratio: 3/2; box-shadow: var(--shadow-soft); }
.tile a.lb img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease, filter .35s ease; }
.tile a.lb:hover img { transform: scale(1.035); filter: brightness(1.05); }

/* lightbox overlay */
.lbx { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(7,15,35,.94); padding: 4vh 4vw; }
.lbx.open { display: flex; }
.lbx img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lbx figcaption { position: absolute; bottom: 3vh; left: 0; right: 0; text-align: center;
  color: var(--mint); font-size: var(--fs-sm); font-family: var(--font-body); padding: 0 6vw; }
.lbx button { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; width: 46px; height: 46px; font-size: 20px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: background .15s ease; }
.lbx button:hover { background: rgba(255,255,255,.18); }
.lbx .lbx-close { top: 3vh; right: 3vw; }
.lbx .lbx-prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lbx .lbx-next { right: 2vw; top: 50%; transform: translateY(-50%); }

.media-split { display: grid; grid-template-columns: 61.8fr 38.2fr; gap: var(--sp-4); }
.media-split--flip { grid-template-columns: 38.2fr 61.8fr; }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--sp-3); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
label { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
        color: var(--ink); letter-spacing: .01em; display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--slate); background: var(--white);
  border: 1.5px solid var(--cloud); border-radius: 10px; padding: 13px 14px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.form .hint { font-size: var(--fs-sm); color: var(--slate); margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.drop { border: 2px dashed var(--band-3); border-radius: var(--radius-lg); background: #EFF7F2;
        padding: var(--sp-4); text-align: center; color: var(--slate); }
.drop strong { color: var(--teal); }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: var(--fs-sm); color: var(--slate); padding: var(--sp-2) 0; }
.crumbs a { color: var(--teal); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--cloud); padding: var(--sp-3) 0; }
.faq-item summary { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg);
        color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--sp-3); }
.faq-item summary::after { content: "+"; color: var(--teal); font-weight: 600; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: var(--sp-2); max-width: 62em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-brand); }
.cta-band__inner { display: grid; grid-template-columns: 61.8fr 38.2fr; align-items: center;
        gap: var(--sp-4); padding-top: var(--sp-5); padding-bottom: var(--sp-5); }
.cta-band h2 { color: var(--white); margin-bottom: var(--sp-1); }
.cta-band p { color: var(--mint); margin: 0; }
.cta-band .actions { display: flex; gap: var(--sp-2); justify-content: flex-end; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--mist); font-size: var(--fs-sm);
  border-top: 3px solid transparent; border-image: var(--grad-brand) 1; }
.site-footer__brand { padding: var(--sp-6) 0 var(--sp-4); max-width: 620px; border-bottom: 1px solid #101B38; }
.site-footer__tag { color: var(--mist); margin: var(--sp-3) 0 var(--sp-3); line-height: 1.8; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--mint-bright); border: 1px solid var(--navy-line);
  background: rgba(62,213,152,.06); border-radius: 999px; padding: 7px 14px; }
.site-footer a { color: var(--mint); text-decoration: none; }
.site-footer a:hover { color: var(--mint-bright); }
.site-footer a.btn--primary { color: var(--white); }
.site-footer a.btn--primary:hover { background: #2BB171; color: var(--navy); }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5);
        padding: var(--sp-5) 0 var(--sp-5); }
.site-footer h4 { color: var(--white); font-size: var(--fs-base); margin-bottom: var(--sp-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer__legal { border-top: 1px solid #101B38; padding: var(--sp-3) 0; display: flex;
        justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }

/* ---------- tables / prose ---------- */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--cloud); }
th { font-family: var(--font-display); color: var(--ink); font-size: var(--fs-sm); }
.prose { max-width: 42em; }
/* photo strips placed directly in a section get the same width and side gutter as .container */
/* let grid columns shrink below their content's min width (forms, long words) */
.media-split > *, .media-split--flip > * { min-width: 0; }
section > .grid { max-width: var(--max-w); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.prose h2 { margin-top: var(--sp-5); }
.prose h3 { margin-top: var(--sp-4); }
.prose img { border-radius: var(--radius); }
.prose blockquote { border-left: 3px solid var(--green); margin: var(--sp-3) 0; padding: 2px 0 2px var(--sp-3); color: var(--ink); }

/* ---------- utility ---------- */
.dark-section { background: var(--navy); color: var(--mint); }
.dark-section h2, .dark-section h3 { color: var(--white); }
.center { text-align: center; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy);
  padding: 10px 16px; z-index: 300; font-weight: 700; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero h1 { font-size: 3rem; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); gap: var(--sp-4); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  html { font-size: 16px; }
  .hero__inner { grid-template-columns: 1fr; padding-top: var(--sp-5); padding-bottom: var(--sp-5); }
  .hero h1 { font-size: 2.5rem; }
  .hero--video { min-height: min(62vh, 560px); }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .media-split, .media-split--flip { grid-template-columns: 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
  .form .row2 { grid-template-columns: 1fr; }
  .nav { position: fixed; inset: 74px 0 auto 0; background: var(--night); flex-direction: column;
         align-items: stretch; padding: var(--sp-3) var(--gutter) var(--sp-4); gap: var(--sp-2);
         transform: translateY(-130%); transition: transform .2s ease; border-bottom: 1px solid var(--navy-line); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 10px 0; border-bottom: 0; font-size: var(--fs-lg); }
  .nav .btn { margin: var(--sp-2) 0 0; text-align: center; }
  .nav-toggle { display: block; margin-left: auto; background: none; border: 1.5px solid var(--navy-line);
         border-radius: 10px; color: var(--white); font: 700 .9rem var(--font-display); padding: 9px 14px; cursor: pointer; }
}
@media (max-width: 480px) {
  .grid--4, .stats { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.05rem; }
  .brand__studio { display: none; }
}

/* ---- live map viewer (mapping page) ---- */
.lm-wrap { position: relative; width: 100%; height: 560px; background: var(--night); border-radius: var(--radius-lg);
           overflow: hidden; box-shadow: var(--shadow-soft); margin-top: var(--sp-3); }
.lm-wrap:fullscreen { border-radius: 0; }
#lm-map { width: 100%; height: 100%; }
#lm-map.leaflet-container { background: var(--night); font-family: var(--font-body, inherit); }
#lm-map .leaflet-control-zoom a { background: var(--navy); color: var(--white); border-color: var(--navy-line); }
.lm-gate { position: absolute; inset: 0; z-index: 650; display: flex; align-items: center; justify-content: center;
           cursor: pointer; background: rgba(6,17,32,.28); border: 0; width: 100%; padding: 0; }
.lm-gate span { background: var(--green); color: var(--navy); padding: 13px 24px; border-radius: 999px;
                font: 700 .95rem var(--font-display); box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.lm-btn { position: absolute; z-index: 710; background: var(--navy); color: var(--white); border: 1px solid var(--navy-line);
          border-radius: 8px; padding: 8px 12px; cursor: pointer; font: 600 .82rem var(--font-display); }
.lm-btn.is-on { background: var(--green); color: var(--navy); border-color: var(--green); }
.lm-btn[hidden], .lm-gate[hidden], .lm-3d-stage[hidden] { display: none; }
#lm-fs { right: 10px; top: 10px; } #lm-measure { right: 10px; top: 52px; } #lm-clear { right: 10px; top: 94px; }
#lm-reset { left: 12px; top: 92px; width: 34px; height: 34px; padding: 0; font-size: 16px; }
#lm-elev { left: 12px; top: 136px; } #lm-3d { left: 12px; top: 180px; }
.lm-label { position: absolute; right: 6px; bottom: 6px; z-index: 640; background: rgba(10,26,47,.88); color: var(--white);
            padding: 5px 10px; border-radius: 6px; font-size: .78rem; }
.lm-north { position: absolute; left: 6px; bottom: 34px; z-index: 640; width: 34px; height: 34px; border-radius: 50%;
            background: rgba(10,26,47,.88); color: var(--white); display: flex; flex-direction: column; align-items: center;
            justify-content: center; font: 700 12px/1.1 var(--font-display); }
.lm-north small { font-size: 8px; line-height: 1; }
.lm-3d-stage { position: absolute; inset: 0; z-index: 700; background: var(--night); }
.lm-3d-msg { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: var(--white);
             text-align: center; font-size: .9rem; margin: 0; }
.leaflet-tooltip.lm-tip { background: var(--navy); color: var(--white); border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.4); font-size: 12px; }
.leaflet-tooltip.lm-tip::before { display: none; }
@media (max-width: 767px) { .lm-wrap { height: 400px; } #lm-3d { display: none; } }

/* ---- service-hub card thumbnails ---- */
.card__img { display: block; width: calc(100% + 2 * var(--sp-4)); max-width: none; margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4)) var(--sp-3);
             aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.card--top-rule:has(.card__img)::before { display: none; }

/* ---- single-figure feature (detail crop) ---- */
.figure-wide { margin: var(--sp-4) 0 0; }
.figure-wide img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.lm-wrap.is-3d .leaflet-control-container, .lm-wrap.is-3d #lm-measure, .lm-wrap.is-3d #lm-clear, .lm-wrap.is-3d #lm-elev, .lm-wrap.is-3d #lm-reset, .lm-wrap.is-3d .lm-north { display: none; }
