/*
Theme Name: Helderberg Security Services
Description: Approved automation and security design, adapted to retain existing WordPress pages and posts.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: helderberg-security
License: GPL-2.0-or-later
*/
:root {
  --bg: #071521;
  --bg-soft: #0d2230;
  --panel: #0a1b28;
  --panel-strong: #102b3b;
  --card: #102535;
  --line: rgba(118, 224, 215, 0.16);
  --text: #eef9fb;
  --text-soft: #b4c9d0;
  --muted: #7f9aa6;
  --accent: #39d5c7;
  --accent-strong: #4aa9ff;
  --accent-soft: #b8fff8;
  --success: #62dfb0;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(57, 213, 199, 0.07), transparent 28rem),
    var(--panel);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 21, 33, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.split-cta-button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 1.5rem;
  padding: 0.4rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: white;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: min(220px, 42vw);
  height: auto;
  max-height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(13, 20, 25, 0.16));
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #121212;
  font-size: 1.2rem;
  font-weight: 800;
}

.brand small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.main-nav a {
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.86;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: white;
  opacity: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #06151d;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(210,154,43,0.28);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
}

.hero {
  background: linear-gradient(135deg, rgba(4, 17, 28, 0.9), rgba(7, 35, 49, 0.72)), url('assets/services/automation.jpg') center/cover no-repeat;
  color: white;
  padding: 4.5rem 0 3.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2.5rem;
}

.kicker {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.82);
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.form-actions {
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 1rem 1.6rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1da9bb);
  color: #06151d;
  box-shadow: 0 14px 26px rgba(57, 213, 199, 0.2);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: white;
}

.hero-trust {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
}

.hero-panel {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(4, 17, 28, 0.08), rgba(4, 17, 28, 0.9)),
    url('assets/services/automation.jpg') center/cover no-repeat;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-panel .eyebrow,
.hero-panel h2,
.hero-panel .stat-grid {
  position: relative;
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.section {
  padding: 5rem 0;
  position: relative;
  isolation: isolate;
}

.section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(90deg, rgba(57, 213, 199, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(57, 213, 199, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.section-light {
  background: var(--panel);
}

.section-dark {
  background: #06131f;
  color: white;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading p {
  color: var(--text-soft);
  font-size: 1.08rem;
}

.section-dark .section-heading p,
.section-dark .eyebrow {
  color: rgba(255,255,255,0.74);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
}

.service-card,
.info-card,
.trust-card,
.project-card,
.blog-card,
.feature-card,
.contact-card,
.step-card,
.location-card,
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.28s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.service-card {
  overflow: hidden;
}

.service-card:hover,
.project-card:hover,
.blog-card:hover,
.trust-card:hover,
.step-card:hover,
.location-card:hover,
.contact-card:hover,
.faq-item:hover,
.feature-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
  border-color: rgba(57, 213, 199, 0.5);
}

.service-card .card-content {
  padding: 1.5rem;
}

.service-card img,
.project-card img,
.blog-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.service-card h3,
.project-card h3,
.blog-card h3,
.location-card h3,
.step-card h3,
.feature-card h3,
.contact-card h3,
.trust-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.45rem;
}

.service-card p,
.info-card p,
.trust-card p,
.project-card p,
.feature-card p,
.location-card p,
.contact-card p,
.step-card p,
.blog-card p,
.faq-item p {
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.inline-link,
.read-more {
  color: var(--accent);
  font-weight: 700;
}

.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 2rem;
}

.feature-panel {
  background: linear-gradient(180deg, var(--card), var(--panel-strong));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.feature-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 0.25rem 0 1.5rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text-soft);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 700;
}

.split-cta {
  background: linear-gradient(135deg, rgba(57, 213, 199, 0.12), rgba(74, 169, 255, 0.08));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.trust-grid,
.step-grid,
.location-grid,
.blog-grid,
.project-grid,
.contact-grid,
.stat-grid-metrics {
  display: grid;
  gap: 1.5rem;
}

.trust-grid,
.step-grid,
.blog-grid,
.project-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.location-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.project-placeholder-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-grid {
  grid-template-columns: repeat(4, minmax(0,1fr));
}

.project-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 230px;
  background: linear-gradient(180deg, #102c3d, #0c2130);
}

.project-type {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  font-weight: 700;
}

.step-card {
  padding: 1.5rem;
}

.step-number {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-weight: 800;
  color: var(--accent-strong);
  letter-spacing: 0.08em;
}

.marquee {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.mini-pill {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  text-align: center;
}

.page-hero {
  padding: 5.5rem 0 3rem;
  background: linear-gradient(135deg, rgba(5, 18, 29, 0.98), rgba(12, 40, 54, 0.94));
  color: white;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  max-width: 760px;
}

.inline-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.metric-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.7rem 0.9rem;
  color: rgba(255,255,255,0.8);
}

.content-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.content-box h3,
.content-box h4 {
  margin-bottom: 0.6rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.quote-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  background: rgba(57, 213, 199, 0.08);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.form-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-body {
  padding: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(118, 224, 215, 0.24);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #0b1e2c;
  color: var(--text);
}

textarea {
  min-height: 136px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(57, 213, 199, 0.18);
  border-color: rgba(57, 213, 199, 0.7);
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.contact-list li {
  color: var(--text-soft);
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1.25rem 1.4rem;
}

.faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.site-footer {
  background: #04111b;
  color: rgba(255,255,255,0.84);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 2rem;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: rgba(255,255,255,0.72);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
}

.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: none;
  background: rgba(11,19,24,0.96);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
}

.mobile-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 980px) {
  .two-up,
  .content-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .trust-grid,
  .step-grid,
  .blog-grid,
  .location-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(13,20,25,0.96);
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-cta {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .hero + .section .card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .hero + .section .service-card .card-content {
    padding: 1rem;
  }

  .hero + .section .service-card img {
    height: 110px;
  }

  .hero + .section .service-card h3 {
    font-size: 1rem;
    letter-spacing: -0.02em;
  }

  .hero + .section .service-card p {
    font-size: 0.82rem;
    line-height: 1.4;
  }
}

@media (max-width: 1180px) {
  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(13,20,25,0.96);
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
  }

  .main-nav.is-open { display: flex; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-cta { width: 100%; }
}
@media (min-width: 1181px) {
  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3.25rem 0 2.5rem;
  }

  .card-grid,
  .form-grid,
  .trust-grid,
  .step-grid,
  .blog-grid,
  .location-grid,
  .project-grid,
  .stat-grid,
  .marquee {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 84px;
  }

  .hero-panel {
    min-height: 250px;
  }

  .hero + .section .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .hero + .section .service-card .card-content {
    padding: 0.85rem;
  }

  .hero + .section .service-card img {
    height: 110px;
  }

  .hero + .section .service-card h3 {
    font-size: 1rem;
  }

  .hero + .section .service-card p {
    font-size: 0.82rem;
    line-height: 1.4;
  }
}

.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: .7rem 1.2rem; border-radius: 999px; background: #25d366; color: #04210f; font-weight: 800; text-decoration: none; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.wa-float:hover { filter: brightness(1.08); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 820px) { .wa-float { display: none; } }

.form-status.is-success { color: var(--success); font-weight: 600; }
.legal h2 { margin-top: 2rem; }
.legal p, .legal li { color: var(--text-soft); }
.legal { overflow-wrap: anywhere; }

.form-note { font-size: .88rem; color: var(--muted); }
@media (min-width: 1181px) and (max-width: 1400px) { .main-nav { gap: .15rem .7rem; } .main-nav a { font-size: .85rem; } }

/* Shared navigation and accessibility, retaining the existing brand styling. */
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 4px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 110px; }
main:focus { outline: none; }
button, summary { cursor: pointer; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 2000; padding: .8rem 1.2rem; background: var(--accent); color: #06151d; font-weight: 700; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.main-nav > a, .nav-group > summary { white-space: nowrap; min-height: 44px; display: flex; align-items: center; }
.main-nav [aria-current="page"] { color: var(--accent-soft); opacity: 1; }
.main-nav .nav-cta { color: #06151d; opacity: 1; }
.nav-group { position: relative; }
.nav-group > summary { padding: .5rem .2rem; gap: .45rem; list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: '\2304'; color: var(--accent); }
.nav-dropdown { position: absolute; top: 100%; left: -.8rem; width: 280px; max-height: min(70vh, 620px); overflow: auto; background: #0d2230; padding: .7rem; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.nav-dropdown a { display: block; padding: .55rem .7rem; border-radius: 8px; min-height: 44px; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: #173b4d; }
.footer-grid > *, .contact-grid > *, .hero-grid > * { min-width: 0; }
.footer-grid a, .contact-list a { overflow-wrap: anywhere; }
.contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.form-shell:hover, .contact-card:hover { transform: none; }
.form-note { color: var(--text-soft); }
.form-note a, .legal a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.enquiry-result { margin-top: 1.5rem; padding: 1.2rem; border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--panel); }
.enquiry-result pre { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-soft); }
.enquiry-result .btn { font-size: .85rem; padding: .8rem 1rem; }
.field [aria-invalid="true"] { border-color: #ffb28a; }
.blog-card { overflow: hidden; }
.blog-card .card-content { padding: 1.5rem; }
.guide { margin-top: 1.5rem; }
.guide summary { color: var(--accent-soft); font-weight: 700; padding: .6rem 0; }
.guide p, .guide li { color: var(--text-soft); }
.brand-logo { width: 54px; height: 66px; max-height: 66px; flex: 0 0 54px; }
.brand-name { font-size: .95rem; line-height: 1.25; letter-spacing: .01em; }
.hero-panel { background-image: linear-gradient(180deg, rgba(4,17,28,.72), rgba(4,17,28,.95)), url('assets/services/automation.jpg'); }
.blog-card .article-title { font-size: 1.45rem; }
@media (max-width: 1180px) {
  .main-nav { max-height: calc(100dvh - 115px); overflow: auto; gap: .3rem; }
  .main-nav > a, .nav-group { width: 100%; }
  .nav-dropdown { position: static; width: 100%; max-height: none; box-shadow: none; margin-bottom: .5rem; }
  .main-nav > a, .nav-group > summary { padding: .6rem; }
}
@media (min-width: 1181px) { .main-nav { gap: 1rem; font-size: .88rem; } }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .section { padding: 3.25rem 0; }
  .page-hero { padding: 3.25rem 0 2.5rem; }
  .feature-panel, .content-box, .form-body { padding: 1.25rem; }
  .mobile-cta .btn { padding: .75rem .5rem; font-size: .85rem; }
  .brand-logo { width: 46px; height: 56px; flex-basis: 46px; }
  .brand-name { font-size: .87rem; }
  .hero-trust { gap: .5rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Advice stays visible without motion or JavaScript. */
[hidden] { display: none !important; }
.advice-tools { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 1rem; align-items: end; margin-bottom: 2rem; padding: 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.advice-tools [role="status"] { grid-column: 1 / -1; margin: 0; color: var(--text-soft); }
[data-advice-more] { display: block; margin: 2rem auto 0; }
[data-advice-empty] { margin: 1rem 0; }
.topic-label { color: var(--accent-soft); font-size: .83rem; font-weight: 700; letter-spacing: .04em; }
.blog-card { display: flex; flex-direction: column; }
.blog-card .card-content { display: flex; flex-direction: column; flex: 1; gap: .6rem; }
.blog-card .card-content > :last-child { margin-top: auto; }
.related-service { margin: 2rem 0; padding: 1.5rem; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 12px 12px 0; }
.next-steps { padding-left: 1.3rem; color: var(--text-soft); }
.next-steps li { padding: .4rem 0; }
@media (max-width: 700px) { .advice-tools { grid-template-columns: minmax(0, 1fr); padding: 1rem; } .advice-tools .btn { width: 100%; } }

.enquiry-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* WordPress content and archive layouts; the approved static design stays intact. */
.wp-content-shell { max-width: 900px; }
.entry-content { font-size: 1.06rem; line-height: 1.8; overflow-wrap: anywhere; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2rem; line-height: 1.3; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; }
.entry-content img { height: auto; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content td, .entry-content th { padding: .7rem; border: 1px solid var(--line); }
.entry-content blockquote { margin-inline: 0; padding: 1rem 1.5rem; border-left: 3px solid var(--accent); background: var(--panel); }
.article-image { display: block; width: 100%; height: auto; max-height: 550px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 2rem; }
.blog-card > a img { width: 100%; height: 230px; object-fit: cover; }
.entry-meta { font-size: .88rem; color: var(--text-soft); }
.article-topics, .post-navigation, .pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; }
.page-numbers { display: inline-block; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 6px; }
.page-numbers.current { background: var(--accent); color: #071521; }
.hss-search { margin-top: 1.5rem; max-width: 650px; }
.hss-search label { display: block; margin-bottom: .6rem; font-weight: 700; }
.hss-search > div { display: flex; gap: .7rem; }
.hss-search input { min-width: 0; flex: 1; padding: .8rem; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--text); font: inherit; }
.admin-bar .site-header { top: 32px; }
@media(max-width:782px) { .admin-bar .site-header { top:46px; } }
@media(max-width:600px) { .admin-bar .site-header { top:0; } .hss-search > div { flex-direction:column; } }
