/* =========================================================
   MCG Roofing / Mayorga Construction Group
   Bold construction-industry design system
   ========================================================= */

:root {
  --ink: #14181d;          /* near-black charcoal */
  --steel: #1d2630;        /* dark steel */
  --steel-2: #2a3744;
  --blue: #0b5fa5;         /* MCG trust blue */
  --blue-dark: #073f6f;
  --orange: #ee7325;       /* safety / construction accent */
  --orange-dark: #d4611a;
  --concrete: #f4f5f7;     /* light bg */
  --concrete-2: #e9ebee;
  --line: #d9dce1;
  --gray: #5c6670;
  --gray-light: #8b949e;
  --white: #ffffff;
  --maxw: 1180px;
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); color: var(--ink); background: var(--white);
  line-height: 1.6; font-size: 17px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */
h1, h2, h3, h4, h5 { font-family: var(--head); font-weight: 600; line-height: 1.05; letter-spacing: 0.01em; }
.display { font-size: clamp(40px, 7vw, 82px); font-weight: 700; line-height: 0.98; text-transform: uppercase; letter-spacing: 0.005em; }
.headline { font-size: clamp(30px, 4.6vw, 54px); font-weight: 700; text-transform: uppercase; }
.eyebrow {
  font-family: var(--head); font-size: 15px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--orange); display: inline-block;
}
.eyebrow.on-dark { color: var(--orange); }
.lead { font-family: var(--body); font-size: clamp(17px, 1.7vw, 20px); color: var(--gray); line-height: 1.6; }
.muted { color: var(--gray); }
.center { text-align: center; }
p { font-family: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--head); font-size: 16px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 15px 30px; border: none; cursor: pointer;
  border-radius: 4px; transition: all 0.25s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(238,115,37,0.6); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); padding: 13px 28px; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--steel); transform: translateY(-2px); }
.btn-lg { padding: 17px 36px; font-size: 18px; }
.btn-ghost { background: none; color: var(--blue); padding: 6px 0; letter-spacing: 0.04em; }
.btn-ghost .arrow { transition: transform 0.25s var(--ease); }
.btn-ghost:hover .arrow { transform: translateX(5px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #fff; font-size: 13.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar a { color: rgba(255,255,255,0.85); transition: color 0.2s; }
.topbar a:hover { color: var(--orange); }
.topbar .tb-left { display: flex; gap: 22px; }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; stroke: var(--orange); fill: none; stroke-width: 2; }
@media (max-width: 760px) { .topbar .tb-left .tb-item.hide-sm { display: none; } .topbar { font-size: 12.5px; } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 14px rgba(0,0,0,0.04); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 76px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 46px; width: auto; }
.nav-logo .wordmark { font-family: var(--head); font-weight: 700; font-size: 23px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); line-height: 1; }
.nav-logo .wordmark span { color: var(--orange); }
.nav-logo .wordmark small { display: block; font-size: 10.5px; letter-spacing: 0.22em; color: var(--gray); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-family: var(--head); font-size: 16px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--steel); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-family: var(--head); font-size: 19px; font-weight: 600; color: var(--blue); }
.nav-btn { font-family: var(--head); font-size: 15px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 11px 22px; background: var(--orange); color: #fff; border-radius: 4px; transition: background 0.2s; }
.nav-btn:hover { background: var(--orange-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; transition: 0.3s; }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.section-sm { padding: 60px 0; }
.concrete { background: var(--concrete); }
.ink { background: var(--ink); color: #fff; }
.ink .lead, .ink .muted { color: rgba(255,255,255,0.72); }
.steel { background: var(--steel); color: #fff; }
.section-head { max-width: 780px; margin: 0 auto 54px; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin-top: 18px; }
.divider { width: 64px; height: 4px; background: var(--orange); margin: 18px auto 0; border-radius: 2px; }
.divider.left { margin-left: 0; }

/* ---------- Hero (full-bleed photo) ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,19,24,0.9) 0%, rgba(15,19,24,0.72) 45%, rgba(15,19,24,0.35) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 60px 24px; width: 100%; }
.hero-content { max-width: 760px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero p { color: rgba(255,255,255,0.85); font-size: clamp(17px, 1.8vw, 21px); max-width: 600px; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badges { margin-top: 40px; display: flex; gap: 26px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 15px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.92); }
.hero-badge svg { width: 22px; height: 22px; stroke: var(--orange); fill: none; stroke-width: 2; flex: none; }

/* page hero (shorter) */
.page-hero { position: relative; min-height: 46vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.page-hero .hero-bg::after { background: linear-gradient(100deg, rgba(15,19,24,0.88) 0%, rgba(15,19,24,0.62) 100%); }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 620px; }
.page-hero .eyebrow { margin-bottom: 14px; }
.crumbs { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 22px; }
.crumbs a:hover { color: var(--orange); }

/* ---------- Stat strip ---------- */
.statstrip { background: var(--orange); color: #fff; }
.statstrip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.statstrip .stat { text-align: center; padding: 34px 12px; border-right: 1px solid rgba(255,255,255,0.22); }
.statstrip .stat:last-child { border-right: none; }
.statstrip .num { font-family: var(--head); font-size: clamp(34px, 4vw, 50px); font-weight: 700; line-height: 1; }
.statstrip .lbl { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; margin-top: 8px; opacity: 0.92; }
@media (max-width: 720px) { .statstrip .wrap { grid-template-columns: repeat(2, 1fr); } .statstrip .stat:nth-child(2) { border-right: none; } .statstrip .stat:nth-child(1), .statstrip .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.22); } }

/* ---------- Grids / cards ---------- */
.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); }

/* service/system card with photo */
.pcard { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); min-height: 340px; display: flex; align-items: flex-end; box-shadow: 0 10px 30px -16px rgba(0,0,0,0.3); }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,19,24,0.92) 0%, rgba(15,19,24,0.5) 45%, rgba(15,19,24,0.1) 100%); transition: background 0.3s; }
.pcard:hover img { transform: scale(1.06); }
.pcard .pcard-body { position: relative; z-index: 2; padding: 28px; color: #fff; }
.pcard h3 { font-size: 24px; text-transform: uppercase; margin-bottom: 8px; }
.pcard p { font-size: 15px; color: rgba(255,255,255,0.82); }
.pcard .tag { font-family: var(--head); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 10px; }

/* feature tile (icon) */
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.tile:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -20px rgba(0,0,0,0.22); border-color: transparent; }
.tile .ic { width: 58px; height: 58px; border-radius: 10px; background: var(--ink); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.tile .ic svg { width: 28px; height: 28px; stroke: var(--orange); fill: none; stroke-width: 1.8; }
.tile h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 10px; }
.tile p { color: var(--gray); font-size: 16px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-text { order: 2; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0,0,0,0.4); }
.split-media img { width: 100%; height: 480px; object-fit: cover; }
.split-media .badge-float { position: absolute; left: 24px; bottom: 24px; background: var(--orange); color: #fff; padding: 16px 22px; border-radius: 8px; font-family: var(--head); text-transform: uppercase; }
.split-media .badge-float .b-num { font-size: 30px; font-weight: 700; line-height: 1; }
.split-media .badge-float .b-lbl { font-size: 12px; letter-spacing: 0.08em; }
.split-text .eyebrow { margin-bottom: 14px; }
.split-text h2 { margin-bottom: 16px; }
.split-text ul { list-style: none; margin: 24px 0; }
.split-text li { padding: 12px 0 12px 36px; position: relative; border-bottom: 1px solid var(--line); font-weight: 500; }
.split-text li:last-child { border-bottom: none; }
.split-text li::before { content: ""; position: absolute; left: 0; top: 14px; width: 22px; height: 22px; background: var(--orange); border-radius: 5px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/16px no-repeat; box-shadow: none; }
.split-text li::after { content: ""; position: absolute; left: 0; top: 14px; width: 22px; height: 22px; background: var(--orange); border-radius: 5px; z-index: -1; }
.ink .split-text li { border-color: rgba(255,255,255,0.14); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gitem { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; background: var(--steel); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gitem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,19,24,0.7), transparent 55%); opacity: 0; transition: opacity 0.3s; }
.gitem:hover img { transform: scale(1.08); }
.gitem:hover::after { opacity: 1; }
.gitem .cap { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; opacity: 0; transform: translateY(8px); transition: all 0.3s; }
.gitem:hover .cap { opacity: 1; transform: none; }
.gitem.tall { grid-row: span 2; }
.gitem.wide { grid-column: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } .gitem.wide { grid-column: span 2; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; } .gitem.wide, .gitem.tall { grid-column: auto; grid-row: auto; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,12,15,0.94); display: none; align-items: center; justify-content: center; z-index: 200; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox .lb-close { position: absolute; top: 22px; right: 28px; color: #fff; font-size: 40px; font-family: var(--head); cursor: pointer; line-height: 1; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote { background: #fff; border-radius: var(--radius); padding: 34px; border-top: 4px solid var(--orange); box-shadow: 0 12px 34px -22px rgba(0,0,0,0.3); }
.quote .stars { color: #f5a623; font-size: 17px; letter-spacing: 3px; margin-bottom: 16px; }
.quote p { font-size: 17px; line-height: 1.6; color: var(--ink); }
.quote .who { margin-top: 20px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.04em; font-size: 15px; }
.quote .who span { display: block; font-family: var(--body); text-transform: none; letter-spacing: 0; color: var(--gray); font-size: 14px; font-weight: 400; }

/* ---------- Brand strip ---------- */
.brandstrip { display: flex; flex-wrap: wrap; gap: 14px 16px; justify-content: center; }
.brandstrip .pill { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; font-weight: 500; color: var(--steel); background: #fff; border: 1px solid var(--line); border-radius: 980px; padding: 11px 22px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 72px 48px; text-align: center; color: #fff; }
.cta-band .cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-band .cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(11,95,165,0.92), rgba(7,63,111,0.92)); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 50px); text-transform: uppercase; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 16px auto 0; font-size: 19px; }
.cta-band .hero-actions { margin-top: 34px; justify-content: center; }

/* ---------- Areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.areas .chip { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.05em; font-size: 14px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 4px; padding: 12px 20px; color: var(--steel); }

/* ---------- Form ---------- */
.form-wrap { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: 0 24px 60px -30px rgba(0,0,0,0.35); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.05em; font-size: 13px; font-weight: 500; color: var(--steel); }
.field input, .field select, .field textarea { font-family: var(--body); font-size: 16px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(238,115,37,0.14); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--gray); margin-top: 4px; }
.form-success { display: none; background: #eef7ee; border: 1px solid #bfe0bf; border-radius: var(--radius); padding: 30px; text-align: center; color: #2c6e2c; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info .row { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .row .ic { width: 48px; height: 48px; flex: none; border-radius: 8px; background: var(--orange); display: flex; align-items: center; justify-content: center; }
.contact-info .row .ic svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }
.contact-info .row h4 { font-size: 18px; text-transform: uppercase; margin-bottom: 2px; }
.ink .contact-info .row p, .ink .contact-info .row a { color: rgba(255,255,255,0.75); }
.contact-info .row p, .contact-info .row a { color: var(--gray); font-size: 16px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 70px 0 30px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 40px; }
.footer h5 { font-family: var(--head); font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 11px; }
.footer a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer a:hover { color: var(--orange); }
.footer .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer .brand img { height: 44px; background: #fff; padding: 5px 8px; border-radius: 6px; }
.footer .brand .wordmark { font-family: var(--head); font-weight: 700; font-size: 22px; text-transform: uppercase; color: #fff; line-height: 1; }
.footer .brand .wordmark span { color: var(--orange); }
.footer .about { max-width: 320px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,0.5); font-size: 14px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4, .quotes { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-text { order: 0; }
  .split-media img { height: 360px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: #fff; padding: 22px 24px; gap: 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
  .nav.open .nav-links a { font-size: 18px; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .cta-band { padding: 50px 24px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .quotes { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}
