/* NorthForge Detailing — shared styles
   Design tokens ------------------------------------------------ */
:root{
  --paper:   #FFFFFF;
  --paper-2: #F2F5FA;
  --ink:     #10233F;
  --blue:    #2E6BF0;
  --blue-deep:#0B1E3D;
  --steel:   #5C6B84;
  --steel-2: #DCE3EE;
  --ember:   #2E6BF0;
  --white:   #FFFFFF;

  --display: 'Space Grotesk', sans-serif;
  --body:    'Inter', sans-serif;
  --mono:    'IBM Plex Mono', monospace;

  --maxw: 1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img,svg{ max-width:100%; display:block; }
a{ color:var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--ember);
  outline-offset:2px;
}

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 28px;
}

h1,h2,h3{
  font-family:var(--display);
  font-weight:600;
  line-height:1.12;
  margin:0 0 .5em;
  color:var(--blue-deep);
}
h1{ font-size:clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing:-.01em; }
h2{ font-size:clamp(1.5rem, 2.6vw, 2rem); }
h3{ font-size:1.15rem; }
p{ margin:0 0 1em; max-width:62ch; color:var(--ink); }
.lede{ font-size:1.15rem; color:#3B4453; max-width:46ch; }

.mono{ font-family:var(--mono); }

/* Header / title-block nav -------------------------------------- */
.site-header{
  border-bottom:1px solid var(--ink);
  background:var(--paper);
  position:sticky; top:0; z-index:20;
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 0;
}
.wordmark{
  display:inline-flex;
  align-items:center;
  gap:14px;
  font-family:var(--display);
  font-weight:600;
  font-size:2rem;
  color:var(--blue-deep);
  text-decoration:none;
  letter-spacing:-.01em;
}
.logo-mark{ flex-shrink:0; }
.wordmark span{ color:var(--ember); }
.nav-links{
  display:flex; gap:28px; list-style:none; margin:0; padding:0;
}
.nav-links a{
  color:var(--ink);
  text-decoration:none;
  font-size:.95rem;
  padding-bottom:4px;
  border-bottom:2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{
  border-bottom-color:var(--ember);
}
.nav-toggle{ display:none; }

.titleblock{
  border-top:1px solid var(--ink);
  border-bottom:1px solid var(--steel-2);
  background:var(--paper);
  font-family:var(--mono);
  font-size:.72rem;
  color:var(--steel);
  letter-spacing:.02em;
}
.titleblock .wrap{
  display:flex; gap:24px; padding:6px 28px; overflow-x:auto;
}

/* Buttons --------------------------------------------------------- */
.btn{
  display:inline-block;
  font-family:var(--body);
  font-weight:600;
  font-size:.95rem;
  padding:12px 22px;
  text-decoration:none;
  border:1.5px solid var(--blue-deep);
  color:var(--blue-deep);
  background:transparent;
  cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover{ background:var(--blue-deep); color:var(--white); }
.btn-primary{
  background:var(--ember);
  border-color:var(--ember);
  color:var(--white);
}
.btn-primary:hover{ background:#1E4FC0; border-color:#1E4FC0; }
.btn-row{ display:flex; gap:14px; flex-wrap:wrap; margin-top:8px; }

/* Hero — video background, ~65% of viewport height ------------------ */
.hero-video{
  position:relative;
  height:68vh;
  min-height:460px;
  max-height:820px;
  overflow:hidden;
  display:flex;
  align-items:center;
  background:var(--blue-deep);
}
.hero-video-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 30%;
}
.hero-video-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(100deg,
    rgba(11,30,61,.90) 0%,
    rgba(11,30,61,.72) 38%,
    rgba(11,30,61,.35) 68%,
    rgba(11,30,61,.15) 100%);
}
.hero-video-content{
  position:relative;
  z-index:2;
  max-width:640px;
}
.hero-video-content h1,
.hero-video-content .lede{ color:#FFFFFF; }
.hero-video-content .lede{ color:#D6DFEC; }
.btn-on-dark{
  border-color:#FFFFFF;
  color:#FFFFFF;
}
.btn-on-dark:hover{ background:#FFFFFF; color:var(--blue-deep); }

@media (max-width:640px){
  .hero-video{ height:78vh; }
  .hero-video-bg{ object-position:center 25%; }
}

/* Section rhythm ------------------------------------------------------ */
section{ padding:56px 0; }
.section-alt{ background:var(--paper); border-top:1px solid var(--steel-2); border-bottom:1px solid var(--steel-2); }
.section-dark{ background:var(--blue-deep); color:var(--white); }
.section-dark h2, .section-dark h3{ color:var(--white); }
.section-dark p{ color:#C9D3E0; }
.section-head{ max-width:56ch; margin-bottom:32px; }

/* Cards / grids ---------------------------------------------------- */
.grid{
  display:grid;
  gap:1px;
  background:var(--ink);
  border:1px solid var(--ink);
}
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.card{
  background:var(--paper);
  padding:26px 24px;
}
.card .num{
  font-family:var(--mono);
  color:var(--ember);
  font-size:.85rem;
  display:block;
  margin-bottom:10px;
}
.card p{ color:var(--steel); font-size:.96rem; margin-bottom:0; }

/* Schedule / list table (echoes a drawing index) --------------------- */
.schedule{
  width:100%;
  border-collapse:collapse;
  font-size:.96rem;
}
.schedule th{
  text-align:left;
  font-family:var(--mono);
  font-size:.72rem;
  font-weight:500;
  color:var(--steel);
  text-transform:uppercase;
  letter-spacing:.06em;
  border-bottom:1px solid var(--ink);
  padding:10px 12px;
}
.schedule td{
  padding:16px 12px;
  border-bottom:1px solid var(--steel-2);
  vertical-align:top;
}
.schedule td:first-child{
  font-family:var(--mono);
  color:var(--ember);
  white-space:nowrap;
}

/* Process steps (genuine sequence) ------------------------------------ */
.steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}
.step{ border-top:2px solid var(--ember); padding-top:14px; }
.step .step-no{
  font-family:var(--mono);
  color:var(--steel);
  font-size:.8rem;
}

/* Forms --------------------------------------------------------------- */
form{ max-width:560px; }
.field{ margin-bottom:20px; }
label{
  display:block;
  font-size:.85rem;
  font-weight:600;
  margin-bottom:6px;
  color:var(--blue-deep);
}
input, textarea, select{
  width:100%;
  border:1.5px solid var(--ink);
  background:var(--white);
  padding:11px 12px;
  font-family:var(--body);
  font-size:1rem;
  color:var(--ink);
}
textarea{ resize:vertical; min-height:120px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* Footer ---------------------------------------------------------------- */
.site-footer{
  background:var(--blue-deep);
  color:#B9C4D4;
  padding:40px 0 28px;
  font-size:.9rem;
}
.site-footer a{ color:#DCE4EE; }
.footer-row{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:24px;
  border-bottom:1px solid #33455F;
  padding-bottom:24px; margin-bottom:18px;
}
.footer-cols{ display:flex; gap:56px; flex-wrap:wrap; }
.footer-cols h4{
  font-family:var(--mono);
  font-size:.75rem;
  color:#8CA0BC;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin:0 0 10px;
}
.footer-cols ul{ list-style:none; margin:0; padding:0; }
.footer-cols li{ margin-bottom:6px; }
.fine{ color:#7488A3; font-size:.8rem; }

/* Page hero (secondary pages) -------------------------------------- */
.page-head{ padding:48px 0 40px; border-bottom:1px solid var(--ink); }
.page-head .lede{ margin-top:10px; }

/* Steel structure video (Pixabay Content License — free for commercial
   use, no attribution required) --------------------------------------- */
/* (steel-structure.mp4 is now used as the hero background, see
   .hero-video above — Pixabay Content License, free for commercial
   use, no attribution required) */
@media (max-width:860px){
  .hero-grid{ grid-template-columns:1fr; }
  .grid-3, .grid-2{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr 1fr; }
  .field-row{ grid-template-columns:1fr; }
  .footer-row{ flex-direction:column; }
}
@media (max-width:640px){
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    background:var(--paper);
    border-bottom:1px solid var(--ink);
    flex-direction:column;
    padding:16px 28px;
    display:none;
    gap:16px;
  }
  .nav-links.open{ display:flex; }
  .nav-toggle{
    display:inline-block;
    background:none; border:1px solid var(--ink);
    padding:8px 12px; font-family:var(--mono); font-size:.8rem;
    cursor:pointer; color:var(--ink);
  }
  .steps{ grid-template-columns:1fr; }
  .titleblock .wrap{ gap:16px; }
}

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