/* IMD Construction Solutions
   Colors are sampled from the company logo. */

:root {
  --navy: #151723;
  --navy-2: #1c1f2e;
  --navy-3: #2a2e40;
  --navy-4: #3a3f55;
  --orange: #e86018;
  --orange-hover: #cf5210;
  --orange-soft: #fff1e8;
  --gold: #e4a635;
  --gold-soft: #f8e7c4;
  --cream: #f6f3ee;
  --cream-2: #ece7de;
  --paper: #ffffff;
  --ink: #1a1c27;
  --muted: #5b5e6c;
  --line: #e2ddd4;
  --header-h: 5.5rem;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(21, 23, 35, 0.05), 0 16px 40px rgba(21, 23, 35, 0.08);
  --radius: 1.15rem;
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  background-image: radial-gradient(1200px 500px at 10% -10%, #fff 0%, var(--cream) 55%);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--orange-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.35rem, 5.5vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.2rem; font-family: var(--font-body); letter-spacing: 0; font-weight: 650; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(232, 96, 24, 0.35);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(21, 23, 35, 0.82);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  box-shadow: 0 10px 40px rgba(21, 23, 35, 0.28);
  border-bottom-color: rgba(232, 96, 24, 0.6);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo img {
  width: auto;
  height: 4.5rem;
  background: var(--navy);
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-btn {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--navy-4);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  margin-left: auto;
}
.nav-btn span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem 1.15rem;
}

.site-nav a {
  color: #edeee8;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--gold); }

.header-phone {
  color: #fff !important;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.header-phone:hover { color: var(--gold) !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1.2;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(232, 96, 24, 0.35); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-3); color: #fff; }
.btn-lg { padding: 0.95rem 1.5rem; font-size: 1.05rem; }

@media (max-width: 960px) {
  .nav-btn { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-2);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.75rem;
    border-bottom: 3px solid var(--orange);
    box-shadow: var(--shadow);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked + .nav-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked + .nav-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.7rem 0; font-size: 1.15rem; }
  .header-phone, .site-nav .btn { width: 100%; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy);
  min-height: min(38rem, 88vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21,23,35,0.25) 0%, rgba(21,23,35,0.55) 45%, rgba(21,23,35,0.92) 100%),
    linear-gradient(90deg, rgba(21,23,35,0.7) 0%, rgba(21,23,35,0.25) 55%, rgba(21,23,35,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
  padding: 6rem 0 3.5rem;
}
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
}
.hero h1 {
  color: #fff;
  max-width: 14ch;
  margin-bottom: 0.6rem;
}
.hero .lead {
  font-size: 1.25rem;
  max-width: 38rem;
  color: #e8e6e0;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Sections ---------- */
.section { padding: 5.25rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.kicker {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); color: #edeee8; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: #c9cbd4; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 18rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(21, 23, 35, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 50px rgba(21, 23, 35, 0.12);
}
.card .icon {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--orange);
  margin-bottom: 0.35rem;
}
.card .icon svg { width: 100%; height: 100%; }
.card h3 { margin: 0; }
.card p { color: var(--muted); font-size: 1.05rem; }
.card a.more {
  margin-top: auto;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}
.card a.more:hover { color: var(--orange-hover); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.service {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.85rem 1.7rem;
  border: 1px solid rgba(21, 23, 35, 0.06);
  border-top: 4px solid var(--orange);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 50px rgba(21, 23, 35, 0.12);
}
.service h3 { margin-bottom: 0.5rem; }
.service p { color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.gallery-grid figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 4 / 3;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid a:hover img,
.gallery-grid button:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(21,23,35,0.85));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}
.gallery-grid a, .gallery-grid .gallery-item {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(21,23,35,0.92);
  padding: 2rem 1rem 1rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}
.lightbox p { color: #fff; margin: 0; }
.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.4rem 0.7rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--orange);
}
.cta-inner {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: #c9cbd4; max-width: 36rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #1c1f2e 60%, #241c18 100%);
  color: #fff;
  padding: 3.25rem 0 2.75rem;
  border-bottom: 3px solid var(--orange);
}
.page-hero h1 { color: #fff; margin-bottom: 0.4rem; }
.page-hero p { color: #d0d2da; max-width: 40rem; font-size: 1.2rem; }

/* ---------- Form ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.form-card, .contact-aside {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.form-row { margin-bottom: 1.05rem; }
.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
label, .legend {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}
.req { color: var(--orange); }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cfc9bd;
  border-radius: 6px;
  font: inherit;
  font-size: 1.05rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 96, 24, 0.2);
}
textarea { min-height: 8rem; resize: vertical; }
.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.25rem;
}
.radios label {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  cursor: pointer;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9rem; color: var(--muted); margin-top: 0.75rem; }

.contact-aside h2 { font-size: 1.5rem; }
.contact-aside a { color: var(--navy); font-weight: 700; text-decoration: none; }
.contact-aside a:hover { color: var(--orange); }
.contact-aside .aside-block { margin-bottom: 1.35rem; }
.contact-aside .aside-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* ---------- About / lists ---------- */
.specialty-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.specialty-list li {
  padding-left: 1.1rem;
  position: relative;
  font-weight: 600;
}
.specialty-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--orange);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c9cbd4;
  padding: 3rem 0 6.5rem;
  border-top: 3px solid var(--orange);
}
.footer-inner {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer .logo img { height: 4.1rem; margin-bottom: 0.75rem; }
.site-footer h2 {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}
.site-footer a { color: #edeee8; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-tagline { color: var(--gold); font-weight: 700; margin: 0 0 0.5rem; }
.footer-bottom {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--navy-3);
  font-size: 0.9rem;
  color: #8b8e9c;
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--navy);
  border-top: 2px solid var(--orange);
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  gap: 0.5rem;
}
.mobile-cta a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 0.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
}
.mobile-cta a.call { color: var(--navy); background: var(--gold); }
.mobile-cta a.inspect { color: #fff; background: var(--orange); }

.thank-you {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}
.thank-you .card { max-width: 36rem; padding: 2.5rem 2rem; }

@media (max-width: 860px) {
  .card-grid, .services-grid, .split, .contact-layout, .footer-inner, .specialty-list, .form-row.two {
    grid-template-columns: 1fr;
  }
  .hero-content { padding-top: 5rem; }
  .mobile-cta { display: flex; }
  .header-phone { display: none; } /* phone lives in the sticky bar on small screens, except in open menu */
  .site-nav .header-phone { display: block; }
}

@media (max-width: 600px) {
  .wrap, .hero-content, .cta-inner, .footer-inner, .footer-bottom, .header-inner {
    width: min(calc(100% - 1.5rem), var(--max));
  }
  .section { padding: 3.25rem 0; }
  .logo img { height: 3.35rem; }
  body { font-size: 1.05rem; }
}

.thank-you .hero-actions, .thank-you p .btn { margin: 0.3rem 0.3rem 0 0; }

/* Gallery filters and sections */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
}
.gallery-filters button,
.gallery-filters .filter-btn {
  appearance: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  cursor: pointer;
  line-height: 1.2;
}
.gallery-filters button:hover,
.gallery-filters .filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.gallery-filters button.is-active,
.gallery-filters button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.gallery-block { margin-bottom: 2.75rem; }
.gallery-block > h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.gallery-grid figure.is-portrait { aspect-ratio: 3 / 4; }
.gallery-block[hidden] { display: none; }

.gallery-grid figure.is-video {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  background: var(--navy);
}
.gallery-grid figure.is-video video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  cursor: default;
}
.gallery-grid figure.is-video figcaption {
  position: static;
  background: var(--navy);
  padding: 0.7rem 1rem 0.85rem;
}

/* ---------- Process ---------- */
.process { background: var(--paper); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  counter-reset: step;
}
.process-step {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.85rem 1.6rem 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(21, 23, 35, 0.05);
  position: relative;
}
.process-step .step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  color: var(--orange);
  display: block;
  margin-bottom: 0.45rem;
}
.process-step h3 { margin-bottom: 0.4rem; }
.process-step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal + motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.15rem);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.cta-band {
  background:
    radial-gradient(800px 280px at 90% 120%, rgba(232, 96, 24, 0.22), transparent 60%),
    var(--navy);
}
.form-card, .contact-aside, .thank-you .card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gallery-filters button {
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.mobile-cta {
  backdrop-filter: blur(12px);
  background: rgba(21, 23, 35, 0.92);
  box-shadow: 0 -8px 30px rgba(21, 23, 35, 0.2);
}
.mobile-cta a { border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover, .service:hover, .btn:hover {
    transform: none;
  }
  .gallery-grid a:hover img,
  .gallery-grid button:hover img { transform: none; }
  .site-header, .btn, .card, .service {
    transition: none;
  }
}

/* ---------- Manufacturer certifications ---------- */
.cert-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.cert-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; text-align: center; padding: 1.6rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); box-shadow: var(--shadow); }
.cert-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; color: var(--navy); letter-spacing: 0.01em; }
.cert-level { font-size: 0.82rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange); }

/* ---------- Social links ---------- */
.site-footer .social-links { display: flex; gap: 0.6rem; margin-top: 1rem; }
.site-footer .social-links li { margin: 0; }
.site-footer .social-links a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.85rem; border: 1px solid var(--navy-4); border-radius: 999px; font-size: 0.9rem; font-weight: 600; }
.site-footer .social-links a:hover { border-color: var(--gold); }
.site-footer .social-links svg { width: 1.1rem; height: 1.1rem; }

/* ---------- Commercial roofing page ---------- */
.cr-jump {
  background: var(--navy-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 2;
}
.cr-jump .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  padding: 0.85rem 0;
}
.cr-jump a {
  color: #d0d2da;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.cr-jump a:hover { color: var(--gold); }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.cr-split { align-items: start; }
.cr-split h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.cr-list { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.cr-list li { margin-bottom: 0.55rem; }
.cr-list strong { color: var(--ink); }
.cr-process { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cr-process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cr-process { grid-template-columns: 1fr; } }
.cr-faq { max-width: 48rem; display: grid; gap: 0.75rem; }
.cr-faq details {
  background: var(--paper);
  border: 1px solid rgba(21, 23, 35, 0.06);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.cr-faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.08rem;
  color: var(--ink);
}
.cr-faq details[open] summary { margin-bottom: 0.6rem; }
.cr-faq details p { color: var(--muted); margin: 0; }

/* ---------- Water mitigation page ---------- */
.wm-steps { grid-template-columns: repeat(4, 1fr); }
.wm-steps figure.is-portrait { aspect-ratio: 9 / 14; }
.wm-steps img { object-position: center 65%; }
.wm-tag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 0.35rem;
  margin-bottom: 0.35rem;
  display: table;
}
@media (max-width: 1080px) { .wm-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .wm-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .wm-steps { grid-template-columns: 1fr; } }

/* ---------- Fire damage page ---------- */
.fd-video {
  margin: 0;
  max-width: 22rem;
  justify-self: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.fd-video video { width: 100%; height: auto; display: block; background: #000; }
.fd-video figcaption { color: #fff; font-size: 0.95rem; font-weight: 600; padding: 0.7rem 1rem 0.85rem; }

/* Fire / tree damage photo grids */
.fd-photos { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Knowledge blocks */
.kb-title { margin: 2.5rem 0 1rem; }
.gallery-intro { max-width: 70ch; margin: -0.25rem 0 1.25rem; line-height: 1.6; }
