/* Allingford Drone Services */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --slate: #2E3B4E;
  --slate-deep: #253142;
  --ash: #E4E9EF;
  --accent: #7A8BA3;
  --white: #FFFFFF;
  --ink: #2E3B4E;
  --text-on-slate: #E4E9EF;
  --muted-on-slate: #B9C3D0;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.6rem;
  --step-3: 2.1rem;

  --radius-pill: 999px;
  --radius-card: 28px;
  --wrap: 1120px;
  --nav-h: 56px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text-on-slate);
  background: var(--slate);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ash); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-pill);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

/* Hero */
.hero { position: relative; height: min(72vh, 720px); min-height: 320px; overflow: hidden; background: var(--slate-deep); }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 0%; }

/* Logo band */
.brand-band { padding: 44px 0 40px; text-align: center; }
.brand-band h1 { margin: 0; }
.brand-band .logo { width: min(560px, 86%); margin-inline: auto; }
.tagline {
  margin: 22px auto 26px; max-width: 34ch;
  font-size: var(--step-1); font-weight: 300; font-style: italic; line-height: 1.4;
  color: var(--muted-on-slate);
}

.button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  background: var(--ash); color: var(--ink);
  font-weight: 600; font-size: var(--step-0); text-decoration: none; letter-spacing: 0.01em;
  border: 2px solid var(--ash);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button:hover { background: var(--white); border-color: var(--white); }
.button--outline { background: transparent; color: var(--ash); }
.button--outline:hover { background: transparent; border-color: var(--accent); color: var(--white); }

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--slate);
  border-top: 1px solid rgba(122, 139, 163, .45);
  border-bottom: 1px solid rgba(122, 139, 163, .45);
}
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; gap: clamp(20px, 6vw, 64px);
  height: var(--nav-h); align-items: center;
}
.site-nav a {
  text-decoration: none; font-weight: 500; letter-spacing: .04em; color: var(--ash);
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--accent); }

/* Sections */
.section { padding: 72px 0; }
.section + .section { padding-top: 24px; }

.pill-heading {
  display: block; width: fit-content; min-width: min(420px, 100%);
  margin: 0 auto 48px; padding: 12px 48px;
  background: var(--ash); color: var(--ink);
  border-radius: var(--radius-pill);
  font-size: var(--step-3); font-weight: 600; line-height: 1.2; text-align: center;
}

/* About */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.headshot {
  width: 280px; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  border: 6px solid var(--ash);
}
.about-text p { margin: 0 0 1.1em; max-width: 64ch; }
.about-text p:first-child { font-size: var(--step-1); line-height: 1.5; color: var(--white); }
.creds {
  list-style: none; margin: 28px 0 0; padding: 22px 0 0;
  border-top: 1px solid rgba(122, 139, 163, .55);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 28px;
}
.creds li { font-size: var(--step--1); line-height: 1.45; color: var(--muted-on-slate); }
.creds strong { display: block; font-size: var(--step-0); font-weight: 600; color: var(--white); }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-card); overflow: hidden;
  display: flex; flex-direction: column;
}
.service-photo { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.service-body { position: relative; padding: 44px 24px 28px; }
.service-icon {
  position: absolute; top: -34px; left: 24px;
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--ash); border: 4px solid var(--white);
  display: grid; place-items: center;
}
.service-icon img { width: 38px; height: 38px; }
.service h3 { margin: 0 0 10px; font-size: var(--step-1); font-weight: 700; line-height: 1.25; }
.service p { margin: 0 0 .8em; font-size: var(--step--1); line-height: 1.55; }
.service ul { margin: 0; padding-left: 1.1em; font-size: var(--step--1); line-height: 1.55; }
.service li::marker { color: var(--accent); }

/* Enquire */
.enquire { text-align: center; }
.enquire p { margin: 0 auto 28px; max-width: 52ch; font-size: var(--step-1); line-height: 1.5; }
.enquire-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer {
  margin-top: 48px; padding: 36px 0 44px;
  background: var(--slate-deep);
  border-top: 1px solid rgba(122, 139, 163, .45);
  font-size: var(--step--1); color: var(--muted-on-slate);
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ash); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--white); }

/* Privacy page */
.doc { max-width: 70ch; padding: 56px 0 24px; }
.doc h1 { font-size: var(--step-3); font-weight: 700; color: var(--white); margin: 0 0 8px; line-height: 1.2; }
.doc h2 { font-size: var(--step-1); font-weight: 600; color: var(--white); margin: 2em 0 .5em; }
.doc p, .doc li { color: var(--text-on-slate); }
.doc-header { padding: 22px 0; border-bottom: 1px solid rgba(122, 139, 163, .45); }
.doc-header img { width: 260px; }

/* Responsive */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero { height: 46vh; }
  .hero img { object-position: 82% 0%; }
  .brand-band { padding: 32px 0 30px; }
  .section { padding: 56px 0; }
  .pill-heading { padding: 10px 28px; min-width: 0; margin-bottom: 36px; }
  .about { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .headshot { width: 200px; }
  .creds { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
}
