/* ============================================================
   AB&H Excavating — Site Styles
   Brand: Sky Blue #5FB5E8 · Deep Blue #15618F · Orange #F07C1F
   Type:  Barlow Semi Condensed (display) · Inter (body)
   ============================================================

   THEMING CHEAT-SHEET — "How do I change X?"
   ------------------------------------------------------------
   BRAND COLORS → edit the :root variables just below. One line
   each; the WHOLE site updates.
     --sky       Sky blue — accents, links on dark backgrounds
     --deep      Deep blue — header, nav, headings, .btn-deep
     --deep-2    Darker deep blue — footer, hover states
     --orange    Orange — CTAs, highlights, hazard stripe
     --orange-2  Darker orange — hover state for orange things
     --ink       Body text color
     --muted     Secondary/gray text
     --paper     Off-white input/background tint
     --sky-tint  Pale blue section background (.block.tint)
     --line      Card + input border color

   BUTTONS → search "---------- Buttons" below.
     .btn         base shape/typography shared by all buttons
     .btn-orange  solid orange (primary CTA)
     .btn-deep    solid deep blue
     .btn-outline transparent w/ white border (use on dark bg)

   FONTS → the three --font-* variables below, PLUS the Google
   Fonts <link> in each page's <head> (swap family names there).

   ROUNDING / SHADOW → --radius and --shadow (one value each).
   ANGLED SECTION EDGES → --cut (depth of the "cut slope").

   PHONE / EMAIL / SOCIALS / NAV → js/site-config.js, not here.
   JOB POSTINGS → data/jobs.json (or /admin once Supabase is on).
   GALLERY PHOTOS → data/gallery.json (or /admin later).
   ============================================================ */

:root {
  --sky: #5FB5E8;
  --deep: #15618F;
  --deep-2: #0E4A6F;      /* darker shade of deep blue for footer/hover */
  --orange: #F07C1F;
  --orange-2: #D96A10;
  --ink: #17222B;
  --muted: #56707F;
  --paper: #F7F9FB;
  --sky-tint: #EAF4FB;
  --line: #D8E4EC;
  --white: #FFFFFF;

  --font-display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --cut: 3.5rem; /* depth of the angled "cut slope" section edges */
  --radius: 10px;
  --shadow: 0 8px 28px rgba(21, 97, 143, 0.12);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem;
}

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

a { color: var(--deep); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

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

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  line-height: 1.1;
  color: var(--deep-2);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.25rem; font-weight: 600; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-2);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
/* survey-stake tick before eyebrows */
.eyebrow::before {
  content: "";
  width: 22px;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 10px);
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 6px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-2); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-deep { background: var(--deep); color: #fff; }
.btn-deep:hover { background: var(--deep-2); }

/* ---------- Utilities (replace one-off inline styles) ---------- */
.mt-1 { margin-top: 1rem; }              /* standard paragraph spacing */
.card-stack { display: grid; gap: 1.4rem; }  /* vertical stack of cards */
.follow-head { margin-top: 2rem; margin-bottom: 0.9rem; }  /* "Follow Our Work" heading on contact */
.footer-office-head { margin-top: 1.5rem; }  /* "Office" heading in footer */

/* ---------- Header ---------- */
.topbar {
  background: var(--deep-2);
  color: #cfe6f5;
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--sky); }
.topbar-contact { display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (max-width: 860px) {
  .topbar { display: none; }   /* phone/email/tagline live in the footer on mobile */
}

header.site {
  background: var(--deep);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 0; }

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-logo { height: 60px; width: auto; display: block; }
.footer-brand .brand-logo { height: 72px; }

/* header brand: oval badge sitting on full-width triple lines */
header.site::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(50% + 6px);   /* nudged so the center line meets the logo's own "INC." lines */
  height: 27px;
  transform: translateY(-50%);
  background: linear-gradient(
    var(--orange) 0 5px, transparent 5px 11px,
    var(--deep-2) 11px 16px, transparent 16px 22px,
    var(--orange) 22px 27px);
  pointer-events: none;
}
header.site .brand {
  position: relative; z-index: 2;
  background: var(--deep);
  padding: 8px 26px;
}
header.site .brand-logo { height: 85px; }
header.site nav.main {
  position: relative; z-index: 2;
  background: var(--deep);
  padding: 0.5rem 0.75rem;   /* the deep-blue padding is the "small space" after the CTA before the lines resume */
}

nav.main ul { list-style: none; display: flex; gap: 0.25rem; }
nav.main a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  color: #e7f3fb;
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
}
nav.main a:hover { background: rgba(255,255,255,0.1); color: #fff; }
nav.main a[aria-current="page"] { color: var(--orange); }
nav.main .nav-cta { background: var(--orange); color: #fff; margin-left: 0.5rem; }
nav.main .nav-cta:hover { background: var(--orange-2); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px; margin: 5px auto;
  background: #fff; border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav.main {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--deep-2);
    display: none;
    box-shadow: 0 12px 20px rgba(0,0,0,0.25);
  }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; padding: 0.75rem; }
  nav.main .nav-cta { margin: 0.5rem 0 0; text-align: center; }
  header.site::before {
    top: calc(50% + 4px);
    height: 17px;
    background: linear-gradient(
      var(--orange) 0 3px, transparent 3px 7px,
      var(--deep-2) 7px 10px, transparent 10px 14px,
      var(--orange) 14px 17px);
  }
  header.site .brand { padding: 6px 14px; }
  header.site .brand-logo { height: 56px; }
  header.site nav.main { background: var(--deep-2); padding: 0; }  /* restore dropdown look */
  .nav-toggle { position: relative; z-index: 2; background: var(--deep); padding: 0.6rem 0.75rem; }
}

/* ---------- Hero (cut-slope angled edge) ---------- */
.hero {
  background:
    linear-gradient(100deg, rgba(10, 30, 45, 0.93) 0%, rgba(14, 74, 111, 0.72) 55%, rgba(14, 74, 111, 0.45) 100%),
    url("../images/hero.webp") center / cover no-repeat;
  color: #fff;
  padding: clamp(4rem, 9vw, 7.5rem) 0 calc(clamp(4rem, 9vw, 7.5rem) + var(--cut));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p { margin: 1.25rem 0 2rem; max-width: 56ch; color: #d9ecf8; font-size: 1.15rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .eyebrow { color: var(--sky); }
.hero .eyebrow::before { background: repeating-linear-gradient(90deg, var(--sky) 0 6px, transparent 6px 10px); }

/* generic angled section for page headers */
.page-head {
  background: var(--deep);
  color: #fff;
  padding: clamp(2.6rem, 6vw, 4.2rem) 0 calc(clamp(2.6rem, 6vw, 4.2rem) + 2rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), 0 100%);
}
.page-head h1 { color: #fff; }
.page-head p { color: #d9ecf8; max-width: 62ch; margin-top: 0.75rem; }
.page-head .eyebrow { color: var(--sky); }
.page-head .eyebrow::before { background: repeating-linear-gradient(90deg, var(--sky) 0 6px, transparent 6px 10px); }

/* ---------- Sections ---------- */
section.block { padding: clamp(3rem, 7vw, 5rem) 0; }
section.block.tint { background: var(--sky-tint); }
.section-head { margin-bottom: 2.25rem; }

/* ---------- Services grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sky);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .svc-icon { width: 44px; height: 44px; margin-bottom: 1rem; color: var(--deep); }

/* ---------- Stats strip ---------- */
.stats {
  background: var(--deep);
  color: #fff;
  padding: 2.5rem 0;
}
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 720px) { .stats .container { grid-template-columns: repeat(2, 1fr); } }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.stat span { font-size: 0.9rem; color: #cfe6f5; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--orange);
  color: #fff;
  padding: 3rem 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 0.35rem; }
.cta-band p { color: #ffe9d6; }
.cta-band .btn { background: var(--deep-2); color: #fff; }
.cta-band .btn:hover { background: #0A3B58; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.gallery-filters button {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--deep);
  background: #fff;
  color: var(--deep);
  cursor: pointer;
}
.gallery-filters button.active,
.gallery-filters button:hover { background: var(--deep); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--sky-tint);
  aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .tag {
  position: absolute; left: 0.75rem; bottom: 0.75rem;
  background: rgba(14, 74, 111, 0.9);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 25, 36, 0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1000px, 92vw); max-height: 82vh; border-radius: 8px; }
.lightbox figcaption {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: #d9ecf8; font-size: 0.95rem; text-align: center;
}
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: none; border: 0; color: #fff;
  font-size: 2.2rem; line-height: 1; cursor: pointer;
}

/* ---------- Jobs ---------- */
.job-list { display: grid; gap: 1.25rem; }
.job {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}
.job-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.job h3 { font-size: 1.35rem; }
.job-meta {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.5rem 0 0.9rem;
}
.job-meta .pay { color: var(--orange-2); font-weight: 600; }
.job p { color: var(--muted); font-size: 0.97rem; }
.job ul { margin: 0.75rem 0 1rem 1.2rem; color: var(--muted); font-size: 0.95rem; }
.job .btn { font-size: 0.9rem; padding: 0.65rem 1.3rem; }
.job-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.jobs-empty {
  background: var(--sky-tint);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
}

/* ---------- About ---------- */
.about-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } }
.about-split .card { border-top-color: var(--orange); }
.value-list { list-style: none; display: grid; gap: 1rem; margin-top: 1.5rem; }
.value-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.value-list .dot {
  flex: none; width: 12px; height: 12px; margin-top: 0.45rem;
  background: var(--orange); border-radius: 2px; transform: rotate(45deg);
}
.value-list b { color: var(--deep-2); }

/* ---------- Contact ---------- */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; } }

.contact-info dl { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.contact-info dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-2);
}
.contact-info dd { font-size: 1.05rem; color: var(--ink); }
.contact-info dd a { text-decoration: none; }
.contact-info dd a:hover { text-decoration: underline; }

form.contact {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--sky);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.1rem;
}
form.contact label {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  color: var(--deep-2);
  display: grid;
  gap: 0.4rem;
}
form.contact input,
form.contact select,
form.contact textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}
form.contact input:focus,
form.contact select:focus,
form.contact textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(95, 181, 232, 0.25);
}
form.contact textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* apply page: divider between upload and online-resume paths */
.apply-or {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.5rem 0;
}
form.apply input[type="file"] { padding: 0.5rem; background: #fff; font-family: var(--font-body, inherit); }
form.apply input[type="file"]::file-selector-button {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--deep); color: #fff; border: 0; border-radius: var(--radius, 6px);
  padding: 0.55rem 1rem; margin-right: 0.9rem; cursor: pointer;
}
form.apply input[type="file"]::file-selector-button:hover { background: var(--deep-2); }
.btn-remove { min-height: 44px; display: inline-flex; align-items: center; }
/* 404 page */
.notfound-actions { padding: 2.5rem 0 3.5rem; }
@media (max-width: 620px) { .notfound-actions .hero-actions { flex-direction: column; } .notfound-actions .btn { width: 100%; text-align: center; } }
@media (max-width: 480px) { .hero .eyebrow { font-size: 0.7rem; letter-spacing: 0.08em; } }

/* ---------- Social icons ---------- */
.socials { display: flex; gap: 0.75rem; }
.socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  transition: background 0.18s ease, color 0.18s ease;
}
.socials a:hover { background: var(--orange); color: #fff; }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.socials.on-light a { background: var(--sky-tint); color: var(--deep); }
.socials.on-light a:hover { background: var(--orange); color: #fff; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--deep-2);
  color: #b9d7ea;
  padding: 3.5rem 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

footer.site h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1rem;
}
footer.site ul { list-style: none; display: grid; gap: 0.55rem; }
footer.site a { color: #b9d7ea; text-decoration: none; }
footer.site a:hover { color: var(--sky); }
.footer-brand p { margin-top: 0.9rem; font-size: 0.92rem; max-width: 34ch; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 1.25rem 0;
  font-size: 0.82rem;
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* orange hazard stripe at very bottom — brand signature */
.hazard {
  height: 10px;
  background: repeating-linear-gradient(135deg, var(--orange) 0 18px, var(--deep-2) 18px 36px);
}

/* apply page: online application (rendered from js/apply-config.js) */
#apply-fields { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
#apply-fields > * { grid-column: 1 / -1; }
#apply-fields > .half { grid-column: auto; }
@media (max-width: 640px) { #apply-fields { grid-template-columns: 1fr; } }
.apply-section {
  margin: 1.25rem 0 0;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--sky);
  font-size: 1.15rem;
  color: var(--deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.apply-section-note { margin-top: -0.5rem; }
.apply-note { line-height: 1.55; }
.apply-yesno {
  border: 0; padding: 0; margin: 0; min-width: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; align-items: center;
}
.apply-yesno legend {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 0.85rem; color: var(--deep-2);
  padding: 0; margin-bottom: 0.4rem; width: 100%;
}
form.contact .apply-yesno label.radio,
form.contact label.apply-check {
  display: flex; align-items: center; gap: 0.5rem;
  text-transform: none; letter-spacing: 0; font-family: var(--font-body, inherit);
  font-weight: 500; font-size: 0.95rem; color: var(--ink);
}
form.contact .apply-yesno input, form.contact .apply-check input { width: 1.4rem; height: 1.4rem; accent-color: var(--orange); padding: 0; margin: 0; flex: none; cursor: pointer; }
form.contact .apply-check input { margin-top: 0.15rem; }
form.contact label.apply-check { align-items: flex-start; }
.apply-group {
  border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 6px;
  padding: 1rem; background: var(--sky-tint);
  display: grid; gap: 0.9rem; grid-template-columns: 1fr 1fr;
}
.apply-group > * { grid-column: 1 / -1; }
.apply-group > .half { grid-column: auto; }
@media (max-width: 640px) { .apply-group { grid-template-columns: 1fr; } }
.apply-group-title {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--deep);
}
form.contact .apply-group textarea { min-height: 80px; }
.apply-repeat { display: grid; gap: 0.9rem; }
.apply-group-title { display: flex; justify-content: space-between; align-items: center; }
.btn-add, .btn-remove {
  font: inherit; font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 0.8rem; cursor: pointer; border-radius: 6px;
}
.btn-add {
  justify-self: start; padding: 0.55rem 1rem;
  background: #fff; color: var(--deep); border: 1.5px dashed var(--deep);
}
.btn-add:hover { background: var(--sky-tint); }
.btn-remove { background: none; border: 0; color: var(--muted); padding: 0; text-decoration: underline; }
.btn-remove:hover { color: var(--orange-2); }

/* anti-spam honeypot (hidden from humans) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* reserve header space until chrome.js injects it (prevents layout shift) */
#site-header:empty { min-height: 158px; }
@media (max-width: 860px) { #site-header:empty { min-height: 90px; } }
