/* ==========================================================================
   STYLES
   How the page looks: colors, fonts, spacing and layout.
   Written "mobile-first": the base rules are for phones, and the
   @media (min-width: ...) blocks at the bottom adjust things for wider
   screens.
   ========================================================================== */

/* ---------- 1. Design tokens --------------------------------------------
   Change a value here and it changes everywhere it's used. */
:root {
  --bg:          #0B130F;  /* forest-night page background */
  --bg-raised:   #131F18;  /* panels */
  --bg-deep:     #070D0A;  /* darker bands */
  --line:        #233829;  /* borders and dividers */
  --line-soft:   rgba(236, 241, 234, 0.14);
  --text:        #ECF1EA;  /* main text */
  --muted:       #A2B2A7;  /* secondary text */
  --orange:      #FF7B1F;  /* hi-vis orange: buttons and key actions */
  --orange-hi:   #FF9849;  /* orange on hover */
  --on-orange:   #1C0D02;  /* text on orange buttons */
  --green:       #5CC488;  /* bright forest green: checks and small accents */
  --forest:      #1E4D33;  /* deep forest green: large blocks */
  --danger:      #FF8A7A;

  --font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --narrow: 72%;   /* width used for uppercase headings */

  --wrap: 1240px;
  --gutter: 20px;
  --section-y: 80px;
  --radius: 4px;   /* buttons and fields: squared-off, engineered look */

  color-scheme: dark;
}

/* ---------- 2. Base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* makes the hidden attribute always win */

a { color: var(--orange); text-underline-offset: 0.2em; }
a:hover { color: var(--orange-hi); }

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

/* Big headings: narrow, uppercase, tight. This is the "engineered" voice. */
h1, h2 {
  font-stretch: var(--narrow);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.95;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.4rem, 10vw, 4.5rem);
  margin-bottom: 0.55em;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

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

.section { padding-block: var(--section-y); }

.section-lead {
  color: var(--muted);
  max-width: 36rem;
  margin-top: -0.5rem;
  margin-bottom: 2.25rem;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--orange);
  color: var(--on-orange);
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-hi); color: var(--on-orange); }

/* Outlined button that fills white on hover */
.btn-outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--text); color: var(--bg); }

.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

.btn-small { min-height: 40px; padding: 8px 14px; font-size: 0.8rem; }
.btn-large { min-height: 56px; padding: 14px 28px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- 4. Header --------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s;
}
/* Added by main.js once you scroll past the top */
.site-header.is-solid {
  background: rgba(11, 19, 15, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.3rem;
  margin-right: auto;
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--orange) 0 62%, var(--green) 62% 100%);
}

.header-nav { display: none; }

/* ---------- 5. Hero (full-screen photo) -------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: 120px 56px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  z-index: -2;
}
/* Dark gradient so the white text stays readable over the photo */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(7, 13, 10, 0.7) 0%, transparent 28%),
    linear-gradient(to top, rgba(7, 13, 10, 0.97) 0%, rgba(7, 13, 10, 0.78) 45%, rgba(7, 13, 10, 0.5) 100%),
    linear-gradient(to right, rgba(7, 13, 10, 0.65), transparent 75%);
}

.hero h1 {
  font-size: clamp(3rem, 15vw, 7.5rem);
  line-height: 0.9;
  max-width: 11ch;
}
.hero-lead {
  margin-top: 22px;
  font-size: 1.125rem;
  color: #C9D4CC;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- 6. Three-point strip --------------------------------------- */
.strip {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.strip-grid { display: grid; }
.strip p {
  padding: 22px 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.strip p + p { border-top: 1px solid var(--line); }
.strip strong { color: var(--text); display: block; font-size: 1.05rem; }

/* ---------- 7. Problem (text + photo) ---------------------------------- */
.split { display: grid; gap: 40px; }
.big-text {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  line-height: 1.45;
  margin-bottom: 1.1em;
  max-width: 36rem;
}
.split-text p:not(.big-text) { color: var(--muted); max-width: 36rem; }
/* Hidden on phones to keep the page short; shown from tablet size up. */
.split-photo { display: none; }
@media (min-width: 760px) { .split-photo { display: block; } }
.split-photo img {
  width: 100%;
  height: auto; /* without this, the height="683" in the HTML stretches it */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.9) contrast(1.05);
}

/* ---------- 8. What's included ----------------------------------------- */
.included { background: var(--bg-deep); border-block: 1px solid var(--line); }
.included-grid { display: grid; gap: 40px; }
.included-group h3,
.quote-factors h3 {
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--orange);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.included-group:last-child h3 { border-bottom-color: var(--green); }

.check-list li {
  position: relative;
  padding: 13px 0 13px 32px;
  border-bottom: 1px solid var(--line);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 20px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------- 9. Industries (photo tiles) -------------------------------- */
.trade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.trade-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-raised);
  border-radius: 2px;
}
.trade-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}
.trade-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 13, 10, 0.92) 0%, rgba(7, 13, 10, 0.2) 55%, transparent 100%);
}
.trade-tile > span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  font-stretch: var(--narrow);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  line-height: 0.95;
}

/* The last tile is a link instead of a photo */
.trade-tile-ask { background: var(--orange); }
.trade-tile-ask::after { display: none; }
.trade-tile-ask a {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px;
  color: var(--on-orange);
  text-decoration: none;
}
.trade-tile-ask a:hover { background: var(--orange-hi); color: var(--on-orange); }
.ask-small { font-size: 0.95rem; line-height: 1.3; font-weight: 600; }
.ask-big {
  font-stretch: var(--narrow);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  line-height: 0.95;
}

/* ---------- 10. How it works ------------------------------------------- */
.how {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
}
/* Faint blueprint behind this section. PHOTO: public domain (CC0). */
.how-texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/blueprint.jpg") center / cover no-repeat;
  opacity: 0.07;
  filter: grayscale(1);
}
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 3.25rem;
  font-weight: 800;
  font-stretch: var(--narrow);
  line-height: 0.85;
  color: var(--orange);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); }

/* ---------- 11. Pricing ------------------------------------------------- */
.tiers {
  display: grid;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.tier { display: flex; flex-direction: column; padding: 28px 22px; }
.tier + .tier { border-top: 1px solid var(--line); }

.tier-name {
  font-size: 1.9rem;
  font-stretch: var(--narrow);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}
.tier-for { color: var(--muted); margin-top: 14px; }

/* What shapes your quote */
.quote-factors { margin: 48px 0 32px; }


/* ---------- 12. About --------------------------------------------------- */
.about-banner {
  position: relative;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.about-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  z-index: -2;
}
.about-banner-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--bg) 0%, rgba(11, 19, 15, 0.55) 40%, rgba(11, 19, 15, 0.15) 100%);
}
.about-banner-inner { padding-bottom: 8px; }
.about-banner h2 { margin-bottom: 0; font-size: clamp(2.6rem, 11vw, 5.5rem); max-width: 16ch; }

.about-body { padding-block: 28px var(--section-y); }
.about-lead { color: var(--muted); font-size: 1.2rem; max-width: 38rem; }

.people { display: grid; gap: 20px; margin-top: 36px; }
.person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.person-name {
  font-size: 2.25rem;
  font-weight: 800;
  font-stretch: var(--narrow);
  text-transform: uppercase;
  line-height: 1;
}
.person-role { color: var(--orange); font-weight: 700; margin: 6px 0 10px; }
.person p:last-child { color: var(--muted); }

/* Round photo with an initial underneath. If the photo file is missing,
   the <img> removes itself and the initial shows. */
.avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--forest);
  flex: none;
}
.avatar::before {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-stretch: var(--narrow);
  font-size: 1.6rem;
  color: var(--text);
}
.avatar img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.avatar-large { width: 88px; height: 88px; }
.avatar-large::before { font-size: 2.6rem; }

/* ---------- 13. FAQ ----------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; gap: 8px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--orange), var(--orange)) center / 14px 2px no-repeat,
    linear-gradient(var(--orange), var(--orange)) center / 2px 14px no-repeat;
}
.faq details[open] summary::after {
  background: linear-gradient(var(--orange), var(--orange)) center / 14px 2px no-repeat;
}
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 40rem; }

/* ---------- 14. Contact ------------------------------------------------- */
.contact { background: var(--bg-deep); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 36px; }
.check-list-plain li { border-bottom: 0; padding-block: 8px; }
.check-list-plain li::before { top: 15px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  background: var(--bg-raised);
  max-width: 24rem;
}
.contact-card-label { font-size: 0.85rem; color: var(--muted); }
.contact-card-name { font-weight: 800; font-size: 1.25rem; line-height: 1.2; }
.contact-card-role { color: var(--muted); font-size: 0.95rem; }

.quote-form {
  display: grid;
  gap: 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 22px 18px;
}
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 18px; }
fieldset.field { border: 0; margin: 0; padding: 0; }

label, legend { font-weight: 600; font-size: 0.98rem; padding: 0; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.875rem; margin-left: 4px; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* 16px+ stops iPhones from zooming in on tap */
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 48px;
}
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: #6F8276; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 123, 31, 0.25);
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(-45deg, transparent 50%, var(--muted) 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.9rem; }

.radio-row { display: flex; gap: 12px; margin-top: 4px; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}
.radio input { accent-color: var(--orange); width: 18px; height: 18px; margin: 0; }
.radio:has(input:checked) { border-color: var(--orange); }
.radio:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }

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

.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border: 1px solid var(--line); background: var(--bg); }
.form-status.is-success { border-color: var(--green); color: var(--green); }
.form-status.is-error   { border-color: var(--danger); color: var(--danger); }
.form-status.is-warning { border-color: var(--orange); color: var(--text); }

/* ---------- 15. Footer -------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 44px; color: var(--muted); }
.footer-inner { display: grid; gap: 20px; }
.footer-name { color: var(--text); font-weight: 900; font-stretch: 125%; font-size: 1.15rem; }
.footer-credit { font-size: 0.85rem; margin-top: 6px; }

/* ==========================================================================
   WIDER SCREENS
   ========================================================================== */

/* Large phones and up */
@media (min-width: 480px) {
  :root { --gutter: 24px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .quote-form { padding: 28px; }
}

/* Tablets and up */
@media (min-width: 760px) {
  :root { --section-y: 112px; --gutter: 40px; }

  .header-nav { display: flex; gap: 28px; margin-right: 8px; }
  .header-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
  }
  .header-nav a:hover { opacity: 1; color: var(--text); }

  .hero { padding-bottom: 88px; }

  .strip-grid { grid-template-columns: repeat(3, 1fr); }
  .strip p { padding: 28px 28px 28px 0; }
  .strip p + p { border-top: 0; border-left: 1px solid var(--line); padding-left: 28px; }

  .included-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .trade-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .trade-tile > span, .ask-big { font-size: 1.9rem; }
  .trade-tile > span, .trade-tile-ask a { left: 18px; right: 18px; bottom: 18px; }
  .trade-tile-ask a { padding: 18px; }

  .people { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer-meta { text-align: right; }
}

/* Laptops and up */
@media (min-width: 1000px) {
  .hero h1 { font-size: clamp(4rem, 6.6vw, 6.75rem); max-width: 13ch; }
  .split { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
  .steps { grid-template-columns: repeat(3, 1fr); column-gap: 40px; margin-top: 8px; }
  .step { border-bottom: 1px solid var(--line); }

  .tiers { grid-template-columns: repeat(3, 1fr); }
  .tier { padding: 34px 30px; }
  .tier + .tier { border-top: 0; border-left: 1px solid var(--line); }
  .quote-factors .check-list { columns: 2; column-gap: 56px; }
  .quote-factors .check-list li { break-inside: avoid; }

  .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }

  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
  .contact-intro { position: sticky; top: 104px; }
}

/* Respect people who've asked their device to reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
