/* M&B Home Maintenance: static replica of the original Beaver Builder theme.
   Colors, fonts and spacing are copied from the live WordPress site's computed styles
   (bb-theme skin + layout CSS, measured Nov 19, 2026). The goal is that it looks the same. */

@font-face {
  font-family: "Alegreya Sans";
  src: url("../fonts/alegreya-sans-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --red: #990000;          /* theme primary (#900) */
  --red-light: #b30000;    /* nav gradient top */
  --red-border: #db0000;
  --gold: #e7b322;         /* links, buttons, footer rule */
  --gold-border: #b88d14;
  --orange: #cf6713;       /* nav hover / current page */
  --heading: #333333;
  --text: #757575;
  --page-bg: #f2f2f2;
  --helv: "Helvetica", Verdana, Arial, sans-serif;
  --verdana: "Verdana", Helvetica, Arial, sans-serif;
}

/* ---------- Base (bb-theme defaults) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page-bg); color: var(--text); font: 400 14px/1.45 var(--helv); overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--heading); font-family: var(--helv); font-weight: 400; line-height: 1.4; }
h1 { font-size: 36px; } h2 { font-size: 30px; } h3 { font-size: 24px; } h4 { font-size: 18px; } h5 { font-size: 14px; }
p { margin: 0 0 10px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: underline; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--red); color: #fff; font-weight: 700; }
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- Boxed page with the red glow ---------- */
.page { position: relative; width: 1100px; max-width: 90%; margin: 0 auto; background: #fff; box-shadow: 0 0 15px var(--red); }

/* ---------- Header (logo) ---------- */
.site-header { padding: 30px 55px; background: #fff; }
.site-header .logo { display: block; width: 242px; }
.site-header .logo img { width: 242px; height: 130px; }

/* ---------- Red nav bar ---------- */
.nav-bar { position: relative; background: linear-gradient(to bottom, var(--red-light) 0%, var(--red) 100%); border-top: 1px solid var(--red-border); border-bottom: 1px solid var(--red-border); }
.nav-toggle { display: none; }
.nav-links { display: flex; margin: 0; padding: 10px 55px; list-style: none; }
.nav-links li + li { border-left: 1px solid rgba(0, 0, 0, .18); }   /* the thin divider between items */
.nav-links a { display: block; padding: 5px 15px; color: #fff; font: 700 15px/21px var(--verdana); text-transform: uppercase; text-decoration: underline; }
.nav-links a:hover, .nav-links a:focus, .nav-links a[aria-current="page"] { color: var(--orange); }

/* ---------- Content area ---------- */
.content { background: #fff; }
.container { width: 1020px; max-width: 100%; margin: 0 auto; }
.row { padding: 20px 0; }

/* Home: row 1 */
.row-intro { margin-top: 25px; padding: 20px 0 39px; }
.row-intro > .container { padding: 0 9px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.intro-top { align-items: start; padding-top: 20px; }
.site-title { font: 700 38px/1.4 var(--verdana); color: #110101; }
.intro-mid { grid-template-columns: 450fr 502fr; padding-right: 10px; margin-top: 40px; }
.intro-mid .text { padding-top: 20px; }
.lead-h2 { margin-bottom: 51px; }
.photo img { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; }
.intro-bottom .text { padding-top: 20px; }
.row-intro .separator { margin: 41px 0 40px; }

/* Shared */
.separator { height: 0; border-top: 6px solid var(--red); }
.strong-h2 { font-weight: 700; margin-bottom: 40px; }

/* Home: row 2 (rental) */
.row-rental { padding: 40px 0 60px; }
.row-rental .grid-2 { align-items: start; }
.row-rental .text { padding-top: 20px; }

/* Home: row 3 (services list) */
.row-services { padding: 50px 0 40px; }
.list-heading { display: flex; align-items: flex-start; margin-bottom: 20px; font: 700 24px/1.4 var(--verdana); color: var(--heading); }
.list-heading svg { width: 45px; height: 45px; margin-right: 11px; flex: none; fill: var(--gold); }
.list-heading span { color: var(--gold); padding-top: 7px; }
.service h4 { color: #000; margin-bottom: 10px; }
.service p { color: #000; font-family: var(--verdana); margin: 0; }
.service + .service { margin-top: 40px; }

/* Home: row 4 (fire inspections call to action) */
.row-cta { padding: 44px 0 60px; }
.cta { display: grid; grid-template-columns: 714fr 276fr; column-gap: 30px; align-items: center; margin-top: 40px; }
.cta h2 { margin-bottom: 10px; }
.cta h5 { color: var(--heading); }

/* ---------- Buttons (gold, as on the original) ---------- */
.btn { display: block; text-align: center; background: var(--gold); border: 1px solid var(--gold-border); border-radius: 4px; text-decoration: none; text-align: center; transition: background-color .2s; }
.btn:hover { background: #d9a51a; }
.btn svg { display: inline-block; margin-right: 8px; fill: currentColor; vertical-align: middle; }
.btn span { vertical-align: middle; }
.btn-big { width: 450px; max-width: 100%; min-height: 65px; padding: 15px 24px; color: #141414; font: 800 25px/18px "Alegreya Sans", var(--helv); box-shadow: 0 3px 6px -1px var(--red); }
.btn-big:hover { color: #141414; }
.btn-big svg { width: 29px; height: 33px; }
.btn-small { width: 100%; min-height: 47px; padding: 14px 20px; color: #000; font: 400 16px/18px var(--helv); }
.btn-small:hover { color: #000; }
.btn-small svg { width: 18px; height: 21px; }

/* ---------- Contact page ---------- */
.page-copy { padding: 60px 0 50px; }
.page-copy h1 { margin-bottom: 20px; }
.page-copy h1 a { color: var(--heading); }
.page-copy h3 { margin-bottom: 50px; }
.page-copy .gap { margin-top: 50px; }
.page-copy .contact-logo { margin-top: 20px; }

/* ---------- Privacy policy (blog-post layout) ---------- */
.post { padding: 40px 55px 60px; }
.post-title { margin-bottom: 50px; }
.post h2 { font-weight: 700; margin: 0 0 15px; }
.post h3 { margin: 20px 0 15px; }
.post ul { margin: 14px 0 20px; padding-left: 40px; }
.post li { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--red); border-top: 4px solid var(--gold); color: #fff; font-size: 12px; line-height: 1.45; }
.site-footer .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 20px 55px 10px; }
.site-footer p { margin: 0; padding-bottom: 20px; }
.site-footer .right { text-align: right; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--orange); }

/* ---------- 404 ---------- */
.not-found { padding: 60px 55px 80px; }
.not-found h1 { margin-bottom: 20px; }
.not-found p { font-size: 18px; color: var(--heading); }
.not-found a { color: var(--red); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .container { padding: 0 20px; }
  .row-intro > .container { padding: 0 20px; }
}

/* ---------- Mobile (matches the theme's 768px breakpoint) ---------- */
@media (max-width: 768px) {
  .page { width: auto; max-width: none; box-shadow: none; }
  .site-header { padding: 30px 20px; text-align: center; }
  .site-header .logo { margin: 0 auto; }
  .nav-bar { background: #fff; border: 0; padding: 0 20px 20px; }
  .nav-toggle { display: block; width: 100%; padding: 9px 10px; border: 0; background: #e6e6e6; color: var(--red); font: 700 15px/21px var(--verdana); text-transform: uppercase; cursor: pointer; }
  .nav-links { display: none; flex-direction: column; padding: 0; border-top: 1px solid #e6e6e6; }
  .nav-bar.is-open .nav-links, .no-js .nav-links { display: flex; }
  .nav-links li + li { border-left: 0; }
  .nav-links li { border-bottom: 1px solid #e6e6e6; }
  .nav-links a { padding: 15px; color: var(--red); }
  .nav-links a[aria-current="page"], .nav-links a:hover { color: var(--gold); }

  .container { padding: 0 20px; }
  .row-intro { margin-top: 0; padding: 20px 0; }
  .row-intro > .container { padding: 0 20px; }
  .grid-2, .intro-mid, .cta { grid-template-columns: 1fr; row-gap: 0; }
  .intro-mid { padding-right: 0; }
  .intro-top { padding-top: 20px; }
  .intro-top .btn-big { width: 100%; margin-top: 40px; padding: 15px 70px; line-height: 30px; }
  .intro-mid { margin-top: 40px; }
  .intro-mid .photo { margin-top: 45px; }
  .intro-bottom .text { padding-top: 60px; }
  .row-rental { padding: 99px 0 40px; }
  .row-cta { padding: 14px 0 56px; }
  .row-rental .text { padding-top: 0; }
  .row-rental .photo { margin-top: 50px; }
  .row-services { padding-top: 60px; }
  .list-heading { font-size: 24px; }
  .cta { text-align: center; margin-top: 60px; row-gap: 20px; }
  .post { padding: 40px 20px; }
  .site-footer .inner { grid-template-columns: 1fr; gap: 0; padding: 20px 20px 10px; text-align: center; }
  .site-footer .right { text-align: center; }
  .not-found { padding: 40px 20px 60px; }
}

@media print {
  .nav-bar, .skip-link { display: none !important; }
  .page { box-shadow: none; }
}
