/* Northern Revival Contracting: tokens from Brand Guidelines v2, section 07 Reference */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("assets/fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("assets/fonts/BarlowCondensed-Bold.woff2") format("woff2"); }

:root {
  --color-navy: #0F1C2E;       /* Harbour Navy: primary text, headers */
  --color-blue: #0B56DF;       /* Hydro Blue: links, accents (matches the trucks) */
  --color-midnight: #051429;   /* Deepest dark */
  --color-cedar: #C8793A;      /* Highlights, CTAs. Never body text */
  --color-cedar-deep: #9E5A22; /* Small cedar text on light */
  --color-sawdust: #F4F1EA;    /* Warm backgrounds */
  --color-slate: #555555;      /* Secondary text */
  --color-fog: #D3D3D3;        /* Borders, rules */
  --color-white: #FFFFFF;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: Inter, Calibri, sans-serif;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-navy);
  background: var(--color-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); }

/* Headlines: Barlow Condensed, always uppercase, tracked 0.04em. Display / H1 / H2 = 48 / 32 / 22 px */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .04em; }
h1 { font-size: 48px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sawdust { background: var(--color-sawdust); }
.section-navy { background: var(--color-navy); color: var(--color-white); }

/* Label: Inter SemiBold, caps, +12% */
.label {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-cedar-deep);
  margin-bottom: 8px;
}
.section-navy .label { color: var(--color-cedar); }

.tagline {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--color-cedar);
  font-size: 18px;
  margin-bottom: 16px;
}

/* ---------- Buttons: navy = main action, cedar = one booking push, outline = secondary ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  text-align: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-navy { background: var(--color-navy); color: var(--color-white); }
.btn-navy:hover { background: var(--color-midnight); }
.btn-cedar { background: var(--color-cedar); color: var(--color-navy); }
.btn-cedar:hover { background: #d4884b; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--color-white); }
.btn-outline-light:hover { background: var(--color-white); color: var(--color-navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-fog);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 96px; }
.brand { display: block; }
.brand-logo { width: 128px; }
.brand-mark { display: none; width: 96px; }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { font-weight: 600; color: var(--color-navy); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--color-blue); }
.header-call { font-size: 16px; padding: 10px 18px; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--color-navy), var(--color-midnight));
  color: var(--color-white);
  padding: 96px 0;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 14em; }
.lead { font-size: 18px; color: rgba(255,255,255,.85); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-logo img { width: 100%; max-width: 440px; margin-left: auto; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.card {
  background: var(--color-white);
  border: 1px solid var(--color-fog);
  border-top: 4px solid var(--color-blue);
  border-radius: var(--radius);
  padding: 24px;
}
.card-icon { height: 56px; width: auto; margin-bottom: 16px; }
.card p { color: var(--color-slate); margin: 0; }
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.card-featured { border-top-color: var(--color-cedar); padding: 32px; }
.card-featured h3 { font-size: 28px; }
.card .card-tag { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--color-cedar-deep); margin: 0 0 12px; }
.card-svg { width: 56px; height: 56px; margin-bottom: 16px; fill: none; stroke: var(--color-navy); stroke-width: 3; stroke-linejoin: round; }
.card-featured > p:not(.card-tag) { margin-bottom: 16px; }
.card-list { margin: 0; padding-left: 20px; color: var(--color-slate); }
.card-list li { margin-bottom: 4px; }
.services-sub { margin-top: 48px; }
.services-grid-2 { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.promises { list-style: none; margin: 0; padding: 0; counter-reset: promise; }
.promises li {
  counter-increment: promise;
  background: var(--color-white);
  border-left: 4px solid var(--color-cedar);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 12px;
}
.promises li:last-child { margin-bottom: 0; }
.promises h3 { margin-bottom: 4px; }
.promises h3::before { content: "0" counter(promise) "  "; color: var(--color-cedar-deep); }
.promises p { margin: 0; color: var(--color-slate); }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-num {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-navy); color: var(--color-cedar);
  font-family: var(--font-head); font-weight: 700; font-size: 24px;
  margin-bottom: 16px;
}
.steps p { color: var(--color-slate); }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.section-navy p { color: rgba(255,255,255,.85); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.contact-list span { display: inline-block; width: 72px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--color-cedar); }
.contact-list a { color: var(--color-white); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: var(--color-white); color: var(--color-navy);
  padding: 32px; border-radius: var(--radius);
}
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; font-size: 16px;
  padding: 12px; border: 1px solid var(--color-fog); border-radius: var(--radius);
  background: var(--color-white); color: var(--color-navy);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--color-blue); border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-midnight); color: rgba(255,255,255,.75); padding: 48px 0; text-align: center; }
.footer-logo { width: 160px; margin: 0 auto 16px; }
.site-footer .tagline { font-size: 16px; }
.site-footer a { color: var(--color-white); text-decoration: none; }
.site-footer .small { font-size: 13px; opacity: .7; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .header-call { margin-left: auto; }
}
@media (max-width: 760px) {
  .featured-grid, .services-grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-inner, .about-inner, .contact-inner, .steps { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .header-inner { min-height: 72px; }
  .brand-logo { display: none; }
  .brand-mark { display: block; }
  .call-number { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Section heading row ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.section-head h2 { margin-bottom: 0; }
.section-intro { max-width: 26em; color: var(--color-slate); margin: 0; }

/* ---------- Our work: project galleries (navy caption bar + cedar tag, per brand guide) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card { background: var(--color-white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-fog); display: flex; flex-direction: column; }
.work-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto 1fr; }
.work-feature .work-cover { grid-row: 1 / span 2; aspect-ratio: auto; min-height: 420px; }
.work-cover { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 0; cursor: zoom-in; background: var(--color-fog); overflow: hidden; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-cover:hover img { transform: scale(1.03); }
.work-cover:focus-visible { outline: 3px solid var(--color-cedar); outline-offset: -3px; }
.work-count {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--color-navy); color: var(--color-white);
  font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; padding: 5px 9px; border-radius: 3px;
}
.work-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--color-navy); color: var(--color-white); padding: 14px 20px;
}
.work-bar h3 { margin: 0; font-size: 20px; }
.work-time { font-family: var(--font-head); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-cedar); white-space: nowrap; }
.work-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.work-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.work-thumb { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: zoom-in; background: var(--color-fog); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-thumb:hover img { opacity: .85; }
.work-thumb:focus-visible { outline: 3px solid var(--color-cedar); outline-offset: 1px; }
.work-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15,28,46,.65); color: var(--color-white); font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.work-note { color: var(--color-slate); margin: 0; }
.work-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.btn-sm { font-size: 15px; padding: 8px 16px; }
.btn-outline { border-color: var(--color-navy); color: var(--color-navy); background: transparent; }
.btn-outline:hover { background: var(--color-navy); color: var(--color-white); }
.work-cta { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; text-align: center; }
.work-cta p { margin: 0; font-weight: 600; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: var(--color-midnight); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lb[hidden] { display: none; }
.lb-stage { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100vh; padding: 56px 0 24px; }
.lb-media img, .lb-media video { max-width: 100%; max-height: calc(100vh - 140px); display: block; margin: 0 auto; border-radius: 4px; }
.lb-cap { color: rgba(255,255,255,.85); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }
.lb-nav, .lb-close { background: none; border: 0; color: var(--color-white); cursor: pointer; line-height: 1; }
.lb-nav { font-size: 56px; height: 100%; opacity: .8; }
.lb-nav:hover, .lb-close:hover { opacity: 1; color: var(--color-cedar); }
.lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }
.lb-close { position: absolute; top: 12px; right: 16px; font-size: 40px; opacity: .85; }
.lb.is-video .lb-nav { visibility: hidden; }
.lb button:focus-visible { outline: 2px solid var(--color-cedar); outline-offset: 2px; }

/* About now sits on white, so promise cards go Sawdust */
#about .promises li { background: var(--color-sawdust); }

/* Contact extras */
.contact-note { font-size: 14px; margin-top: 24px; padding: 14px 16px; border-left: 3px solid var(--color-cedar); background: rgba(255,255,255,.06); border-radius: var(--radius); }

@media (max-width: 900px) {
  .work-feature { display: flex; }
  .work-feature .work-cover { min-height: 0; aspect-ratio: 3 / 2; }
}
@media (max-width: 760px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .work-grid { grid-template-columns: 1fr; }
  .lb { grid-template-columns: 40px 1fr 40px; }
  .lb-nav { font-size: 40px; }
}
.form-status { margin: 0; font-size: 14px; font-weight: 600; min-height: 1.5em; color: var(--color-navy); }
.contact-form button:disabled { opacity: .6; cursor: wait; }
.form-thanks { text-align: center; padding: 32px 8px; }
.form-thanks h3 { font-size: 28px; }
.form-thanks p:last-child { color: var(--color-slate); margin: 0; }
