/* ==========================================================
   Intrinity Fire Protection LLC
   OTM Web Design, dark/industrial variant, locked body background
   Palette sampled from the client logo file:
   yellow #FFFE00 / #FFD500, orange #FF6D00, red #FF1900 / #FF0000, black #000000
   ========================================================== */

:root {
  --black: #000000;
  --ink: #0d0b0a;
  --ink-2: #15110f;
  --ink-3: #1e1915;

  --accent: #ff6d00;          /* logo flame midpoint */
  --accent-deep: #a84300;     /* accent darkened for text on light frames (AA) */
  --flame-yellow: #ffd500;
  --flame-red: #ff1900;
  --flame: linear-gradient(180deg, #ffe600 0%, #ff6d00 55%, #ff1900 100%);
  --flame-h: linear-gradient(90deg, #ffd500 0%, #ff6d00 50%, #ff1900 100%);

  /* light frame tone for nav + footer */
  --frame: #f2eee8;
  --frame-ink: #1a1512;
  --frame-muted: #574c44;
  --frame-line: #ddd3c8;

  /* dark section cards over the locked background */
  --card: rgba(16, 13, 11, 0.82);
  --card-strong: rgba(9, 7, 6, 0.92);
  --sub: #1d1814;
  --sub-hover: #241e19;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  --text: #ece6df;
  --muted: #b3a99f;
  --heading: #ffffff;

  /* text/form tokens: dark-surface values here, light-card values in the card scope below */
  --link: var(--accent);
  --link-hover: var(--flame-yellow);
  --dot: rgba(255, 255, 255, 0.28);
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-bg-focus: rgba(255, 255, 255, 0.08);
  --input-option-bg: var(--ink-2);
  --placeholder: #8a8077;
  --banner-error-text: #ffd9d3;
  --banner-info-text: #fff3c4;

  --error: #ff6b5b;

  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.30);
  --shadow-lift: 0 18px 44px rgba(0, 0, 0, 0.50);
  --radius: 12px;
  --radius-sm: 10px;

  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --body: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;

  --nav-h: 78px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
/* Locked body background. Darkening is baked into body-bg.jpg (no filter on the fixed layer). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--ink) url('assets/body-bg.jpg') center / cover no-repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--link-hover); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.02;
  color: var(--heading);
  margin: 0 0 .45em;
}
h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h3 { font-size: 1.75rem; letter-spacing: 0.03em; }
h4 { font-size: 1.3rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--link);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--text); }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--black); font-weight: 700;
  padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--black); }

:focus-visible { outline: 3px solid var(--flame-yellow); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 15px 28px; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none; line-height: 1.1;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--black); box-shadow: 0 8px 22px rgba(255, 109, 0, 0.28); }
.btn-primary:hover { background: #ff8a1f; color: var(--black); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }

.text-link {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: .85rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.text-link::after { content: "\2192"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Navigation (light frame) ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--frame);
  border-bottom: 1px solid var(--frame-line);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; height: var(--nav-h);
  width: calc(100% - 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { height: 50px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--frame-ink); font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  position: relative; padding: 6px 0;
}
.nav-links a:not(.nav-cta):not(.nav-phone)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--accent-deep); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; }
.nav-phone svg { width: 18px; height: 18px; color: var(--accent-deep); }
.nav-links .nav-cta {
  background: var(--accent); color: var(--black); padding: 12px 22px; border-radius: 8px;
  box-shadow: 0 6px 16px rgba(255, 109, 0, 0.25);
}
.nav-links .nav-cta:hover { background: #ff8a1f; color: var(--black); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-right: -10px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--accent-deep); margin: 5px 0; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 860px);
  display: flex; align-items: center;
  background: var(--ink) url('assets/hero-home.jpg') center 40% / cover no-repeat;
  padding: 110px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* nudged above the 0.68/0.54/0.26 baseline: this photo has bright cream walls */
  background: linear-gradient(100deg, rgba(8, 6, 5, 0.86) 0%, rgba(8, 6, 5, 0.68) 48%, rgba(8, 6, 5, 0.34) 100%);
}
.hero-inner { max-width: 1240px; width: calc(100% - 40px); margin: 0 auto; }
.hero-content { max-width: 720px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .flame-text {
  background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: 1.25rem; color: #f3ede6; max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; color: #f3ede6; font-weight: 600; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.stars { color: var(--flame-yellow); letter-spacing: 2px; }

/* Inner page hero */
.page-hero {
  position: relative; isolation: isolate;
  min-height: 440px; display: flex; align-items: flex-end;
  padding: 120px 0 70px;
  background-color: var(--ink);
  background-position: center; background-size: cover; background-repeat: no-repeat;
  border-bottom: 4px solid var(--accent);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(8, 6, 5, 0.82) 0%, rgba(8, 6, 5, 0.58) 50%, rgba(8, 6, 5, 0.30) 100%);
}
.page-hero .hero-content { max-width: 780px; }
.page-hero .lead { color: #f3ede6; margin-bottom: 0; }
.page-hero .hero-actions { margin: 26px 0 0; }
.page-hero--sprinklers { background-image: url('assets/hero-fire-sprinklers.jpg'); background-position: center 30%; }
.page-hero--careers { background-image: url('assets/hero-careers.jpg'); }
.page-hero--contact { background-image: url('assets/hero-contact.jpg'); }
.page-hero--plain { background-image: none; background: linear-gradient(120deg, #0d0b0a 0%, #1e140d 60%, #3a1806 100%); min-height: 320px; }

/* ---------- Marquee (the one full-bleed band) ---------- */
.marquee {
  background: var(--black);
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  overflow: hidden; padding: 16px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--display); font-size: 1.45rem; letter-spacing: 0.08em; color: #fff; white-space: nowrap;
}
.marquee-item::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--flame); flex: none;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section card pattern ---------- */
.section { padding: 44px 0; background: transparent; }
.section:first-of-type { padding-top: 88px; }
main > .marquee + .section, .page-hero + .section { padding-top: 88px; }
.section:last-child { padding-bottom: 88px; }
.container {
  max-width: 1240px; width: calc(100% - 40px); margin: 0 auto;
}
.section > .container {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 70px 60px;
  box-shadow: var(--shadow-lift);
}
.section > .container.is-strong { background: var(--card-strong); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-bottom: 0; }
.section-foot { margin-top: 40px; text-align: center; }

/* ---------- Intro / split grid ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lift);
}
.media-badge {
  position: absolute; right: -18px; bottom: 28px;
  background: var(--black); border: 2px solid var(--accent); border-radius: 10px;
  padding: 16px 20px; box-shadow: var(--shadow-lift); text-align: left;
}
.media-badge strong { display: block; font-family: var(--display); font-size: 2.1rem; line-height: 1; color: var(--accent); letter-spacing: .03em; }
.media-badge span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #fff; }
.split-body p { color: var(--muted); }
.split-body .lead { color: var(--text); }

.check-list { list-style: none; display: grid; gap: 12px; margin: 26px 0 30px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text); font-weight: 600; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--flame);
  -webkit-mask: radial-gradient(circle, transparent 0 3px, #000 4px); mask: radial-gradient(circle, transparent 0 3px, #000 4px);
}
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: 12px 30px; }

/* ---------- Grids ---------- */
.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); }
.services-grid .card-body { padding: 24px 22px 26px; }
.services-grid .card-body h3 { font-size: 1.5rem; }
.grid-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.grid-center > .card { flex: 0 1 calc((100% - 52px) / 3); }
@media (max-width: 900px) { .grid-center > .card { flex-basis: calc((100% - 26px) / 2); } }
@media (max-width: 560px) { .grid-center > .card { flex-basis: 100%; } }

/* ---------- Sub-cards ---------- */
.card {
  background: var(--sub);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--accent); background: var(--sub-hover); }
.card-img {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  border-bottom: 3px solid var(--accent);
}
.card-body { padding: 30px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--muted); }
.card-body .text-link { margin-top: auto; }
.card-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.card-tags li {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); border: 1px solid var(--line-strong); border-radius: 30px; padding: 4px 11px;
}
.section-tags { margin: 6px 0 18px; }
.section-tags li { font-size: .85rem; padding: 7px 16px; background: var(--accent); border: 1px solid var(--accent); color: var(--black); cursor: default; }
@media (max-width: 560px) { .section-tags { gap: 6px; } .section-tags li { font-size: .74rem; padding: 6px 10px; letter-spacing: .05em; } }

.tile { padding: 30px; }
.tile-icon {
  width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 109, 0, 0.12); color: var(--link); margin-bottom: 18px;
}
.tile-icon svg { width: 26px; height: 26px; }
.tile h3 { font-size: 1.55rem; margin-bottom: 8px; }
.tile p { color: var(--muted); margin: 0; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat { padding: 10px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -13px; top: 15%; bottom: 15%; width: 1px; background: var(--line-strong); }
.stat-num {
  display: block; font-family: var(--display); font-size: clamp(3rem, 5vw, 4.2rem); line-height: 1;
  background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent;
  min-width: 3ch;
}
.stat-label { display: block; margin-top: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--text); }

/* ---------- Process ---------- */
.step { padding: 32px 28px; position: relative; }
.step-num {
  font-family: var(--display); font-size: 1.4rem; letter-spacing: .06em;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--black); margin-bottom: 18px;
}
.step h3 { font-size: 1.5rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Carousels ---------- */
.carousel { position: relative; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line-strong);
  background: transparent; color: var(--heading); cursor: pointer; display: grid; place-items: center;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.carousel-btn:hover { border-color: var(--accent); background: var(--accent); color: var(--black); }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-dots { display: flex; gap: 10px; }
.carousel-dot {
  width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--dot); transition: background .2s ease, transform .2s ease;
}
.carousel-dot[aria-current="true"] { background: var(--accent); transform: scale(1.25); }

/* Gallery: featured-center coverflow */
.gallery-stage { position: relative; height: clamp(360px, 46vw, 540px); overflow: hidden; }
.gallery-slide {
  position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 4 / 5; margin: 0;
  transform: translateX(-50%) scale(.7); opacity: 0; pointer-events: none;
  transition: transform .6s ease, opacity .6s ease;
  border: 3px solid var(--accent); border-radius: var(--radius-sm); overflow: hidden;
  box-sizing: border-box; box-shadow: var(--shadow-lift);
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent);
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; color: #fff;
  opacity: 0; transition: opacity .4s ease;
}
.gallery-slide.is-active { transform: translateX(-50%) scale(1); opacity: 1; z-index: 3; pointer-events: auto; }
.gallery-slide.is-active figcaption { opacity: 1; }
.gallery-slide.is-prev { transform: translateX(-138%) scale(.8); opacity: .42; z-index: 2; }
.gallery-slide.is-next { transform: translateX(38%) scale(.8); opacity: .42; z-index: 2; }

/* Reviews: one at a time */
.reviews-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: center; }
.rating-card {
  background: var(--black); border: 2px solid var(--accent); border-radius: var(--radius-sm);
  padding: 34px 28px; text-align: center;
}
.rating-num { font-family: var(--display); font-size: 4.6rem; line-height: 1; color: #fff; }
.rating-card .stars { font-size: 1.5rem; display: block; margin: 6px 0 10px; }
.rating-card p { color: var(--muted); margin-bottom: 18px; }
.reviews-viewport { overflow: hidden; }
.reviews-track { display: flex; transition: transform .6s ease; }
.review {
  flex: 0 0 100%; margin: 0;
  background: var(--sub); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 40px 44px; box-shadow: var(--shadow-soft);
}
.review .stars { font-size: 1.15rem; display: block; margin-bottom: 14px; }
.review blockquote { margin: 0 0 18px; font-size: 1.3rem; line-height: 1.5; color: var(--text); font-weight: 500; }
.review figcaption { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--link); }
.review.is-pending blockquote { color: var(--muted); font-style: italic; }

/* ---------- Service area ---------- */
.area-card { padding: 30px; }
.area-card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.area-card h3 small { font-family: var(--body); font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--link); }
.area-card p { color: var(--muted); margin: 0; }

/* ---------- CTA strip (floating card) ---------- */
.cta-card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--ink) url('assets/cta-bg.jpg') center / cover no-repeat;
  padding: 90px 60px; text-align: center; box-shadow: var(--shadow-lift);
}
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 6, 5, 0.70); }
.cta-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--flame-h); }
.cta-card h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.cta-card p { color: #e9e2da; max-width: 620px; margin: 0 auto 30px; font-size: 1.15rem; }
.cta-card .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--sub); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s ease; }
.faq-item:has(.faq-q[aria-expanded="true"]) { border-color: var(--accent); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left; color: var(--heading);
  padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  font-family: var(--body); font-size: 1.15rem; font-weight: 700;
}
.faq-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--accent); position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--accent); transform: translate(-50%, -50%); transition: transform .3s ease; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .4s ease, visibility 0s linear .4s; }
.faq-answer.open { max-height: 900px; visibility: visible; transition: max-height .4s ease, visibility 0s linear 0s; }
.faq-answer p { padding: 0 26px 22px; margin: 0; color: var(--muted); }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field > label, .field legend {
  font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text);
}
.req { color: var(--link); }
.optional { color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: none; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-weight: 500; font-size: 1.05rem; color: var(--heading);
  background: var(--input-bg); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 13px 15px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--input-option-bg); color: var(--heading); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--input-bg-focus); box-shadow: 0 0 0 3px rgba(255, 109, 0, 0.22); }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.radio-row { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-pill span {
  display: inline-block; padding: 11px 26px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--input-bg); font-weight: 700; cursor: pointer; transition: all .2s ease; letter-spacing: .06em;
}
.radio-pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--black); }
.radio-pill input:focus-visible + span { outline: 3px solid var(--flame-yellow); outline-offset: 2px; }

.file-field { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 13px 22px; border-radius: 8px; border: 2px solid var(--link); color: var(--link);
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; transition: all .2s ease;
}
.file-btn svg { width: 18px; height: 18px; }
.file-btn:hover { background: var(--accent); color: var(--black); }
.file-input:focus-visible + .file-btn { outline: 3px solid var(--flame-yellow); outline-offset: 3px; }
.file-name { color: var(--muted); font-weight: 600; word-break: break-all; }
.file-name.has-file { color: var(--heading); }
.file-clear { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-weight: 700; text-decoration: underline; padding: 0; }
.file-clear:hover { color: var(--link); }
.help { color: var(--muted); font-size: .92rem; margin: 0; }

.has-error input, .has-error select, .has-error textarea, input.has-error, select.has-error, textarea.has-error {
  border-color: var(--error) !important; box-shadow: 0 0 0 3px rgba(255, 107, 91, 0.2) !important;
}
.has-error .radio-pill span, .has-error .file-btn { border-color: var(--error); }
.field-error { color: var(--error); font-size: .92rem; font-weight: 600; }
.field-error:empty { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-note { color: var(--muted); font-size: .95rem; margin: 0; }
.form-banner { margin-top: 20px; padding: 16px 20px; border-radius: 8px; font-weight: 600; display: none; }
.form-banner.is-visible { display: block; }
.form-banner.is-error { background: rgba(255, 107, 91, 0.12); border: 1px solid var(--error); color: var(--banner-error-text); }
.form-banner.is-info { background: rgba(255, 213, 0, 0.10); border: 1px solid var(--flame-yellow); color: var(--banner-info-text); }
.form-banner a { color: inherit; text-decoration: underline; }

.emergency-callout {
  display: none; grid-column: 1 / -1;
  background: rgba(255, 25, 0, 0.12); border: 1px solid var(--flame-red); border-radius: 8px; padding: 16px 20px; font-weight: 600;
}
.emergency-callout.is-visible { display: block; }
.emergency-callout a { color: var(--heading); text-decoration: underline; font-weight: 700; }

.alt-apply { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.alt-apply strong { color: var(--heading); }

/* Contact sidebar */
.info-panel {
  background: var(--black); border-radius: var(--radius-sm); padding: 36px 32px;
  border-top: 5px solid transparent; border-image: var(--flame-h) 1;
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.info-panel h3 { font-size: 1.8rem; }
.info-list { list-style: none; display: grid; gap: 22px; margin: 22px 0 26px; }
.info-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.info-list .tile-icon { width: 40px; height: 40px; margin: 0; }
.info-list .tile-icon svg { width: 20px; height: 20px; }
.info-list strong { display: block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info-list a, .info-list span { color: #fff; font-weight: 700; font-size: 1.1rem; word-break: break-word; }
.info-list a:hover { color: var(--accent); }
.info-panel .badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 30px; border: 1px solid var(--accent); color: var(--accent);
}

/* ---------- Legal ---------- */
.legal-body { max-width: 820px; margin: 0 auto; }
.legal-body h2 { font-size: 1.9rem; margin-top: 1.6em; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body ul { padding-left: 22px; margin-bottom: 1em; }
.legal-body li { margin-bottom: 6px; }
.legal-updated { font-weight: 700; color: var(--link); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }

/* ---------- Footer (light frame) ---------- */
.site-footer { background: var(--frame); border-top: 3px solid var(--accent); color: var(--frame-muted); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 18px; }
.footer-brand p { margin-bottom: 14px; }
.footer-col h2 { color: var(--frame-ink); font-size: 1.35rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--frame-muted); font-weight: 600; }
.footer-col a:hover { color: var(--accent-deep); }
.footer-24 { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--frame-ink); }
.footer-24 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--flame-red); box-shadow: 0 0 0 4px rgba(255, 25, 0, 0.18); }
.footer-bottom {
  margin-top: 54px; border-top: 1px solid var(--frame-line); padding: 22px 0 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; font-size: .95rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; }
.footer-legal a { color: var(--frame-muted); font-weight: 600; }
.footer-legal a:hover { color: var(--accent-deep); }
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 109, 0, 0.12); color: var(--accent-deep); transition: background .2s ease, color .2s ease;
}
.social a:hover { background: var(--accent); color: var(--black); }
.social svg { width: 18px; height: 18px; }
.otm-credit { color: var(--accent-deep); font-weight: 700; }
.otm-credit:hover { color: var(--frame-ink); text-decoration: underline; }

/* ---------- Thank-you / 404 ---------- */
body[data-page="thank-you"], body[data-page="404"] { display: flex; flex-direction: column; min-height: 100dvh; }
body[data-page="thank-you"] main, body[data-page="404"] main { flex: 1 1 auto; display: flex; flex-direction: column; }
body[data-page="thank-you"] .page-hero, body[data-page="404"] .page-hero { flex: 1 1 auto; align-items: center; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-phone .nav-phone-num { display: none; }
  .nav-links { gap: 22px; }
  .reviews-wrap { grid-template-columns: 1fr; }
  .rating-card { max-width: 420px; width: 100%; margin: 0 auto; }
}

@media (max-width: 900px) {
  :root { --nav-h: 70px; }
  .nav-logo img { height: 42px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0; bottom: 0; width: min(340px, 86vw);
    flex-direction: column; align-items: stretch; gap: 0; padding: 20px 26px 30px;
    background: var(--frame); border-left: 1px solid var(--frame-line); box-shadow: -10px 0 30px rgba(0, 0, 0, .3);
    transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s;
    overflow-y: auto;
  }
  .nav-links.is-open { transform: none; visibility: visible; transition: transform .35s ease, visibility 0s linear 0s; }
  .nav-links li { border-bottom: 1px solid var(--frame-line); }
  .nav-links li:last-child { border-bottom: 0; margin-top: 18px; }
  .nav-links a { display: block; padding: 16px 0; font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-phone .nav-phone-num { display: inline; }
  .nav-links .nav-cta { text-align: center; padding: 15px 20px; }

  .section > .container { padding: 50px 36px; }
  .split, .form-layout { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .split-media { max-width: 520px; }
  .media-badge { right: 14px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-3.is-three { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .stat + .stat::before { display: none; }
  .info-panel { position: static; }
  .gallery-slide.is-prev { transform: translateX(-128%) scale(.78); }
  .gallery-slide.is-next { transform: translateX(28%) scale(.78); }
  .cta-card { padding: 70px 36px; }
  .page-hero { min-height: 380px; padding: 100px 0 56px; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .section { padding: 35px 0; }
  .section:first-of-type, main > .marquee + .section, .page-hero + .section { padding-top: 60px; }
  .section:last-child { padding-bottom: 60px; }
  .container, .hero-inner, .nav-inner { width: calc(100% - 24px); }
  .section > .container { padding: 36px 22px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .check-list.two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero { padding: 80px 0 90px; min-height: auto; }
  .hero-actions .btn { width: 100%; }
  .media-badge { right: 10px; bottom: 14px; padding: 12px 16px; }
  .gallery-stage { height: 420px; }
  .gallery-slide.is-prev { transform: translateX(-118%) scale(.74); opacity: .3; }
  .gallery-slide.is-next { transform: translateX(18%) scale(.74); opacity: .3; }
  .review { padding: 30px 24px; }
  .review blockquote { font-size: 1.12rem; }
  .cta-card { padding: 56px 22px; }
  .card-body, .tile, .area-card, .step { padding: 26px 22px; }
  .info-panel { padding: 30px 22px; }
  .faq-q { padding: 18px 18px; font-size: 1.05rem; }
  .faq-answer p { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* CTA strip: the card itself floats, so its container drops the section-card frame */
.section > .container.cta-wrap { background: none; border: 0; padding: 0; box-shadow: none; }
.faq-h { margin: 0; font: inherit; text-transform: none; letter-spacing: normal; }
/* Grid children holding a flex track must be allowed to shrink, or the track widens the page on phones */
.reviews-wrap > *, .form-layout > *, .split > * { min-width: 0; }
/* overflow-x: hidden on html AND body turns body into a scroll container, which silently breaks the sticky nav.
   clip blocks horizontal overflow the same way without creating a scroll container. hidden stays as the fallback. */
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}
@media (max-width: 900px) { .nav-links .nav-phone { display: flex; gap: 10px; } }

/* ==========================================================
   Light frame cards (Oct 19 revision)
   Section cards use the same cream frame tone as the nav and footer, solid, with dark text.
   Dark accents that balance the page: hero, marquee, stats band (.is-strong), CTA card,
   rating card, contact info panel, and image badges.
   ========================================================== */
.section > .container:not(.is-strong):not(.cta-wrap) {
  background: var(--frame);
  border-color: var(--frame-line);
  color: var(--text);
  --text: #2b231e;
  --muted: #5a4f47;
  --heading: #15110e;
  --line: #ddd3c8;
  --line-strong: #c9bcae;
  --sub: #faf7f3;
  --sub-hover: #fdfbf8;
  --link: var(--accent-deep);
  --link-hover: #7a3000;
  --dot: rgba(21, 17, 14, 0.22);
  --input-bg: #fdfbf8;
  --input-bg-focus: #fffdfa;
  --input-option-bg: #fdfbf8;
  --placeholder: #8b7f75;
  --banner-error-text: #8a1d10;
  --banner-info-text: #5a4300;
  --error: #c0301f;
  --shadow-soft: 0 4px 14px rgba(40, 25, 15, 0.08);
}
.section > .container:not(.is-strong):not(.cta-wrap) .card:hover { box-shadow: 0 16px 34px rgba(40, 25, 15, 0.16); }
.section > .container:not(.is-strong):not(.cta-wrap) .gallery-slide { box-shadow: 0 14px 30px rgba(40, 25, 15, 0.22); }
.section > .container:not(.is-strong):not(.cta-wrap) .gallery-slide.is-prev,
.section > .container:not(.is-strong):not(.cta-wrap) .gallery-slide.is-next { opacity: .55; }

/* Dark islands inside light cards keep light text */
.info-panel, .rating-card {
  --text: #ece6df;
  --muted: #b3a99f;
  --heading: #ffffff;
  --link: var(--accent);
  --link-hover: var(--flame-yellow);
  --line: rgba(255, 255, 255, 0.10);
  color: var(--text);
}
.form-banner.is-info { background: rgba(255, 213, 0, 0.16); border-color: #c9a400; }


/* Commercial / residential callout under the homepage services */
.property-types { margin-top: 26px; }
.property-type { flex-direction: row; align-items: flex-start; gap: 20px; }
.property-type .tile-icon { flex: none; margin-bottom: 0; }
.property-type h3 { margin-bottom: 6px; }
.page-hero--services { background-image: url('assets/hero-services.jpg'); }
.card-body .check-list { margin: 4px 0 24px; gap: 8px; }
.card-body .check-list li { font-size: .98rem; }
.tile .check-list { margin-bottom: 0; }

/* ---------- Careers: resume by email ---------- */
.resume-note {
  border: 1px solid var(--accent); border-left-width: 4px; border-radius: var(--radius-sm);
  padding: 14px 18px; background: rgba(255, 109, 0, 0.08); line-height: 1.55;
}
.hero-fine { margin-top: 22px; font-size: .95rem; opacity: .85; }