/* ============================================================
   Country AG Drones v2
   Theme: the original site's identity, carried over.
   cream #faf7f1 / surface #f0ebe2 / warm dark #1e1b18
   ink #1c1917 / terracotta #b85c38 (call CTAs only)
   Type: Young Serif (display) / Outfit (body + labels)
   ============================================================ */

:root {
  --bg: #faf7f1;
  --surface: #f0ebe2;
  --bg-dark: #1e1b18;
  --bg-darker: #171411;
  --ink: #1c1917;
  --ink-soft: #57504a;
  --muted: #7a726a;
  --border: #d6cdc2;
  --border-dark: #3d3632;
  --accent: #b85c38;
  --accent-dark: #974a2d;
  --accent-soft: #dfa383;

  --font-display: "Young Serif", Georgia, serif;
  --font-body: "Outfit", -apple-system, system-ui, sans-serif;

  --wrap-wide: 1760px;
  --wrap-text: 900px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 2px;
}

/* ---------- reset ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, figure { margin: 0; }

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

a { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid rgba(184, 92, 56, 0.55);
  outline-offset: 3px;
}

.section-paddock :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible {
  outline-color: var(--accent-soft);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- shared ---------- */

.wrap-wide {
  max-width: var(--wrap-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-text {
  max-width: var(--wrap-text);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

section[id] { scroll-margin-top: 4.5rem; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::after {
  content: "";
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-left: 0.9rem;
  opacity: 0.5;
}

.eyebrow-straw { color: var(--accent-soft); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 300;
  line-height: 1.55;
  max-width: 34em;
}

/* buttons: terracotta is reserved for call CTAs */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  padding: 0.85rem 1.7rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: background-color 160ms ease, transform 160ms ease;
}

.btn-call {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-call:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-call:active { transform: translateY(1px); }

.btn-lg {
  font-size: 1.05rem;
  padding: 1.05rem 2.2rem;
}

/* reveal on scroll */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--wrap-wide);
  margin-inline: auto;
  padding: 0.65rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand-badge { border-radius: 50%; }

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-text em {
  font-style: normal;
  color: var(--accent);
}

.nav-menu {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover { border-bottom-color: var(--accent); }

.nav-toggle { display: none; }

.header-call { white-space: nowrap; padding: 0.6rem 1.25rem; }
.header-call-short { display: none; }

@media (max-width: 899px) {
  .header-call-full { display: none; }
  .header-call-short { display: inline; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    flex-shrink: 0;
  }

  .nav-toggle-box {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
  }

  .nav-toggle-box span {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
  }

  .site-nav { order: 3; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }

  .nav-menu.open { display: flex; }

  .nav-menu a {
    display: block;
    padding: 0.9rem var(--gutter);
    border-bottom: none;
  }

  .header-inner { flex-wrap: nowrap; gap: 0.6rem; padding-inline: 1rem; }
  .brand { gap: 0.5rem; min-width: 0; }
  .brand-badge { width: 34px; height: 34px; }
  .brand-text { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; }
  .header-call { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
}

@media (max-width: 479px) {
  .brand-badge { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(94vh, 1100px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 72%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(23 20 17 / 0.6) 0%, rgba(23 20 17 / 0.2) 42%, rgba(23 20 17 / 0.08) 60%, rgba(23 20 17 / 0.58) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: var(--wrap-wide);
  width: 100%;
  margin-inline: auto;
  padding: clamp(3rem, 8vh, 7rem) var(--gutter) 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 6.2vw, 7.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
  text-shadow: 0 2px 30px rgba(23 20 17 / 0.4);
}

.hero-line { display: block; }

.hero-line-2 { color: var(--accent-soft); }

.hero-lead {
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  font-weight: 300;
  line-height: 1.5;
  max-width: 30em;
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
  text-shadow: 0 1px 14px rgba(23 20 17 / 0.55);
}

.hero-points {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 1rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: clamp(1.5rem, 5vw, 5rem);
  row-gap: 0.35rem;
  background: rgba(23 20 17 / 0.72);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(250 247 241 / 0.18);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

/* hero load-in */

@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .hero-line,
  .js .hero-lead,
  .js .hero-actions {
    opacity: 0;
    transform: translateY(26px);
    animation: hero-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }

  .js .hero-title .hero-line-2 { animation-delay: 120ms; }
  .js .hero-lead { animation-delay: 260ms; }
  .js .hero-actions { animation-delay: 380ms; }
}

@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}

/* Phones: stack the hero instead of cropping a landscape photo to a
   portrait sliver. Ink on cream, then the photo at a gentle 4:5 crop. */
@media (max-width: 699px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--bg);
    color: var(--ink);
  }

  .hero-scrim { display: none; }

  .hero-content {
    order: 1;
    flex: none;
    padding: 2.75rem var(--gutter) 2.5rem;
  }

  .hero-photo {
    order: 2;
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-position: 66% 62%;
  }

  .hero-points { order: 3; background: var(--bg-dark); border-top: none; }

  .hero-title { text-shadow: none; }
  .hero-line-2 { color: var(--accent); }
  .hero-lead { text-shadow: none; color: var(--ink-soft); }

  .hero-actions .btn {
    display: block;
    width: 100%;
  }
}

/* ---------- sections: shared rhythm ---------- */

.section { padding-block: clamp(4rem, 9vh, 7.5rem); }

.section-header { margin-bottom: clamp(2.5rem, 5vh, 4rem); }

/* ---------- services: the register ---------- */

.section-services {
  background: var(--bg);
}

.section-services .section-header,
.services-register {
  max-width: 1240px;
  margin-inline: auto;
}

.services-register {
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.25rem, 3vw, 4rem);
  padding-block: clamp(1.6rem, 3vh, 2.4rem);
  border-bottom: 1px solid var(--border);
}

.service-row h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 1.8vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.service-row p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 46em;
}

@media (max-width: 699px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

/* ---------- triptych ---------- */

.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--bg-dark);
}

.triptych-item {
  position: relative;
  overflow: hidden;
}

.triptych-item img {
  width: 100%;
  height: 100%;
  max-height: 82vh;
  object-fit: cover;
  object-position: 50% 68%;
}

.triptych-item figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.6rem 1.1rem;
  background: rgba(23 20 17 / 0.78);
  color: var(--surface);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 899px) {
  .triptych {
    display: flex;
    gap: 0.6rem;
    background: var(--bg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .triptych::-webkit-scrollbar { display: none; }

  .triptych-item {
    flex: 0 0 78vw;
    scroll-snap-align: start;
  }

  .triptych-item img { max-height: none; aspect-ratio: 3 / 4; border-radius: var(--radius); }
}

/* ---------- about ---------- */

.section-about { padding-block: 0; background: var(--surface); }

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
  align-items: stretch;
}

.about-content {
  align-self: center;
  padding: clamp(4rem, 9vh, 7.5rem) var(--gutter);
  max-width: calc(var(--wrap-wide) / 2);
  margin-inline: auto;
}

.about-content .lead { margin-block: 1.5rem; color: var(--ink-soft); }

.credentials {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
}

.credentials li {
  padding: 0.95rem 0 0.95rem 1.5rem;
  border-left: 2px solid var(--accent);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.credentials strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.15rem;
}

.about-media {
  position: relative;
  min-height: 100%;
}

.about-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 899px) {
  .about-split { grid-template-columns: 1fr; }

  .about-content {
    max-width: none;
    margin-left: 0;
    padding-block: clamp(3.5rem, 8vh, 5rem) 3rem;
  }

  .about-media { min-height: 0; }

  .about-media img {
    position: static;
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

/* ---------- flight strip (paddock videos) ---------- */

.section-paddock {
  background: var(--bg-dark);
  color: var(--bg);
  padding-bottom: clamp(4rem, 9vh, 7.5rem);
}

.paddock-header { margin-bottom: clamp(2rem, 4vh, 3rem); }

.paddock-sub {
  margin-top: 1.25rem;
  color: rgba(250 247 241 / 0.72);
  max-width: 42em;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}

.flight-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.2vw, 1.5rem);
  max-width: min(2200px, calc((72vh * 9 / 16) * 4 + 4.5rem + 2 * var(--gutter)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.flight-card { min-width: 0; }

.flight-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--bg-darker);
  overflow: hidden;
  border-radius: var(--radius);
}

.flight-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flight-toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #fff;
}

.flight-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(23 20 17 / 0.62) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5.5v13l11-6.5z"/></svg>') center / 24px no-repeat;
  border: 1.5px solid rgba(250 247 241 / 0.7);
  opacity: 1;
  transition: opacity 200ms ease;
}

.flight-media.is-playing .flight-toggle::before { opacity: 0; }
.flight-media.is-playing .flight-toggle:hover::before,
.flight-media.is-playing .flight-toggle:focus-visible::before {
  opacity: 0.85;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7 5h4v14H7zM13 5h4v14h-4z"/></svg>');
}

.flight-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 0.15rem 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flight-job { color: var(--accent-soft); }

.flight-when { color: rgba(250 247 241 / 0.5); white-space: nowrap; }

@media (max-width: 1099px) {
  .flight-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    max-width: none;
    padding-bottom: 0.5rem;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .flight-strip::-webkit-scrollbar { display: none; }

  .flight-card {
    flex: 0 0 min(76vw, 380px);
    scroll-snap-align: start;
  }
}

/* ---------- service area ---------- */

.section-area {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.area-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--border);
  pointer-events: none;
}

.area-content {
  position: relative;
  text-align: center;
  padding-block: clamp(1rem, 3vh, 2rem);
}

.area-copy {
  margin: 1.75rem auto 2.5rem;
  max-width: 38em;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--ink-soft);
}

/* ---------- contact ---------- */

.section-contact {
  background: var(--accent);
  color: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
}

.contact-intro .lead { margin-top: 1.5rem; color: rgba(255 255 255 / 0.92); }

.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255 255 255 / 0.85);
}

.contact-phone {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 5.8vw, 7.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  margin-block: 0.6rem 0.85rem;
}

.contact-phone:hover { color: var(--bg); }

.contact-note { font-size: 1.05rem; margin-bottom: 2.25rem; color: rgba(255 255 255 / 0.9); }

.contact-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.9rem;
  border-top: 1px solid rgba(255 255 255 / 0.35);
  padding-top: 1.5rem;
}

.contact-email {
  color: #fff;
  font-weight: 500;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

@media (max-width: 899px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-dark);
  color: var(--bg);
  padding-block: clamp(3rem, 6vh, 4.5rem);
}

.footer-inner {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.footer-logo { flex-shrink: 0; }

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

.footer-muted {
  color: rgba(250 247 241 / 0.6);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.footer-social {
  display: flex;
  gap: 1.75rem;
  margin-block: 1.25rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-social a:hover { color: #fff; }

@media (max-width: 599px) {
  .footer-inner { flex-direction: column; }
}

/* ---------- sticky mobile call bar ---------- */

.sticky-call {
  display: none;
}

@media (max-width: 899px) {
  .sticky-call {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--accent);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 18px rgba(23 20 17 / 0.28);
  }

  body { padding-bottom: 3.6rem; }
}
