/* MCI Roofing Inc. — brand: CTA #b10101, sections #003b7d */
:root {
  --red: #b10101;
  --red-dark: #8c0101;
  --blue: #003b7d;
  --blue-dark: #002c5e;
  --ink: #1c2733;
  --muted: #55636f;
  --bg: #ffffff;
  --bg-alt: #f2f5f9;
  --line: #dde4ec;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 59, 125, 0.10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--blue-dark);
  color: #cfe0f4;
  font-size: 14px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
header.site {
  background: #fff;
  border-bottom: 3px solid var(--blue);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
header.site .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .mark {
  background: var(--blue); color: #fff; font-weight: 800; font-size: 20px;
  padding: 8px 12px; border-radius: 6px; letter-spacing: 1px;
}
.logo-img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.logo .word { line-height: 1.15; }
.logo .word strong { display: block; color: var(--blue); font-size: 20px; letter-spacing: .5px; }
.logo .word span { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.5px; }
nav.main ul { display: flex; gap: 26px; list-style: none; align-items: center; flex-wrap: wrap; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15.5px; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--red); }
.btn {
  display: inline-block; background: var(--red); color: #fff !important;
  padding: 13px 26px; border-radius: 6px; text-decoration: none;
  font-weight: 700; font-size: 15.5px; border: none; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--red-dark); }
.btn.ghost { background: transparent; border: 2px solid #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(rgba(0, 44, 94, .88), rgba(0, 59, 125, .82)), url("/images/banner.jpg") center/cover no-repeat;
  color: #fff; text-align: center; padding: 96px 0 104px;
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.15; margin-bottom: 8px; }
.hero h1 em { color: #ffd9d9; font-style: normal; }
.hero p.lead { max-width: 760px; margin: 18px auto 30px; font-size: clamp(17px, 2.2vw, 21px); color: #dbe7f5; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .trust { margin-top: 34px; font-size: 14.5px; color: #b9cde6; letter-spacing: .3px; }

/* Page hero (inner pages) */
.page-hero { background: var(--blue); color: #fff; padding: 56px 0; text-align: center; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); }
.page-hero p { color: #cfe0f4; max-width: 720px; margin: 10px auto 0; }
.breadcrumbs { font-size: 13.5px; margin-bottom: 12px; color: #9fc0e4; }
.breadcrumbs a { color: #cfe0f4; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: var(--bg-alt); }
section.block.blue { background: var(--blue); color: #fff; }
section.block.blue h2, section.block.blue h3 { color: #fff; }
section.block.blue p { color: #d6e4f4; }
.kicker { color: var(--red); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 13.5px; display: block; margin-bottom: 8px; }
section.block.blue .kicker { color: #ffb3b3; }
h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--blue); line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 21px; color: var(--blue); margin-bottom: 8px; }
.center { text-align: center; }
.sub { max-width: 780px; margin: 0 auto 40px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card .pad { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.card .link { margin-top: 14px; font-weight: 700; color: var(--red); text-decoration: none; font-size: 15px; }
.card .link:hover { text-decoration: underline; }
ul.checks { list-style: none; margin: 18px 0; }
ul.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
ul.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--red); font-weight: 800;
}
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Steps */
.steps { counter-reset: step; }
.steps .step { background: #fff; border-radius: var(--radius); padding: 30px 26px; border-top: 5px solid var(--red); box-shadow: var(--shadow); }
.steps .step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 14px;
}
.steps .step p { color: var(--muted); font-size: 15.5px; }

/* Testimonials */
.quote {
  background: #fff; border-radius: var(--radius); padding: 28px;
  border-left: 5px solid var(--red); box-shadow: var(--shadow);
}
.quote p { color: var(--ink); font-size: 15.5px; font-style: italic; }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; color: var(--blue); }
.quote .stars { color: #e8a300; letter-spacing: 2px; margin-bottom: 10px; }

/* Why MCI pillars */
.pillar { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); border-top: 5px solid var(--blue); }
.pillar h3 { color: var(--red); }
.pillar p { color: var(--muted); font-size: 15.5px; }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  margin-bottom: 12px; padding: 0 22px;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--blue);
  padding: 18px 0; font-size: 17px; list-style: none; position: relative;
}
.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--red); font-size: 22px; font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* Gallery — masonry columns so mixed portrait/landscape photos keep their natural shape */
.gallery { columns: 3; column-gap: 22px; }
figure.work { margin: 0 0 22px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); break-inside: avoid; }
figure.work img { width: 100%; height: auto; }

/* Certification badges */
.badges { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 10px 0 30px; }
.badges img { width: 240px; height: auto; background: #fff; border-radius: var(--radius); padding: 10px; }
figure.work figcaption { padding: 14px 18px; font-weight: 700; color: var(--blue); font-size: 14.5px; text-transform: uppercase; letter-spacing: .6px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e4f4; max-width: 640px; margin: 0 auto 26px; }

/* Areas */
.areas ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.areas li { background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 7px 18px; font-size: 14.5px; font-weight: 600; color: var(--blue); }
section.block.blue .areas li { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }

/* Team */
.person { text-align: center; }
.person h3 { margin-top: 14px; }
.person p.role { color: var(--red); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 1.5px; }
.team-photo { margin: 0 auto 30px; max-width: 820px; text-align: center; }
.team-photo img { width: 100%; }
.team-photo figcaption { margin-top: 12px; color: var(--muted); font-size: 14.5px; font-style: italic; }
.team-roles { max-width: 820px; margin: 0 auto; }

/* Image credit captions (CC-licensed photos) */
.img-credit { margin: 0; }
.img-credit img { width: 100%; }
.img-credit figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.img-credit figcaption a { color: var(--muted); }

/* Forms */
form.contact { display: grid; gap: 16px; }
form.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact label { font-weight: 700; font-size: 14px; color: var(--blue); display: block; margin-bottom: 6px; }
form.contact input, form.contact select, form.contact textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 15.5px; font-family: inherit; background: #fff;
}
form.contact input:focus, form.contact select:focus, form.contact textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

/* Google Maps embed */
.map-embed iframe {
  width: 100%; max-width: 100%; border: 0;
  border-radius: var(--radius); box-shadow: var(--shadow); display: block;
}

/* Lead funnel embed (Polyares) */
.lead-embed { margin-top: 22px; }
.lead-embed iframe { max-width: 100%; border: 0; }

/* Info cards on contact */
.info-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border-top: 5px solid var(--red); }
.info-card h3 { font-size: 17px; }
.info-card a { font-weight: 700; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer.site { background: var(--blue-dark); color: #b9cde6; padding: 64px 0 0; font-size: 15px; }
footer.site h4 { color: #fff; font-size: 16px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 9px; }
footer.site a { color: #cfe0f4; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0; font-size: 13px; color: #8fa9c9; text-align: center; }
.socials { display: flex; gap: 12px; margin-top: 14px; }
.socials a {
  display: inline-flex; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.12); align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; text-decoration: none !important;
}
.socials a:hover { background: var(--red); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 2; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .two-col, .grid-3, .grid-4, footer.site .cols, form.contact .row { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  nav.main ul { gap: 14px; }
  section.block { padding: 52px 0; }
}
