/* ==========================================================================
   X16 Systems — Brand Stylesheet
   Built from the real X16 Systems logo palette: black #231F20 + red #BF1B2C
   on white. Light, editorial, high-contrast, with bold diagonal accents
   echoing the mark's angled "X" and looping "6".
   ========================================================================== */

:root {
  /* Brand — sampled directly from the logo artwork */
  --black: #231f20;
  --black-deep: #161414;
  --red: #bf1b2c;
  --red-dark: #96131f;
  --red-light: #e0475a;
  --red-wash: rgba(191, 27, 44, 0.08);
  --red-wash-strong: rgba(191, 27, 44, 0.14);

  /* Back-compat aliases (referenced inline in a few pages) */
  --gold: var(--red);
  --gold-light: var(--red-light);

  --white: #ffffff;
  --off-white: #f7f5f4;
  --grey-100: #ebe7e6;
  --grey-300: #d3cdcc;
  --grey-500: #8a8382;
  --grey-700: #504a49;

  --success: #1f8a4c;
  --danger: #c73838;

  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 8px 24px rgba(35, 31, 32, 0.08);
  --shadow-lg: 0 24px 48px rgba(35, 31, 32, 0.16);
  --glow-red: 0 0 0 1px rgba(191,27,44,0.25), 0 10px 26px rgba(191,27,44,0.20);
  --max-width: 1200px;
  --font-heading: "Lexend", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --ring: #bf1b2c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Accessible keyboard focus ring — never remove, only restyle */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.choice-card:focus-visible,
.chip:focus-visible,
.faq-item__q:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.icon-svg {
  width: 1.5em;
  height: 1.5em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-svg--solid { fill: currentColor; stroke: none; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--grey-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; color: var(--grey-700); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.8em;
}
.eyebrow::before {
  content: "";
  width: 16px; height: 3px;
  background: var(--red);
}

.section {
  padding: 92px 0;
  background: var(--white);
  position: relative;
}
.section--tight { padding: 60px 0; }
.section--dark {
  background: var(--black-deep);
}
.section--dark p { color: var(--grey-300); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .card p { color: var(--red-light); }
.section--alt { background: var(--off-white); }

.section-head {
  max-width: 680px;
  margin: 0 0 44px;
}
.section-head--center {
  margin: 0 auto 52px;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(191, 27, 44, 0.30);
}
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 14px 30px rgba(191, 27, 44, 0.4); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}
.btn-outline-dark:hover { background: var(--black); color: var(--white); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-lg { padding: 17px 36px; font-size: 1.02rem; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.top-bar {
  background: var(--black-deep);
  color: var(--grey-300);
  font-size: 0.8rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar a { color: var(--grey-300); }
.top-bar a:hover { color: var(--red-light); }
.top-bar__emergency { color: var(--red-light); font-weight: 700; }
.top-bar__links { display: flex; gap: 20px; align-items: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--grey-100);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--black);
}
.brand img.brand__logo {
  height: 34px;
  width: auto;
  display: block;
}
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--black);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
}
.brand__sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--grey-500);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a.nav-link {
  position: relative;
  padding: 10px 11px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--black);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.main-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.main-nav a.nav-link:hover,
.main-nav a.nav-link.active { color: var(--red); }
.main-nav a.nav-link:hover::after,
.main-nav a.nav-link.active::after { transform: scaleX(1); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 300px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  border: 1px solid var(--grey-100);
  border-top: 3px solid var(--red);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
}
.dropdown li a:hover { background: var(--red-wash); color: var(--red); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-phone {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  text-align: right;
  font-size: 0.95rem;
  color: var(--black);
}
.header-phone span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  position: relative;
  transition: 0.2s ease;
}
.nav-toggle::before { margin-bottom: 6px; }
.nav-toggle::after { margin-top: 6px; }

.mobile-nav-info { display: none; }

@media (max-width: 1180px) {
  .top-bar { display: none; }
  .main-nav { position: fixed; inset: 0 0 0 auto; z-index: 1000; width: min(320px, 86vw); background: var(--white); flex-direction: column; align-items: stretch; padding: 90px 20px 30px; transform: translateX(100%); transition: transform 0.25s ease; box-shadow: var(--shadow-lg); overflow-y: auto; border-left: 4px solid var(--red); }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a.nav-link::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; border: none; padding-left: 10px; }
  .has-dropdown.open .dropdown { display: block; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--grey-100);
    font-size: 0.88rem;
  }
  .mobile-nav-info a { color: var(--black); font-weight: 700; }
  .mobile-nav-info a:hover { color: var(--red); }
  .mobile-nav-info__emergency { color: var(--red) !important; }
  .mobile-nav-info__hours { color: var(--grey-500); font-weight: 500; }
}

/* ==========================================================================
   Hero — white ground, bold diagonal red block (echoes the logo's angled X)
   ========================================================================== */
.hero {
  position: relative;
  color: var(--black);
  overflow: hidden;
  padding: 76px 0 96px;
  background: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%; right: -12%;
  width: 60%; height: 130%;
  background: var(--red);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 8% 100%);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  top: -10%; right: 22%;
  width: 10%; height: 130%;
  background: var(--black);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 8% 100%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero p.lead { color: var(--grey-700); font-size: 1.12rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.partner-badge { display: flex; align-items: center; gap: 9px; margin-top: 26px; opacity: 0.82; }
.partner-badge img { height: 17px; width: auto; display: block; }
.partner-badge span { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-300); font-weight: 600; }
.style-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.14); }
.style-nav__link {
  border: 2px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  transition: all 0.15s ease;
}
.style-nav__link:hover, .style-nav__link:focus-visible { border-color: var(--red-light); background: var(--red); color: var(--white); }
.style-nav__link.active { border-color: var(--red); background: var(--red); }
.style-nav__link svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 6px; stroke: currentColor; }
section[id] { scroll-margin-top: 90px; }

.page-hero--photo {
  background-image: linear-gradient(180deg, rgba(10,10,10,0.55), rgba(10,10,10,0.9)), var(--hero-photo);
  background-size: cover;
  background-position: center;
}

.gate-icon { width: 26px; height: 26px; stroke: var(--red); vertical-align: -7px; margin-right: 10px; }

.compare-table-wrap { overflow-x: auto; margin: 26px 0 6px; border-radius: 10px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.92rem; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--grey-100); }
.compare-table th { background: var(--black-deep); color: var(--white); font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; }
.compare-table tbody tr:nth-child(even) { background: var(--off-white); }
.compare-table td:first-child, .compare-table th:first-child { font-weight: 700; color: var(--black); }
.compare-table td { color: var(--grey-500); }
.hero-trust { display: flex; gap: 26px; margin-top: 42px; flex-wrap: wrap; }
.hero-trust div { text-align: left; }
.hero-trust strong { display: block; font-family: var(--font-heading); font-size: 1.55rem; color: var(--red); }
.hero-trust span { font-size: 0.8rem; color: var(--grey-500); }
.hero-panel {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.hero-panel h3 { color: var(--black); margin-bottom: 6px; }
.hero-panel p { color: var(--grey-700); font-size: 0.92rem; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero::before, .hero::after { opacity: 0.5; }
}

.page-hero {
  background: var(--black-deep);
  color: var(--white);
  padding: 72px 0 58px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--red);
}
.page-hero::after {
  content: "";
  position: absolute;
  top: 0; right: -6%;
  width: 34%; height: 100%;
  background: var(--red);
  clip-path: polygon(55% 0, 100% 0, 78% 100%, 33% 100%);
  opacity: 0.9;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: var(--red-light); }
.page-hero .eyebrow::before { background: var(--red-light); }
.page-hero p { color: var(--grey-300); max-width: 640px; }
.breadcrumb { font-size: 0.82rem; color: var(--grey-500); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--red-light); }

/* ==========================================================================
   Cards / 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); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--glow-red); border-color: rgba(191,27,44,0.35); }
.card h3 { color: var(--black); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--red-wash);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}

/* ---- Bento grid (services / features) ---- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.bento-card {
  grid-column: span 2;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 260px;
  background: var(--black);
  border: 1px solid var(--grey-100);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--glow-red); }
.bento-card--lg { grid-column: span 4; }
.bento-card--md { grid-column: span 3; }
.bento-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0.55; transition: opacity 0.3s ease, transform 0.4s ease; }
.bento-card:hover img { opacity: 0.35; transform: scale(1.06); }
.bento-card__body { position: relative; z-index: 1; padding: 26px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; }
.bento-card__body h3 { color: var(--white); margin-bottom: 6px; font-size: 1.35rem; }
.bento-card__body p { color: var(--grey-300); font-size: 0.9rem; margin-bottom: 0; max-width: 420px; }
.bento-card__tag {
  display: inline-flex; align-self: flex-start;
  color: var(--white); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px;
  background: var(--red);
  padding: 5px 12px; border-radius: 999px;
}
@media (max-width: 960px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card, .bento-card--lg, .bento-card--md { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card, .bento-card--lg, .bento-card--md { grid-column: span 1; }
}

.badge-row { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  border: 1px solid var(--grey-100);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--red); }
.section--dark .badge { background: rgba(255,255,255,0.06); color: var(--white); border-color: rgba(255,255,255,0.14); }
.section--dark .badge:hover { border-color: var(--red-light); }

@keyframes statPulse {
  0%, 100% { text-shadow: 0 0 0 rgba(191, 27, 44, 0); }
  50% { text-shadow: 0 0 14px rgba(191, 27, 44, 0.45); }
}
.hero-trust strong { animation: statPulse 3.2s ease-in-out infinite; }

/* ---- Testimonials + Marquee ---- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--grey-100);
  box-shadow: var(--shadow);
}
.testimonial__stars { color: var(--red); letter-spacing: 2px; margin-bottom: 12px; font-size: 1rem; }
.testimonial__quote { font-size: 1.02rem; color: var(--black); font-style: italic; margin-bottom: 16px; }
.testimonial__meta { font-size: 0.85rem; color: var(--black); font-weight: 700; }
.testimonial__meta span { display: block; font-weight: 500; color: var(--grey-500); }

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: marqueeScroll 42s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee__track .testimonial { width: 340px; flex-shrink: 0; }
.marquee-row + .marquee-row { margin-top: 24px; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--grey-100);
  padding: 6px 0;
}
.faq-item__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: var(--black);
}
.faq-item__q::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--red);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-item__q::after { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-item__a { max-height: 500px; }
.faq-item__a p { padding-bottom: 18px; margin: 0; }

/* Case studies */
.case-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-100);
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--glow-red); border-color: rgba(191,27,44,0.35); }
.case-card__img { height: 200px; background-size: cover; background-position: center; background-color: var(--black); position: relative; }
.case-card__img::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(22,20,20,0.55)); }
.case-card__body { padding: 24px; }
.case-card__body h3 { color: var(--black); }
.case-card__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.case-card__tags span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--red); background: var(--red-wash); border: 1px solid rgba(191,27,44,0.2); padding: 4px 10px; border-radius: 999px; }

/* Service detail sections: feature checklist + mini photo gallery */
.feature-list { margin: 20px 0 24px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.96rem;
  color: var(--grey-700);
}
.feature-list li .icon-svg {
  color: var(--red);
  width: 1.2em; height: 1.2em;
  margin-top: 3px;
  flex-shrink: 0;
}
.section--dark .feature-list li { color: var(--grey-300); }

.service-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-content: start;
}
.service-gallery__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: none;
  padding: 0;
  margin: 0;
  background: var(--grey-100);
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.service-gallery > .service-gallery__item:first-child {
  grid-column: 1 / 3;
  aspect-ratio: 16 / 9;
}
.service-gallery--trio {
  grid-template-columns: repeat(3, 1fr);
  max-width: 620px;
  margin: 0 auto;
}
.service-gallery--trio > .service-gallery__item:first-child {
  grid-column: auto;
  aspect-ratio: 1 / 1;
}
.service-gallery__item:hover img { transform: scale(1.06); }
.service-gallery__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 20, 20, 0);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}
.service-gallery__zoom svg { width: 26px; height: 26px; color: #fff; }
.service-gallery__item:hover .service-gallery__zoom,
.service-gallery__item:focus-visible .service-gallery__zoom {
  opacity: 1;
  background: rgba(22, 20, 20, 0.35);
}
.service-gallery__more {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(22, 20, 20, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  pointer-events: none;
}
.service-gallery__item:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .service-gallery__item img { transition: none; }
}

/* Service sub-section (e.g. Video Door Entry nested under Automated Gates) */
.service-subsection {
  margin-top: 44px;
  background: var(--off-white);
  border: 1px solid var(--grey-100);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 28px;
  align-items: center;
}
.service-subsection__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-wash);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.service-subsection h3 { margin-bottom: 8px; color: var(--black); }
.service-subsection p:last-of-type { margin-bottom: 16px; }
.service-subsection__img { width: 100%; height: 170px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.service-subsection__img-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: auto;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
}
.service-subsection__img-btn:hover img,
.service-subsection__img-btn:focus-visible img { transform: scale(1.06); }
.service-subsection__img-btn img { transition: transform 0.4s ease; }
.service-subsection__img-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.feature-list--compact { margin: 0; }
.feature-list--compact li { font-size: 0.9rem; margin-bottom: 8px; }
@media (max-width: 760px) {
  .service-subsection { grid-template-columns: 1fr; }
  .service-subsection__img,
  .service-subsection__img-btn img { height: 200px; }
  .service-subsection__img-btn { order: -1; }
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--grey-100); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--glow-red); }
.gallery-grid .service-gallery__item { box-shadow: none; border-radius: var(--radius); }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Video embed */
.video-embed { position: relative; width: 100%; max-width: 860px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--black); }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-embed--wide { max-width: 1100px; box-shadow: 0 30px 70px rgba(0,0,0,0.45); }
.video-showcase { position: relative; padding: 90px 0; background: var(--black); overflow: hidden; }
.video-showcase::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(191,27,44,0.18), transparent 55%), radial-gradient(circle at 80% 80%, rgba(191,27,44,0.12), transparent 55%); pointer-events: none; }
.video-showcase .container { position: relative; z-index: 1; }
.video-showcase .section-head--center h2 { color: var(--white); }
.video-showcase .section-head--center p { color: var(--grey-300); }
.video-showcase .video-embed { border: 1px solid rgba(255,255,255,0.08); }
.video-showcase__frame { position: relative; }
.video-showcase__frame::before, .video-showcase__frame::after { content: ""; position: absolute; width: 46px; height: 46px; border: 3px solid var(--red); opacity: 0.9; }
.video-showcase__frame::before { top: -16px; left: -16px; border-right: none; border-bottom: none; }
.video-showcase__frame::after { bottom: -16px; right: -16px; border-left: none; border-top: none; }

/* ---- Lightbox (service photo browser) ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: rgba(22, 20, 20, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { max-width: min(900px, 92vw); text-align: center; }
.lightbox__img { max-width: 100%; max-height: 72vh; border-radius: var(--radius); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55); }
.lightbox__caption { color: var(--grey-300); margin-top: 16px; font-size: 0.95rem; }
.lightbox__counter { color: var(--grey-500); margin-top: 4px; font-size: 0.8rem; letter-spacing: 0.04em; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
@media (max-width: 640px) {
  .lightbox__close, .lightbox__nav { width: 40px; height: 40px; font-size: 1.15rem; }
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox, .service-subsection__img-btn img { transition: none; }
}

/* ==========================================================================
   Enquiry / Smart Form
   ========================================================================== */
.enquiry-wrap {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 40px;
  align-items: flex-start;
}
@media (max-width: 900px) { .enquiry-wrap { grid-template-columns: 1fr; } }

.enquiry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--grey-100);
  border-top: 4px solid var(--red);
  padding: 38px;
}
@media (max-width: 560px) { .enquiry-card { padding: 22px; } }

.progress-track {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.progress-track .seg {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--grey-100);
  overflow: hidden;
}
.progress-track .seg i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width 0.3s ease;
}
.progress-track .seg.done i { width: 100%; }
.progress-track .seg.current i { width: 50%; }

.step-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 30px;
}
.step-label .active { color: var(--red); }

.form-step { display: none; animation: fadeIn 0.25s ease; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
@media (max-width: 620px) { .choice-grid { grid-template-columns: 1fr; } }
.choice-card {
  border: 2px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--white);
}
.choice-card:hover { border-color: var(--red-light); }
.choice-card.selected { border-color: var(--red); background: var(--red-wash); }
.choice-card__icon { font-size: 1.6rem; margin-bottom: 8px; color: var(--red); display:flex; justify-content:center; }
.choice-card strong { display: block; font-family: var(--font-heading); font-size: 0.98rem; margin-bottom: 4px; color: var(--black); }
.choice-card span { font-size: 0.8rem; color: var(--grey-500); }

.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.chip {
  border: 2px solid var(--grey-100);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--white);
  color: var(--black);
}
.chip:hover { border-color: var(--red-light); }
.chip.selected { border-color: var(--red); background: var(--red); color: var(--white); }
.hint { font-size: 0.82rem; color: var(--grey-500); margin-top: -4px; margin-bottom: 6px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--black); }
.field .required { color: var(--danger); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--grey-300);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--red);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill {
  border: 2px solid var(--grey-100);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.radio-pill.selected { border-color: var(--red); background: var(--red-wash); }
.radio-pill input { display: none; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--grey-700); margin: 10px 0; }
.checkbox-row input { margin-top: 4px; }

.step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 12px; }

.error-text { color: var(--danger); font-size: 0.8rem; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field.invalid .error-text { display: block; }

.summary-box {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.summary-box dt { font-weight: 700; margin-top: 10px; color: var(--black); }
.summary-box dt:first-child { margin-top: 0; }
.summary-box dd { margin: 2px 0 0; color: var(--grey-700); }

.success-panel { text-align: center; padding: 30px 10px; }
.success-panel .icon-circle {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(31,138,76,0.12); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 20px;
  border: 1px solid rgba(31,138,76,0.3);
}

.contact-side .card { margin-bottom: 18px; }
.contact-side h3 { margin-bottom: 12px; }
.contact-line { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.contact-line .ic {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--red-wash); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.contact-line strong { display: block; font-size: 0.95rem; color: var(--black); }
.contact-line span { font-size: 0.8rem; color: var(--grey-500); }

.emergency-box {
  background: var(--black-deep);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px;
  border-top: 4px solid var(--red);
}
.emergency-box h3 { color: var(--red-light); }
.emergency-box p { color: var(--grey-300); font-size: 0.85rem; }
.emergency-box a.btn { margin-top: 10px; }

/* ==========================================================================
   CTA band — solid brand red
   ========================================================================== */
.cta-band {
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  bottom: -30%; left: -6%;
  width: 40%; height: 160%;
  background: var(--black);
  opacity: 0.85;
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band .btn-primary { background: var(--white); color: var(--red); box-shadow: 0 10px 24px rgba(0,0,0,0.2); }
.cta-band .btn-primary:hover { background: var(--off-white); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--black-deep);
  color: var(--grey-300);
  padding: 64px 0 24px;
  border-top: 4px solid var(--red);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: var(--grey-300); font-size: 0.9rem; }
.site-footer a:hover { color: var(--red-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--grey-500);
}
.footer-logo { height: 30px; width: auto; display: block; margin-bottom: 14px; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--grey-100); }

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.small { font-size: 0.85rem; color: var(--grey-500); }

/* ---- Sticky mobile call/WhatsApp bar ---- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 500;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
}
.mobile-cta-bar__inner { display: grid; grid-template-columns: 1fr 1fr; }
.mobile-cta-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 10px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem;
  color: var(--white); text-decoration: none;
  background: transparent;
  transition: background 0.15s ease;
}
.mobile-cta-bar a:hover, .mobile-cta-bar a:active { background: rgba(255,255,255,0.06); }
.mobile-cta-bar a:first-child { border-right: 1px solid rgba(255,255,255,0.12); }
.mobile-cta-bar svg { width: 16px; height: 16px; flex-shrink: 0; }
.mobile-cta-bar a:first-child svg { color: var(--red-light); }
.mobile-cta-bar a:last-child svg { color: #4fbf76; }
@media (max-width: 760px) {
  .mobile-cta-bar { display: block; }
  body:has(.mobile-cta-bar) { padding-bottom: 54px; }
}

/* ---- Cookie consent banner ---- */
.cookie-banner {
  display: none;
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 998;
  max-width: 620px;
  margin: 0 auto;
  background: var(--black);
  color: var(--grey-300);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,0.08);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: 0.88rem; margin: 0 0 14px; color: var(--grey-300); }
.cookie-banner p a { color: var(--red-light); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner__actions .btn { padding: 9px 18px; font-size: 0.85rem; }
@media (max-width: 760px) {
  .cookie-banner { bottom: 70px; }
}

/* ==========================================================================
   Homepage hero photo carousel
   ========================================================================== */
.hero--carousel {
  padding: 0;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
}
.hero--carousel::before, .hero--carousel::after { display: none; }
.hero-carousel__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--black-deep); }
.hero-carousel__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-carousel__slide.is-active { opacity: 1; }
.hero-carousel__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10,10,10,0.86) 0%, rgba(10,10,10,0.6) 42%, rgba(10,10,10,0.28) 75%, rgba(10,10,10,0.5) 100%), linear-gradient(0deg, rgba(10,10,10,0.5), transparent 45%);
}
.hero--carousel .container { position: relative; z-index: 2; padding-top: 100px; padding-bottom: 70px; display: block; max-width: none; padding-left: 60px; padding-right: 60px; }
.hero--carousel .container > div:first-child { max-width: 640px; }
.hero--carousel .eyebrow { color: var(--red-light); }
.hero--carousel .eyebrow::before { background: var(--red-light); }
.hero--carousel h1 { color: var(--white); }
.hero--carousel p.lead { color: var(--grey-100); }
.hero--carousel .hero-trust span { color: var(--grey-300); }
.hero-carousel__dots {
  position: absolute; z-index: 2;
  left: 50%; transform: translateX(-50%);
  bottom: 24px;
  display: flex; gap: 9px;
}
.hero-carousel__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-carousel__dot.is-active { background: var(--red); transform: scale(1.3); }
.hero-carousel__dot:hover { background: rgba(255,255,255,0.7); }

.hero--carousel h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.hero--carousel p.lead { font-size: 0.98rem; max-width: 460px; }

.hero--carousel .hero-panel {
  max-width: 280px;
  padding: 18px 20px;
  position: relative;
}
.hero--carousel .hero-panel h3 { font-size: 1rem; padding-right: 20px; }
.hero--carousel .hero-panel p { font-size: 0.82rem; margin-bottom: 0.6em; }
.hero--carousel .hero-panel .btn-block { padding: 10px 18px; font-size: 0.85rem; margin-top: 12px !important; }
.hero--carousel .hero-panel .small { font-size: 0.72rem; margin-top: 10px !important; }
.hero-panel__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: transparent;
  color: var(--grey-500);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.hero-panel__close:hover { background: var(--off-white); color: var(--black); }
.hero-panel.is-closed { display: none; }

@media (max-width: 860px) {
  .hero--carousel { min-height: 560px; }
  .hero--carousel .container { padding-top: 70px; padding-bottom: 50px; }
  .hero--carousel .hero-panel { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel__slide { transition: none; }
}

/* ==========================================================================
   Inner-page hero photo carousel (services.html)
   ========================================================================== */
.page-hero--carousel {
  min-height: 420px;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 90px;
}
.page-hero--carousel::after { display: none; }
.page-hero--carousel .container { z-index: 2; max-width: none; padding-left: 60px; padding-right: 60px; }

@media (max-width: 860px) {
  .page-hero--carousel { min-height: 380px; padding-top: 90px; padding-bottom: 70px; }
}
