:root {
  --blue: #0878b9;
  --blue-dark: #075b8a;
  --ink: #18232b;
  --muted: #5f6b73;
  --paper: #fffaf1;
  --warm: #f2ece0;
  --line: #d8d1c5;
  --green: #0878b9;
  --gold: #c08b3d;
  --white: #ffffff;
  --shadow: 0 16px 36px rgba(24, 35, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  left: 1rem;
  position: absolute;
  top: -4rem;
  z-index: 10;
}

.skip-link:focus {
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  top: 1rem;
}

.site-header {
  background: rgba(255, 250, 241, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 9;
}

.nav-wrap,
.section,
.footer-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.nav-wrap {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  min-height: 74px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  height: 48px;
  width: 48px;
}

.brand span {
  color: var(--blue-dark);
  font-size: 1.25rem;
}

.nav-toggle {
  background: var(--blue);
  border: 0;
  border-radius: 6px;
  color: var(--white);
  cursor: pointer;
  display: none;
  font-size: 1.7rem;
  height: 44px;
  line-height: 1;
  width: 48px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 0.95rem;
}

.site-nav a {
  border-radius: 5px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.55rem 0.35rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue-dark);
}

.site-nav .nav-call {
  background: var(--green);
  color: var(--white);
  padding: 0.7rem 0.95rem;
}

.site-nav .nav-call:hover,
.site-nav .nav-call[aria-current="page"] {
  background: var(--blue-dark);
  color: var(--white);
}

.hero {
  background: linear-gradient(90deg, rgba(8, 40, 55, 0.82), rgba(8, 40, 55, 0.28)), url("assets/images/mcl-home-building-contractor-hero.jpg") center/cover;
  color: var(--white);
  min-height: 640px;
  padding: 5.2rem 0 3rem;
}

.hero-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 1rem;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.35rem, 8vw, 5.2rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  max-width: 730px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  align-items: center;
  background: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 6px;
  color: var(--white);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1rem;
  text-decoration: none;
}

.button.secondary {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.button.outline {
  background: transparent;
  color: var(--blue-dark);
}

.hero-facts {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4rem;
  max-width: 900px;
}

.fact {
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.fact strong {
  display: block;
  font-size: 1.05rem;
}

.section {
  padding-bottom: 4.5rem;
  padding-top: 4.5rem;
}

.section.narrow {
  max-width: 900px;
}

.intro {
  align-items: end;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.6fr);
  margin-bottom: 2rem;
}

.muted {
  color: var(--muted);
}

.band {
  background: var(--warm);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.review,
.service-card,
.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(24, 35, 43, 0.06);
}

.card,
.service-card,
.review {
  padding: 1.2rem;
}

.service-card strong,
.card strong {
  color: var(--blue-dark);
  display: block;
  margin-bottom: 0.35rem;
}

.split {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.9fr 1.1fr;
}

.split img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 360px;
  object-fit: cover;
  width: 100%;
}

.list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
}

.projects {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.project img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.project-body {
  padding: 1.15rem;
}

.gallery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  overflow: hidden;
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 180ms ease;
  width: 100%;
}

.gallery-grid a:hover img {
  transform: scale(1.035);
}

.review {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.review blockquote {
  margin: 0;
}

.review cite {
  color: var(--blue-dark);
  font-style: normal;
  font-weight: 800;
  margin-top: auto;
  padding-top: 1rem;
}

.page-hero {
  background: var(--green);
  color: var(--white);
  padding: 4.5rem 0 3rem;
}

.page-hero .section {
  padding-bottom: 0;
  padding-top: 0;
}

.crumb {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.contact-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 0.78fr 1.22fr;
}

.contact-panel {
  padding: 1.25rem;
}

label {
  display: block;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 5px;
  font: inherit;
  margin-bottom: 1rem;
  min-height: 44px;
  padding: 0.75rem;
  width: 100%;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-message {
  background: #e8f4ed;
  border: 1px solid #b4d7c2;
  border-radius: 6px;
  color: #174330;
  display: none;
  font-weight: 800;
  margin-top: 1rem;
  padding: 0.85rem;
}

.form-message.is-visible {
  display: block;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 2.5rem 0;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.site-footer a {
  color: var(--white);
}

.footer-logo {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.footer-logo img {
  background: var(--white);
  border-radius: 6px;
  height: 42px;
  width: 42px;
}

.lightbox {
  align-items: center;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 20;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-height: 88vh;
  max-width: 94vw;
}

.lightbox button {
  background: var(--white);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.7rem 1rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    background: var(--paper);
    border-top: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: stretch;
    left: 0;
    padding: 0.8rem 1rem 1rem;
    position: absolute;
    right: 0;
    top: 74px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .intro,
  .split,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: 4rem 0 3rem;
  }

  .hero-facts,
  .grid.three,
  .grid.two,
  .projects,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-bottom: 3rem;
    padding-top: 3rem;
  }

  .split img {
    min-height: 260px;
  }
}
