/* ==========================================================================
   GORILLA BUILDERS — Brand System
   Charcoal / Construction Orange / Steel Gray / White
   Display: Archivo (900) · Body: Barlow · Utility/Spec: JetBrains Mono
   ========================================================================== */

:root {
  --charcoal: #15171a;
  --charcoal-2: #1e2124;
  --charcoal-3: #26292d;
  --white: #ffffff;
  --orange: #e8600f;
  --orange-dark: #c24e0a;
  --orange-light: #ff7a2e;
  --blueprint: #5b8fb5;
  --blueprint-dim: #3d6b8a;
  --gray-light: #f1f1ef;
  --gray-mid: #6c7178;
  --gray-line: #dcdcd8;
  --line-dark: #33363a;
  --font-display: "Archivo", sans-serif;
  --font-body: "Barlow", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid transparent;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-light); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-3); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  border-bottom: 1px solid var(--line-dark);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--white);
  padding: 8px 14px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 500px) {
  .logo-img { height: 32px; }
  .logo { padding: 6px 10px; }
}
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
}
.nav-desktop a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b8bcc0;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--white); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.header-phone strong { color: var(--orange-light); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--white);
  padding: 8px 10px;
  font-size: 20px;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--charcoal-2);
  border-top: 1px solid var(--line-dark);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 16px 28px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 1080px) {
  .nav-desktop, .header-phone { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 90px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  padding-bottom: 70px;
}
.hero-brandline {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--orange-light);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.98;
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 19px;
  color: #c7cacd;
  max-width: 520px;
  margin-top: 24px;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(155deg, var(--charcoal-3), var(--charcoal-2));
  border: 1px solid var(--line-dark);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%, 0 86%);
  display: flex;
  align-items: flex-end;
  padding: 26px;
}
.hero-visual-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16/9; }
}

/* ---------- Build Sequence (signature element) ---------- */
.sequence {
  display: flex;
  border-top: 1px solid var(--line-dark);
}
.seq-step {
  flex: 1;
  padding: 22px 20px;
  border-right: 1px solid var(--line-dark);
  position: relative;
}
.seq-step:last-child { border-right: none; }
.seq-step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-mid);
  letter-spacing: 0.1em;
}
.seq-step .label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.seq-step.is-active .label { color: var(--orange-light); }
.seq-step::after {
  content: "";
  position: absolute;
  right: -1px; top: 0;
  width: 10px; height: 100%;
  background: var(--charcoal);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.seq-step:last-child::after { display: none; }
@media (max-width: 720px) {
  .sequence { flex-wrap: wrap; }
  .seq-step { flex: 1 1 50%; border-bottom: 1px solid var(--line-dark); }
  .seq-step::after { display: none; }
}

/* ---------- Section basics ---------- */
section { padding: 90px 0; }
.section-light { background: var(--gray-light); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 14px; }
.section-dark .section-head h2, .section-dark h3 { color: var(--white); }
.section-head p { margin-top: 18px; font-size: 17px; color: var(--gray-mid); line-height: 1.6; }
.section-dark .section-head p { color: #b8bcc0; }

/* ---------- Service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--gray-line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--gray-line); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.svc-card {
  background: var(--white);
  padding: 40px 32px;
  transition: background 0.2s ease;
}
.svc-card:hover { background: var(--charcoal); color: var(--white); }
.svc-card:hover .svc-num, .svc-card:hover h3 { color: var(--white); }
.svc-card .svc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.12em;
}
.svc-card h3 {
  font-size: 22px;
  margin-top: 14px;
  color: var(--charcoal);
}
.svc-card p {
  margin-top: 14px;
  color: var(--gray-mid);
  font-size: 15.5px;
  line-height: 1.6;
}
.svc-card:hover p { color: #c7cacd; }
.svc-card ul { margin-top: 16px; }
.svc-card li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gray-mid);
  padding: 6px 0;
  border-top: 1px solid var(--gray-line);
  display: flex;
  gap: 10px;
}
.svc-card:hover li { color: #c7cacd; border-top-color: var(--line-dark); }
.svc-card li::before { content: "—"; color: var(--orange); }

/* ---------- Scope band ---------- */
.scope-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--gray-line);
}
.scope-item {
  flex: 1 1 220px;
  padding: 28px 26px;
  border-right: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}
.scope-item h4 {
  font-family: var(--font-display);
  font-size: 17px;
  text-transform: uppercase;
}
.scope-item p { margin-top: 10px; font-size: 14.5px; color: var(--gray-mid); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--orange);
  color: var(--charcoal);
  padding: 56px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h3 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--charcoal);
}
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-outline { color: var(--charcoal); border-color: rgba(0,0,0,0.35); }
.cta-band .btn-outline:hover { border-color: var(--charcoal); }
.cta-band .btn-dark:hover { background: #000; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.stat { padding: 30px 24px; border-right: 1px solid var(--line-dark); }
.stat:last-child { border-right: none; }
.stat .n { font-family: var(--font-display); font-size: 30px; color: var(--orange-light); }
.stat .l { font-family: var(--font-mono); font-size: 11.5px; color: #b8bcc0; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 8px; }
@media (max-width: 720px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: none; } }

/* ---------- Placeholder / project cards ---------- */
.proj-card {
  border: 1px solid var(--gray-line);
  background: var(--white);
}
.proj-media {
  aspect-ratio: 16/10;
  background:
    repeating-linear-gradient(135deg, #e4e4e0 0 2px, #f1f1ef 2px 22px);
  position: relative;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--gray-line);
}
.proj-media .tag {
  margin: 16px;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.proj-body { padding: 24px; }
.proj-body h4 { font-family: var(--font-display); font-size: 18px; }
.proj-body p { margin-top: 10px; font-size: 14.5px; color: var(--gray-mid); }

.notice-box {
  border: 1px dashed var(--gray-line);
  background: var(--gray-light);
  padding: 22px 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-mid);
  letter-spacing: 0.02em;
}

/* ---------- Area list ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-line);
  border: 1px solid var(--gray-line);
}
.area-cell {
  background: var(--white);
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
.area-cell.hq { background: var(--charcoal); color: var(--white); }
@media (max-width: 900px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid.full { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field.span-2 { grid-column: span 2; }
@media (max-width: 700px) { .field.span-2 { grid-column: span 1; } .form-grid { grid-template-columns: 1fr; } }
.field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--gray-line);
  background: var(--gray-light);
  color: var(--charcoal);
}
.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--white);
  border-color: var(--orange);
  outline: none;
}
.field-check { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; color: var(--gray-mid); }
.checks-row { display: flex; flex-wrap: wrap; gap: 18px 26px; padding: 16px 0 26px; border-top: 1px solid var(--gray-line); border-bottom: 1px solid var(--gray-line); margin-bottom: 26px; }
.file-drop {
  border: 2px dashed var(--gray-line);
  padding: 30px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-mid);
  background: var(--gray-light);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: #b8bcc0;
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-grid li { padding: 6px 0; font-size: 14px; }
.footer-grid a:hover { color: var(--orange-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 60px 0 46px;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 54px); color: var(--white); margin-top: 12px; }
.page-hero p { margin-top: 18px; font-size: 17px; color: #c7cacd; max-width: 620px; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--gray-mid); letter-spacing: 0.06em; text-transform: uppercase; }
.breadcrumb a:hover { color: var(--orange-light); }

/* utility */
.mt-40 { margin-top: 40px; }
.text-center { text-align: center; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Professional polish layer — blueprint texture, illustration, motion
   ========================================================================== */

/* Blueprint grid + crosshair texture, used behind dark sections */
.blueprint {
  position: relative;
  overflow: hidden;
}
.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91,143,181,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,143,181,0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 40%, transparent 90%);
}
.crosshair {
  position: absolute;
  width: 18px; height: 18px;
  pointer-events: none;
  opacity: 0.55;
}
.crosshair::before, .crosshair::after {
  content: "";
  position: absolute;
  background: var(--blueprint);
}
.crosshair::before { width: 100%; height: 1px; top: 50%; left: 0; }
.crosshair::after { width: 1px; height: 100%; left: 50%; top: 0; }

/* Grain texture for depth on dark surfaces */
.grain { position: relative; }
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero rework ---------- */
.hero { padding-top: 0; }
.hero-inner { position: relative; z-index: 1; padding-top: 90px; }
.hero-illustration {
  width: 100%;
  height: auto;
  overflow: visible;
}
.hero-illustration .draw {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-in 2.2s ease-out forwards;
}
.hero-illustration .fade-in {
  opacity: 0;
  animation: fade-up 0.8s ease-out forwards;
}
@keyframes draw-in { to { stroke-dashoffset: 0; } }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }
.hero-illustration .fade-in { transform: translateY(10px); }
.hero-illustration .fi-1 { animation-delay: 0.9s; }
.hero-illustration .fi-2 { animation-delay: 1.15s; }
.hero-illustration .fi-3 { animation-delay: 1.4s; }
@media (prefers-reduced-motion: reduce) {
  .hero-illustration .draw { stroke-dashoffset: 0; animation: none; }
  .hero-illustration .fade-in { opacity: 1; transform: none; animation: none; }
}

/* ---------- Build sequence icons ---------- */
.seq-step { display: flex; align-items: flex-start; gap: 12px; }
.seq-icon { flex-shrink: 0; width: 26px; height: 26px; margin-top: 2px; }
.seq-icon svg { width: 100%; height: 100%; stroke: var(--gray-mid); fill: none; stroke-width: 1.6; }
.seq-step.is-active .seq-icon svg { stroke: var(--orange-light); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Card hover polish ---------- */
.svc-card { position: relative; border-left: 3px solid transparent; transition: background 0.25s ease, border-color 0.25s ease; }
.svc-card:hover { border-left-color: var(--orange); }
.proj-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.proj-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(0,0,0,0.10); }

/* ---------- Sticky mobile action bar ---------- */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--charcoal);
  border-top: 1px solid var(--line-dark);
}
.mobile-action-bar { display: none; }
@media (max-width: 900px) {
  .mobile-action-bar { display: flex; }
  body { padding-bottom: 58px; }
}
.mobile-action-bar a {
  flex: 1;
  text-align: center;
  padding: 15px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.mobile-action-bar a.primary { background: var(--orange); color: var(--white); }
.mobile-action-bar a + a { border-left: 1px solid var(--line-dark); }

/* ---------- Header underline animation ---------- */
.nav-desktop a { position: relative; padding-bottom: 4px; }
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.2s ease;
}
.nav-desktop a:hover::after, .nav-desktop a.active::after { width: 100%; }

/* ---------- Section eyebrow tick mark ---------- */
.section-head { position: relative; }

/* ---------- Footer map graphic ---------- */
.footer-map { opacity: 0.5; }

/* ---------- Footer logo chip (same treatment as header, on dark bg) ---------- */
.footer-logo {
  display: inline-flex;
  background: var(--white);
  padding: 8px 12px;
  margin-bottom: 18px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.footer-logo img { height: 30px; width: auto; display: block; }

/* SEO: visually hidden text for keyword-rich headings */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

.h1-loc{display:block;font-size:.38em;letter-spacing:.08em;opacity:.85;margin-top:.4em;font-weight:600}
