/* ==========================================================================
   Magna Builders LLC — site styles
   Palette and type follow the brand sheet.
   Amber #FFB020 · Orange #FF6A00 · Ember #E22400 · Deep ember #7A0D00
   Charcoal #1A1410 · Paper #FBF6F0
   ========================================================================== */

:root {
  --amber: #FFB020;
  --orange: #FF6A00;
  --ember: #E22400;
  --deep-ember: #7A0D00;
  --charcoal: #1A1410;
  --charcoal-lift: #241B15;
  --charcoal-line: #3A2C23;
  --paper: #FBF6F0;
  --paper-dim: #EDE5DB;
  --ink: #1A1410;
  --ink-soft: #5C4E44;
  --ink-faint: #8A7A6D;

  --magma: linear-gradient(180deg, var(--amber) 0%, var(--orange) 42%, var(--ember) 74%, var(--deep-ember) 100%);
  --magma-h: linear-gradient(90deg, var(--amber) 0%, var(--orange) 50%, var(--ember) 100%);

  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 14px;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

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

/* --------------------------------------------------------------------------
   Utility type
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--magma-h);
  flex: none;
}
.eyebrow.on-dark { color: var(--amber); }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.28rem; line-height: 1.25; letter-spacing: -0.015em; }

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 1.9vw, 1.24rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}
.lede.on-dark { color: #C8B8AA; }

.measure { max-width: 62ch; }

/* --------------------------------------------------------------------------
   Dimension rule — the takeoff/measured-drawing motif used as a divider
   -------------------------------------------------------------------------- */

.dim-rule {
  --dim-color: var(--charcoal-line);
  position: relative;
  height: 1px;
  background: var(--dim-color);
  margin: 0;
  border: 0;
}
.dim-rule::before,
.dim-rule::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 11px;
  background: var(--dim-color);
}
.dim-rule::before { left: 0; }
.dim-rule::after { right: 0; }
.dim-rule.light { --dim-color: #D8CCC0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.btn-primary {
  background: var(--magma-h);
  color: #fff;
  box-shadow: 0 6px 20px -8px rgba(226, 36, 0, .75);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(226, 36, 0, .85); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(251, 246, 240, .28);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: #CFC2B5;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(26, 20, 16, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--charcoal-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg, .brand img { width: 34px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.brand-sub {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--orange);
  margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #C8B8AA;
  transition: color .15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--amber); }

/* The quote button lives in the mobile menu only; on desktop the phone number
   is the primary header action so the bar stays uncluttered. */
.nav .btn { display: none; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--paper);
  padding: 10px 16px;
  border: 1px solid var(--charcoal-line);
  border-radius: 7px;
  transition: border-color .15s ease, color .15s ease;
}
.header-cta:hover { border-color: var(--orange); color: var(--amber); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--charcoal-line);
  border-radius: 7px;
  padding: 9px 11px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  margin: 3px 0;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--charcoal);
    border-bottom: 1px solid var(--charcoal-line);
    padding: 6px var(--gutter) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--charcoal-line); font-size: 16px; }
  .nav .btn { display: inline-flex; margin-top: 16px; }
}

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

.band { padding: clamp(64px, 9vw, 108px) 0; }
.band-dark { background: var(--charcoal); color: var(--paper); }
.band-tint { background: var(--paper-dim); }
.band-tight { padding: clamp(48px, 6vw, 72px) 0; }

.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--paper); }

.section-head { max-width: 62ch; margin-bottom: 48px; }

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

.hero {
  position: relative;
  background: var(--charcoal);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(72px, 11vw, 132px) 0 clamp(56px, 8vw, 96px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 420px at 78% 12%, rgba(255, 106, 0, .22), transparent 62%),
    radial-gradient(540px 380px at 8% 88%, rgba(122, 13, 0, .34), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(251, 246, 240, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 246, 240, .035) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero .shell { position: relative; z-index: 2; }

.hero h1 { max-width: 16ch; }
.hero h1 .flame {
  background: var(--magma-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { margin-top: 26px; margin-bottom: 34px; color: #C8B8AA; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(255, 176, 32, .3);
  background: rgba(255, 176, 32, .07);
  border-radius: 100px;
  padding: 7px 15px;
  margin-bottom: 30px;
}
.hero-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  flex: none;
}

/* Hero footer strip — measured readout */
.hero-strip {
  margin-top: clamp(48px, 7vw, 84px);
  padding-top: 26px;
  border-top: 1px solid var(--charcoal-line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
}
.strip-item .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 7px;
}
.strip-item .v {
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   Two-track split (construction / takeoff)
   -------------------------------------------------------------------------- */

.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 800px) { .tracks { grid-template-columns: 1fr; } }

.track {
  position: relative;
  background: var(--paper);
  border: 1px solid #E2D8CC;
  border-radius: var(--radius);
  padding: 38px 34px 34px;
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.track::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--magma-h);
}
.track:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(26, 20, 16, .45); border-color: #CFC2B5; }
.track .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 14px;
}
.track p { color: var(--ink-soft); }
.track .track-link {
  margin-top: auto;
  padding-top: 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ember);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.track .track-link:hover { gap: 12px; }
.track .track-link span { transition: transform .18s ease; }

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid #E2D8CC;
  border-radius: var(--radius);
  background: var(--paper);
  padding: 30px 28px;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--orange); transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

.card-dark {
  border-color: var(--charcoal-line);
  background: var(--charcoal-lift);
}
.card-dark p { color: #B8A99C; }
.card-dark:hover { border-color: var(--orange); }

.card-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--ember);
}
.card-dark .card-icon { color: var(--amber); }

/* --------------------------------------------------------------------------
   Process — a real sequence, so it is numbered
   -------------------------------------------------------------------------- */

.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid #D8CCC0;
  align-items: start;
}
.step:first-child { border-top: 1px solid #D8CCC0; }
.band-dark .step, .band-dark .step:first-child { border-color: var(--charcoal-line); }

.step-n {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ember);
  padding-top: 5px;
}
.band-dark .step-n { color: var(--amber); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); margin: 0; max-width: 60ch; }
.band-dark .step p { color: #B8A99C; }

@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step-n { padding-top: 0; }
}

/* --------------------------------------------------------------------------
   Pricing / rate table
   -------------------------------------------------------------------------- */

.rates {
  border: 1px solid var(--charcoal-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.rate-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--charcoal-line);
  align-items: center;
}
.rate-row:last-child { border-bottom: 0; }
.rate-row .name { font-weight: 700; font-size: 16px; }
.rate-row .note { display: block; font-weight: 400; font-size: 14px; color: #B8A99C; margin-top: 4px; }
.rate-row .price {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--amber);
  text-align: right;
}
@media (max-width: 560px) {
  .rate-row { grid-template-columns: 1fr; gap: 8px; }
  .rate-row .price { text-align: left; }
}

/* --------------------------------------------------------------------------
   Checklist
   -------------------------------------------------------------------------- */

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: 16px;
}
.band-dark .checks li { color: #B8A99C; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  background: var(--magma-h);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Split layout
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--charcoal);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 92px) 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 340px at 50% 120%, rgba(226, 36, 0, .28), transparent 70%);
}
.cta-band .shell { position: relative; z-index: 2; text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; margin-bottom: 32px; }
.cta-band .btn-row { justify-content: center; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(34px, 6vw, 68px);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-line {
  display: block;
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid #D8CCC0;
}
.contact-line:first-of-type { border-top: 1px solid #D8CCC0; }
.contact-line .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 6px;
}
.contact-line .v { font-size: 19px; font-weight: 700; color: var(--ink); word-break: break-word; }
.contact-line:hover .v { color: var(--ember); }

.form-card {
  border: 1px solid #E2D8CC;
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(26px, 4vw, 38px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #D8CCC0;
  border-radius: 8px;
  padding: 13px 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .16);
}
.form-note { font-size: 13.5px; color: var(--ink-faint); margin-top: 16px; }

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

.site-footer {
  background: var(--charcoal);
  color: #B8A99C;
  padding: 58px 0 30px;
  font-size: 14.5px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--charcoal-line);
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

.footer-top h4 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-links a { text-decoration: none; color: #B8A99C; }
.footer-links a:hover { color: var(--amber); }
.footer-blurb { max-width: 38ch; margin-top: 18px; color: #8A7A6D; font-size: 14px; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Focus visibility
   -------------------------------------------------------------------------- */

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
