/* =========================================================
   DB Concrete — Site Styles
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Work+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #050505;
  --bg-2: #0c0c0c;
  --card: #111111;
  --card-2: #161616;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f4;
  --text-muted: #a3a3a3;
  --text-dim: #777777;
  --red: #d10000;
  --red-hover: #ef1414;
  --cream: #fff9eb;
  --gold: #e6b53c;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.2px;
}

p { color: var(--text-muted); }

/* Inline links inside body copy — the global `a { color: inherit }` above
   makes them invisible otherwise. Used for contextual internal linking. */
.prose-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s ease;
}
.prose-link:hover { color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ---------- Eyebrow pill ---------- */
.pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}

/* ---------- Headings ---------- */
.h-xl { font-size: clamp(40px, 6vw, 74px); }
.h-lg { font-size: clamp(32px, 4.5vw, 52px); }
.h-md { font-size: clamp(26px, 3vw, 38px); }
.lead { font-size: 18px; color: var(--text-muted); max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, border-color .2s ease;
}
/* Primary CTA — dark button with subtle border (matches live site) */
.btn-primary { background: #141414; color: #fff; font-weight: 700; border-color: var(--border-strong); }
.btn-primary:hover { background: #1d1d1d; border-color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: #fff; }
.btn-cream { background: var(--cream); color: #111; }
.btn-cream:hover { background: #fff; }

/* Red is reserved for the form Submit button only */
.btn-red,
#quote-form button[type="submit"] { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover,
#quote-form button[type="submit"]:hover { background: var(--red-hover); border-color: var(--red-hover); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; transition: .25s; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  min-height: 78vh;
}
.hero-text { padding: 90px 64px 60px 0; display: flex; flex-direction: column; justify-content: center; }
.hero-text h1 { margin-bottom: 18px; }
.hero-text .lead { margin-bottom: 30px; }
.hero-media {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  min-height: 420px;
}
.page-hero {
  padding: 90px 0 64px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 360px at 80% -10%, rgba(209,0,0,0.12), transparent 60%),
    var(--bg);
}
.page-hero p { max-width: 680px; margin-top: 16px; }

/* ---------- Service area marquee ---------- */
.areas {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
}
.areas-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  padding: 18px 0;
  animation: scroll-x 28s linear infinite;
  width: max-content;
}
.areas-track span {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 48px;
  text-transform: uppercase;
}
.areas-track span::after { content: "•"; color: var(--red); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   Generic grid helpers
   ========================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-2.media-left { grid-template-columns: 1fr 1fr; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.media-stack { display: grid; gap: 18px; }
.media-stack img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.rounded { border-radius: var(--radius); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0; }
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.stat .num { font-family: var(--serif); font-size: 40px; color: #fff; line-height: 1; }
.stat .label { font-size: 13px; color: var(--text-dim); margin-top: 8px; text-transform: capitalize; }

/* ---------- Check list ---------- */
.checks { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-weight: 500; }
.checks li::before {
  content: "";
  flex: 0 0 auto;
  width: 20px; height: 20px; margin-top: 2px;
  border-radius: 50%;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* =========================================================
   Service cards
   ========================================================= */
.banner-quote {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 40px);
  text-align: center;
  color: #fff;
  max-width: 880px;
  margin: 0 auto;
  font-style: italic;
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color .25s ease, transform .25s ease;
}
.service-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.service-card .ico {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(209,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--red);
}
.service-card h3 { font-size: 26px; margin-bottom: 16px; color: #fff; }
.service-card ul { list-style: none; display: grid; gap: 12px; }
.service-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-muted); }
.service-card li::before { content: ""; flex:0 0 auto; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; border: 1.5px solid var(--red); }
.span-2 { grid-column: span 2; }

/* =========================================================
   Process steps
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.step .n { font-family: var(--serif); font-size: 30px; color: var(--red); display: block; margin-bottom: 10px; }
.step h3 { font-size: 24px; margin-bottom: 10px; color: #fff; }
.step p { font-size: 15px; }

/* =========================================================
   Testimonials
   ========================================================= */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex; flex-direction: column;
}
.tcard .quote { font-size: 16px; color: var(--text); line-height: 1.7; }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 18px; margin: 18px 0 16px; }
.tcard .who { font-family: var(--serif); font-size: 22px; color: #fff; }
.tcard .org { font-size: 14px; color: var(--text-dim); margin-top: 2px; }

/* ---------- Engineer card ---------- */
.engineer-card {
  background: var(--cream);
  color: #111;
  border-radius: var(--radius);
  padding: 30px;
  max-width: 360px;
  text-align: center;
}
.engineer-card img { margin: 0 auto 14px; max-height: 56px; width: auto; }
.engineer-card .name { font-family: var(--serif); font-size: 22px; }
.engineer-card .firm { font-weight: 600; margin: 4px 0 18px; }

/* =========================================================
   Gallery
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); }

/* =========================================================
   Contact form
   ========================================================= */
.form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--text-muted); }
.field input, .field select, .field textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
}
.field input::placeholder, .field textarea::placeholder { color: #5a5a5a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

.contact-bar { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 14px; }
.contact-bar a { color: #fff; font-weight: 500; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(209,0,0,0.18), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-top img { height: 40px; margin-bottom: 16px; }
.footer-top p { font-size: 14px; max-width: 320px; }
.footer-col h4 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: 14.5px; color: var(--text-muted); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-muted); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 70px 0 40px; }
  .hero-media { min-height: 320px; margin-bottom: 24px; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; }
  .tgrid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    transform: translateY(-120%);
    transition: transform .3s ease;
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
  .section { padding: 64px 0; }
  .services-grid, .steps, .stats, .gallery, .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .footer-top { grid-template-columns: 1fr; }
  .gallery img { height: 240px; }
}
