/* ============================================================
   DECK STEEL & CONCRETE — Stylesheet
   Tokens: charcoal #181b1c, concrete #efebe3, teal #008282,
   magenta #dc006e, steel #969696, signal yellow #f2b705
   ============================================================ */

:root{
  --charcoal:#181b1c;
  --charcoal-soft:#23282a;
  --concrete:#efebe3;
  --concrete-deep:#e2ddd2;
  --teal:#008282;
  --teal-deep:#006666;
  --magenta:#dc006e;
  --steel:#969696;
  --steel-line: rgba(150,150,150,.28);
  --yellow:#f2b705;
  --white:#ffffff;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --max: 1240px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--charcoal);
  background:var(--concrete);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  text-transform:uppercase;
  letter-spacing:.02em;
  line-height:1.08;
  margin:0;
  font-weight:600;
}
p{ margin:0 0 1em; }
.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 28px;
}

/* ============ Utility: blueprint grid backdrop ============ */
.grid-bg{
  background-image:
    linear-gradient(var(--steel-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:.78rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--teal);
  display:flex;
  align-items:center;
  gap:.6em;
  margin-bottom:.9em;
}
.eyebrow::before{
  content:"";
  display:inline-block;
  width:22px; height:2px;
  background:var(--magenta);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--charcoal);
  border-bottom:3px solid var(--magenta);
}
.topbar{
  background:var(--charcoal-soft);
  color:var(--steel);
  font-family:var(--font-mono);
  font-size:.74rem;
  letter-spacing:.06em;
}
.topbar .container{
  display:flex; flex-wrap:wrap; gap:18px;
  justify-content:space-between;
  padding-top:7px; padding-bottom:7px;
}
.topbar a{ color:var(--steel); }
.topbar a:hover{ color:var(--yellow); }
.topbar-left{ display:flex; gap:22px; flex-wrap:wrap; }
.topbar-right{ display:flex; gap:16px; }
.topbar-right a{ display:flex; align-items:center; }

.navwrap{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0;
}
.brand{
  display:flex; align-items:center; gap:14px;
  color:var(--white);
}
.brand-mark{
  width:36px; height:46px;
  position:relative;
  flex-shrink:0;
  display:flex; align-items:center;
}
.brand-mark svg{ width:100%; height:100%; display:block; }
.brand-mark img{ width:100%; height:auto; max-height:46px; display:block; object-fit:contain; }
.brand-text{ font-family:var(--font-display); line-height:1.05; }
.brand-text .b1{ font-size:1.5rem; letter-spacing:.06em; font-weight:600; }
.brand-text .b2{
  font-family:var(--font-mono); text-transform:uppercase;
  font-size:.62rem; letter-spacing:.22em; color:var(--steel);
}

nav.mainnav ul{
  list-style:none; display:flex; gap:2px;
  margin:0; padding:0;
}
nav.mainnav a{
  display:block;
  font-family:var(--font-display);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.86rem;
  color:var(--concrete);
  padding:10px 16px;
  border-bottom:3px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
nav.mainnav a:hover,
nav.mainnav a.active{
  color:var(--white);
  border-color:var(--teal);
  background:rgba(14,124,110,.18);
}

.navtoggle{ display:none; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;
  color:var(--white);
  background:var(--charcoal);
  overflow:hidden;
}
.hero-media{
  position:relative;
  height:62vh; min-height:440px;
  overflow:hidden;
}
.hero-media img{
  width:100%; height:100%; object-fit:cover;
  filter:saturate(1.05) contrast(1.05);
}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(24,27,28,.15) 0%, rgba(24,27,28,.55) 55%, rgba(24,27,28,.94) 100%);
}
.hero-overlay{
  position:absolute; inset:0;
  display:flex; align-items:flex-end;
}
.hero-overlay .container{ width:100%; padding-bottom:54px; }
.hero h1{
  font-size:clamp(2.4rem, 6vw, 4.6rem);
  max-width:14ch;
}
.hero h1 span{ color:var(--yellow); }
.hero-sub{
  font-size:1.05rem;
  max-width:46ch;
  color:var(--concrete);
  margin-top:18px;
}
.hero-tags{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:24px;
}
.hero-tags span{
  font-family:var(--font-mono); font-size:.74rem; letter-spacing:.12em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,.35);
  padding:6px 12px; border-radius:2px;
  color:var(--concrete);
}

/* page hero (smaller, for non-home pages) */
.page-hero{
  position:relative; color:var(--white); background:var(--charcoal);
  overflow:hidden;
}
.page-hero-media{ position:relative; height:300px; overflow:hidden; }
.page-hero-media img{ width:100%; height:100%; object-fit:cover; }
.page-hero-media::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(24,27,28,.25) 0%, rgba(24,27,28,.92) 100%);
}
.page-hero-overlay{
  position:absolute; inset:0; display:flex; align-items:flex-end;
}
.page-hero-overlay .container{ width:100%; padding-bottom:30px; }
.page-hero h1{ font-size:clamp(2rem, 5vw, 3.2rem); }
.breadcrumb{
  font-family:var(--font-mono); font-size:.75rem; letter-spacing:.12em;
  text-transform:uppercase; color:var(--steel); margin-bottom:10px;
}
.breadcrumb span{ color:var(--yellow); }

/* ============================================================
   SECTIONS
   ============================================================ */
section{ padding:64px 0; }
.section-tight{ padding:40px 0; }
.section-dark{ background:var(--charcoal); color:var(--concrete); }
.section-dark h2, .section-dark .eyebrow{ color:var(--white); }
.section-dark .eyebrow{ color:var(--yellow); }
.section-deep{ background:var(--concrete-deep); }

h2.title{
  font-size:clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom:18px;
}
.lede{
  font-size:1.08rem;
  max-width:62ch;
  color:#454c4e;
}
.section-dark .lede{ color:#c8cfd0; }

/* ============================================================
   GRID / CARD COMPONENTS
   ============================================================ */
.grid{ display:grid; gap:24px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

.card{
  background:var(--white);
  border:1px solid var(--steel-line);
  position:relative;
}
.card-img{ aspect-ratio:4/3; overflow:hidden; }
.card-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.card:hover .card-img img{ transform:scale(1.05); }
.card-body{ padding:20px; }
.card-body h3{ font-size:1.1rem; margin-bottom:8px; }
.card-body p{ font-size:.94rem; color:#5a6164; margin-bottom:0; }
.tag-row{
  display:flex; gap:6px; flex-wrap:wrap; margin-top:12px;
}
.tag{
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.08em;
  text-transform:uppercase;
  background:var(--concrete-deep);
  color:var(--charcoal);
  padding:4px 8px;
}
.tag.alt{ background:var(--teal); color:var(--white); }
.tag.mag{ background:var(--magenta); color:var(--white); }

/* Numbered capability blocks */
.cap-block{
  border-top:3px solid var(--teal);
  padding-top:18px;
  position:relative;
}
.cap-num{
  font-family:var(--font-mono);
  font-size:.78rem; letter-spacing:.14em;
  color:var(--magenta);
  display:block; margin-bottom:8px;
}
.cap-block h3{ font-size:1.25rem; margin-bottom:10px; }
.cap-block p{ font-size:.94rem; color:#5a6164; }

/* Stats strip */
.stats{
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:1px; background:var(--steel-line);
  border:1px solid var(--steel-line);
}
.stat{
  background:var(--charcoal); color:var(--white);
  padding:28px 22px; text-align:left;
}
.stat .num{
  font-family:var(--font-display); font-size:2.4rem; color:var(--yellow);
  display:block; line-height:1;
}
.stat .lbl{
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.12em;
  text-transform:uppercase; color:var(--steel); margin-top:8px; display:block;
}

/* CTA banner */
.cta-banner{
  background:var(--teal); color:var(--white);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:24px;
  padding:40px;
}
.cta-banner h3{ font-size:1.6rem; max-width:24ch; }
.cta-banner p{ margin:8px 0 0; color:rgba(255,255,255,.85); max-width:46ch; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-display); text-transform:uppercase;
  letter-spacing:.1em; font-size:.86rem;
  padding:14px 26px;
  border:2px solid var(--charcoal);
  color:var(--charcoal);
  background:transparent;
  transition: background .15s, color .15s, border-color .15s;
  white-space:nowrap;
}
.btn:hover{ background:var(--charcoal); color:var(--white); }
.btn.btn-solid{
  background:var(--magenta); border-color:var(--magenta); color:var(--white);
}
.btn.btn-solid:hover{ background:var(--charcoal); border-color:var(--charcoal); }
.btn.btn-light{ border-color:var(--white); color:var(--white); }
.btn.btn-light:hover{ background:var(--white); color:var(--charcoal); }
.btn.btn-yellow{ background:var(--yellow); border-color:var(--yellow); color:var(--charcoal); }
.btn.btn-yellow:hover{ background:var(--charcoal); border-color:var(--charcoal); color:var(--white); }

/* ============================================================
   PROJECT / GALLERY SPECIFIC
   ============================================================ */
.project-card{
  background:var(--white); border:1px solid var(--steel-line);
}
.project-card .card-img{ aspect-ratio:16/10; }
.project-meta{
  display:flex; justify-content:space-between; align-items:baseline;
  font-family:var(--font-mono); font-size:.7rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--steel); margin-top:10px;
}
.project-meta .ref{ color:var(--magenta); }

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:10px;
}
.gallery-grid figure{ margin:0; overflow:hidden; aspect-ratio:1/1; }
.gallery-grid img{ width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.gallery-grid figure:hover img{ transform:scale(1.07); }
.gallery-grid .wide{ grid-column:span 2; aspect-ratio:2/1; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.testi{
  background:var(--white); border:1px solid var(--steel-line);
  padding:26px; position:relative;
}
.testi .stars{ color:var(--yellow); letter-spacing:.18em; font-size:1rem; margin-bottom:12px; }
.testi p.quote{ font-style:italic; color:#454c4e; font-size:.97rem; }
.testi .who{
  font-family:var(--font-mono); font-size:.74rem; letter-spacing:.08em;
  text-transform:uppercase; color:var(--teal); margin-top:14px; display:block;
}
.testi .src{ color:var(--steel); }

/* ============================================================
   FORMS
   ============================================================ */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-grid .full{ grid-column:1/-1; }
label{
  display:block; font-family:var(--font-mono); font-size:.72rem;
  letter-spacing:.1em; text-transform:uppercase; color:var(--steel);
  margin-bottom:6px;
}
input, textarea, select{
  width:100%; padding:12px 14px; border:1px solid var(--steel-line);
  background:var(--white); font-family:var(--font-body); font-size:.96rem;
  color:var(--charcoal);
}
input:focus, textarea:focus, select:focus{
  outline:2px solid var(--teal); outline-offset:1px;
}
textarea{ resize:vertical; min-height:120px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background:var(--charcoal); color:var(--concrete);
  border-top:3px solid var(--teal);
}
.footer-top{ padding:56px 0 32px; }
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap:40px;
}
.footer-grid h4{
  color:var(--white); font-size:.95rem; letter-spacing:.12em;
  margin-bottom:16px;
}
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.footer-brand .brand-text .b1{ color:var(--white); }
.footer-grid p{ color:var(--steel); font-size:.92rem; }
.footer-grid ul{ list-style:none; margin:0; padding:0; }
.footer-grid li{ margin-bottom:10px; font-size:.92rem; }
.footer-grid a:hover{ color:var(--yellow); }
.footer-grid address{ font-style:normal; font-size:.92rem; color:var(--steel); line-height:1.8; }
.footer-grid address a{ color:var(--concrete); }
.foot-social{ display:flex; gap:10px; margin-top:18px; }
.foot-social a{
  width:38px; height:38px; border:1px solid var(--steel-line);
  display:flex; align-items:center; justify-content:center;
  transition:border-color .15s, background .15s;
}
.foot-social a:hover{ border-color:var(--yellow); background:rgba(242,183,5,.08); }
.foot-social svg{ width:18px; height:18px; fill:var(--concrete); }
.foot-social a:hover svg{ fill:var(--yellow); }

.footer-bottom{
  border-top:1px solid var(--steel-line);
  padding:18px 0;
  font-family:var(--font-mono); font-size:.74rem; letter-spacing:.06em;
  color:var(--steel);
}
.footer-bottom .container{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
.footer-bottom a:hover{ color:var(--yellow); }

/* ============================================================
   MISC: address blocks, maps
   ============================================================ */
.info-row{ display:flex; gap:14px; align-items:flex-start; margin-bottom:18px; }
.info-row .ic{
  width:38px; height:38px; flex-shrink:0;
  background:var(--teal); color:var(--white);
  display:flex; align-items:center; justify-content:center;
}
.info-row .ic svg{ width:18px; height:18px; fill:currentColor; }
.info-row h4{ font-size:.95rem; margin-bottom:4px; letter-spacing:.06em; }
.info-row p{ font-size:.92rem; color:#5a6164; margin:0; }
.info-row a{ color:var(--teal); }

.map-frame{ border:1px solid var(--steel-line); height:100%; min-height:340px; }
.map-frame iframe{ width:100%; height:100%; border:0; display:block; min-height:340px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px){
  .grid-3, .grid-4{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:repeat(2,1fr); gap:32px 24px; }
  .stats{ grid-template-columns:repeat(2,1fr); }
  .testi-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid .wide{ grid-column:span 2; }
  .form-grid{ grid-template-columns:1fr; }
}

@media (max-width: 760px){
  .topbar-left{ display:none; }
  .topbar .container{ justify-content:flex-end; }
  .brand-text .b1{ font-size:1.15rem; }
  .brand-text .b2{ font-size:.56rem; letter-spacing:.16em; }
  nav.mainnav{
    position:fixed; inset:64px 0 0 0; background:var(--charcoal);
    transform:translateX(100%); transition:transform .25s;
    z-index:90; overflow-y:auto;
  }
  nav.mainnav.open{ transform:translateX(0); }
  nav.mainnav ul{ flex-direction:column; padding:20px; gap:4px; }
  nav.mainnav a{ padding:14px 12px; font-size:1.05rem; border-bottom:1px solid var(--steel-line); }
  .navtoggle{
    display:flex; align-items:center; justify-content:center;
    width:44px; height:44px; background:transparent; border:1px solid var(--steel-line);
    color:var(--white); cursor:pointer;
  }
  .navtoggle svg{ width:22px; height:22px; fill:currentColor; }
  .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
  .stats{ grid-template-columns:1fr 1fr; }
  .cta-banner{ flex-direction:column; align-items:flex-start; }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .hero-media{ height:74vh; }
}

@media (max-width: 380px){
  .navwrap{ gap:8px; }
  .brand{ gap:8px; }
  .brand-text .b1{ font-size:1rem; }
  .brand-text .b2{ font-size:.5rem; letter-spacing:.12em; }
}

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

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:3px solid var(--yellow); outline-offset:2px;
}
