/* Flying Mule Drone Services — palette sampled from the logo */
:root {
  --green-900: #0B2F16;   /* deep forest green (logo ring/banner) */
  --green-800: #123D1F;
  --green-700: #1E4F2B;
  --sage:      #6F8556;   /* hills/trees */
  --tan:       #B97E46;   /* sun / mule */
  --tan-dark:  #9A6532;
  --brown:     #835125;   /* mule shading */
  --cream:     #FCF5E3;   /* logo lettering */
  --cream-2:   #F3EAD3;
  --ink:       #1B1F17;
  --muted:     #5A604F;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 47, 22, .14);
  --head: "Alfa Slab One", Georgia, serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: #fff; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--green-900); }
h3 { font-size: 1.3rem; color: var(--green-900); }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 2rem; }

.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: var(--tan); margin-bottom: .6rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .85em 1.5em; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .2s, color .2s; cursor: pointer; font-size: 1rem; }
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-tan { background: var(--tan); color: #fff; }
.btn-tan:hover { background: var(--tan-dark); }
.btn-green { background: var(--green-900); color: var(--cream); }
.btn-green:hover { background: var(--green-700); }
.btn-outline { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-outline:hover { background: var(--cream); color: var(--green-900); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--green-900); border-bottom: 3px solid var(--tan); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--cream); }
.brand img { width: 72px; height: auto; }
.brand-text { font-family: var(--head); font-size: 1.3rem; line-height: 1; text-transform: uppercase; }
.brand-text small { display: block; font-family: var(--body); font-weight: 700; font-size: .68rem; letter-spacing: .25em; color: var(--tan); margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 1.3rem; }
.site-nav a:not(.btn) { color: var(--cream); text-decoration: none; font-weight: 600; font-size: .97rem; opacity: .9; }
.site-nav a:not(.btn):hover { color: var(--tan); opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--cream); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--cream); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,47,22,.94) 0%, rgba(11,47,22,.8) 45%, rgba(11,47,22,.35) 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; padding: 5.5rem 0 5rem; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); color: var(--cream); }
.hero .lead { font-size: 1.2rem; max-width: 34ch; opacity: .95; margin-bottom: 1.8rem; }
.hero-logo { width: 100%; max-width: 520px; justify-self: center; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--tan); color: #fff; }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.2rem 0; text-align: center; }
.trust-inner strong { display: block; font-family: var(--head); font-weight: 400; font-size: 1.15rem; }
.trust-inner span { font-size: .92rem; opacity: .95; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2.8rem; }
.section-head p:last-child { color: var(--muted); }
.section-dark { background: var(--green-900); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark .section-head p:last-child { color: rgba(252,245,227,.8); }
.section-cream { background: var(--cream); }
.sub-head { text-align: center; margin: 3.5rem 0 1.5rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem; }
.service-card { grid-column: span 2; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border-top: 5px solid var(--tan); display: flex; flex-direction: column; }
.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.service-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service-body p { color: var(--muted); flex: 1; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--green-700); }
.link-arrow::after { content: " →"; color: var(--tan); }
.link-arrow:hover { color: var(--tan-dark); }

/* ---------- Tabs ---------- */
.tabs { display: flex; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.tab { font: inherit; font-weight: 700; padding: .7em 1.8em; border-radius: 999px; border: 2px solid var(--tan); background: transparent;
  color: var(--cream); cursor: pointer; }
.tab.is-active { background: var(--tan); color: #fff; }

/* ---------- Compare (thermal vs regular) ---------- */
.compare { display: grid; gap: 1.8rem; }
.compare-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; background: var(--green-800); padding: .8rem; border-radius: var(--radius);
  border: 1px solid rgba(185,126,70,.35); }
.compare-pair figure, .single-video figure, .single-video { margin: 0; position: relative; }
.compare-pair video, .single-video video { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #000; border-radius: 10px; }
.compare-pair video[data-follow] { cursor: pointer; }
.tag { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(11,47,22,.88); color: var(--cream); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; padding: .3em .75em; border-radius: 6px; pointer-events: none; }
.tag-thermal { background: var(--tan); color: #fff; }
.single-video { max-width: 900px; margin: 0 auto; width: 100%; }

.recovery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.recovery-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; cursor: zoom-in; border: 3px solid var(--green-700); }

/* ---------- Lyric video ---------- */
.feature-video { max-width: 1000px; margin: 0 auto 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(11,47,22,.3);
  border: 6px solid var(--green-900); }
.feature-video video { width: 100%; aspect-ratio: 16/9; background: #000; }
.feature-side { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.single-video.small video { border-radius: 10px; }
.single-video figcaption, .reel-grid figcaption { font-weight: 600; color: var(--muted); margin-top: .5rem; font-size: .95rem; }
.feature-copy p { color: var(--muted); }

/* ---------- Gallery ---------- */
.reel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2.5rem; }
.reel-grid figure { margin: 0; }
.reel-grid video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; border-radius: 10px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; cursor: zoom-in; transition: transform .25s; }
.photo-grid img:hover, .recovery-grid img:hover { transform: scale(1.02); }

/* ---------- Gear ---------- */
.gear-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.gear-media img { border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; border: 6px solid var(--cream-2); }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .8rem; color: var(--muted); }
.check-list li strong { color: var(--ink); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--tan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/75% no-repeat; }

/* ---------- Pilots ---------- */
.pilot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.pilot-card { background: var(--green-800); border-radius: var(--radius); overflow: hidden; text-align: center; padding-bottom: 1.4rem;
  border: 1px solid rgba(185,126,70,.35); }
.pilot-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 70% 30%; margin-bottom: 1.2rem; }
.pilot-card h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.badge { display: inline-block; margin: 0; background: var(--tan); color: #fff; font-weight: 700; font-size: .85rem; padding: .35em 1em; border-radius: 999px; letter-spacing: .04em; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: var(--cream); }
.contact h2 { color: var(--cream); }
.contact-inner { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: center; }
.contact-logo { width: 100%; filter: drop-shadow(0 10px 25px rgba(0,0,0,.4)); }
.contact p { font-size: 1.15rem; max-width: 52ch; }
.service-area { display: flex; align-items: center; gap: .5rem; font-size: 1.02rem; }
.service-area svg { width: 1.25rem; height: 1.25rem; flex: none; fill: var(--tan); }
.contact-email { margin-top: 1.2rem; font-size: 1rem !important; opacity: .85; }

/* ---------- Footer ---------- */
.site-footer { background: #071F0E; color: rgba(252,245,227,.75); padding: 1.6rem 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--tan); text-decoration: none; overflow-wrap: anywhere; }

/* ---------- YouTube embeds (used when a link is set in assets/js/videos.js) ---------- */
.yt { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 54px; padding: 0; background: none; border: 0; cursor: pointer;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); transition: transform .15s; }
.yt-play svg { width: 100%; height: 100%; }
.yt:hover .yt-play { transform: scale(1.1); }
.yt-cover { position: absolute; inset: 0; z-index: 1; }
.feature-video .yt { border-radius: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,20,9,.92); display: grid; place-items: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 95vw; border-radius: 8px; }
.lightbox-close { position: absolute; top: 12px; right: 18px; font-size: 2.6rem; color: var(--cream); background: none; border: 0; cursor: pointer; line-height: 1; }

/* ---------- Mobile CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reel-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card:nth-child(4) { grid-column: auto; }
  .service-card:last-child { grid-column: 1 / -1; }
  .gear-layout, .feature-side, .contact-inner { grid-template-columns: 1fr; }
  .contact-logo { max-width: 260px; margin: 0 auto; }
  .recovery-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--green-900);
    border-bottom: 3px solid var(--tan); padding: .5rem 16px 1rem; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid rgba(252,245,227,.12); }
  .site-nav .btn { margin-top: .8rem; }
  .hero-inner { grid-template-columns: 1fr; padding: 3rem 0 3.5rem; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .hero-logo { max-width: 300px; grid-row: 1; }
}
@media (max-width: 640px) {
  body { padding-bottom: 70px; }
  .section { padding: 3.5rem 0; }
  .services-grid, .photo-grid, .pilot-grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; }
  .compare-pair { grid-template-columns: 1fr; }
  .reel-grid { grid-template-columns: 1fr; }
  .brand-text { font-size: 1.05rem; }
  .brand img { width: 56px; }
  .btn-row .btn { flex: 1 1 100%; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    padding: .6rem 16px; background: var(--green-900); border-top: 3px solid var(--tan); }
}
