/* ==========================================================================
   Brink Plumbing — Commercial Plumbing | Denver & the Front Range
   Design system: Navy / Charcoal / White / Light gray + Steel-blue accent
   ========================================================================== */

:root {
  --navy:        #0f2236;   /* primary dark */
  --navy-700:    #16314c;   /* slightly lighter navy */
  --charcoal:    #1f262e;   /* deep neutral */
  --steel:       #3b7ea3;   /* steel-blue accent */
  --steel-600:   #316b8c;   /* accent hover */
  --steel-100:   #e7f0f5;   /* accent tint */
  --white:       #ffffff;
  --gray-50:     #f6f8fa;   /* page light bg */
  --gray-100:    #eceff3;
  --gray-200:    #dce2e9;
  --gray-400:    #9aa6b2;
  --gray-600:    #586572;
  --ink:         #2a333d;   /* body text */
  --ink-soft:    #4a5662;

  --radius:      6px;
  --radius-lg:   12px;
  --maxw:        1180px;
  --shadow-sm:   0 1px 3px rgba(15,34,54,.08);
  --shadow-md:   0 8px 28px rgba(15,34,54,.12);
  --font: "Helvetica Neue", Arial, "Segoe UI", Roboto, system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--steel-600); text-decoration: none; }
a:hover { color: var(--steel); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: #cdd8e2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--steel);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: #7fb6d2; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: .98rem;
  padding: 14px 28px; border-radius: var(--radius); cursor: pointer;
  border: 2px solid transparent; transition: all .18s ease; letter-spacing: .01em;
}
.btn--primary { background: var(--steel); color: #fff; border-color: var(--steel); }
.btn--primary:hover { background: var(--steel-600); border-color: var(--steel-600); color:#fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color:#fff; border-color:#fff; }
.btn--dark { background: var(--navy); color:#fff; border-color: var(--navy); }
.btn--dark:hover { background: var(--navy-700); border-color: var(--navy-700); color:#fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-200);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { width: 40px; height: 40px; }
.brand-name { font-weight: 800; font-size: 1.28rem; color: var(--navy); letter-spacing: -.02em; line-height:1; }
.brand-name span { color: var(--steel); }
.brand-tag { display:block; font-size:.62rem; letter-spacing:.18em; text-transform:uppercase; color: var(--gray-600); font-weight:700; margin-top:3px;}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .96rem; }
.nav-links a:hover, .nav-links a.active { color: var(--steel); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display:block; width: 26px; height: 2.5px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(125deg, rgba(15,34,54,.95) 0%, rgba(15,34,54,.78) 55%, rgba(22,49,76,.7) 100%),
    var(--charcoal);
}
.hero::after { /* subtle pipe-grid texture, pure CSS */
  content:""; position:absolute; inset:0; opacity:.10; pointer-events:none;
  background-image:
    linear-gradient(var(--steel) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel) 1px, transparent 1px);
  background-size: 46px 46px;
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { padding: 104px 0 96px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .sub { font-size: 1.22rem; color: #c5d3e0; max-width: 56ch; margin-bottom: 30px; }
.hero .btn-row { margin-top: 8px; }
.hero-badges { display:flex; flex-wrap:wrap; gap: 26px; margin-top: 44px; color:#aebfcf; font-size:.9rem; }
.hero-badges b { color:#fff; display:block; font-size:1.5rem; font-weight:800; }

/* ---------- Image placeholders (CSS only — drop real photos here) ---------- */
.ph {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, rgba(255,255,255,0) 14px 28px),
    linear-gradient(135deg, var(--navy) 0%, var(--steel-600) 130%);
  color: #cfe0ea; min-height: 280px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.ph::before {
  content: attr(data-label);
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; opacity: .85; padding: 0 20px;
}
.ph--tall { min-height: 440px; }
.ph--wide { min-height: 360px; }
.ph-note { font-size: .76rem; color: var(--gray-600); margin-top: 8px; text-align:center; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }

/* ---------- Service cards ---------- */
.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ic {
  width: 48px; height: 48px; border-radius: 10px; background: var(--steel-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card .ic svg { width: 26px; height: 26px; stroke: var(--steel-600); fill: none; stroke-width: 1.9; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Markets chips ---------- */
.markets { display: flex; flex-wrap: wrap; gap: 14px; }
.market {
  display:flex; align-items:center; gap:10px;
  background:#fff; border:1px solid var(--gray-200); border-radius: 100px;
  padding: 11px 20px; font-weight: 700; color: var(--navy); font-size:.95rem;
}
.market .dot { width:9px; height:9px; border-radius:50%; background: var(--steel); flex:none; }
.section--navy .market { background: var(--navy-700); border-color: rgba(255,255,255,.12); color:#fff; }

/* ---------- Why / feature list ---------- */
.checks { list-style:none; margin: 8px 0 0; padding: 0; display:grid; gap: 14px; }
.checks li { display:flex; gap: 13px; align-items:flex-start; font-weight:600; color: var(--ink); }
.checks svg { width: 22px; height: 22px; flex:none; margin-top:2px; }
.section--navy .checks li { color:#dbe6ef; }

/* ---------- Stats strip ---------- */
.stat-strip { display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align:center; }
.stat b { display:block; font-size: 2.3rem; color: var(--steel); font-weight:800; line-height:1; }
.section--navy .stat b { color:#7fb6d2; }
.stat span { font-size:.86rem; text-transform:uppercase; letter-spacing:.1em; color: var(--gray-600); font-weight:700; }
.section--navy .stat span { color:#9fb2c4; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--steel-600), var(--steel)); color:#fff; }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.9); }

/* ---------- Forms ---------- */
.form-card { background:#fff; border:1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display:block; font-weight:700; color: var(--navy); font-size:.9rem; margin-bottom:7px; }
.field .req { color: var(--steel); }
.field input, .field select, .field textarea {
  width:100%; padding: 12px 14px; border:1px solid var(--gray-200); border-radius: var(--radius);
  font-family: var(--font); font-size: 1rem; color: var(--ink); background:#fff; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--steel); box-shadow: 0 0 0 3px var(--steel-100); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size:.85rem; color: var(--gray-600); margin-top: 4px; }

/* ---------- Contact info blocks ---------- */
.info-list { list-style:none; padding:0; margin:0; display:grid; gap: 22px; }
.info-list li { display:flex; gap:15px; align-items:flex-start; }
.info-list .ic { width:42px; height:42px; border-radius:10px; background: var(--steel-100); display:flex; align-items:center; justify-content:center; flex:none; }
.info-list .ic svg { width:22px; height:22px; stroke: var(--steel-600); fill:none; stroke-width:1.9; }
.info-list b { color: var(--navy); display:block; }
.info-list a, .info-list span { color: var(--ink-soft); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--navy); color:#fff; position:relative; overflow:hidden; }
.page-hero::after {
  content:""; position:absolute; inset:0; opacity:.08;
  background-image: linear-gradient(var(--steel) 1px,transparent 1px), linear-gradient(90deg,var(--steel) 1px,transparent 1px);
  background-size: 44px 44px;
}
.page-hero .container { position:relative; z-index:2; padding: 70px 24px 64px; }
.page-hero h1 { color:#fff; margin-bottom: 12px; }
.page-hero p { color:#c5d3e0; max-width: 60ch; font-size:1.12rem; margin:0; }
.crumbs { font-size:.82rem; color:#8aa0b5; margin-bottom: 18px; }
.crumbs a { color:#8aa0b5; } .crumbs a:hover{ color:#fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color:#9fb0bf; padding: 64px 0 28px; font-size:.95rem; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color:#fff; font-size:.85rem; text-transform:uppercase; letter-spacing:.12em; margin-bottom:16px; }
.site-footer a { color:#9fb0bf; display:block; margin-bottom:9px; }
.site-footer a:hover { color:#fff; }
.footer-brand .brand-name { color:#fff; }
.footer-brand p { color:#8395a4; max-width: 34ch; margin-top: 14px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.84rem; color:#7a8b9a; }

/* ---------- Misc ---------- */
.tile {
  background:#fff; border:1px solid var(--gray-200); border-radius: var(--radius-lg);
  overflow:hidden; box-shadow: var(--shadow-sm);
}
.tile .ph { border-radius:0; }
.tile-body { padding: 24px 26px; }
.tile-body h3 { margin-bottom:6px; }
.tile-body .tag { font-size:.74rem; text-transform:uppercase; letter-spacing:.1em; font-weight:700; color: var(--steel); }
.prose p { color: var(--ink-soft); }
.prose h2 { margin-top: 1.6em; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stat-strip { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .nav-links {
    position: absolute; top: 76px; left:0; right:0; background:#fff;
    flex-direction: column; align-items: stretch; gap:0; padding: 8px 0;
    border-bottom:1px solid var(--gray-200); box-shadow: var(--shadow-md);
    display:none;
  }
  .nav-links.open { display:flex; }
  .nav-links li { padding: 0 24px; }
  .nav-links a { display:block; padding: 13px 0; border-bottom:1px solid var(--gray-100); }
  .nav-cta { margin: 12px 24px; text-align:center; }
  .nav-toggle { display:block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 70px 0 64px; }
}

/* ---------- Real logo + photos (added) ---------- */
.brand-logo { height: 46px; width: auto; display: block; }
.ph { padding: 0; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display:block; }
@media (max-width: 680px){ .brand-logo { height: 38px; } }
