/* ==========================================================================
   TRAK Contracting — Stylesheet
   Sections: Tokens · Base · Layout · Header/Nav · Hero · Sections ·
             Services · Process · Stats Strip · Booking · Footer · Responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root{
  --ink:#141416;
  --ink-soft:#26262a;
  --red:#C8202B;
  --red-deep:#8E1620;
  --paper:#F1EFEA;
  --paper-dim:#E7E4DC;
  --steel:#6B6D70;
  --steel-light:#9A9C9E;
  --white:#FFFFFF;
  --line: rgba(20,20,22,0.12);
  --radius: 2px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter', sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font:inherit; }

.display{
  font-family:'Anton', sans-serif;
  text-transform:uppercase;
  letter-spacing:0.01em;
  line-height:0.92;
}
.mono{
  font-family:'IBM Plex Mono', monospace;
  text-transform:uppercase;
  letter-spacing:0.14em;
  font-weight:600;
}

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

:focus-visible{
  outline:3px solid var(--red);
  outline-offset:2px;
}

.skip-link{
  position:absolute;
  left:12px;
  top:-48px;
  background:var(--ink);
  color:var(--paper);
  padding:10px 16px;
  border-radius:var(--radius);
  z-index:100;
  transition:top 0.15s ease;
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
}
.skip-link:focus{ top:12px; }

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

/* ---------- Ruler / tape-measure signature ---------- */
.ruler{
  width:100%;
  height:26px;
  background:var(--ink);
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
}
.ruler-track{
  display:flex;
  align-items:flex-end;
  height:100%;
  animation:rulerScroll 26s linear infinite;
  will-change:transform;
}
@keyframes rulerScroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-480px); }
}
.ruler-tick{
  width:16px;
  height:9px;
  border-left:1.5px solid rgba(241,239,234,0.35);
  flex-shrink:0;
  position:relative;
}
.ruler-tick.mid{ height:14px; border-left-color:rgba(241,239,234,0.55); }
.ruler-tick.major{ height:20px; border-left-color:var(--red); }
.ruler-tick.major .num{
  position:absolute;
  top:-16px;
  left:2px;
  font-family:'IBM Plex Mono', monospace;
  font-size:9px;
  color:var(--steel-light);
}

/* ---------- Header / Nav ---------- */
header{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--paper);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 32px;
  max-width:var(--container);
  margin:0 auto;
  min-height:var(--header-h);
}
.logo{ display:flex; align-items:center; }
.logo img{ height:32px; width:auto; display:block; }

.nav-links{
  display:flex;
  gap:36px;
  align-items:center;
}
.nav-links a{
  font-size:14px;
  font-weight:600;
  color:var(--ink-soft);
  padding-bottom:3px;
  transition:color 0.15s ease;
}
.nav-links a:hover{ color:var(--red); }

.nav-call{ display:flex; align-items:center; gap:10px; }
.social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  color:var(--ink-soft);
  border:1.5px solid var(--line);
  border-radius:50%;
  transition:color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  flex-shrink:0;
}
.social-link:hover{ color:var(--red); border-color:var(--red); transform:translateY(-1px); }
.nav-call .num{ font-family:'IBM Plex Mono', monospace; font-weight:600; font-size:15px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 26px;
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:0.1em;
  text-transform:uppercase;
  border-radius:var(--radius);
  border:2px solid transparent;
  cursor:pointer;
  transition:transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--red); color:var(--white); border-color:var(--red); }
.btn-primary:hover{ background:var(--red-deep); border-color:var(--red-deep); transform:translateY(-1px); }
.btn-dark{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.btn-dark:hover{ background:var(--ink-soft); transform:translateY(-1px); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:var(--paper); }
.btn-sm{ padding:10px 18px; font-size:11.5px; }

/* Mobile menu toggle */
.menu-toggle{
  display:none;
  width:40px;
  height:40px;
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  background:transparent;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex-shrink:0;
}
.menu-toggle svg{ width:20px; height:20px; }
.menu-toggle[aria-expanded="true"] .icon-open{ display:none; }
.menu-toggle[aria-expanded="false"] .icon-close{ display:none; }

.mobile-panel{
  display:none;
  flex-direction:column;
  gap:2px;
  background:var(--paper);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.mobile-panel.open{ display:flex; }
.mobile-panel a{
  padding:16px 32px;
  font-size:15px;
  font-weight:600;
  color:var(--ink-soft);
  border-bottom:1px solid var(--line);
}
.mobile-panel a:last-of-type{ border-bottom:none; }
.mobile-panel .mobile-call{
  padding:16px 32px;
  display:flex;
  gap:12px;
}

/* ---------- Hero ---------- */
.hero{ padding:88px 0 64px; position:relative; }
.hero-grid{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:56px;
  align-items:center;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  letter-spacing:0.16em;
  color:var(--red);
  font-weight:600;
  margin-bottom:22px;
}
.eyebrow::before{ content:""; width:22px; height:2px; background:var(--red); }
h1.hero-head{ font-size:clamp(40px, 6.4vw, 84px); color:var(--ink); }
h1.hero-head .accent{ color:var(--red); }
.hero-sub{
  margin-top:24px;
  font-size:18px;
  color:var(--steel);
  max-width:44ch;
  line-height:1.65;
}
.hero-actions{ margin-top:36px; display:flex; gap:16px; flex-wrap:wrap; }
.hero-meta{ margin-top:40px; display:flex; gap:28px; flex-wrap:wrap; }
.hero-meta .item{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  color:var(--steel);
  letter-spacing:0.06em;
}
.hero-meta .item b{ color:var(--ink); }

.blueprint{
  background:var(--ink);
  border-radius:var(--radius);
  aspect-ratio:4/5;
  position:relative;
  overflow:hidden;
  background-image:
    linear-gradient(rgba(241,239,234,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,239,234,0.06) 1px, transparent 1px);
  background-size:28px 28px;
}
.blueprint::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 30% 20%, rgba(200,32,43,0.28), transparent 55%);
}
.bp-frame{ position:absolute; inset:22px; border:1.5px dashed rgba(241,239,234,0.28); }
.bp-tag{
  position:absolute;
  top:40px; left:40px;
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  color:var(--paper);
  letter-spacing:0.14em;
  line-height:1.9;
}
.bp-tag .dim{ color:var(--red); }
.bp-word{
  position:absolute;
  bottom:36px; left:40px; right:40px;
  font-family:'Anton', sans-serif;
  font-size:clamp(28px, 4vw, 46px);
  color:var(--paper);
  line-height:0.95;
}
.bp-word span{ color:var(--red); }
.bp-corner{ position:absolute; width:14px; height:14px; border:2px solid var(--red); }
.bp-corner.tl{ top:22px; left:22px; border-right:none; border-bottom:none; }
.bp-corner.br{ bottom:22px; right:22px; border-left:none; border-top:none; }

/* ---------- Section shared ---------- */
section{ padding:96px 0; }
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin-bottom:52px;
  flex-wrap:wrap;
}
.section-label{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  color:var(--red);
  letter-spacing:0.16em;
  font-weight:600;
  margin-bottom:14px;
  display:block;
}
h2.section-title{ font-size:clamp(28px, 4vw, 46px); color:var(--ink); }
.section-desc{ max-width:38ch; color:var(--steel); font-size:15.5px; line-height:1.7; }

/* ---------- Services ---------- */
.services{ background:var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.service-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.service-card{
  background:var(--white);
  padding:38px 32px;
  position:relative;
  transition:background 0.2s ease;
}
.service-card:hover{ background:var(--paper); }
.service-card .num{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  color:var(--steel-light);
  margin-bottom:22px;
  display:block;
}
.service-card.featured{ background:var(--ink); color:var(--paper); }
.service-card.featured:hover{ background:var(--ink-soft); }
.service-card.featured .num{ color:rgba(241,239,234,0.4); }
.service-card.featured .service-name{ color:var(--paper); }
.service-card.featured .service-desc{ color:var(--steel-light); }
.service-card.featured .tag{ background:var(--red); color:var(--white); }
.service-name{ font-family:'Anton', sans-serif; font-size:22px; text-transform:uppercase; margin-bottom:10px; color:var(--ink); }
.service-desc{ font-size:14px; color:var(--steel); line-height:1.65; }
.tag{
  display:inline-block;
  margin-top:16px;
  font-family:'IBM Plex Mono', monospace;
  font-size:10px;
  letter-spacing:0.1em;
  background:var(--paper-dim);
  color:var(--ink-soft);
  padding:5px 10px;
  border-radius:2px;
}

/* ---------- Process ---------- */
.process-list{ display:grid; grid-template-columns:repeat(4, 1fr); gap:28px; }
.process-step{ border-top:3px solid var(--ink); padding-top:20px; }
.process-step .step-num{
  font-family:'Anton', sans-serif;
  font-size:15px;
  color:var(--red);
  margin-bottom:14px;
  display:block;
}
.process-step h3{ font-family:'Anton', sans-serif; font-size:19px; text-transform:uppercase; margin-bottom:10px; }
.process-step p{ font-size:14px; color:var(--steel); line-height:1.65; }

/* ---------- Stats / area strip ---------- */
.strip{ background:var(--ink); color:var(--paper); padding:56px 0; }
.strip-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:24px; text-align:center; }
.strip-item .val{ font-family:'Anton', sans-serif; font-size:38px; color:var(--white); }
.strip-item .val .red{ color:var(--red); }
.strip-item .lbl{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:0.1em;
  color:var(--steel-light);
  margin-top:8px;
}

/* ---------- Booking ---------- */
.booking{ background:var(--paper); }
.booking-grid{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  border:1px solid var(--line);
  background:var(--white);
}
.booking-side{
  background:var(--ink);
  color:var(--paper);
  padding:52px 44px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.booking-side h3{ font-family:'Anton', sans-serif; font-size:30px; text-transform:uppercase; margin-bottom:18px; line-height:1; }
.booking-side p{ color:var(--steel-light); font-size:14.5px; line-height:1.7; margin-bottom:28px; }
.contact-line{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 0;
  border-top:1px solid rgba(241,239,234,0.14);
}
.contact-line:first-of-type{ border-top:none; }
.contact-line .lbl{
  font-family:'IBM Plex Mono', monospace;
  font-size:10.5px;
  letter-spacing:0.1em;
  color:var(--steel-light);
  width:78px;
  flex-shrink:0;
}
.contact-line .v{ font-size:15px; font-weight:600; }
.contact-line a:hover{ color:var(--red); }

.booking-form{ padding:52px 48px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:20px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column:1 / -1; }
.field label{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:0.08em;
  color:var(--ink-soft);
  font-weight:600;
}
.field input, .field select, .field textarea{
  border:1.5px solid var(--line);
  background:var(--paper);
  padding:12px 14px;
  font-family:'Inter', sans-serif;
  font-size:14.5px;
  color:var(--ink);
  border-radius:var(--radius);
  transition:border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none;
  border-color:var(--red);
  background:var(--white);
}
.field textarea{ resize:vertical; min-height:88px; }
.form-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:8px;
  flex-wrap:wrap;
}
.form-note{ font-size:12.5px; color:var(--steel); max-width:34ch; }
.form-status{
  margin-top:16px;
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
  display:none;
  padding:12px 14px;
  border-radius:2px;
}
.form-status.show{ display:block; }
.form-status.ok{ background:#E5F1E6; color:#25572B; }
.form-status.error{ background:#F5DADA; color:#8E1620; }
.btn[disabled]{ opacity:0.6; cursor:not-allowed; pointer-events:none; }

/* ---------- Footer ---------- */
footer{ background:var(--ink); color:var(--steel-light); padding:48px 0 28px; }
.footer-grid{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:32px;
  padding-bottom:32px;
  border-bottom:1px solid rgba(241,239,234,0.12);
}
.footer-logo img{ height:28px; width:auto; display:block; }
.footer-tag{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:0.08em;
  margin-top:8px;
  color:var(--steel-light);
}
.footer-links{ display:flex; gap:40px; flex-wrap:wrap; }
.footer-col h4{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:0.1em;
  color:var(--paper);
  margin-bottom:14px;
}
.footer-col a, .footer-col span{ display:block; font-size:13.5px; padding:5px 0; color:var(--steel-light); }
.footer-col a:hover{ color:var(--red); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  padding-top:22px;
  font-size:12px;
  flex-wrap:wrap;
  gap:10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns:1fr; }
  .blueprint{ order:-1; aspect-ratio:16/10; }
  .service-grid{ grid-template-columns:1fr 1fr; }
  .process-list{ grid-template-columns:1fr 1fr; }
  .strip-grid{ grid-template-columns:1fr 1fr; }
  .booking-grid{ grid-template-columns:1fr; }
  .nav-links{ display:none; }
  .menu-toggle{ display:inline-flex; }
}
@media (max-width: 600px){
  .wrap{ padding:0 20px; }
  .nav{ padding:14px 20px; }
  .service-grid{ grid-template-columns:1fr; }
  .process-list{ grid-template-columns:1fr; }
  .strip-grid{ grid-template-columns:1fr 1fr; }
  .form-row{ grid-template-columns:1fr; }
  .booking-form{ padding:36px 24px; }
  .booking-side{ padding:36px 24px; }
  .hero{ padding:48px 0 40px; }
  section{ padding:64px 0; }
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .nav-call .num{ display:none; }
}
