/* CAVU Creative — styles */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo.woff2") format("woff2-variations"), url("assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --ink: #141414;
  --gray-9: #1e1e1e;
  --gray-7: #4a4a4a;
  --gray-5: #8a8a8a;
  --gray-2: #e6e6e6;
  --gray-1: #f3f3f1;
  --white: #ffffff;
  --lime: #ccff00;
  --lime-dk: #b3e000;
  --radius: 14px;
  --wrap: 1180px;
  --pad: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
[id] { scroll-margin-top: 80px; }

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow.dark { color: var(--gray-7); }
.eyebrow.dark::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--lime); border-radius: 2px; margin-right: 10px; vertical-align: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { background: var(--black); color: var(--lime); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--white); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-full { width: 100%; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad)));
  background: var(--white);
  border-bottom: 1px solid var(--gray-2);
}
.brand img { width: 132px; height: auto; }
.topnav { display: flex; align-items: center; gap: 28px; }
.topnav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; opacity: .85; }
.topnav a:not(.btn):hover { opacity: 1; }

/* Hero */
.hero {
  position: relative;
  min-height: min(84vh, 800px);
  display: flex; align-items: flex-end;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 20%, #2a2a2a 0%, var(--black) 60%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 42%; opacity: .92; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.78) 34%, rgba(10,10,10,.2) 58%, rgba(10,10,10,0) 80%),
              linear-gradient(0deg, rgba(10,10,10,.7) 0%, rgba(10,10,10,0) 35%);
}
.hero-inner { position: relative; width: 100%; padding-top: 96px; padding-bottom: clamp(56px, 10vh, 110px); }
.hero h1 { font-size: clamp(44px, 6.6vw, 92px); max-width: 12ch; }
.hero .hl { display: block; }
.hl { color: var(--lime); }
.lede { margin: 24px 0 36px; font-size: clamp(18px, 2vw, 22px); color: rgba(255,255,255,.82); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections */
.sec-head { margin-bottom: 44px; }
.sec-head h2, .contact h2 { font-size: clamp(34px, 5vw, 60px); }
.services { padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 120px); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column;
  background: var(--gray-1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.35); }
.card-media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #2b2b2b, #111); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.card h3 { font-size: 23px; line-height: 1.12; margin-bottom: 12px; }
.card p { margin: 0 0 18px; color: var(--gray-7); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; }
.tags li { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--gray-2); }
.card-link {
  margin-top: auto; align-self: flex-start;
  font-weight: 700; text-decoration: none;
  border-bottom: 3px solid var(--lime); padding-bottom: 2px;
}
.card-link:hover { border-bottom-color: var(--black); }

/* How it works */
.how { background: var(--gray-1); border-top: 1px solid var(--gray-2); border-bottom: 1px solid var(--gray-2); }
.steps { list-style: none; margin: 0; padding: 48px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; }
.num {
  grid-row: span 2;
  font-stretch: 125%; font-weight: 800; font-size: 15px;
  background: var(--black); color: var(--lime);
  border-radius: 8px; padding: 8px 10px; line-height: 1;
  align-self: start;
}
.steps h3 { font-size: 24px; }
.steps p { margin: 4px 0 0; color: var(--gray-7); }

/* CAVU mindset */
.mindset { background: var(--black); color: var(--white); }
.mindset-inner { padding-top: clamp(72px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 112px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.acronym { display: flex; flex-direction: column; font-size: clamp(34px, 5.4vw, 72px); line-height: 1.02; }
.acronym span { color: rgba(255,255,255,.5); font-weight: 700; }
.acronym b { color: var(--white); font-weight: 900; }
.acronym span:last-child b { color: var(--lime); }
.mindset p { margin: 0; font-size: clamp(18px, 1.8vw, 22px); color: rgba(255,255,255,.8); max-width: 30ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 128px); }
.contact-intro p { color: var(--gray-7); font-size: 18px; margin: 20px 0 0; }
.contact-photo { margin: 36px 0 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #111; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }

.form { display: grid; gap: 18px; background: var(--gray-1); padding: clamp(22px, 3.5vw, 36px); border-radius: var(--radius); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.form input[type=text], .form input[type=email], .form textarea {
  width: 100%;
  font: inherit; font-size: 16px; font-weight: 400;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-2); border-radius: 10px;
  background: var(--white); color: var(--ink);
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(204,255,0,.7); }
.form [aria-invalid=true] { border-color: #c0392b; }
.svc-pick { border: 0; margin: 0; padding: 0; }
.svc-pick legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: block; position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  background: var(--white); border: 1.5px solid var(--gray-2);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.chips input:checked + span { background: var(--black); color: var(--lime); border-color: var(--black); }
.chips input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; font-size: 15px; }
.form-status.ok { color: #2b6a00; }
.form-status.err { color: #b42318; }
.form.sent .btn { background: var(--black); color: var(--lime); }

/* Form note */
.form-note { margin: -6px 0 0; font-size: 13px; color: var(--gray-7); }
.form-note a { color: var(--ink); text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Simple pages (privacy, 404) */
.page { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(64px, 9vw, 112px); }
.page-narrow { max-width: 760px; }
.page h1 { font-size: clamp(36px, 5.4vw, 64px); margin-bottom: 16px; }
.page .updated { color: var(--gray-7); margin: 0 0 32px; }
.page .lead { font-size: 19px; padding: 20px 22px; background: var(--gray-1); border-left: 4px solid var(--lime); border-radius: 0 10px 10px 0; margin: 0 0 36px; }
.page h2 { font-size: 22px; margin: 40px 0 12px; }
.page p, .page li { color: #2a2a2a; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }
.page a:not(.btn) { color: var(--ink); text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.notfound { min-height: 64vh; display: flex; align-items: center; }
.notfound .code { font-stretch: 125%; font-weight: 900; font-size: clamp(88px, 16vw, 200px); line-height: .9; color: var(--ink); margin: 0 0 8px; }
.notfound .code span { color: var(--lime); -webkit-text-stroke: 3px var(--ink); }
.notfound p { font-size: 19px; color: var(--gray-7); max-width: 34ch; margin: 0 0 32px; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline { color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--lime); }

/* Footer */
.footer { background: var(--white); color: var(--gray-7); font-size: 14px; border-top: 1px solid var(--gray-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 36px; padding-bottom: 36px; flex-wrap: wrap; }
.footer img { width: 120px; height: auto; }
.footer p { margin: 0; }
.footer a { color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: span 2; }
  .cards .card:last-child .card-media { aspect-ratio: 21 / 9; }
  .mindset-inner, .contact { grid-template-columns: 1fr; }
  .contact-photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .topnav a:not(.btn) { display: none; }
  .brand img { width: 108px; }
  .hero { min-height: 80vh; min-height: 80svh; }
  .hero-media img { object-position: 62% 30%; }
  .hero-media::after { background: linear-gradient(0deg, rgba(10,10,10,.96) 30%, rgba(10,10,10,.55) 60%, rgba(10,10,10,.1) 100%); }
  .hero-cta .btn { flex: 1 1 auto; }
  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }
  .cards .card:last-child .card-media { aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: 1fr; padding: 36px 0; gap: 22px; }
  .row2 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
