/* ============================================================
   JAG SYNERGY BUILDERS — premium dark
   Palette:  void #0B0B0C · panel #121214 · raised #17171A
             osha orange #FF6600 (accent only) · ember #C2551B
             bone #F2F0EB · steel #96959C · dim #5C5B63
   Type:     Montserrat (200–700) · IBM Plex Mono (annotations)
   ============================================================ */

:root {
  --void: #0B0B0C;
  --panel: #121214;
  --raised: #17171A;
  --orange: #FF6600;
  --ember: #C2551B;
  --bone: #F2F0EB;
  --steel: #96959C;
  --dim: #5C5B63;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-soft: rgba(255, 255, 255, 0.05);
  --bg-rgb: 11, 11, 12;
  --btn-ink: #0B0B0C;
  --nav-bg: rgba(11, 11, 12, 0.85);
  --nav-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  --ghost-border: rgba(255, 255, 255, 0.25);
  --scroll-thumb: #2E2E33;
  --scroll-thumb-h: #3C3C42;
  --body: 'Montserrat', 'Helvetica Neue', sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --pad: clamp(1.5rem, 6vw, 7rem);
  --nav-h: 84px;
}


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

::selection { background: var(--orange); color: var(--btn-ink); }

/* Slim theme-matched scrollbar */
html { scrollbar-color: var(--scroll-thumb) var(--void); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 6px; border: 2px solid var(--void); }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-h); }

/* JS drives all smooth scrolling; native smooth would double-animate it */
html { scroll-behavior: auto; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.mono {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  font-weight: 400;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.2rem;
  border: 1px solid var(--orange);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.2s ease, box-shadow 0.25s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-solid { background: var(--orange); color: #101013; }
.btn-solid:hover { background: transparent; color: var(--orange); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--ghost-border); }
.btn-ghost:hover { border-color: var(--bone); }
.btn-ghost-dark { background: transparent; color: var(--bone); border-color: var(--ghost-border); text-decoration: none; }
.btn-ghost-dark:hover { border-color: var(--orange); color: var(--orange); }
.btn-lg { padding: 1.15rem 2.8rem; }
.btn-block { width: 100%; }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--void);
  color: var(--steel);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem var(--pad);
  border-bottom: 1px solid var(--hairline-soft);
}
.utility-contacts { display: flex; gap: 2.2rem; }
.utility-link { text-decoration: none; transition: color 0.2s ease; font-size: 0.8rem; font-weight: 500; }
.utility-link:hover { color: var(--bone); }
.utility-phone { color: var(--orange); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0 var(--pad);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--bone);
  transition: box-shadow 0.35s ease;
}
.nav.scrolled { box-shadow: var(--nav-shadow); }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand-logo { height: 54px; width: auto; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--bone); }
.nav-cta { white-space: nowrap; }
.nav-toggle { display: none; }

/* ---------- Callout (drawing annotation) ---------- */
.callout {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--orange);
  margin-bottom: 1.6rem;
}
.callout-light { color: var(--orange); }
.callout-tick {
  width: 40px;
  height: 1px;
  background: currentColor;
  position: relative;
  flex-shrink: 0;
  opacity: 0.8;
}
.callout-tick::before,
.callout-tick::after {
  content: '';
  position: absolute;
  top: -3.5px;
  width: 1px;
  height: 8px;
  background: currentColor;
}
.callout-tick::before { left: 0; }
.callout-tick::after { right: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--void);
  color: var(--bone);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(var(--bg-rgb), 0.9) 18%, rgba(var(--bg-rgb), 0.35) 52%, rgba(var(--bg-rgb), 0.12)),
    linear-gradient(to top, var(--void) 2%, rgba(var(--bg-rgb), 0.1) 32%),
    url('assets/photos/custom-home.jpg');
  background-size: cover;
  background-position: center 65%;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h) - 42px);
  padding: clamp(3rem, 8vh, 6rem) var(--pad);
  max-width: 1280px;
}
.hero-callout { margin-bottom: 2.2rem; }
.hero-title {
  font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 2.4rem;
}
.hero-line { display: block; overflow: hidden; }
.hero-line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: riseUp 0.9s cubic-bezier(0.16, 0.8, 0.24, 1) forwards;
}
.hero-line:nth-child(1) > span { animation-delay: 0.1s; }
.hero-line:nth-child(2) > span { animation-delay: 0.22s; }
.hero-line:nth-child(3) > span { animation-delay: 0.34s; }
.hero-line:nth-child(4) > span { animation-delay: 0.46s; }
@keyframes riseUp { to { transform: translateY(0); } }

.accent { color: var(--orange); }

.hero-sub {
  max-width: 540px;
  color: var(--bone);
  font-size: 0.98rem;
  font-weight: 400;
  margin-bottom: 3rem;
  text-shadow: 0 1px 14px rgba(var(--bg-rgb), 0.9), 0 0 4px rgba(var(--bg-rgb), 0.6);
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; margin-bottom: 2rem; }
.hero-call {
  color: var(--bone);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 5px;
  transition: color 0.2s ease;
}
.hero-call:hover { color: var(--orange); }



/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) var(--pad); }
.section-dark { background: var(--panel); }

.section-head { max-width: 820px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-title {
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.section-sub { color: var(--steel); max-width: 560px; font-size: 0.96rem; font-weight: 300; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--panel);
  border-radius: 12px;
  padding: 2.8rem 2.3rem 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: background 0.35s ease;
}
.service-card:hover { background: var(--raised); }
.service-icon {
  width: 40px;
  height: 40px;
  color: var(--dim);
  transition: color 0.35s ease;
}
.service-card:hover .service-icon { color: var(--orange); }
.service-card h3 {
  font-weight: 500;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.service-card p { color: var(--steel); font-size: 0.88rem; flex-grow: 1; }
.service-range {
  color: var(--dim);
  font-size: 0.56rem;
  border-top: 1px solid var(--hairline-soft);
  padding-top: 0.9rem;
}
.service-link {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-underline-offset: 5px;
  font-size: 0.85rem;
  font-weight: 500;
  align-self: flex-start;
  transition: color 0.25s ease;
}
.service-link:hover { color: var(--orange); }


/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  max-width: 1280px;
}
.about-copy p { margin-bottom: 1.2rem; color: var(--steel); font-size: 0.96rem; }
.about-points { list-style: none; margin: 2.2rem 0 2.6rem; }
.about-points li {
  padding: 1rem 0 1rem 1.8rem;
  border-top: 1px solid var(--hairline-soft);
  position: relative;
  font-size: 0.9rem;
  color: var(--steel);
}
.about-points li:last-child { border-bottom: 1px solid var(--hairline-soft); }
.about-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.55rem;
  width: 8px;
  height: 1px;
  background: var(--orange);
}
.about-points strong { color: var(--bone); font-weight: 500; }

.about-panel { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: calc(var(--nav-h) + 32px); }
.about-photo {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.9);
}
.about-badge {
  background: var(--panel);
  border-radius: 12px;
  color: var(--bone);
  padding: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.about-badge-icon { width: 44px; height: 44px; color: var(--ember); flex-shrink: 0; }
.about-badge .mono { line-height: 2.2; font-size: 0.58rem; color: var(--steel); }
.about-quote {
  background: var(--panel);
  border-radius: 12px;
  padding: 2.2rem;
}
.about-quote blockquote {
  font-weight: 300;
  font-size: 1.12rem;
  line-height: 1.65;
  margin-bottom: 1.4rem;
  color: var(--bone);
}
.quote-attrib { color: var(--dim); font-size: 0.82rem; font-weight: 500; }

/* ---------- Process (scroll-driven sequence) ---------- */
.process-wrap {
  --rail-pad: 3.4rem;
  position: relative;
  max-width: 1020px;
  padding-left: var(--rail-pad);
}
.process-rail {
  position: absolute;
  left: 8px;
  top: 2.6rem;
  bottom: 2.6rem;
  width: 1px;
  background: var(--hairline);
}
.process-rail-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--ember), var(--orange));
}
.process-list { list-style: none; }
.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  gap: 2.5rem;
  align-items: baseline;
  padding: 2.6rem 0;
  border-top: 1px solid var(--hairline-soft);
  opacity: 0.4;
  transition: opacity 0.6s ease;
}
.process-step:last-child { border-bottom: 1px solid var(--hairline-soft); }
.process-step::before {
  content: '';
  position: absolute;
  left: calc(3px - var(--rail-pad));
  top: 2.85rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--void);
  border: 1px solid var(--dim);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.process-step.active { opacity: 1; }
.process-step.active::before {
  background: var(--orange);
  border-color: var(--orange);
}
.step-num {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--dim);
  letter-spacing: 0.2em;
  transition: color 0.4s ease;
}
.process-step.active .step-num { color: var(--orange); }
.step-body h3 {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}
.step-body p { color: var(--steel); font-size: 0.92rem; max-width: 540px; }
.step-dim { color: var(--dim); font-size: 0.56rem; text-align: right; }


/* ---------- Service area ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.areas-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hairline-soft);
  border-left: 1px solid var(--hairline-soft);
  border-radius: 12px;
  overflow: hidden;
}
.areas-list li {
  padding: 1.25rem 1.6rem;
  border-bottom: 1px solid var(--hairline-soft);
  border-right: 1px solid var(--hairline-soft);
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--steel);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; }
.faq-item { border-top: 1px solid var(--hairline-soft); }
.faq-item:last-child { border-bottom: 1px solid var(--hairline-soft); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.7rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 400;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  color: var(--bone);
  transition: color 0.2s ease;
}
.faq-item summary:hover { color: var(--orange); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
  font-style: normal;
  font-family: var(--mono);
  color: var(--ember);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item p {
  padding: 0 2.5rem 1.8rem 0;
  color: var(--steel);
  font-size: 0.9rem;
  max-width: 720px;
}
.faq-item[open] p { animation: faqIn 0.35s ease; }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Estimate ---------- */
.estimate {
  background: var(--panel);
  color: var(--bone);
  border-top: 2px solid var(--orange);
}
.estimate-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  max-width: 1280px;
}
.estimate-copy p { max-width: 460px; margin-bottom: 2.4rem; color: var(--steel); font-size: 0.96rem; }
.estimate-direct { display: flex; flex-direction: column; }
.direct-line {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--hairline-soft);
  text-decoration: none;
}
.direct-line:last-child { border-bottom: 1px solid var(--hairline-soft); }
.direct-label { font-size: 0.78rem; font-weight: 500; color: var(--dim); }
.direct-value { font-weight: 400; font-size: 1.1rem; letter-spacing: 0.04em; transition: color 0.2s ease; }
.direct-line:hover .direct-value { color: var(--orange); }

.estimate-form {
  background: var(--void);
  border-radius: 16px;
  color: var(--bone);
  padding: clamp(2rem, 4.5vw, 3.2rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.55rem; }
.field-label { color: var(--steel); font-size: 0.8rem; font-weight: 500; }
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 300;
  font-size: 0.94rem;
  padding: 0.7rem 0.1rem;
  transition: border-color 0.25s ease;
}
.field select { cursor: pointer; }
.field select option { background: var(--panel); color: var(--bone); }
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--orange);
}
.field select:invalid { color: var(--dim); }
.form-note { color: var(--dim); text-align: center; font-size: 0.78rem; }
.form-success { color: var(--orange); text-align: center; font-size: 0.88rem; font-weight: 500; }
.form-error { color: #E05D5D; text-align: center; font-size: 0.88rem; font-weight: 500; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Footer ---------- */
.footer {
  background: var(--void);
  color: var(--bone);
  padding: 5rem var(--pad) 2.5rem;
  border-top: 1px solid var(--hairline-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
}
.footer-logo { width: 210px; height: auto; margin-bottom: 1.4rem; }
.footer-tag { color: var(--dim); font-size: 0.85rem; font-weight: 300; }
.footer-links { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-links a {
  text-decoration: none;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--bone); }
.footer-contact { display: flex; flex-direction: column; gap: 0.9rem; color: var(--steel); font-size: 0.8rem; }
.footer-contact a { text-decoration: none; transition: color 0.25s ease; }
.footer-contact a:hover { color: var(--orange); }
.footer-legal {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 1.8rem;
  color: var(--dim);
  font-size: 0.78rem;
}

/* ---------- Mobile CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  gap: 0.5rem;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  padding: 0.7rem;
  border-top: 1px solid var(--hairline);
}
.mobile-cta .btn { flex: 1; padding: 0.9rem 0.5rem; font-size: 0.62rem; }

/* ---------- Scroll progress ---------- */
.progress-rule {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--ember), var(--orange));
  z-index: 200;
  pointer-events: none;
}

/* ---------- Reveal on scroll ----------
   Content is always visible; motion is a y-offset only, so a reveal that
   never fires still leaves a fully readable page. */
.reveal {
  transform: translateY(22px);
  transition: transform 0.9s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.reveal.in { transform: none; }

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 1px solid var(--orange);
  outline-offset: 4px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-line > span { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  body::before, body::after { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1360px) {
  .nav-links { gap: 1.4rem; }
  .nav-links a { font-size: 0.62rem; }
}

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .about-grid, .estimate-grid, .areas-grid { grid-template-columns: 1fr; }
  .about-panel { position: static; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span {
    width: 24px;
    height: 1px;
    background: var(--bone);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    padding: 1.75rem var(--pad) 2.25rem;
    border-bottom: 1px solid var(--hairline);
    gap: 1.4rem;
  }
}

@media (max-width: 760px) {
  .brand-logo { height: 42px; }
  .utility-bar { justify-content: center; }
  .utility-license { display: none; }
  .utility-link { white-space: nowrap; }
  .utility-contacts { gap: 1.4rem; }
  .nav-cta { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .process-wrap { --rail-pad: 2rem; }
  .process-step { grid-template-columns: 48px 1fr; gap: 1.25rem; }
  .step-dim { display: none; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 68px; }
  .areas-list { grid-template-columns: 1fr; }
}
