/* Tucker Construction Co. — site styles
   One stylesheet for every page. Palette and wordmark are sampled from the
   company's own artwork (see docs/decisions.md), not invented here. */

/* ---------------------------------------------------------------- fonts -- */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/barlow-condensed-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/barlow-condensed-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- tokens -- */
:root {
  --navy: #1a3659;          /* sampled from the wordmark */
  --navy-deep: #12263e;
  --navy-line: #2b4a71;
  --steel: #5177a7;         /* the wordmark's speed lines */
  --slate: #56636f;
  --gold: #e8a814;          /* sampled from the drone pamphlet */
  --gold-ink: #7d5a00;      /* gold that passes contrast as text on white */
  --bone: #f5f4f0;
  --line: #dfe2e6;
  --white: #fff;

  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 8px;
  --band-y: clamp(3.5rem, 7vw, 6rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #23303c;
  background: var(--white);
  overflow-x: hidden;
}

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

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--steel); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* --------------------------------------------------------------- layout -- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--band-y); }
.band--bone { background: var(--bone); }
.band--navy { background: var(--navy); color: #e8eef5; }
.band--navy h2, .band--navy h3 { color: var(--white); }
/* Plain links only. Without the :not(), this beats .btn on specificity and
   paints gold text on a gold button — invisible, and it shipped once. */
.band--navy a:not(.btn):not(.arrow-link) { color: var(--gold); }
.band--tight { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }

.skip {
  position: absolute;
  left: -9999px;
  background: var(--navy);
  color: var(--white);
  padding: .75rem 1.25rem;
  z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ----------------------------------------------------------- typography -- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .012em;
  color: var(--navy);
  margin: 0 0 .6em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.75rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.1rem; letter-spacing: .06em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.kicker {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .95rem;
  color: var(--gold-ink);
  margin: 0 0 .75rem;
}
.band--navy .kicker, .hero .kicker { color: var(--gold); }

.lede { font-size: 1.2rem; color: var(--slate); max-width: 62ch; }
.band--navy .lede { color: #c6d5e6; }

.measure { max-width: 68ch; }

.rule {
  width: 64px;
  height: 4px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.75rem;
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.075rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  padding: .85rem 1.75rem;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--navy-deep);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: #f2b930; border-color: #f2b930; color: var(--navy-deep); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--navy);
}
.band--navy .btn--ghost, .hero .btn--ghost { color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: inherit; }
.band--bone .btn--ghost:hover, body > main .btn--ghost:hover { background: rgba(26, 54, 89, .08); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

.arrow-link {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.arrow-link:hover { color: var(--steel); }

/* ---------------------------------------------------------- topbar + nav -- */
/* Carries the office click-to-call. The 24/7 emergency line belongs here too
   and is parked until Tucker supplies the number — see docs/decisions.md. */
.topbar {
  background: var(--navy-deep);
  color: #dbe5f0;
  font-size: .875rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  align-items: center;
  justify-content: flex-end;
  padding-block: .5rem;
}
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .7rem;
}
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { width: 168px; height: 69px; }

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 1rem;
  background: none;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  padding: .5rem .8rem;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* No JavaScript: the nav is simply there, stacked under the logo. The toggle
   button is hidden until the script un-hides it and sets data-open="false". */
.site-nav {
  display: block;
  flex-basis: 100%;
  border-top: 1px solid var(--line);
  margin-top: .7rem;
  padding-top: .5rem;
}
.site-nav[data-open="false"] { display: none; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.site-nav a {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--navy);
  padding: .6rem .2rem;
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--gold-ink); }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .site-nav,
  .site-nav[data-open="false"] {
    display: block;
    flex-basis: auto;
    margin: 0 0 0 auto;
    padding-top: 0;
    border-top: 0;
  }
  .site-nav ul { flex-direction: row; gap: 1.5rem; }
  .site-nav a {
    font-size: 1.05rem;
    padding: .35rem 0;
    border-bottom: 3px solid transparent;
  }
  .site-nav a:hover { border-bottom-color: var(--gold); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--navy); }
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(420px, 72vh, 660px);
  color: var(--white);
  background: var(--navy-deep);
  isolation: isolate;
}
.hero > picture,
.hero > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(18, 38, 62, .88) 0%, rgba(18, 38, 62, .72) 45%,
      rgba(18, 38, 62, .42) 100%),
    linear-gradient(to top, rgba(9, 21, 35, .75), rgba(9, 21, 35, 0) 55%);
}
.hero .wrap { padding-block: clamp(3rem, 8vw, 5.5rem); }
.hero h1 { color: var(--white); margin-bottom: .25em; }
.hero p { color: #d7e2ee; font-size: 1.2rem; max-width: 46ch; }
.hero-sub {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero--page { min-height: clamp(280px, 40vh, 400px); align-items: center; }
.hero--page h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
.hero--page p { margin-top: .5rem; }

/* ---------------------------------------------------------------- cards -- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* Four cards want to be 2x2, not 3-and-an-orphan. */
@media (min-width: 860px) { .grid--2 { grid-template-columns: 1fr 1fr; } }

/* Five pillars want 3+2. Left to auto-fit they become five columns barely wide
   enough for a heading, and every card ends up a different height. */
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--slate); font-size: .98rem; }
.card .arrow-link { margin-top: auto; align-self: flex-start; padding-top: .75rem; }

/* ---------------------------------------------------------------- panel -- */
.panel {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  scroll-margin-top: 96px;
}
.panel + .panel { margin-top: clamp(3rem, 6vw, 5rem); }
.panel img { border-radius: var(--radius); width: 100%; }

@media (min-width: 860px) {
  .panel { grid-template-columns: 1fr 1fr; }
  .panel--flip .panel-media { order: 2; }
}

/* checklist */
.checklist {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: .5rem 2rem;
}
@media (min-width: 560px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li {
  position: relative;
  padding-left: 1.65rem;
  line-height: 1.45;
  padding-block: .15rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--gold);
}
.band--navy .checklist li::before { background: var(--gold); }

/* ---------------------------------------------------------------- stats -- */
.stats {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1;
  color: var(--gold);
}
.stat-label {
  display: block;
  margin-top: .5rem;
  font-size: .95rem;
  letter-spacing: .04em;
  color: #c6d5e6;
}

/* -------------------------------------------------------------- gallery -- */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figcaption {
  font-size: .9rem;
  color: var(--slate);
  padding-top: .5rem;
}

/* ------------------------------------------------------------- partners -- */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: center;
  justify-items: center;
  gap: .5rem 1rem;
  margin-top: 2rem;
}
.partners img {
  width: 150px;
  height: 42px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .85;
  transition: filter .15s ease, opacity .15s ease;
}
.partners img:hover { filter: grayscale(0); opacity: 1; }

/* ---------------------------------------------------------------- forms -- */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 620px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }

label {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .95rem;
  color: var(--navy);
  margin-bottom: .3rem;
}
.req { color: var(--gold-ink); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: inherit;
  padding: .7rem .8rem;
  border: 1px solid #b9c1ca;
  border-radius: var(--radius);
  background: var(--white);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--steel); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .9rem; color: var(--slate); }

.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius); display: none; }
.form-status[data-state="ok"] { display: block; background: #e8f3e8; border: 1px solid #b6d7b6; color: #1d4d1d; }
.form-status[data-state="error"] { display: block; background: #fdecec; border: 1px solid #e5b4b4; color: #8a1f1f; }
.form-status[data-state="working"] { display: block; background: var(--bone); border: 1px solid var(--line); color: var(--slate); }

/* ----------------------------------------------------------- contact bits */
.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li { padding-block: .45rem; border-bottom: 1px solid var(--line); }
.detail-list li:last-child { border-bottom: 0; }
.detail-list .k {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .82rem;
  color: var(--slate);
}

/* ------------------------------------------------------------ leadership */
/* -------------------------------------------------------------- pending -- */
/* Unused right now — every placeholder was removed 2026-09-11. Kept because it
   is the house style for copy that must not ship unnoticed. */
.pending {
  font-family: var(--body);
  font-weight: 600;
  background: #fff4d6;
  border: 1px dashed var(--gold);
  border-radius: 4px;
  padding: 0 .35em;
  color: #6b4e00;
  white-space: nowrap;
}
.band--navy .pending { background: rgba(232, 168, 20, .18); color: #ffdf95; }

/* -------------------------------------------------------------- footer --- */
.site-footer {
  background: var(--navy-deep);
  color: #b9c9da;
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  font-size: .97rem;
}
.site-footer h4 {
  color: var(--white);
  letter-spacing: .12em;
  margin-bottom: .8rem;
}
.site-footer a { color: #dce6f1; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.site-footer .brand img { width: 190px; height: 78px; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-links li { padding-block: .2rem; break-inside: avoid; }
.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--navy-line);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .9rem;
  color: #8ea2b8;
}

/* --------------------------------------------------------------- extras -- */
.callout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 860px) { .callout { grid-template-columns: 1.1fr 1fr; } }
.callout img { border-radius: var(--radius); }

.spec-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 2rem; }
.spec {
  border-top: 3px solid var(--gold);
  padding-top: .9rem;
}
.spec h4 { color: var(--navy); margin-bottom: .5rem; }
.band--navy .spec h4 { color: var(--white); }
.spec ul { margin: 0; padding-left: 1.1rem; }
.spec li { padding-block: .12rem; }

.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.timeline li { border-left: 3px solid var(--gold); padding-left: 1rem; }
.timeline .year {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--navy);
}
.band--navy .timeline .year { color: var(--gold); }

.notice {
  background: var(--bone);
  border-left: 4px solid var(--steel);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  font-size: .98rem;
}

.center { text-align: center; }
.center .lede, .center .measure { margin-inline: auto; }
.center .btn-row { justify-content: center; }

/* ------------------------------------------------------------ spacing -- */
/* Utilities, not ad-hoc inline styles: the CSP is style-src 'self', which
   blocks a style="" attribute outright (it cannot be hashed). */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }
.mt-4 { margin-top: 3rem; }
.pt-0 { padding-top: 0; }
.cf-turnstile { margin-top: 1.25rem; }

/* The TUCKER DRONE SERVICES lockup introduces a heading; it needs its own
   breathing room or the wordmark collides with the h2 beneath it. */
.sub-lockup { margin-bottom: 1.5rem; }
