/*
Theme Name: AP Compliance Solutions
Theme URI: https://apcomplianceltd.com/
Author: AP Compliance Solutions Ltd
Author URI: https://apcomplianceltd.com/
Description: Custom theme for AP Compliance Solutions Ltd — accredited compliance testing and certification (PAT testing, fire risk assessments, EICR, legionella, pest control, display energy certificates and more). Content is templated in PHP rather than the block editor; see inc/ and the page-*.php templates.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ap-compliance-solutions
*/

/* ==========================================================================
   AP Compliance Solutions — main stylesheet
   Palette: deep green-black + lime green accent (bold, high-contrast trade
   look). Variable names kept as --navy-* / --amber-* for minimal diff
   churn, but they now hold deep green-black and lime green values.
   ========================================================================== */

:root {
  --navy-950: #0b1410;
  --navy-900: #101c15;
  --navy-800: #16281d;
  --navy-700: #1e3626;
  --blue-500: #3a3a3a;
  --amber-500: #8ce000;
  --amber-600: #6baf00;
  --amber-400: #b6f23d;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --gray-100: #ececec;
  --gray-300: #cfcfcf;
  --gray-500: #7a7a7a;
  --gray-700: #3d3d3d;
  --text: #1a1a1a;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.2);
  --glow-sm: 0 4px 16px rgba(140, 224, 0, 0.22);
  --glow-md: 0 10px 32px rgba(140, 224, 0, 0.3);
  --grad-orange: linear-gradient(135deg, var(--amber-400) 0%, var(--amber-500) 55%, var(--amber-600) 100%);
  --max-width: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

/* Sensible default size for any bare inline SVG icon; more specific
   selectors below (e.g. .value-icon svg) override this as needed. */
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }

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

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--offwhite { background: var(--off-white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-600);
  background: rgba(140, 224, 0, 0.09);
  border: 1px solid rgba(140, 224, 0, 0.25);
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-orange);
  box-shadow: 0 0 0 3px rgba(140, 224, 0, 0.18);
  flex-shrink: 0;
}
.section--navy .eyebrow { color: var(--amber-400); background: rgba(140, 224, 0, 0.14); border-color: rgba(140, 224, 0, 0.3); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 16px; color: var(--navy-950); }
/* Any heading on a dark navy background must render white. Centralising
   this selector list avoids the bug where a new dark section forgets to
   override heading color and the text becomes near-invisible. */
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4,
.hero h1, .hero h2, .hero h3,
.page-header h1, .page-header h2, .page-header h3,
.cta-banner h1, .cta-banner h2, .cta-banner h3,
.sidebar-quote h1, .sidebar-quote h2, .sidebar-quote h3,
.split-media h1, .split-media h2, .split-media h3 {
  color: var(--white);
}
h1 { font-size: 48px; }
h2 { font-size: 34px; }
h3 { font-size: 21px; }
p { margin: 0 0 16px; color: var(--gray-700); }
.section--navy p { color: var(--gray-300); }
.lede { font-size: 19px; color: var(--gray-700); max-width: 640px; }
.section--navy .lede { color: var(--gray-300); }

/* Gradient-text accent for highlighted words inside headings. Uses an
   explicit rule on the class itself (not inherited), so it always wins
   regardless of the dark-background heading-color rules above. */
.text-accent {
  background: var(--grad-orange);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.section-head.text-left { margin-left: 0; text-align: left; }
.section-head p { max-width: 620px; margin-left: auto; margin-right: auto; }
.section-head.text-left p { margin-left: 0; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: var(--grad-orange);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: var(--navy-950);
  box-shadow: var(--glow-sm);
}
.btn-primary:hover { background-position: 100% 50%; box-shadow: var(--glow-md); }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--amber-500); }
.btn-outline-navy { border-color: var(--navy-800); color: var(--navy-900); }
.btn-outline-navy:hover { background: var(--navy-900); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.btn svg { width: 16px; height: 16px; }

/* ===== Decorative pattern helpers (no extra markup needed — applied via
   pseudo-elements on the sections that use them) ===== */
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3%, 3%) scale(1.06); }
}
@keyframes drift-alt {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, -4%) scale(1.08); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroPop {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes scrollCueBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ===== Top utility bar ===== */
.topbar {
  background: var(--navy-950);
  color: var(--gray-300);
  font-size: 13.5px;
  border-bottom: 1px solid rgba(140,224,0,0.15);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--gray-300); }
.topbar a:hover { color: var(--amber-500); }
.topbar-links { display: flex; gap: 22px; align-items: center; }
.topbar-links span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-links svg, .topbar-social svg { width: 14px; height: 14px; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { display: inline-flex; }

/* ===== Header / Nav ===== */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--navy-950); }
.logo .logo-mark { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; box-shadow: 0 0 0 3px rgba(140,224,0,0.12); }
.logo-mark svg { width: 100%; height: 100%; }
.logo .logo-text-sub { display: block; font-family: var(--font); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--amber-600); text-transform: uppercase; }
.logo-img { height: 60px; width: auto; display: block; }

nav.main-nav ul { display: flex; align-items: center; gap: 2px; }
nav.main-nav > ul > li { position: relative; }
nav.main-nav > ul > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 13px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy-900);
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
nav.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  background: var(--grad-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  border-radius: 2px;
}
nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li.active > a { color: var(--amber-600); background: var(--off-white); }
nav.main-nav > ul > li > a:hover::after,
nav.main-nav > ul > li.active > a::after { transform: scaleX(1); }
nav.main-nav .caret { width: 10px; height: 10px; transition: transform 0.15s; }
nav.main-nav > ul > li > a.nav-book-link {
  background: var(--grad-orange); color: var(--navy-950); padding: 10px 16px; margin-left: 4px;
}
nav.main-nav > ul > li > a.nav-book-link::after { display: none; }
nav.main-nav > ul > li > a.nav-book-link:hover { color: var(--navy-950); background: var(--grad-orange); filter: brightness(1.08); }
nav.main-nav li:hover .caret { transform: rotate(180deg); }

/* nav.main-nav ul.dropdown beats the generic "nav.main-nav ul { display:
   flex }" rule on specificity, so the submenu lays out as a column instead
   of an overflowing row. */
nav.main-nav ul.dropdown {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  border: 1px solid var(--gray-100);
  border-top: 3px solid var(--amber-500);
}
nav.main-nav li:hover .dropdown,
nav.main-nav li.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-800);
}
.dropdown a:hover { background: var(--off-white); color: var(--amber-600); }
.dropdown a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad-orange); flex-shrink: 0; }
.dropdown-divider { height: 1px; background: var(--gray-100); margin: 8px 6px; }
.dropdown-tool-link svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--amber-600); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .phone { font-weight: 700; color: var(--navy-950); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.nav-cta .phone svg { width: 17px; height: 17px; color: var(--amber-500); }
.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy-950); margin: 5px 0; border-radius: 2px; }
.mobile-nav-cta { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.28; z-index: 0; pointer-events: none;
  mix-blend-mode: screen;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(140,224,0,0.28), transparent 45%),
    radial-gradient(circle at 8% 95%, rgba(140,224,0,0.16), transparent 50%),
    linear-gradient(120deg, rgba(10,13,18,0.55) 0%, rgba(10,13,18,0.35) 55%, rgba(10,13,18,0.6) 100%),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: auto, auto, auto, 42px 42px, 42px 42px;
  animation: drift 16s ease-in-out infinite;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 46px;
  background: var(--white);
  clip-path: polygon(0% 100%, 100% 40%, 100% 100%, 0% 100%);
  z-index: 1;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 96px 0 96px;
}
.hero-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; animation: heroFadeUp 0.7s ease both; }
.hero h1 { animation: heroFadeUp 0.75s ease 0.1s both; }
.hero .lede { animation: heroFadeUp 0.75s ease 0.2s both; }
.hero-cta { animation: heroFadeUp 0.75s ease 0.3s both; }
.hero-stats { animation: heroFadeUp 0.75s ease 0.4s both; }
.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: rgba(255,255,255,0.65); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  animation: scrollCueBounce 2.2s ease-in-out infinite;
}
.hero-scroll-cue svg { width: 16px; height: 16px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad-orange); }

.hero h1 { font-size: 54px; max-width: 720px; margin-left: auto; margin-right: auto; }
.hero .lede { color: rgba(255,255,255,0.82); font-size: 18px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; background: var(--grad-orange); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .stat-label { font-size: 13px; color: rgba(255,255,255,0.7); }

/* ===== Page header (inner pages) ===== */
.page-header {
  background: linear-gradient(120deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 68px 0 68px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 90% 10%, rgba(140,224,0,0.24), transparent 40%),
    radial-gradient(circle at 5% 100%, rgba(140,224,0,0.12), transparent 45%),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
}
.page-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 36px;
  background: var(--white);
  clip-path: polygon(0% 100%, 100% 45%, 100% 100%, 0% 100%);
}
.breadcrumb { position: relative; z-index: 2; font-size: 13.5px; color: rgba(255,255,255,0.65); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--amber-500); }
.page-header h1 { position: relative; z-index: 2; margin-bottom: 10px; font-size: 40px; }
.page-header .lede { position: relative; z-index: 2; color: rgba(255,255,255,0.82); margin: 0; }

.page-header--service { padding: 56px 0 46px; }
.page-header-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 24px; align-items: center;
}
.page-header-art { display: flex; align-items: center; justify-content: center; }
.page-header-art img { width: 100%; max-width: 320px; height: auto; }

/* ===== Value props / why choose us ===== */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.value-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--glow-md); border-color: rgba(140,224,0,0.25); }
.value-card:hover::before { transform: scaleX(1); }
.value-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--grad-orange);
  box-shadow: var(--glow-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.2s ease;
}
.value-card:hover .value-icon { transform: scale(1.08) rotate(-4deg); }
.value-icon svg { width: 26px; height: 26px; color: var(--navy-950); }
.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 14.5px; margin: 0; }

/* ===== Sectors we serve ===== */
.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sector-card {
  position: relative;
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.sector-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); background: var(--white); }
.sector-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--navy-950); color: var(--amber-500);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.sector-icon svg { width: 24px; height: 24px; }
.sector-card h3 { font-size: 17px; margin-bottom: 6px; }
.sector-card p { font-size: 14px; margin: 0; color: var(--gray-500); }

/* ===== FAQ preview (homepage) ===== */
.faq-preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.faq-preview-item {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.faq-preview-item h3 {
  display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 8px;
}
.faq-preview-item h3 svg { width: 19px; height: 19px; color: var(--amber-600); flex-shrink: 0; }
.faq-preview-item p { font-size: 14px; margin: 0; color: var(--gray-500); }

/* ===== Services grid ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  z-index: 1;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--glow-md); border-color: rgba(140,224,0,0.25); }
.service-card:hover::before { transform: scaleX(1); }
.service-card-top {
  padding: 26px 24px 0;
}
.service-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--navy-950);
  border: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.service-icon svg { width: 28px; height: 28px; color: var(--amber-500); transition: color 0.2s ease; }
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); background: var(--grad-orange); box-shadow: var(--glow-sm); }
.service-card:hover .service-icon svg { color: var(--navy-950); }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card-body { padding: 0 24px 24px; flex: 1; display: flex; flex-direction: column; }
.service-card-body p { font-size: 14.5px; flex: 1; }
.service-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber-600);
  background: rgba(140,224,0,0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  width: fit-content;
}
.service-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.service-link svg { width: 15px; height: 15px; transition: transform 0.15s; }
.service-card:hover .service-link { color: var(--amber-600); }
.service-card:hover .service-link svg { transform: translateX(3px); }

/* ===== Split content (image + text) ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  background: var(--navy-900);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
}
.split-media::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(140,224,0,0.3), transparent 45%),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  animation: drift-alt 14s ease-in-out infinite;
}
.split-media svg { position: relative; width: 68%; height: auto; color: rgba(255,255,255,0.92); filter: drop-shadow(0 8px 24px rgba(140,224,0,0.35)); }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--gray-700);
}
.check-list svg { width: 20px; height: 20px; color: var(--white); background: var(--grad-orange); border-radius: 50%; padding: 3px; flex-shrink: 0; margin-top: 1px; }

/* ===== Stat / trust band ===== */
.trust-band { background: var(--navy-950); padding: 52px 0; position: relative; overflow: hidden; }
.trust-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(140,224,0,0.14), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(140,224,0,0.14), transparent 45%),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
}
.trust-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-grid .stat-num { font-family: var(--font-display); font-size: 38px; font-weight: 700; background: var(--grad-orange); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust-grid .stat-label { font-size: 13.5px; color: rgba(255,255,255,0.72); margin-top: 4px; }

/* ===== Accreditation marquee ===== */
.accred-strip { padding: 34px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.accred-track { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.accred-badge {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 13.5px; color: var(--gray-500);
  border: 1px solid var(--gray-300); border-radius: 8px; padding: 10px 16px;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.accred-badge:hover { border-color: var(--amber-500); color: var(--navy-950); transform: translateY(-2px); }
.accred-badge svg { width: 22px; height: 22px; color: var(--amber-600); }

/* ===== Process steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step-card { position: relative; padding: 30px 22px; background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.step-card:hover { transform: translateY(-5px); box-shadow: var(--glow-md); }
.step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad-orange); color: var(--navy-950);
  box-shadow: var(--glow-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 16px;
}
.step-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.step-card p { font-size: 13.5px; margin: 0; }

/* ===== Testimonials ===== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  position: relative;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  border: 1px solid var(--gray-100);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stars { color: var(--amber-500); font-size: 15px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p.quote { font-size: 14.5px; color: var(--gray-700); font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad-orange); color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.testimonial-author .name { font-weight: 700; font-size: 13.5px; color: var(--navy-950); }
.testimonial-author .role { font-size: 12px; color: var(--gray-500); }

/* ===== Clients strip ===== */
.clients-strip { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; opacity: 0.85; }
.client-logo { font-weight: 800; font-size: 17px; color: var(--gray-500); letter-spacing: 0.02em; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-700));
  border-radius: 18px;
  padding: 54px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  color: var(--white);
  border: 1px solid rgba(140,224,0,0.2);
}
.cta-banner::before {
  content:"";
  position:absolute; inset:0;
  background-image:
    radial-gradient(circle at 88% 15%, rgba(140,224,0,0.32), transparent 45%),
    radial-gradient(circle at 5% 100%, rgba(140,224,0,0.16), transparent 50%),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, auto, 38px 38px, 38px 38px;
  animation: drift 18s ease-in-out infinite;
}
.cta-banner h2 { position: relative; margin-bottom: 8px; }
.cta-banner p { position: relative; color: rgba(255,255,255,0.82); margin: 0; }
.cta-banner-actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--gray-100); padding: 20px 0; transition: background 0.15s ease; }
.faq-q { display: flex; justify-content: space-between; align-items: flex-start; cursor: pointer; font-weight: 700; font-size: 16px; color: var(--navy-950); gap: 16px; line-height: 1.4; }
.faq-q svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; transition: transform 0.2s; color: var(--amber-600); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-item.open .faq-q { color: var(--amber-600); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 1200px; margin-top: 12px; }
.faq-a p { font-size: 14.5px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-category { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-600); }

/* ===== Sidebar (service pages) ===== */
.service-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.sidebar-card { background: var(--off-white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.sidebar-card h3 { font-size: 16px; margin-bottom: 14px; }
.sidebar-services li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--gray-300);
  font-weight: 600; font-size: 14px; color: var(--navy-800);
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.sidebar-services li:last-child a { border-bottom: none; }
.sidebar-services li a:hover { color: var(--amber-600); padding-left: 4px; }
.sidebar-services li a.active { color: var(--amber-600); }
.sidebar-quote { background: var(--navy-950); color: var(--white); text-align: center; position: relative; overflow: hidden; border: 1px solid rgba(140,224,0,0.25); }
.sidebar-quote::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 0%, rgba(140,224,0,0.25), transparent 55%);
}
.sidebar-quote * { position: relative; }
.sidebar-quote p { color: rgba(255,255,255,0.75); font-size: 13.5px; }
.info-box {
  display: flex; gap: 12px; background: rgba(140,224,0,0.08);
  border: 1px solid rgba(140,224,0,0.3); border-radius: 10px; padding: 16px 18px; margin: 24px 0;
}
.info-box svg { width: 22px; height: 22px; color: var(--amber-600); flex-shrink: 0; }
.info-box p { margin: 0; font-size: 14px; color: var(--navy-900); }

/* ===== Table ===== */
.freq-table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 14px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.freq-table th, .freq-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--gray-100); }
.freq-table th { background: var(--navy-950); color: var(--white); font-weight: 700; border-bottom: 2px solid var(--amber-500); }
.freq-table tr:nth-child(even) td { background: var(--off-white); }

/* ===== Form ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--gray-100); box-shadow: var(--shadow-md); border-radius: 16px; padding: 34px; position: relative; overflow: hidden; }
.form-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-orange); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--navy-950); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-300); border-radius: 8px;
  font-family: inherit; font-size: 14.5px; color: var(--text); background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(140,224,0,0.15); }
.field textarea { resize: vertical; min-height: 110px; }

/* ===== Free tools: "Am I compliant?" calculator + "Which services do I need?" finder ===== */
.section--calc { background: linear-gradient(180deg, rgba(140,224,0,0.07), rgba(140,224,0,0) 70%); }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.calc-card-solo { max-width: 720px; margin: 0 auto; }
.calc-card {
  background: var(--white); border: 1px solid var(--gray-100); box-shadow: var(--shadow-md);
  border-radius: 16px; padding: 38px; position: relative; overflow: hidden; height: 100%;
}
.calc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-orange); }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-actions { margin-top: 6px; }
.calc-result { margin-top: 26px; border-top: 1px solid var(--gray-100); padding-top: 24px; }
.calc-result-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 14px;
}
.calc-result-badge--ok { background: rgba(140,224,0,0.16); color: #4a7a00; }
.calc-result-badge--soon { background: rgba(245,166,35,0.18); color: #a15c00; }
.calc-result-badge--overdue { background: rgba(208,52,44,0.12); color: #d0342c; }
.calc-result-date { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--navy-950); margin-bottom: 6px; }
.calc-result p { margin: 0; color: var(--gray-500); font-size: 14.5px; }
.calc-note { font-size: 12.5px; color: var(--gray-500); margin: 18px 0 0; }
.quiz-result-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; }
.quiz-result-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--off-white); border: 1px solid var(--gray-100); border-radius: 8px;
  padding: 12px 14px; font-weight: 700; font-size: 14.5px; color: var(--navy-800);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.quiz-result-item:hover { background: rgba(140,224,0,0.12); color: var(--amber-600); transform: translateX(3px); }
@media (max-width: 980px) {
  .tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .calc-row { grid-template-columns: 1fr; }
  .calc-card { padding: 28px 22px; }
}

.booking-card-wrap { display: flex; justify-content: center; }
.booking-card-wrap .form-card { width: 100%; max-width: 640px; }
.booking-hint {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-500);
  background: var(--off-white); border: 1px solid var(--gray-100); border-radius: 8px;
  padding: 10px 12px; margin: -4px 0 18px;
}
.booking-hint svg { width: 16px; height: 16px; color: var(--amber-600); flex-shrink: 0; }
.booking-status, .enquiry-status { margin: 14px 0 0; font-size: 13.5px; font-weight: 600; display: none; }
.booking-status--success, .enquiry-status--success { display: block; color: var(--amber-600); }
.booking-status--error, .enquiry-status--error { display: block; color: #d0342c; }

.contact-info-list li { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-list .ci-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--grad-orange);
  box-shadow: var(--glow-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}
a.ci-icon:hover { transform: translateY(-2px); filter: brightness(1.08); }
.contact-info-list .ci-icon svg { width: 22px; height: 22px; color: var(--navy-950); }
.contact-info-list h3 { font-size: 15.5px; margin-bottom: 4px; }
.contact-info-list p { margin: 0; font-size: 14.5px; }
.contact-info-list p a:hover { color: var(--amber-600); }

/* ===== Footer ===== */
footer.site-footer { background: var(--navy-950); color: var(--gray-300); padding-top: 68px; position: relative; overflow: hidden; border-top: 1px solid rgba(140,224,0,0.2); }
footer.site-footer::before {
  content: "";
  position: absolute; inset: 0; height: 100%;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(140,224,0,0.1), transparent 40%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  pointer-events: none;
}
footer.site-footer .container { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer-logo {
  display: inline-flex; align-items: center; gap: 10px; color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 16px;
  background: var(--white); border-radius: 10px; padding: 10px 16px;
}
.footer-logo .logo-mark { width: 36px; height: 36px; }
.footer-logo-img { height: 38px; width: auto; display: block; }
.footer-col h4 { font-family: var(--font-display); color: var(--white); font-size: 14.5px; margin-bottom: 18px; letter-spacing: 0.03em; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { font-size: 14px; color: var(--gray-300); transition: color 0.15s ease, padding-left 0.15s ease; }
.footer-col ul li a:hover { color: var(--amber-500); padding-left: 3px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: 14px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--amber-500); flex-shrink: 0; margin-top: 2px; }
.footer-accred { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.footer-accred .accred-badge { border-color: rgba(140,224,0,0.25); color: rgba(255,255,255,0.75); }
.footer-accred .accred-badge svg { color: var(--amber-500); }
.footer-accred .accred-badge:hover { border-color: var(--amber-500); color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.55);
  position: relative;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--amber-500); }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: var(--grad-orange); transform: translateY(-3px); }
.social-row svg { width: 16px; height: 16px; color: var(--white); }

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

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .value-grid, .services-grid, .testimonial-grid, .sectors-grid, .faq-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-layout, .service-layout { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 56px; }
  .hero h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .page-header-grid { grid-template-columns: 1fr; text-align: left; }
  .page-header-art { display: none; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .logo { font-size: 15.5px; gap: 8px; }
  .logo-img { height: 42px; }
  nav.main-nav { position: fixed; top: 0; right: -100%; width: 82%; max-width: 340px; height: 100vh; background: var(--white); box-shadow: -8px 0 24px rgba(0,0,0,0.15); transition: right 0.25s ease; padding: 90px 24px 24px; overflow-y: auto; }
  nav.main-nav.open { right: 0; }
  nav.main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  nav.main-nav > ul > li > a { padding: 14px 10px; justify-content: space-between; }
  nav.main-nav > ul > li > a::after { display: none; }
  nav.main-nav ul.dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 12px; border: none; }
  nav.main-nav li.open ul.dropdown { display: flex; }
  .mobile-nav-cta { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--gray-100); }
  .mobile-nav-cta .phone { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--navy-950); }
  .nav-toggle { display: block; }
  .nav-cta { gap: 10px; }
  .nav-cta .phone, .nav-cta .btn-primary { display: none; }
  .value-grid, .services-grid, .testimonial-grid, .sectors-grid, .faq-preview-grid, .steps, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 26px; flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 32px; }
  .page-header h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .section { padding: 56px 0; }
  .accred-track { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .split-media::before, .cta-banner::before, .marquee-track { animation: none !important; }
  .btn, .btn-primary::after, .value-card, .service-card, .step-card, .testimonial-card { transition: none !important; }
  .hero-badges, .hero h1, .hero .lede, .hero-cta, .hero-stats, .hero-scroll-cue {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}

.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 90; }
.nav-overlay.show { display: block; }

/* [data-reveal] elements intentionally have no hidden/animated state —
   see main.js for why the scroll-reveal animation was removed. They are
   just normal, always-visible content. */
