/* Burcham & Sons Construction — Marketing site
   Industrial + tech aesthetic. Deep neutrals, burnt-orange accent, Space Grotesk display / Inter body.
*/

:root {
  --bg: #0b0a09;
  --bg-elev: #131211;
  --bg-elev-2: #1a1917;
  --surface: #1c1a17;
  --fg: #f5f2ec;
  --fg-dim: #b5aea3;
  --fg-mute: #8b857b;
  --border: #2b2724;
  --border-strong: #3a352f;

  --accent: #f97316;         /* burnt orange */
  --accent-2: #fb923c;
  --accent-fg: #0b0a09;

  --success: #10b981;
  --danger: #ef4444;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;

  --container: 1240px;
  --pad: clamp(20px, 4vw, 48px);

  --radius: 4px;
  --radius-lg: 8px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

.mono { font-family: var(--font-mono); font-size: 0.86em; letter-spacing: 0.02em; }

/* ================= HEADINGS ================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}

.btn--primary { background: var(--accent); color: var(--accent-fg); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-1px); color: var(--accent-fg); }

.btn--outline { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--ghost { background: transparent; color: var(--fg-dim); }
.btn--ghost:hover { color: var(--fg); }

.btn--lg { padding: 16px 28px; font-size: 15px; }

/* ================= NAV ================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 10, 9, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.nav__logo em { color: var(--accent); font-style: normal; margin: 0 2px; }

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-dim);
}
.nav__links a { color: var(--fg-dim); }
.nav__links a:hover { color: var(--fg); }

.nav__cta { display: flex; align-items: center; gap: 8px; }

.nav__menu {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
}
.nav__menu span {
  position: absolute;
  left: 10px; right: 10px; height: 2px;
  background: var(--fg); border-radius: 1px;
  transition: transform 0.2s ease;
}
.nav__menu span:nth-child(1) { top: 14px; }
.nav__menu span:nth-child(2) { top: 20px; }
.nav__menu span:nth-child(3) { top: 26px; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  padding-top: 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,10,9,0.45) 0%, rgba(11,10,9,0.05) 30%, rgba(11,10,9,0.6) 75%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11,10,9,0.7) 0%, rgba(11,10,9,0.1) 60%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 120px 96px;
  max-width: 900px;
}
.hero__title {
  font-size: clamp(48px, 8.4vw, 108px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 20px 0 24px;
}
.hero__title-accent { color: var(--accent); }
.hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--fg-dim);
  max-width: 640px;
  line-height: 1.55;
  margin-bottom: 36px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 72px; }

.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 24px 0 0;
  border-top: 1px solid var(--border-strong);
  max-width: 720px;
}
.hero__stats li { display: flex; flex-direction: column; gap: 2px; }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero__stats span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,4px);} }

/* ================= MARQUEE ================= */
.marquee {
  border-block: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-elev);
}
.marquee__track {
  display: flex;
  gap: 32px;
  align-items: center;
  white-space: nowrap;
  animation: scroll 42s linear infinite;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: -0.01em;
}
.marquee__track em { color: var(--accent); font-style: normal; font-size: 20px; }
@keyframes scroll { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ================= SECTIONS ================= */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--dark { background: var(--bg-elev); border-block: 1px solid var(--border); }

.section__head { max-width: 780px; margin-bottom: 72px; }
.section__head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
}
.section__title {
  font-size: clamp(38px, 5.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 12px;
}
.section__title span { color: var(--fg-mute); }
.section__title em { color: var(--accent); font-style: normal; }
.section__lede {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--fg-dim);
  max-width: 620px;
  margin-top: 20px;
  line-height: 1.6;
}

/* Reveal-on-scroll baseline */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ================= SERVICES ================= */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service {
  background: var(--bg);
  padding: 44px 40px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s var(--ease-out);
}
.service:hover { background: var(--bg-elev-2); }
.service__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.service h3 {
  font-size: 26px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.service p {
  color: var(--fg-dim);
  margin-bottom: 20px;
  font-size: 15px;
}
.service ul {
  list-style: none;
  padding: 0;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.service ul li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
  padding: 6px 0;
  letter-spacing: 0.02em;
}

/* ================= SPLIT ================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 620px;
}
.split__media { position: relative; overflow: hidden; background: var(--bg-elev); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body {
  padding: clamp(48px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  background: var(--bg-elev);
}
.split__body h2 {
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.05;
  margin-top: 8px;
}
.split__body p { color: var(--fg-dim); max-width: 520px; }
.split__list {
  list-style: none;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.split__list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  color: var(--fg-dim);
  font-size: 15px;
}
.split__list span {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  min-width: 84px;
  font-weight: 500;
}

/* ================= PROCESS ================= */
.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: process;
}
.process li {
  background: var(--bg);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.process li:hover { border-color: var(--accent); transform: translateY(-2px); }
.process__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.process h3 { font-size: 22px; letter-spacing: -0.01em; }
.process p { color: var(--fg-dim); font-size: 14px; }

/* ================= PORTAL ================= */
.portal__hero {
  margin-top: 24px;
  margin-bottom: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.portal__hero img { width: 100%; display: block; }

.portal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portal__card {
  background: var(--bg-elev);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.portal__card:hover { border-color: var(--accent); transform: translateY(-2px); }
.portal__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: rgba(249,115,22,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.portal__card h3 { font-size: 19px; letter-spacing: -0.01em; }
.portal__card p { color: var(--fg-dim); font-size: 14.5px; line-height: 1.55; }

/* ================= PORTFOLIO ================= */
.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 20px;
}
.portfolio__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.portfolio__item--tall { grid-row: span 2; }
.portfolio__item--wide { grid-column: span 2; }
.portfolio__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.portfolio__item:hover img { transform: scale(1.04); }
.portfolio__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 24px;
  background: linear-gradient(0deg, rgba(11,10,9,0.9) 0%, rgba(11,10,9,0) 100%);
  color: var(--fg);
}
.portfolio__meta h3 { font-size: 19px; letter-spacing: -0.01em; margin-block: 4px; }
.portfolio__meta span { font-family: var(--font-mono); font-size: 11px; color: var(--fg-mute); letter-spacing: 0.08em; text-transform: uppercase; }

/* ================= TESTIMONIAL ================= */
.testimonial {
  background: var(--bg-elev);
  border-block: 1px solid var(--border);
  padding: clamp(80px, 12vw, 140px) 0;
}
.testimonial blockquote { max-width: 900px; margin: 0 auto; text-align: center; }
.testimonial p {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 24px;
}
.testimonial cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
}

/* ================= QUOTE FORM ================= */
.quote { background: var(--bg-elev); border-top: 1px solid var(--border); }

.qform { max-width: 960px; }
.qform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.qform__field { display: flex; flex-direction: column; gap: 8px; }
.qform__field--full { grid-column: span 2; }
.qform__field span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.qform input, .qform select, .qform textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s var(--ease-out);
  width: 100%;
}
.qform textarea { resize: vertical; min-height: 140px; }
.qform input:focus, .qform select:focus, .qform textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.qform__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.qform__status {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
}
.qform__status.is-success { color: var(--success); }
.qform__status.is-error { color: var(--danger); }

/* ================= FOOTER ================= */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.footer__brand {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  color: var(--fg);
}
.footer__brand strong {
  font-family: var(--font-display);
  font-size: 18px;
  display: block;
  margin-bottom: 6px;
}
.footer__brand p { color: var(--fg-dim); font-size: 14px; max-width: 340px; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__cols a, .footer__cols p {
  display: block;
  font-size: 14px;
  color: var(--fg-dim);
  margin-bottom: 8px;
}

.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--fg-mute);
  font-size: 13px;
}
.footer__license em { color: var(--accent); font-style: normal; font-family: var(--font-mono); font-size: 12px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .nav__cta .btn--ghost { display: none; }

  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .services { grid-template-columns: 1fr; }
  .section__head--split { grid-template-columns: 1fr; gap: 24px; }
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 320px; }

  .process { grid-template-columns: 1fr; }
  .portal__grid { grid-template-columns: 1fr; }
  .portfolio { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .portfolio__item--tall, .portfolio__item--wide { grid-column: span 1; grid-row: auto; }

  .qform__grid { grid-template-columns: 1fr; }
  .qform__field--full { grid-column: span 1; }

  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; gap: 8px; }

  .hero__title { font-size: clamp(42px, 12vw, 68px); }
}

@media (max-width: 520px) {
  .footer__cols { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
