/* ============================================================
   Local Pilot — style.css
   ============================================================ */

:root {
  --navy: #0f2438;
  --navy-800: #16334f;
  --navy-600: #31485f;
  --amber: #f5a623;
  --amber-dark: #d98b0f;
  --ink: #1d2b38;
  --slate: #4b5a6a;
  --mist: #eef2f6;
  --paper: #ffffff;
  --cloud: #f7f9fb;
  --line: #dce3ea;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 36, 56, 0.08);
  --shadow-md: 0 8px 30px rgba(15, 36, 56, 0.10);
  --shadow-lg: 0 18px 50px rgba(15, 36, 56, 0.16);
  --font-head: "Sora", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; margin-bottom: 0.5em; }
h3 { font-size: 1.2rem; font-weight: 700; }

.accent { color: var(--amber-dark); }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 0.9rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 34em;
  margin-top: 1.1rem;
}

.section-lead {
  color: var(--slate);
  max-width: 40em;
  margin-bottom: 2.5rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-ghost:hover { background: var(--mist); box-shadow: inset 0 0 0 2px var(--line); }

.btn-small { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.text-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
  transition: color 0.15s ease;
}
.text-link:hover { color: var(--amber-dark); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark { width: 36px; height: 36px; border-radius: 9px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover { color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(245, 166, 35, 0.10), transparent 60%),
    linear-gradient(180deg, var(--cloud), var(--paper));
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  list-style: none;
  margin-top: 1.8rem;
}

.hero-points li {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  padding-left: 1.4rem;
  position: relative;
}
.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--amber-dark);
  font-weight: 700;
}

.hero-svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(15, 36, 56, 0.12)); }

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--navy);
  padding: 1.4rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-grid div { display: flex; flex-direction: column; }
.trust-grid strong { color: #fff; font-family: var(--font-head); font-size: 0.95rem; }
.trust-grid span { color: #9db4c9; font-size: 0.8rem; }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--cloud); }

.section-dark { background: linear-gradient(180deg, var(--navy), #0b1c2d); }
.section-dark h2, .section-dark .eyebrow + h2 { color: #fff; }
.section-dark .eyebrow { color: var(--amber); }
.section-dark .section-lead { color: #9db4c9; }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-top: 2.2rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-featured { border-top: 4px solid var(--amber); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 0.6rem; }
.card > p { color: var(--slate); font-size: 0.98rem; }

.checklist {
  list-style: none;
  margin: 1.2rem 0 1.5rem;
  display: grid;
  gap: 0.55rem;
}
.checklist li {
  padding-left: 1.6rem;
  position: relative;
  font-size: 0.93rem;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--amber);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.5-4.3-4.3 1.7-1.7 2.6 2.6 5.6-5.6 1.7 1.7-7.3 7.3z"/></svg>') center / contain no-repeat;
}

.mini-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.mini {
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.mini h4 { font-size: 0.98rem; margin-bottom: 0.3rem; }
.mini p { font-size: 0.85rem; color: var(--slate); }

/* ---------- Work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.work-item {
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.work-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.work-item img {
  width: 100%;
  aspect-ratio: 800 / 560;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.work-item figcaption { padding: 1.2rem 1.3rem 1.4rem; }
.work-item strong { display: block; font-family: var(--font-head); color: #fff; font-size: 1.05rem; }
.work-item span { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin: 0.25rem 0 0.6rem; }
.work-item p { font-size: 0.9rem; color: #9db4c9; }

.work-note { margin-top: 2rem; font-size: 0.88rem; color: #7e97ac; text-align: center; }

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin-top: 2.2rem;
  counter-reset: step;
}

.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.step h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.step p { font-size: 0.9rem; color: var(--slate); }

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.why-copy > p { color: var(--slate); max-width: 36em; }

.why-list {
  list-style: none;
  margin: 1.6rem 0 2rem;
  display: grid;
  gap: 0.9rem;
}
.why-list li {
  padding-left: 1.7rem;
  position: relative;
  font-size: 0.97rem;
  color: var(--ink);
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--amber);
}
.why-list strong { color: var(--navy); }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--navy);
  line-height: 1.1;
}
.stat-num::after { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--amber); margin-top: 0.5rem; }
.stat-label { display: block; margin-top: 0.7rem; font-size: 0.85rem; color: var(--slate); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-copy > p { color: var(--slate); max-width: 32em; }

.contact-points {
  list-style: none;
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
}
.contact-points li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.contact-points svg { width: 22px; height: 22px; color: var(--amber-dark); flex-shrink: 0; }
.contact-points a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--amber); }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cloud);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
  background: var(--paper);
}

.field textarea { resize: vertical; min-height: 110px; }

.gotcha { display: none !important; }

.form-status { margin-top: 1rem; font-size: 0.92rem; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #1e7a3c; }
.form-status.err { display: block; color: #b3392f; }

.form-fineprint { margin-top: 0.9rem; font-size: 0.78rem; color: var(--slate); text-align: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #9db4c9;
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.2rem;
}

.brand-light { color: #fff; }
.footer-brand p { font-size: 0.9rem; margin-top: 0.9rem; max-width: 26em; }

.footer-nav { display: grid; gap: 0.6rem; align-content: start; }
.footer-nav a { color: #9db4c9; font-size: 0.92rem; text-decoration: none; }
.footer-nav a:hover { color: #fff; }

.footer-contact p { font-size: 0.92rem; margin-bottom: 0.4rem; }
.footer-contact a { color: var(--amber); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0;
  font-size: 0.82rem;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .work-item, .btn { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-visual { max-width: 560px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .mini-services { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 4%;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.55rem 0; }
  .nav-links .btn { text-align: center; margin: 0.5rem 0 0.8rem; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .mini-services { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
