
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-v20-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-v20-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-v20-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-v13-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-v13-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-v13-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-v13-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ============================================================
   B & M Roofing — Design System
   ============================================================ */
:root {
  --navy: #1a3a5c;
  --navy-dark: #14304b;
  --amber: #e8a020;
  --amber-dark: #cf8c14;
  --amber-text: #8f5610;
  --white: #ffffff;
  --gray-bg: #f5f7fa;
  --text-dark: #1a1a2e;
  --text-muted: #5a6a7a;
  --border: #e2e8f0;

  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(26, 58, 92, 0.08);
  --shadow-md: 0 6px 24px rgba(26, 58, 92, 0.12);
  --shadow-lg: 0 16px 48px rgba(26, 58, 92, 0.18);
  --header-h: 76px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; color: var(--navy); letter-spacing: 0.5px; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); text-transform: uppercase; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin-bottom: 1rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--gray { background: var(--gray-bg); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--amber-text); font-size: 1rem; margin-bottom: 10px;
}
.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 65ch; }
.section--navy .lead { color: rgba(255,255,255,0.85); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; font-size: 1.05rem;
  padding: 15px 30px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  min-height: 48px; line-height: 1.1; text-align: center;
}
.btn--primary { background: var(--amber); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--lg { padding: 18px 38px; font-size: 1.15rem; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  box-shadow: var(--shadow-sm); transition: box-shadow .2s ease;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand svg { height: 48px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--navy); line-height: 1; text-transform: uppercase; letter-spacing: 0.5px; }
.brand-name small { display: block; font-size: 0.6rem; letter-spacing: 2px; color: var(--amber); font-family: var(--font-body); font-weight: 600; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block; padding: 10px 14px; font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px; font-size: 1.05rem; color: var(--navy);
  border-radius: 6px; transition: background .15s, color .15s; cursor: pointer;
}
.nav-menu > li > a:hover, .nav-menu > li.active > a { color: var(--amber); }
.has-dropdown > a::after { content: "▾"; margin-left: 4px; font-size: 0.7em; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--white);
  box-shadow: var(--shadow-md); border-radius: var(--radius); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease;
  border-top: 3px solid var(--amber);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 14px; font-size: 0.95rem; font-weight: 500; border-radius: 6px; color: var(--text-dark); }
.dropdown a:hover { background: var(--gray-bg); color: var(--amber); }

.nav-phone { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-phone .ph-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); font-weight: 600; }
.nav-phone .ph-num { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--navy); line-height: 1; }
.nav-phone .ph-num:hover { color: var(--amber); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: center;
  background: var(--navy); color: var(--white); padding: 80px 0;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(26, 58, 92, 0.65); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); max-width: 16ch; text-shadow: 0 2px 18px rgba(0,0,0,0.3); }
.hero-sub {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 1px; margin: 18px 0 32px; color: var(--amber); text-transform: uppercase;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* page hero (interior) */
.page-hero { position: relative; background: var(--navy); color: var(--white); padding: 70px 0; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.25; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255,255,255,0.9); margin-top: 14px; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--amber); }

/* ---------- Trust Bar ---------- */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px 16px; text-align: left; }
.trust-item + .trust-item { border-left: 1px solid var(--border); }
.trust-item svg { width: 34px; height: 34px; color: var(--amber); flex-shrink: 0; }
.trust-item strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); display: block; line-height: 1.1; text-transform: uppercase; }
.trust-item span { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Cards / Services ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards-6 { grid-template-columns: repeat(3, 1fr); }

.svc-card {
  position: relative; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
  display: block;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--amber); }
.svc-icon {
  width: 56px; height: 56px; border-radius: 12px; background: var(--gray-bg);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.svc-icon svg { width: 30px; height: 30px; color: var(--navy); }
.svc-card h3 { margin-bottom: 8px; }
.svc-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.svc-card .more { display: inline-block; margin-top: 14px; color: var(--amber-text); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-excl {
  position: absolute; top: 16px; right: 16px; background: var(--amber); color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: 0.75rem; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 6px; text-transform: uppercase;
}
.svc-card--featured { border-color: var(--amber); border-width: 2px; }

/* ---------- Why Choose (3 cols) ---------- */
.why-col { text-align: center; padding: 10px; }
.why-col .why-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.why-col .why-icon svg { width: 32px; height: 32px; color: var(--amber); }
.why-col p { color: var(--text-muted); }

/* ---------- Solar callout ---------- */
.solar-callout { position: relative; overflow: hidden; }
.solar-callout::after { content: "☀"; position: absolute; right: -20px; top: -30px; font-size: 220px; color: rgba(232,160,32,0.08); pointer-events: none; }
.solar-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.solar-grid .badge-line { color: var(--amber); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }

/* ---------- Reviews ---------- */
.review-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.stars { color: var(--amber); font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 14px; }
.review-card p { font-style: italic; color: var(--text-dark); }
.review-card .reviewer { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.review-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.review-card .reviewer strong { display: block; color: var(--navy); }
.review-card .reviewer span { font-size: 0.82rem; color: var(--text-muted); }
.gwidget {
  margin-top: 36px; border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 26px; text-align: center; background: var(--gray-bg); color: var(--text-muted); font-size: 0.9rem;
}
.gwidget strong { color: var(--navy); display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: 1.1rem; }

/* ---------- Service Areas strip ---------- */
.areas-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.area-pill {
  background: var(--white); border: 1px solid var(--border); border-radius: 30px;
  padding: 12px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  color: var(--navy); transition: all .18s; text-transform: uppercase; letter-spacing: 0.5px;
}
.area-pill:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); }
.area-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s; display: block;
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.area-card h3 { color: var(--navy); margin-bottom: 6px; }
.area-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.area-card .more { color: var(--amber); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; display: inline-block; margin-top: 12px; }

/* ---------- Forms ---------- */
.estimate-box { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg); color: var(--text-dark); }
.estimate-box h3 { margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem; min-height: 48px; background: var(--white); color: var(--text-dark);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232,160,32,0.18); }
.form-success { display: none; background: #e6f4ea; border: 1px solid #34a853; color: #1e7e34; padding: 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 600; }
.form-success.show { display: block; }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.info-card { background: var(--gray-bg); border-radius: var(--radius); padding: 30px; }
.info-card h3 { margin-bottom: 16px; }
.info-row { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.info-row svg { width: 22px; height: 22px; color: var(--amber); flex-shrink: 0; margin-top: 3px; }
.info-row strong { display: block; color: var(--navy); font-family: var(--font-head); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--navy); }

/* ---------- FAQ ---------- */
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.faq-q::after { content: "+"; font-size: 1.6rem; color: var(--amber); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding: 0 24px; color: var(--text-muted); }
.faq-item.open .faq-a { max-height: 320px; padding: 0 24px 20px; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step .num { counter-increment: step; flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; background: var(--amber); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; }
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--text-muted); margin: 0; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: "✓"; color: var(--amber); font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.section--navy .checklist li::before { color: var(--amber); }

/* ---------- Image blocks ---------- */
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.media-grid img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; max-height: 420px; }
.media-grid .owner-photo {
  object-fit: contain;
  max-height: 600px;
  background: var(--gray-bg);
}

/* ---------- CTA banner ---------- */
.cta-banner { text-align: center; }
.cta-banner h2 { margin-bottom: 16px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.8); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer h4 { color: var(--white); font-size: 1.3rem; margin-bottom: 16px; text-transform: uppercase; }
.footer a { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.footer a:hover { color: var(--amber); }
.footer-links li { margin-bottom: 9px; }
.footer .brand-name { color: var(--white); }
.footer-about p { font-size: 0.95rem; margin-top: 16px; }
.footer-phone { font-family: var(--font-head); font-size: 1.5rem; color: var(--amber); font-weight: 700; margin-top: 14px; display: inline-block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-logo svg { height: 54px; width: auto; }

/* ---------- Mobile sticky call ---------- */
.mobile-call { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--amber); color: var(--navy); text-align: center; padding: 16px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 -4px 16px rgba(0,0,0,0.18); }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: none; }
  .trust-item { border-top: 1px solid var(--border); }
  .grid-3, .cards-6 { grid-template-columns: repeat(2, 1fr); }
  .solar-grid, .media-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hamburger { display: flex; }
  .nav-phone .ph-label { display: none; }
  .nav-menu {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(82vw, 340px);
    background: var(--white); flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px; box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .28s ease;
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu > li > a { padding: 14px; font-size: 1.2rem; border-bottom: 1px solid var(--border); }
  .has-dropdown > a::after { float: right; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; border-left: 3px solid var(--amber); padding: 0 0 0 12px; margin: 4px 0 8px; display: none; }
  .has-dropdown.expanded .dropdown { display: block; }
  body { padding-bottom: 60px; }
  .mobile-call { display: block; }
}
@media (max-width: 560px) {
  .grid-3, .cards-6, .grid-2, .form-row { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .estimate-box { padding: 24px; }
}

/* ---- Logo image in nav ---- */
.nav-logo {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 16px;
}
/* Remove brand-name text next to logo (logo image has text built in) */
.brand-name { display: none; }
