/* =========================================================
   MJ Drone Services — styles
   Brand A "Field & Furrow": field green, sage, harvest gold,
   paper, Fraunces + Inter. Tokens live in :root — edit here.
   ========================================================= */

:root {
  /* Palette */
  --paper:      #F6F3EC;  /* page background */
  --paper-2:    #FBF9F4;  /* raised surfaces / cards */
  --field:      #245A3A;  /* primary green */
  --field-deep: #1A4029;  /* darker green — hover, footer */
  --sage:       #8FA98A;  /* secondary green */
  --sage-soft:  #E4EADF;  /* light green section band */
  --gold:       #D99A2B;  /* ACCENT ONLY — one moment per screen */
  --ink:        #23271F;  /* body text */
  --ink-soft:   #4E5347;  /* muted text (AA on paper) */
  --line:       rgba(35,39,31,.14);
  --line-2:     rgba(35,39,31,.08);
  --white:      #ffffff;

  /* Type */
  --font-head: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 68px;
  --radius: 14px;

  /* Safe-area insets (iOS notch) */
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--field); text-decoration-color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--field-deep); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); margin: 0; }

::selection { background: var(--sage); color: var(--field-deep); }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--field); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 200; transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--field);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: max(var(--gutter), var(--safe-l), var(--safe-r));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 13px 24px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--field); color: #fff; }
.btn-primary:hover { background: var(--field-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--field); border-color: var(--field); }
.btn-ghost:hover { background: var(--field); color: #fff; transform: translateY(-2px); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(246,243,236,.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nav.condensed {
  background: rgba(246,243,236,.92);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(26,64,41,.06);
}
.nav-inner {
  max-width: var(--wrap); margin-inline: auto;
  padding-inline: max(var(--gutter), var(--safe-l), var(--safe-r));
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  transition: height .25s ease;
}
.nav.condensed .nav-inner { height: 58px; }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--field); }
.brand-mark { display: inline-flex; color: var(--field); }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
@media (max-width: 400px) { .brand-text { font-size: 15px; letter-spacing: .02em; } }
.brand-sub { font-weight: 500; color: var(--ink-soft); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px;
  position: relative; padding: 4px 0;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--field); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after { transform: scaleX(1); }
.nav-links a.active:not(.btn) { color: var(--field); }
.nav-links a.btn-nav { background: var(--field); color: #fff; padding: 9px 20px; border-radius: 999px; }
.nav-links a.btn-nav:hover { background: var(--field-deep); color: #fff; }
.nav-links a.btn-nav::after { display: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 92svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(20,53,31,.90) 0%, rgba(20,53,31,.64) 40%, rgba(20,53,31,.30) 100%),
    linear-gradient(0deg, rgba(20,53,31,.55) 0%, rgba(20,53,31,0) 45%),
    url('../images/hero.jpg') center / cover no-repeat;
  background-color: #14351f;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin-inline: auto; width: 100%;
  padding-inline: max(var(--gutter), var(--safe-l), var(--safe-r));
  color: #fff;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: 12.5px; font-weight: 600;
  color: #EBEFE6; margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); display: inline-block; } /* one gold accent */
.hero h1 {
  color: #fff; font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 15ch; margin-bottom: 22px;
}
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.28rem); max-width: 54ch; color: #EDF1E9; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-ghost:hover { background: #fff; color: var(--field-deep); border-color:#fff; }
.hero-note { font-size: 14px; color: #D6DECF; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-band { background: var(--sage-soft); }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; font-weight: 600;
  color: var(--field); margin: 0 0 14px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 20ch; margin-bottom: 18px; }
.section-lead { font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--ink-soft); max-width: 60ch; margin: 0 0 40px; }
.section-lead strong { color: var(--ink); font-weight: 600; }
.cred-statement { max-width: 64ch; font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--ink); margin-bottom: 0; }
.edit-note { color: var(--gold); font-weight: 600; font-size: .9em; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(26,64,41,.09); border-color: var(--line); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--sage-soft); color: var(--field); margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin: 0 0 16px; font-size: 15.5px; }
.card-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card-tags li {
  font-size: 12.5px; font-weight: 600; color: var(--field-deep);
  background: var(--sage-soft); border-radius: 999px; padding: 4px 12px;
}

/* ---------- Service area ---------- */
.area-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.area-list li {
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 13px 16px; font-weight: 500; display: flex; align-items: center; gap: 10px;
}
.area-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--field); flex: none; }
.area-more { color: var(--ink-soft); max-width: 60ch; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-title { margin-bottom: 34px; }
.gallery-grid { display: flex; flex-direction: column; gap: 16px; }
.gtile {
  margin: 0; border-radius: var(--radius); overflow: hidden; background: #1a4029;
}
.gtile img { width: 100%; height: auto; max-height: 460px; object-fit: cover; display: block; }

/* ---------- Credentials ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.cred {
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 24px 22px; border-top: 3px solid var(--field);
}
.cred h3 { font-size: 1.12rem; margin-bottom: 4px; }
.cred p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.cred-num { margin-top: 12px !important; font-family: var(--font-body); font-weight: 600; color: var(--gold); font-size: 13.5px; letter-spacing: .02em; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.contact-copy { min-width: 0; }
.contact-copy .section-lead { margin-bottom: 0; }
.contact-actions { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contact-btn {
  display: flex; flex-direction: column; gap: 3px; text-decoration: none; min-width: 0;
  background: var(--field); color: #fff; border-radius: var(--radius); padding: 20px 26px;
  transition: transform .16s ease, background .16s ease;
}
.contact-btn:hover { background: var(--field-deep); color: #fff; transform: translateY(-3px); }
.contact-btn-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; color: #CBD8C3; font-weight: 600; }
.contact-btn-value { font-family: var(--font-head); font-size: clamp(1.05rem, 4.5vw, 1.35rem); font-weight: 600; overflow-wrap: anywhere; line-height: 1.2; }
.contact-social { display: flex; align-items: center; gap: 12px; padding: 6px 4px; color: var(--ink-soft); }
.contact-social a { font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--field-deep); color: #E7EDE2; padding: 54px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; }
.footer .brand-text { color: #fff; }
.footer .brand-sub { color: #BFCDB4; }
.footer-brand p { margin: 12px 0 0; color: #C7D2BC; max-width: 42ch; font-size: 15px; }
.footer-meta { text-align: right; min-width: 0; }
.footer-meta p { margin: 0 0 6px; font-size: 14.5px; color: #C7D2BC; overflow-wrap: anywhere; }
.footer-meta a { color: #fff; text-decoration-color: var(--sage); }
.footer-copy { color: #9DB093 !important; font-size: 13px !important; margin-top: 12px !important; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .contact-btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer-meta { text-align: left; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top,0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
    padding: 8px max(var(--gutter), var(--safe-l)) 18px;
    transform: translateY(-120%); transition: transform .28s ease;
    box-shadow: 0 18px 40px rgba(26,64,41,.12); max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 6px; border-bottom: 1px solid var(--line-2); font-size: 17px; }
  .nav-links a:not(.btn)::after { display: none; }
  .btn-nav { margin-top: 14px; text-align: center; padding: 14px; }
  .cards { grid-template-columns: 1fr; }
  .gtile img { max-height: 300px; }
  .hero { min-height: 88svh; }
}

@media (max-width: 460px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover, .btn:hover, .contact-btn:hover, .btn-primary:hover, .btn-ghost:hover { transform: none; }
}
