/* Dragonfly Drone Lab */

:root {
  --ink:     #14171a;
  --black:   #111111;
  --amber:   #d98e2b;
  --amber-dark: #b5741f;
  --sky:     #3a6ea5;
  --white:   #ffffff;
  --offwhite:#f7f6f4;
  --gray:    #666666;
  --border:  #e4e4e7;

  --max-w: 1100px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--amber-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ── Nav ── */
nav {
  border-bottom: 1px solid var(--border);
  padding-block: 1rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  font-size: 1rem;
}

.nav-brand img { width: 58px; height: 58px; object-fit: contain; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a { color: var(--black); }
.nav-links a:hover { color: var(--amber-dark); text-decoration: none; }
.nav-links a.active { color: var(--black); border-bottom: 2px solid #bbb; padding-bottom: 2px; }

.nav-contact {
  background: var(--amber);
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  border-bottom: none !important;
}
.nav-contact:hover { background: var(--amber-dark); }

/* ── Hero (homepage, full-bleed photo) ── */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink) url("../img/hero-mountains.jpg") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(10,12,14,0.75) 0%, rgba(10,12,14,0.4) 45%, rgba(10,12,14,0.05) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 3rem 3.5rem;
  color: var(--white);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 760px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.65);
}

.hero p {
  font-size: 1.1rem;
  max-width: 560px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 16px rgba(0,0,0,0.6);
}

.hero p.hero-credentials {
  font-size: 0.9rem;
  max-width: 480px;
  color: rgba(255,255,255,0.7);
  margin-top: -1rem;
}

.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
}
.btn:hover { background: var(--amber-dark); text-decoration: none; }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  margin-left: 0.75rem;
}
.btn-outline:hover { border-color: var(--white); text-decoration: none; background: rgba(255,255,255,0.08); }

/* ── Services ── */
.services {
  padding-block: 3rem 2.5rem;
}

.section-header {
  margin-bottom: 1.75rem;
  max-width: 640px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sky);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}

.card-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 3px;
}

.card-images--grid {
  grid-template-columns: repeat(3, 1fr);
}

.card-images--grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-images--grid .card-images--span,
.card-images--grid-2 .card-images--span {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.card-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.card-images img:hover {
  opacity: 0.85;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 14, 0.92);
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  z-index: 1000;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
}

.lightbox-close:hover {
  color: var(--amber);
}

.card-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.85rem;
}

@media (max-width: 768px) {
  .card {
    grid-template-columns: 1fr;
  }
}

.card h3 { font-size: 1.5rem; font-weight: 700; }

.card p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* ── Value strip ── */
.value-props {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding-block: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--offwhite);
}

.value-props span::before {
  content: "\2713 ";
}

/* ── CTA band ── */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding-block: 3rem;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-band p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}

/* ── Page Hero (interior pages) ── */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding-block: 3.5rem 2.5rem;
}

.page-hero--photo {
  position: relative;
  padding-block: 5.5rem 4rem;
  background: var(--ink) url("../img/niwot-sunrise-balloon.jpg") center/cover no-repeat;
}

.page-hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(10,12,14,0.85) 0%, rgba(10,12,14,0.5) 55%, rgba(10,12,14,0.15) 100%);
}

.page-hero--photo .container {
  position: relative;
  z-index: 1;
}

.page-hero--photo h1,
.page-hero--photo p {
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 720px;
}

/* ── About ── */
.about-body {
  padding-block: 2.5rem 1rem;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.about-inner--reverse {
  grid-template-columns: 380px 1fr;
}

.about-text h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.about-text p {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 1.1rem;
  max-width: 620px;
}

.about-photo img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.about-photo p {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  max-width: 420px;
  margin-top: 0.5rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.spec-list span {
  color: var(--gray);
}

.spec-list strong {
  color: var(--black);
  font-weight: 600;
  text-align: right;
}

@media (max-width: 768px) {
  .about-inner,
  .about-inner--reverse {
    grid-template-columns: 1fr;
  }
  .about-photo {
    order: -1;
  }
  .about-photo img {
    max-width: 380px;
  }
}

/* ── Certifications ── */
.certs {
  padding-block: 1.5rem 2rem;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--offwhite);
}

.cert-badge::before {
  content: "\2708";
  color: var(--amber-dark);
  font-size: 1.1rem;
}

/* ── Future / What's Next ── */
.future {
  background: var(--offwhite);
  padding-block: 3rem;
}

.future-inner {
  max-width: 760px;
}

.future h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.future p {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ── Contact ── */
.contact-hero {
  background: var(--ink);
  color: var(--white);
  padding-block: 4rem 3rem;
  text-align: center;
}

.contact-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact-hero p {
  font-size: 1.1rem;
  opacity: 0.75;
}

.contact-body {
  padding-block: 3rem 4rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.contact-sidebar {
  background: var(--ink);
  color: var(--white);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-sidebar h2 {
  font-size: 1.4rem;
  font-weight: 600;
}

.contact-sidebar > p {
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.contact-detail a {
  color: var(--white);
  font-size: 1.05rem;
}

.contact-detail a:hover { color: var(--amber); }

.contact-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 2.5rem;
}

.contact-image img {
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
  .contact-image {
    order: -1;
  }
}

/* ── Footer ── */
footer {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
}

footer a { color: var(--gray); }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { position: relative; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 0.25rem var(--pad) 1rem;
    z-index: 100;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding-block: 0.85rem;
  }

  .nav-links a.nav-contact {
    display: inline-block;
    margin: 0.75rem 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 0.75rem;
  }
}
