/* ==========================================================================
   SERTEC RENTALS — Design System
   Palette derived from brand logo (maroon + steel gray) plus a construction
   safety-orange accent. Display type is condensed/industrial (site signage
   register); body type is a clean humanist sans for long-form spec reading.
   Signature motif: the "fusion seam" divider — a welded joint line that
   echoes the company's HDPE pipe-fusion work, used to join every section.
   ========================================================================== */

:root {
  /* Color */
  --maroon-900: #4A1B26;
  --maroon-700: #843141; /* brand primary, sampled from logo */
  --maroon-600: #9C3B4D;
  --maroon-500: #B44961;
  --steel-800: #262A2E; /* near-black, primary text */
  --steel-600: #565B60;
  --steel-400: #7C7C7C; /* brand gray, sampled from logo */
  --steel-200: #D8DAD9;
  --steel-100: #E9EAE8;
  --paper: #F5F5F2;
  --white: #FFFFFF;
  --safety: #D14524; /* construction safety orange, CTA accent */
  --safety-dark: #A83518;
  --ok-green: #2F6E4E;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", "Courier New", monospace;

  /* Layout */
  --maxw: 1180px;
  --radius: 3px;
  --shadow-card: 0 1px 2px rgba(38,42,46,0.06), 0 6px 20px rgba(38,42,46,0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--steel-800);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: .01em;
  color: var(--steel-800);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; text-transform: none; }
p { margin: 0 0 1em; color: var(--steel-600); }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--safety);
  outline-offset: 2px;
}

/* ---- Eyebrow / tag labels (spec-sheet register) ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--maroon-700);
  background: rgba(132,49,65,.07);
  border: 1px solid rgba(132,49,65,.18);
  padding: .35em .75em;
  border-radius: 2px;
  margin-bottom: 1em;
}
.eyebrow::before { content: "◆"; font-size: .7em; }

/* ---- Tick-mark rule (tape-measure underline under section heads) ---- */
.tick-rule {
  width: 120px;
  height: 10px;
  margin: 0 0 1.4em;
  background-image: repeating-linear-gradient(
    to right, var(--maroon-700) 0 2px, transparent 2px 12px
  );
  background-position: bottom left;
  background-repeat: repeat-x;
  background-size: 12px 10px;
  position: relative;
}
.tick-rule::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--maroon-700);
}

/* ---- Fusion seam divider (signature element) ----
   A textured horizontal joint, like a heat-fused HDPE weld bead,
   used between major page sections instead of a plain <hr>. */
.fusion-seam {
  height: 22px;
  width: 100%;
  background:
    repeating-linear-gradient(
      100deg,
      rgba(255,255,255,.09) 0 3px,
      transparent 3px 9px
    ),
    linear-gradient(90deg, var(--maroon-900), var(--maroon-700) 45%, var(--steel-800) 100%);
  position: relative;
}
.fusion-seam::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.16), transparent 55%);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--steel-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0; padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  color: var(--steel-800);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--maroon-700); border-color: var(--safety); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: flex; flex-direction: column; text-decoration: none;
  font-family: var(--font-mono); line-height: 1.2;
}
.header-phone .lbl { font-size: .65rem; letter-spacing: .1em; color: var(--steel-400); text-transform: uppercase; }
.header-phone .num { font-size: 1rem; font-weight: 700; color: var(--steel-800); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--steel-200); border-radius: 3px;
  width: 42px; height: 38px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--steel-800);
  position: relative; transition: transform .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--safety); color: var(--white); }
.btn-primary:hover { background: var(--safety-dark); }
.btn-outline { background: transparent; border-color: var(--steel-800); color: var(--steel-800); }
.btn-outline:hover { border-color: var(--maroon-700); color: var(--maroon-700); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: var(--steel-800);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 56px;
}
.hero h1 { color: var(--white); }
.hero p.lede { color: var(--steel-200); font-size: 1.1rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.16); padding-top: 22px;
}
.hero-stat .num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--white); display: block; }
.hero-stat .lbl { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-200); }
.hero-media { position: relative; }
.hero-media img { border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.spec-tag {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--white);
  color: var(--steel-800);
  padding: 14px 18px;
  border-radius: 3px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  font-size: .78rem;
  max-width: 230px;
}
.spec-tag .tag-id { color: var(--safety); font-weight: 700; display:block; margin-bottom:4px; letter-spacing: .05em;}

/* Page (interior) hero — shorter version for non-home pages */
.page-hero {
  background: var(--steel-800);
  color: var(--white);
  padding: 46px 0 40px;
}
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { color: var(--steel-200); max-width: 62ch; font-size: 1.05rem; margin-bottom: 0; }
.breadcrumb {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .05em;
  color: var(--steel-400); text-transform: uppercase; margin-bottom: 16px;
}
.breadcrumb a { color: var(--steel-200); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ==========================================================================
   SECTIONS / LAYOUT UTILITIES
   ========================================================================== */
.section { padding: 68px 0; }
.section-tight { padding: 44px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--steel-200); border-bottom: 1px solid var(--steel-200); }
.section-dark { background: var(--steel-800); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--steel-200); }
.section-head { max-width: 66ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .tick-rule { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.card .part-no {
  font-family: var(--font-mono); font-size: .72rem; color: var(--maroon-700);
  letter-spacing: .08em; display:block; margin-bottom: 10px;
}
.icon-badge {
  width: 44px; height: 44px; border-radius: 3px;
  background: rgba(132,49,65,.08); border: 1px solid rgba(132,49,65,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--maroon-700); margin-bottom: 16px;
}
.icon-badge svg { width: 22px; height: 22px; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px dashed var(--steel-200);
  color: var(--steel-600); font-size: .96rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "✓"; color: var(--ok-green); font-weight: 700; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%; background: rgba(47,110,78,.1);
  display:flex; align-items:center; justify-content:center; font-size: .72rem;
}

/* ---- Two-column media/text block ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.split img { border-radius: 4px; box-shadow: var(--shadow-card); }
.split.reverse .split-media { order: 2; }

/* ---- Process / steps (real sequence, numbered legitimately) ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 6px; }
.step .step-no {
  font-family: var(--font-mono); font-size: .78rem; color: var(--white);
  background: var(--maroon-700); width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-weight: 700;
}

/* ---- Service-area / county chips ---- */
.county-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.county-chip {
  font-family: var(--font-mono); font-size: .84rem;
  background: var(--white); border: 1px solid var(--steel-200); border-radius: 3px;
  padding: 12px 14px; display: flex; align-items: center; gap: 10px;
}
.county-chip::before { content: "▸"; color: var(--safety); }

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(120deg, var(--maroon-900), var(--maroon-700));
  color: var(--white);
  border-radius: 4px;
  padding: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: .2em; }
.cta-banner p { color: rgba(255,255,255,.82); margin-bottom: 0; }

/* ---- Form panel (HubSpot wrapper) ---- */
.form-panel {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: 4px;
  padding: 30px;
  box-shadow: var(--shadow-card);
}
.form-panel h3 { margin-bottom: .2em; }
.form-panel .form-note { font-size: .85rem; color: var(--steel-400); margin-bottom: 20px; }
.hs-form-frame { min-height: 420px; }

/* ---- Contact info blocks ---- */
.info-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.info-line .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.info-line strong { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel-400); font-family: var(--font-mono); font-weight: 600;}
.info-line span, .info-line a { color: var(--steel-800); text-decoration: none; font-size: 1.02rem; }
.info-line a:hover { color: var(--maroon-700); }

/* ---- Logo strip / trust bar ---- */
.trust-bar {
  display: flex; flex-wrap: wrap; gap: 34px; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: .82rem; color: var(--steel-400);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--steel-800); color: var(--steel-200); padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-mono); margin-bottom: 16px; }
.site-footer .brand img { height: 30px; }
.site-footer p { color: var(--steel-400); font-size: .92rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--steel-200); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .8rem; color: var(--steel-400); font-family: var(--font-mono);
}
.footer-bottom a { color: var(--steel-400); }

/* ---- Sticky mobile call bar ---- */
.mobile-callbar { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-media { order: -1; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .county-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 62px 0 0 0; background: var(--white); flex-direction: column;
    align-items: flex-start; padding: 20px 24px; transform: translateX(100%); transition: transform .2s ease;
    overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .main-nav ul a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--steel-100); width: 100%; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .county-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  body { padding-bottom: 62px; }
  .mobile-callbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--safety); color: var(--white); text-decoration: none;
    align-items: center; justify-content: center; gap: 10px;
    padding: 14px; font-weight: 700; font-family: var(--font-body);
    box-shadow: 0 -4px 16px rgba(0,0,0,.15);
  }
}
