/* ===================================================================
   AP AUTO PERFORMANCE SERVICE CENTRE — Design System
   Direction: Premium & Technical, dark theme (near-black base, blue accent)
   Header stays light so the logo's white background/red mark still reads.
   =================================================================== */

:root {
  /* Surfaces */
  --bg: #0d0f12;
  --bg-alt: #14171b;
  --surface: #181b20;
  --surface-2: #1f2329;
  --border: #2a2f37;
  --border-strong: #3a4049;

  /* Text */
  --text: #f2f4f7;
  --text-muted: #aab2bd;
  --text-faint: #737b87;

  /* Accent — Performance Blue (site-wide brand color) */
  --accent: #008fcf;
  --accent-dark: #006a9c;
  --accent-soft: rgba(0, 143, 207, 0.16);

  /* Brand red — kept as a minor accent: primary CTA buttons and the CTA banner only */
  --brand-red: #d31f26;
  --brand-red-dark: #a3171d;

  /* Chrome / silver — echoes the logo's metallic "A" */
  --chrome: #9aa1ab;
  --chrome-dark: #7b828d;

  /* Secondary accent — used only to tag Pro-Tech content */
  --protech: #54b110;
  --protech-soft: rgba(84, 177, 16, 0.16);

  /* Layout */
  --maxw: 1200px;
  --radius: 3px;
  --gap: 24px;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 28px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 20px 40px -14px rgba(0, 143, 207, 0.35);
  --shadow-red: 0 20px 40px -14px rgba(211, 31, 38, 0.35);

  /* Type */
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2100;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
  padding: 12px 20px;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
}
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--text);
  text-wrap: balance;
}
p { text-wrap: pretty; }
p { margin: 0 0 16px; color: var(--text-muted); }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
@media (max-width: 768px) {
  section { padding: 56px 0; }
}

/* ---------- Reveal-on-scroll ----------
   Content is always fully opaque — only position animates — so nothing
   depends on JS/IntersectionObserver firing to be visible or readable. */
.js .reveal {
  opacity: 1;
  transform: translateY(16px);
  transition: transform 0.6s ease;
}
.js .reveal.is-visible { transform: translateY(0); }
.js .reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 15px;
  padding: 15px 28px;
  border: 2px solid transparent;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand-red);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { background: var(--brand-red-dark); transform: translateY(-2px); box-shadow: 0 24px 44px -12px rgba(211,31,38,0.32); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 18px 36px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid #e1e4e9;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; }
.brand img { height: 58px; width: auto; display: block; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  color: #565d6b;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #c7ccd3;
  color: #14171c;
  padding: 8px 10px;
  cursor: pointer;
}
@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e1e4e9;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid #e1e4e9;
  }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn span.full { display: none; }
  .brand img { height: 46px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 132px 0 108px;
  background:
    radial-gradient(circle at 82% -10%, rgba(0,143,207,0.09), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(84,177,16,0.06), transparent 45%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60%;
  height: 140%;
  background: linear-gradient(120deg, transparent 48%, rgba(0,143,207,0.06) 50%, transparent 52%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 14px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-inner-single { display: block; }
.hero-copy { max-width: 620px; }

/* Photo hero variant — real banner image as background, dark scrim for text contrast */
.hero-photo {
  background-image:
    linear-gradient(180deg, rgba(6,7,9,0.55) 0%, transparent 18%, transparent 52%, rgba(6,7,9,0.95) 82%, rgba(6,7,9,0.97) 100%),
    linear-gradient(90deg, rgba(6,7,9,0.98) 0%, rgba(6,7,9,0.92) 30%, rgba(6,7,9,0.6) 55%, rgba(6,7,9,0.38) 80%, rgba(6,7,9,0.38) 100%),
    url("../assets/hero-banner.jpg");
  background-size: cover;
  background-position: 78% 30%;
}
.hero-photo::after,
.hero-photo::before { display: none; }
@media (max-width: 640px) {
  .hero-photo {
    background-image:
      linear-gradient(180deg, rgba(6,7,9,0.8) 0%, rgba(6,7,9,0.9) 45%, rgba(6,7,9,0.95) 100%),
      url("../assets/hero-banner.jpg");
    background-position: 75% 25%;
  }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 100%; }
  .hero-visual { display: none; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 13px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.hero h1 { font-size: 60px; margin-bottom: 20px; color: var(--text); }
.hero .lead { font-size: 19px; color: var(--text-muted); max-width: 600px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 8px 14px;
}
.hero-badges span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .hero { padding: 96px 0 64px; }
  .hero h1 { font-size: 38px; }
}

/* ---------- Hero visual (floating glass panels) ---------- */
.hero-visual {
  position: relative;
  height: 640px;
}
.hero-glow {
  position: absolute;
  top: 10%;
  right: 8%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,143,207,0.28), transparent 70%);
  filter: blur(50px);
  z-index: 0;
}
.hero-glow.chrome {
  top: auto;
  bottom: 0;
  left: 0;
  right: auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(84,177,16,0.2), transparent 70%);
  filter: blur(45px);
}
.glass-card {
  position: absolute;
  width: 250px;
  min-height: 176px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: rgba(28,32,38,0.72);
  border: 1px solid rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  transition: transform 0.3s ease;
}
.glass-card:hover { transform: translateY(-4px) scale(1.02); }
.glass-card .gc-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.glass-card.gc-protech .gc-icon { background: var(--protech-soft); color: var(--protech); }
.glass-card .gc-icon svg { width: 24px; height: 24px; }
.glass-card.gc-logo-card {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.glass-card .gc-logo-full {
  width: 100%;
  height: 90px;
  object-fit: contain;
}
.glass-card .gc-caption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.glass-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 5px;
}
.glass-card span { font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.gc-1 { top: 0; left: 8%; transform: rotate(-3deg); z-index: 3; }
.gc-2 { top: 218px; left: 32%; transform: rotate(2deg); z-index: 4; }
.gc-3 { top: 436px; left: 4%; transform: rotate(-2deg); z-index: 2; }
@media (max-width: 1180px) {
  .gc-1 { left: 2%; }
  .gc-2 { left: 24%; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.trust-item:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.trust-item .icon-circle {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
}
.trust-item svg { width: 20px; height: 20px; stroke: var(--accent); }
@media (max-width: 768px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Brand marquee ---------- */
.brand-marquee {
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brand-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: brand-scroll 32s linear infinite;
}
.brand-marquee:hover .brand-marquee-track { animation-play-state: paused; }
.brand-marquee-track span {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 18px;
  color: var(--text-faint);
  padding: 0 28px;
  position: relative;
  transition: color 0.2s ease;
}
.brand-marquee-track span:hover { color: var(--accent); }
.brand-marquee-track span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .brand-marquee-track span[aria-hidden="true"] { display: none; }
}

/* ---------- Section heading ---------- */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 { font-size: 34px; }
.rule {
  width: 64px;
  height: 3px;
  margin: 14px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--chrome-dark));
}

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
}
.service-card.protech:hover { box-shadow: var(--shadow-lg), 0 20px 40px -14px rgba(84,177,16,0.2); }
.service-card .index {
  position: absolute;
  top: -6px;
  right: 12px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 64px;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
}
.service-card .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.service-card.protech .icon { background: var(--protech-soft); color: var(--protech); }
.service-card .icon svg { width: 22px; height: 22px; }
.service-card .card-logo {
  height: 84px;
  width: auto;
  object-fit: contain;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.service-card h3 { font-size: 20px; margin-bottom: 4px; }
.service-card .tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--protech);
  background: var(--protech-soft);
  padding: 4px 8px;
}
.service-card ul { margin: 8px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.service-card ul li { color: var(--text-muted); font-size: 14px; padding-left: 18px; position: relative; }
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 2px;
  background: var(--accent);
}
.service-card .card-link { margin-top: auto; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Common jobs / parts grid ---------- */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(4, 150px);
  justify-content: center;
  gap: 20px;
}
@media (max-width: 700px) { .parts-grid { grid-template-columns: repeat(2, 130px); } }
.part-tile {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.part-tile img { display: block; width: 150px; height: 150px; object-fit: cover; }
@media (max-width: 700px) { .part-tile img { width: 130px; height: 130px; } }
.part-tile span {
  display: block;
  padding: 8px 6px;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text);
  text-align: center;
}
.part-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }

/* ---------- How it works ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 16px;
}
.step-item h3 { font-size: 18px; margin-bottom: 6px; }
.step-item p { font-size: 14px; margin: 0; }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr; } }
.why-item {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
}
.why-item h3 { font-size: 16px; margin-bottom: 6px; }
.why-item p { margin: 0; font-size: 14px; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.testi-card::before {
  content: "\201C";
  position: absolute;
  top: 8px; right: 16px;
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1;
  color: var(--accent-soft);
}
.testi-card .stars { color: var(--accent); font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testi-card blockquote { margin: 0 0 14px; font-style: italic; color: var(--text-muted); font-size: 14px; }
.testi-card .who { font-size: 13px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.testi-placeholder-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-family: var(--font-body);
  margin-left: 16px;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding-top: 12px; font-size: 15px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  background: linear-gradient(120deg, var(--brand-red-dark), var(--brand-red));
  padding: 72px 0;
  clip-path: polygon(0 18px, 100% 0, 100% calc(100% - 18px), 0 100%);
  box-shadow: var(--shadow-lg);
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 16px);
  pointer-events: none;
}
.cta-banner .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin: 0; font-size: 30px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 8px 0 0; }
.cta-banner .btn-ghost { border-color: #fff; color: #fff; }
.cta-banner .btn-ghost:hover { background: #fff; color: var(--brand-red-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-grid a, .footer-grid p { color: var(--text-muted); font-size: 14px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-muted);
}
.footer-badge img {
  height: 34px;
  width: auto;
  object-fit: contain;
}
.placeholder { color: #b8790f; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.page-hero h1 { font-size: 42px; margin-bottom: 12px; }
.page-hero p { max-width: 600px; font-size: 17px; }
.breadcrumb { font-size: 13px; color: var(--text-faint); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Service detail sections (services.html) ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
@media (max-width: 860px) { .service-block { grid-template-columns: 1fr; } }
.service-block .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  margin-bottom: 12px;
}
.service-block.protech .tag { color: var(--protech); background: var(--protech-soft); }
.service-block.eagle .tag { color: #7a8a00; background: rgba(195, 214, 0, 0.14); }
.service-block.eagle .include-list li::before { color: #8a9900; }
.service-block h2 { font-size: 30px; }
.include-list { display: flex; flex-direction: column; gap: 12px; }
.include-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  padding-left: 40px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.include-list li:hover { border-color: var(--accent); transform: translateX(4px); }
.include-list li::before {
  content: "\2713";
  position: absolute;
  left: 14px; top: 15px;
  color: var(--accent);
  font-weight: 700;
}
.service-block.protech .include-list li::before { color: var(--protech); }

/* ---------- Quote note ---------- */
.quote-note {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  font-size: 14px;
  margin: 40px 0 0;
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.stat-box:hover { transform: translateX(4px); border-left-color: var(--chrome); }
.stat-box h3 { font-size: 15px; margin-bottom: 6px; color: var(--text); }
.stat-box p { margin: 0; font-size: 13px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}
.contact-block h2 { font-size: 18px; margin-bottom: 14px; }
.contact-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.contact-row-gap { margin-top: 20px; }
.contact-row svg { width: 20px; height: 20px; stroke: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-row div a, .contact-row div span { color: var(--text); font-weight: 600; }
.contact-row small { display: block; color: var(--text-faint); font-size: 12px; margin-top: 2px; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: var(--radius);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note { font-size: 12px; color: var(--text-faint); margin-top: 14px; margin-bottom: 0; }
.form-note + .form-note { margin-top: 8px; }
.form-status-hidden { display: none; }
.map-embed { border: 0; display: block; filter: grayscale(15%) invert(90%) hue-rotate(180deg) brightness(0.95); }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  gap: 1px;
  background: var(--border);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-call-bar a {
  flex: 1;
  clip-path: none;
  border-radius: 0;
  justify-content: center;
  padding: 16px 12px;
}
.mobile-call-bar .btn-ghost { background: var(--bg-alt); }
@media (max-width: 640px) {
  .mobile-call-bar { display: flex; }
  body { padding-bottom: 62px; }
}

/* ---------- Eagle Eye Software promo banner (its own lime sub-brand accent, distinct from the site's blue) ---------- */
.eagle-promo {
  position: relative;
  background: linear-gradient(120deg, #0a0c07, #14170f);
  border-top: 1px solid #232819;
  border-bottom: 1px solid #232819;
  padding: 44px 0;
  overflow: hidden;
}
.eagle-promo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(120deg, rgba(195,214,0,0.05) 0px, rgba(195,214,0,0.05) 1px, transparent 1px, transparent 18px);
  pointer-events: none;
}
.eagle-promo-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.eagle-promo-eyebrow { color: #c3d600; font-family: var(--font-head); letter-spacing: 0.14em; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.eagle-promo h2 { color: #fff; margin: 4px 0 6px; font-size: 26px; }
.eagle-promo p { color: #a9b39a; margin: 0; max-width: 520px; }
.eagle-promo .btn-primary { background: #c3d600; color: #0a0c07; box-shadow: 0 16px 32px -12px rgba(195,214,0,0.35); flex-shrink: 0; }
.eagle-promo .btn-primary:hover { background: #e3fb2e; }
@media (max-width: 700px) { .eagle-promo-inner { flex-direction: column; align-items: flex-start; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
