/* ===================================================================
   Industrial Roofing Birmingham — Design System
   Palette: deep navy steelwork + hazard amber, corrugated-profile motif
   Type: Oswald (condensed, structural) + Inter (body) + IBM Plex Mono (spec/data)
=================================================================== */

:root {
  --navy-900: #0d1b2a;
  --navy-800: #122436;
  --navy-700: #16283d;
  --steel-600: #45566a;
  --steel-400: #7c8a99;
  --steel-200: #c9d1d9;
  --amber-500: #e2a33d;
  --amber-600: #c98a26;
  --bg: #f4f5f3;
  --white: #ffffff;
  --ink: #1a2530;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius: 3px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--navy-900);
  margin: 0 0 0.5em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; letter-spacing: 0.03em; }

p { margin: 0 0 1em; }
a { color: var(--navy-800); }
img { max-width: 100%; height: auto; display: block; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-600);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber-500);
  display: inline-block;
}

/* ---------- Corrugated-profile signature divider ---------- */
.corrugated-divider {
  width: 100%;
  height: 18px;
  display: block;
  line-height: 0;
}
.corrugated-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber-500);
  color: var(--navy-900);
  padding: 10px 16px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-900);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--amber-500);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--amber-500);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav.main-nav a {
  color: var(--steel-200);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav.main-nav a:hover, nav.main-nav a:focus-visible {
  color: var(--white);
  border-color: var(--amber-500);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.phone-link {
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.phone-link:hover { color: var(--amber-500); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-500);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--amber-600); }
.btn:active { transform: translateY(1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--steel-400);
}
.btn-outline:hover { border-color: var(--amber-500); color: var(--amber-500); background: transparent; }

.mobile-call-btn { display: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--navy-800);
  padding: 10px 0;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--steel-400);
}
.breadcrumbs a { color: var(--steel-200); text-decoration: none; }
.breadcrumbs a:hover { color: var(--amber-500); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--steel-600); }

/* ---------- Hero (two-column, respects portrait photo ratio) ---------- */
.hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 56px 0 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { padding-bottom: 56px; }
.hero-copy .eyebrow { color: var(--amber-500); }
.hero h1 { color: var(--white); }
.hero-copy p.lede {
  font-size: 1.1rem;
  color: var(--steel-200);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.hero-media {
  position: relative;
  align-self: end;
  max-width: 340px;
  margin: 0 auto;
}
.hero-media img {
  width: 100%;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.hero-media .caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--navy-900);
  background: var(--amber-500);
  padding: 6px 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--navy-800);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 18px 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--steel-200);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}
.trust-item .dot { width: 6px; height: 6px; background: var(--amber-500); border-radius: 50%; flex-shrink: 0; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-alt { background: var(--white); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--steel-600); }

/* ---------- Service grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--amber-500);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--steel-600); font-size: 0.94rem; margin-bottom: 14px; }
.card a.card-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-800);
  text-decoration: none;
  border-bottom: 1px solid var(--amber-500);
  padding-bottom: 2px;
}
.card a.card-link:hover { color: var(--amber-600); }

/* ---------- Two column content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.bullet-list { list-style: none; margin: 0; padding: 0; }
.bullet-list li {
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid var(--steel-200);
  position: relative;
  font-size: 0.96rem;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 19px;
  width: 10px; height: 10px;
  background: var(--amber-500);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.bullet-list li:last-child { border-bottom: none; }

/* ---------- Process steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 28px 20px 20px;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
}
.process-step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-600);
  background: var(--bg);
  border: 1px solid var(--amber-500);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -13px;
  left: 20px;
}
.process-step h3 { font-size: 1rem; margin-bottom: 8px; }
.process-step p { color: var(--steel-600); font-size: 0.9rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-900);
  color: var(--white);
  padding: 52px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: var(--steel-200); margin: 0; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Area cards / hub ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.area-chip {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--navy-900);
  display: block;
  transition: border-color 0.15s, transform 0.1s;
}
.area-chip:hover { border-color: var(--amber-500); transform: translateY(-2px); }
.area-chip .area-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-transform: uppercase; }
.area-chip .area-county { font-family: var(--font-mono); font-size: 0.72rem; color: var(--steel-400); }

.area-detail-box {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-left: 4px solid var(--amber-500);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 0.92rem;
  color: var(--steel-600);
}
.area-detail-box strong { color: var(--navy-900); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--steel-200);
  padding: 20px 0;
}
.faq-item h3 { font-size: 1rem; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.faq-item p { color: var(--steel-600); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--steel-200);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--steel-200); text-decoration: none; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--amber-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--steel-400);
  font-family: var(--font-mono);
}
.footer-bottom a { color: var(--steel-400); }

/* ---------- 404 ---------- */
.error-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
}
.error-page .code {
  font-family: var(--font-mono);
  color: var(--amber-500);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .header-cta .btn-outline { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 260px; margin-top: 20px; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }

  .mobile-call-btn {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: var(--amber-500);
    color: var(--navy-900);
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
  }
  body { padding-bottom: 58px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

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

:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 2px;
}
