/* =========================================================
   Stingray Scout — Drone Services
   Shared stylesheet (index.html + contact.html)
   ---------------------------------------------------------
   Brand palette pulled from the approved mockup.
   Swap the image slots in /images later (see images/README.md).
   ========================================================= */

:root {
  --navy:      #0a2540;   /* dark headings + dark bands */
  --navy-deep: #08203a;
  --blue:      #1ba0e8;   /* bright accent blue */
  --blue-dark: #1489c9;
  --ink:       #16283a;   /* body text on light */
  --slate:     #5b6b7a;   /* muted body text */
  --line:      #e3e8ee;   /* hairlines / borders */
  --bg:        #ffffff;
  --bg-soft:   #f4f6f8;   /* light gray section */
  --white:     #ffffff;
  --radius:    10px;
  --shadow:    0 8px 28px rgba(10, 37, 64, .08);
  --shadow-lg: 0 18px 50px rgba(10, 37, 64, .14);
  --wrap:      1180px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, .display {
  font-family: "Archivo", "Inter", system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.accent { color: var(--blue); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 10px 24px rgba(27,160,232,.35); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand svg, .brand-logo { width: 52px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: .01em; }
.brand-name span { color: var(--blue); }
.brand-sub { font-size: .62rem; letter-spacing: .34em; color: var(--slate); font-weight: 600; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav a.navlink { font-weight: 500; color: var(--ink); font-size: .96rem; }
.nav a.navlink:hover { color: var(--blue); }
.tagline-top { margin-left: auto; font-size: .68rem; letter-spacing: .22em; color: var(--slate); font-weight: 600; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: 560px; display: flex; align-items: center;
}
.hero .media {
  position: absolute; inset: 0; z-index: 0;
  /* Swap in images/hero.jpg — gradient is the placeholder fallback */
  background:
    linear-gradient(105deg, rgba(6,20,38,.92) 0%, rgba(8,32,58,.72) 42%, rgba(8,32,58,.15) 100%),
    linear-gradient(120deg, #123a5c 0%, #1f6f9e 55%, #7fb7cf 100%);
  background-size: cover; background-position: center;
}
.hero .media[data-img] { background-blend-mode: normal; }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 70px; padding-bottom: 70px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; max-width: 12ch; }
.hero p.sub { font-size: 1.15rem; max-width: 34ch; margin: 1.3rem 0 2rem; color: #e7eef5; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.watch { display: inline-flex; align-items: center; gap: .7rem; }
.watch .play { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.watch .play svg { width: 12px; height: 12px; fill: var(--navy); margin-left: 2px; }

.hero-verbs {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  z-index: 1; padding-left: 16px; border-left: 3px solid var(--blue);
  display: flex; flex-direction: column; gap: .35rem;
}
.hero-verbs span { font-family: "Archivo", sans-serif; font-weight: 700; letter-spacing: .08em; font-size: 1.05rem; color: #fff; }

/* ---------- Services strip ---------- */
.services { background: #fff; border-bottom: 1px solid var(--line); }
.services .grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 0; padding: 44px 0;
}
.service {
  text-align: center; padding: 8px 18px; position: relative;
}
.service + .service::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line);
}
.service .ico { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--blue); }
.service .ico svg { width: 100%; height: 100%; }
.service h3 { font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; margin-bottom: 8px; }
.service p { font-size: .86rem; color: var(--slate); }

/* ---------- Section heading ---------- */
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow {
  text-align: center; text-transform: uppercase; letter-spacing: .28em;
  font-size: .74rem; font-weight: 700; color: var(--blue);
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 46px; height: 2px; background: var(--blue); opacity: .5; }
.section h2 { text-align: center; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin: 16px 0 12px; }
.section .lead { text-align: center; max-width: 62ch; margin: 0 auto; color: var(--slate); font-size: 1.05rem; }

/* ---------- Industries grid ---------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 48px; }
.ind-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.ind-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ind-card .thumb { aspect-ratio: 16 / 11; }
.ind-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.ind-card h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 8px; }
.ind-card p { font-size: .9rem; color: var(--slate); flex: 1; }
.ind-card .go { margin-top: 14px; color: var(--blue); display: inline-flex; }

/* ---------- Image placeholder ---------- */
.ph {
  position: relative;
  background: linear-gradient(135deg, #163a58 0%, #2b7fae 60%, #63a9c6 100%);
  background-size: cover; background-position: center;
  display: grid; place-items: center;
}
.ph[data-img] { /* when a real image is set inline via style, it covers this */ }
.ph .ph-label {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.9); font-weight: 700;
  background: rgba(8,32,58,.35); padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(2px); border: 1px solid rgba(255,255,255,.25);
}

/* ---------- Community band ---------- */
.community { position: relative; color: #fff; overflow: hidden; }
.community .media {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(100deg, rgba(6,18,34,.94) 0%, rgba(7,22,40,.78) 48%, rgba(7,22,40,.35) 100%),
    linear-gradient(120deg, #0c2136 0%, #1c4c6b 60%, #caa46a 120%);
  background-size: cover; background-position: center;
}
.community .wrap { position: relative; z-index: 1; padding: 84px 24px; }
.community .eyebrow { justify-content: flex-start; color: #cfe6f5; }
.community .eyebrow::after { display: none; }
.community .eyebrow::before { background: #cfe6f5; }
.community h2 { color: #fff; text-align: left; font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; max-width: 16ch; margin: 14px 0 18px; }
.community p { max-width: 46ch; color: #d9e4ee; margin-bottom: 26px; }
.badges { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 42px; }
.badge { display: flex; align-items: center; gap: 12px; }
.badge .b-ico { width: 34px; height: 34px; color: var(--blue); flex: none; }
.badge .b-ico svg { width: 100%; height: 100%; }
.badge .b-text { font-size: .82rem; line-height: 1.25; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge .b-text small { display: block; font-weight: 500; color: #b9c8d6; letter-spacing: .02em; }

/* ---------- Footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 40px 0 26px; }
.footer .row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer .fnav { display: flex; gap: 22px; margin: 0 auto; flex-wrap: wrap; }
.footer .fnav a { font-size: .92rem; color: var(--slate); }
.footer .fnav a:hover { color: var(--blue); }
.footer .social { display: flex; gap: 12px; }
.footer .social a { width: 34px; height: 34px; border-radius: 8px; background: var(--navy); display: grid; place-items: center; color: #fff; }
.footer .social a:hover { background: var(--blue); }
.footer .social svg { width: 17px; height: 17px; }
.copyright { text-align: right; color: var(--slate); font-size: .82rem; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Page banner (contact) ---------- */
.pagehead { position: relative; color: #fff; overflow: hidden; }
.pagehead .media { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, rgba(6,20,38,.93), rgba(8,32,58,.66)),
              linear-gradient(120deg, #123a5c, #2b7fae);
  background-size: cover; background-position: center; }
.pagehead .wrap { position: relative; z-index: 1; padding: 70px 24px; }
.pagehead .eyebrow { justify-content: flex-start; color: #cfe6f5; }
.pagehead .eyebrow::after { display: none; }
.pagehead .eyebrow::before { background: #cfe6f5; }
.pagehead h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin: 14px 0 10px; }
.pagehead p { max-width: 52ch; color: #dce6ef; }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 46px; align-items: start; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 34px;
}
.card h2 { text-align: left; font-size: 1.5rem; margin: 0 0 4px; }
.card .muted { color: var(--slate); margin-bottom: 24px; font-size: .96rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field label .req { color: var(--blue); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; color: var(--ink);
  padding: .78rem .9rem; border: 1px solid var(--line); border-radius: 9px;
  background: #fbfcfd; transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,160,232,.15); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .8rem; color: var(--slate); margin-top: 4px; }
.form-msg { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 9px;
  background: #eaf6fd; border: 1px solid #bfe4f7; color: var(--navy); font-size: .9rem; }

/* Info sidebar */
.info-card { background: var(--navy); color: #fff; border: 0; }
.info-card h2 { color: #fff; }
.info-list { list-style: none; margin: 22px 0 0; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.info-list li:first-child { border-top: 0; padding-top: 0; }
.info-list .i-ico { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }
.info-list .i-ico svg { width: 100%; height: 100%; }
.info-list .i-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #9fb4c6; font-weight: 700; margin-bottom: 3px; }
.info-list .i-val { display: block; font-size: 1rem; color: #fff; }
.info-list .i-val a:hover { color: var(--blue); }
.info-card .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.chip { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(27,160,232,.16); color: #bfe4f7; border: 1px solid rgba(27,160,232,.35);
  padding: 7px 12px; border-radius: 999px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services .grid { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .service:nth-child(3n+1)::before,
  .service + .service::before { display: none; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-verbs { display: none; }
}
@media (max-width: 720px) {
  .tagline-top { display: none; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); margin-left: 0; display: none;
  }
  .nav.open { display: flex; }
  .nav a.navlink { padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav .btn { margin: 12px 24px; justify-content: center; }
  .nav-toggle { display: block; }
  .services .grid { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .badges { gap: 22px; }
  .footer .fnav { order: 3; width: 100%; justify-content: center; }
  .copyright { text-align: center; }
}
