/* ==========================================================================
   R.J. Clarke Electrical Services — Design System
   ========================================================================== */

:root {
  /* Brand palette — sampled from the R.J. Clarke dark brand pack */
  --bg: #07111f;              /* deep navy page background */
  --bg-card: #0f1c30;         /* card / section alt */
  --bg-elevated: #15263f;     /* elevated surface */
  --bg-input: #0a1626;        /* form fields */
  --border: #1d2f4a;
  --border-strong: #2a3f60;

  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Brand accents */
  --accent: #facc15;          /* lightning bolt yellow */
  --accent-hover: #eab308;
  --accent-soft: rgba(250, 204, 21, 0.1);
  --accent-text: #07111f;     /* dark navy text on yellow */

  --blue: #1e40af;            /* royal blue from brand */
  --blue-light: #3b82f6;
  --blue-soft: rgba(30, 64, 175, 0.12);

  --green: #34d399;
  --red: #f87171;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --max-w: 1200px;
  --max-w-content: 800px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Open Sans', -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
  text-transform: none;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

ul {
  list-style: none;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover { color: var(--text); }

.brand-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav a:hover, .nav a.active {
  color: var(--text);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.phone-link:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
  transform: translateY(-1px);
}

.phone-link svg {
  width: 16px;
  height: 16px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-image {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), transparent 60%);
}

.placeholder-img {
  text-align: center;
  color: var(--text-dim);
  padding: 2rem;
}

.placeholder-img svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  opacity: 0.4;
}

.placeholder-img-label {
  font-size: 0.85rem;
  font-style: italic;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--accent);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Trust bar (NICEIC, 23 years, qualifications)
   ========================================================================== */

.trust-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.trust-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.trust-icon svg { width: 22px; height: 22px; }

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.trust-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Service cards
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Content prose (long-form pages)
   ========================================================================== */

.prose {
  max-width: var(--max-w-content);
  margin: 0 auto;
}

.prose h2 {
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  scroll-margin-top: 100px;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  color: var(--text);
}

.prose p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 1.1rem;
}

.prose ul, .prose ol {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
}

.prose ul li, .prose ol li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.prose ol {
  list-style: decimal;
  padding-left: 1.25rem;
}
.prose ol li {
  padding-left: 0.5rem;
}
.prose ol li::before { display: none; }

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* ==========================================================================
   Code-cards (EICR classification codes)
   ========================================================================== */

.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.code-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.code-card.danger { border-left-color: var(--red); }
.code-card.warning { border-left-color: #fb923c; }
.code-card.info { border-left-color: var(--blue); }

.code-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.code-card.danger .code-card-tag { color: var(--red); }
.code-card.warning .code-card-tag { color: #fb923c; }
.code-card.info .code-card-tag { color: var(--blue); }

.code-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.code-card p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--text-muted);
}

/* ==========================================================================
   Areas grid
   ========================================================================== */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.area-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.area-tile:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--text);
  transform: translateX(2px);
}

.area-tile svg {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.area-tile:hover svg {
  color: var(--accent);
}

/* ==========================================================================
   Quote form
   ========================================================================== */

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

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.quote-info h2 { margin-bottom: 1rem; }
.quote-info p { font-size: 1rem; }

.quote-contact {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote-contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
}

.quote-contact-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.quote-contact-icon svg { width: 18px; height: 18px; }

.quote-contact-text { line-height: 1.4; }
.quote-contact-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.quote-contact-value {
  font-weight: 600;
  color: var(--text);
}
.quote-contact-value a { color: var(--text); }
.quote-contact-value a:hover { color: var(--accent); }

.quote-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Page hero (subpages)
   ========================================================================== */

.page-hero {
  padding: 4rem 0 2.5rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { margin: 0 0.5rem; color: var(--text-dim); }

/* ==========================================================================
   NICEIC badge
   ========================================================================== */

.niceic-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.niceic-badge img {
  width: 80px;
  height: auto;
  flex-shrink: 0;
  background: white;
  padding: 4px;
  border-radius: 6px;
}

.niceic-badge-text {
  flex: 1;
}

.niceic-badge-text strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.niceic-badge-text span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-quals {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.footer-qual {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

.footer-bottom a { color: var(--text-muted); font-size: 0.85rem; }

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-image { max-width: 500px; margin: 0 auto; width: 100%; }
  .quote-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 700px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0;
         background: var(--bg-card); border-bottom: 1px solid var(--border);
         flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--border); text-align: left; }
  .nav a:last-child { border-bottom: none; }

  .menu-toggle { display: inline-flex; }

  .header-cta .phone-link span:not(.sr-only) { display: none; }
  .phone-link { padding: 0.55rem 0.8rem; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 3rem 0; }

  .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Form success state */
.form-success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--green);
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 500;
}

/* ==========================================================================
   Brand-specific components
   ========================================================================== */

/* "Testing · Inspection · Installation" tag strip — used in hero and footer */
.brand-services {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 1.25rem 0;
}
.brand-services span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-services span svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.brand-services .dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* "Experience You Can Trust" sub-tagline */
.brand-tagline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Timeline: 1998 / 2003 / 2012 */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--blue), var(--accent));
  opacity: 0.3;
  z-index: 0;
}

.timeline-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-year {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent);
  background: var(--bg-card);
  padding: 0.25rem 0.75rem;
  letter-spacing: -0.01em;
}

.timeline-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .timeline { grid-template-columns: 1fr; gap: 1.25rem; }
  .timeline::before { display: none; }
  .timeline-item { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
  .timeline-item:last-child { border-bottom: none; }
}

/* "Safe · Compliant · Reliable" badge */
.trust-pillars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: var(--blue-soft);
  border: 1px solid rgba(30, 64, 175, 0.25);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.trust-pillars span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.trust-pillars span svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.trust-pillars .sep {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* Footer brand strap line */
.footer-strap {
  background: linear-gradient(to right, transparent, var(--bg-elevated), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Hero banner — full-width composed brand asset */
.hero-banner {
  margin: 0 0 3rem;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  background: #050b15;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-text {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-text .hero-lead {
  margin: 1.25rem auto 2rem;
  font-size: 1.1rem;
}

.hero-text .hero-actions {
  justify-content: center;
}

@media (max-width: 700px) {
  .hero-banner { margin-bottom: 2rem; border-radius: var(--radius); }
}

/* ==========================================================================
   Google Map embed
   ========================================================================== */

.map-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* Slight desaturation so the map doesn't fight with the brand palette;
     remove this if the colour seems too muted in practice. */
  filter: saturate(0.85) brightness(0.95);
}

.map-towns {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.map-towns strong { color: var(--text); margin-right: 0.25rem; }
.map-towns a { color: var(--text-muted); }
.map-towns a:hover { color: var(--accent); }
.map-towns .sep { color: var(--accent); margin: 0 0.4rem; opacity: 0.6; }

@media (max-width: 700px) {
  .map-embed { aspect-ratio: 4 / 3; }
}
