:root {
  --ink: #2b2b2b;
  --charcoal: #202326;
  --gold: #c49a4e;
  --olive: #6b6f4e;
  --ivory: #f2ede3;
  --stone: #d6d2c7;
  --white: #fffaf1;
  --line: rgba(43, 43, 43, 0.14);
  --shadow: 0 24px 70px rgba(20, 22, 24, 0.16);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3 {
  margin: 0 0 1rem;
  line-height: 1.05;
  letter-spacing: 0;
  font-family: Georgia, "Times New Roman", serif;
}
h1 { font-size: clamp(2.45rem, 6vw, 5.8rem); max-width: 900px; }
h2 { font-size: clamp(1.85rem, 3vw, 3rem); }
h3 { font-size: 1.28rem; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 920px; }
.section { padding: 92px 0; }
.section-muted { background: #ebe5d8; }
.section-dark { background: var(--charcoal); color: var(--white); }
.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(242, 237, 227, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; width: min(270px, 34vw); min-width: 185px; }
.brand img {
  width: 100%;
  height: auto;
  max-height: 68px;
  object-fit: contain;
}

.site-nav { display: flex; align-items: center; gap: 24px; font-size: 0.94rem; font-weight: 700; }
.site-nav a:not(.button) { position: relative; padding: 10px 0; }
.site-nav a:not(.button)::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  color: var(--charcoal);
  background: var(--gold);
  border: 1px solid var(--gold);
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); background: #d2aa61; border-color: #d2aa61; }
.button-secondary { color: var(--white); background: transparent; border-color: rgba(255, 250, 241, 0.65); }
.button-small { min-height: 42px; padding-inline: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(32,35,38,0.92), rgba(32,35,38,0.72) 42%, rgba(32,35,38,0.28)),
    url("../images/hero-glazed-facade.jpg"),
    url("../images/facade-integrity-brand.png");
  background-position: center, center, center 66%;
  background-size: cover, cover, cover;
}
.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 78px 100%, 100% 86px;
}
.hero-content { position: relative; padding: 90px 0; }
.hero p:not(.eyebrow) { max-width: 650px; font-size: clamp(1.08rem, 2vw, 1.4rem); }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.18); }
.pillars article {
  min-height: 230px;
  padding: 34px;
  background: var(--charcoal);
  transition: background 180ms ease, transform 180ms ease;
}
.pillars article:hover { background: #282c30; transform: translateY(-4px); }
.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: start; }
.text-link { color: var(--charcoal); font-weight: 800; border-bottom: 2px solid var(--gold); }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.service-grid, .values-grid, .case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-grid { grid-template-columns: repeat(4, 1fr); }
.service-card, .values-grid article, .case-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid rgba(43,43,43,0.1);
  box-shadow: 0 18px 50px rgba(43,43,43,0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.service-card:hover, .case-card:hover { transform: translateY(-5px); border-color: rgba(196,154,78,0.65); box-shadow: var(--shadow); }
.service-card::before, .case-card h2::before, .values-grid article::before {
  display: block;
  width: 44px;
  height: 2px;
  margin-bottom: 24px;
  content: "";
  background: var(--gold);
}

.feature-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.feature-image {
  min-height: 430px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(rgba(32,35,38,0.05), rgba(32,35,38,0.05)),
    url("../images/facade-integrity-brand.png") center / cover no-repeat;
}
.check-list { padding: 0; margin: 24px 0 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 15px; }
.check-list li::before { position: absolute; left: 0; color: var(--gold); content: "✓"; font-weight: 800; }

.cta-band {
  padding: 80px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--charcoal), #303530 70%, var(--olive));
}
.cta-band h2 { max-width: 780px; }

.page-hero {
  padding: 112px 0 86px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(32,35,38,0.94), rgba(32,35,38,0.7)),
    url("../images/page-facade-placeholder.jpg") center / cover,
    var(--charcoal);
}
.page-hero h1 { font-size: clamp(2.25rem, 4.6vw, 4.8rem); }
.stat-panel {
  padding: 42px;
  color: var(--white);
  background: var(--charcoal);
  box-shadow: var(--shadow);
}
.stat-panel strong { display: block; color: var(--gold); font-size: 5rem; line-height: 1; font-family: Georgia, "Times New Roman", serif; }

.service-list .container { display: grid; gap: 26px; }
.service-detail {
  padding: 34px;
  background: var(--white);
  border-left: 5px solid var(--gold);
  box-shadow: 0 16px 48px rgba(43,43,43,0.07);
  scroll-margin-top: 110px;
}
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 34px; }
.detail-grid p { margin: 0; }

.case-card { padding: 0; overflow: hidden; }
.case-card h2, .case-card p { margin-inline: 28px; }
.case-card p:last-child { margin-bottom: 30px; }
.case-image {
  min-height: 210px;
  background:
    linear-gradient(135deg, rgba(32,35,38,0.1), rgba(196,154,78,0.2)),
    url("../images/case-study-facade-placeholder.jpg") center / cover,
    repeating-linear-gradient(90deg, #bfc4c5 0 3px, #2b2b2b 3px 5px, #dbe1e1 5px 70px);
}
.image-two { background-position: center; filter: saturate(0.9); }
.image-three { background-position: right center; filter: contrast(1.05); }

.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; align-items: start; }
.contact-simple { max-width: 760px; }
.contact-form, .contact-panel {
  padding: 34px;
  background: var(--white);
  border: 1px solid rgba(43,43,43,0.1);
  box-shadow: 0 16px 48px rgba(43,43,43,0.07);
}
label { display: grid; gap: 8px; margin-bottom: 18px; font-weight: 800; }
input, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid rgba(43,43,43,0.22);
  border-radius: 0;
  font: inherit;
}
input:focus, textarea:focus { outline: 3px solid rgba(196,154,78,0.28); border-color: var(--gold); }
.form-note { margin-top: 14px; color: var(--olive); font-weight: 700; }
dt { color: var(--gold); font-weight: 900; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.12em; }
dd { margin: 0 0 20px; }

.site-footer {
  padding: 34px 0;
  color: var(--white);
  background: #1b1e20;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 20px; align-items: center; }
.footer-grid span { display: block; color: var(--stone); }
.footer-grid a { color: var(--white); border-bottom: 1px solid var(--gold); }
.footer-grid span a { color: var(--stone); }

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    min-height: 42px;
    padding: 0 15px;
    align-items: center;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-weight: 800;
  }
  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .pillars, .service-grid, .case-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .feature-band, .contact-layout { grid-template-columns: 1fr; }
  .feature-image { min-height: 320px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  .site-header { min-height: 74px; padding-inline: 14px; }
  .brand { width: 168px; min-width: 0; }
  .brand img { max-height: 58px; }
  .hero { min-height: 760px; }
  .hero-media { background-position: center, center, center 62%; }
  .section { padding: 64px 0; }
  .pillars, .service-grid, .case-grid, .values-grid, .detail-grid, .footer-grid { grid-template-columns: 1fr; }
  .pillars article { min-height: auto; }
  .service-card, .values-grid article, .contact-form, .contact-panel, .service-detail { padding: 24px; }
  .actions .button { width: 100%; }
  .page-hero { padding: 86px 0 62px; }
}
