/* ==========================================================================
   Fire Alarm Installation Ilford — Design System
   Palette: white background, stark black (matching the logo), safety red,
   amber accent — distinct from prior red/black builds via the amber pairing
   and starker black-forward type treatment
   Type: Rajdhani (display, technical/angular) + Inter (body)
   ========================================================================== */

:root {
  --color-bg: #FFFFFF;
  --color-surface: #F4F4F4;
  --color-ink: #111111;
  --color-red: #C8102E;
  --color-red-dark: #9E0C24;
  --color-red-tint: #FBE9EB;
  --color-amber: #F2A900;
  --color-line: #E2E2E2;
  --color-muted: #4D4D4D;

  --font-display: 'Rajdhani', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --container: 1120px;
  --space-section: clamp(3rem, 6vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); text-transform: none; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: var(--space-section) 0; }
.section--tight { padding: 2.5rem 0; }
.section--surface { background: var(--color-surface); }
.section--ink { background: var(--color-ink); color: #EDEDED; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #BFBFBF; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-red);
  display: inline-block;
  margin-bottom: 0.75rem;
}
.section--ink .eyebrow { color: var(--color-amber); }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-ink); color: #fff;
  padding: 0.75rem 1.25rem; z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--color-red);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.25rem;
  max-width: var(--container); margin: 0 auto;
  gap: 1rem;
}
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; display: block; }
.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.main-nav a { color: var(--color-ink); font-weight: 600; font-size: 0.94rem; }
.main-nav a:hover { text-decoration: none; color: var(--color-red); }
.main-nav a.is-active { color: var(--color-red); }
.header-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--color-red); color: #fff;
  padding: 0.65rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem; white-space: nowrap;
}
.header-cta:hover { background: var(--color-red-dark); text-decoration: none; color: #fff; }
.nav-toggle {
  display: inline-flex; background: none; border: 1px solid var(--color-line);
  border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--color-ink); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--color-line); background: var(--color-bg); }
.mobile-nav.is-open { display: flex; }
.mobile-nav > a { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--color-line); color: var(--color-ink); font-weight: 600; }
.mobile-nav > a.is-active { color: var(--color-red); }

@media (min-width: 860px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Sticky mobile call button */
.sticky-call {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--color-red); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 1rem; font-weight: 700; font-size: 1rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.sticky-call:hover { color: #fff; text-decoration: none; background: var(--color-red-dark); }
@media (min-width: 860px) { .sticky-call { display: none; } }
body { padding-bottom: 64px; }
@media (min-width: 860px) { body { padding-bottom: 0; } }

/* Hero — signature "pulse rings" motif referencing an alarm signal */
.hero { position: relative; overflow: hidden; background: var(--color-ink); color: #fff; padding: 3.5rem 0; }
.hero__rings { position: absolute; top: 50%; right: -80px; transform: translateY(-50%); width: 480px; height: 480px; z-index: 0; pointer-events: none; opacity: 0.5; }
.hero__grid { display: grid; gap: 2rem; position: relative; z-index: 1; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; } }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.12rem; color: #C7C7C7; max-width: 48ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.5rem; }
.hero__image { border-radius: var(--radius-md); overflow: hidden; border: 2px solid var(--color-red); position: relative; z-index: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1rem; border: 1px solid transparent;
}
.btn--primary { background: var(--color-red); color: #fff; }
.btn--primary:hover { background: var(--color-red-dark); color: #fff; text-decoration: none; }
.btn--ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.btn--ink { background: var(--color-ink); color: #fff; }
.btn--ink:hover { background: #000; color: #fff; text-decoration: none; }

.trust-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem 1.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); }
.trust-strip__item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: #D6D6D6; }
.trust-strip__item svg { flex-shrink: 0; color: var(--color-amber); }
@media (min-width: 700px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }

/* Review badge + stars */
.stars { display: inline-flex; gap: 2px; color: var(--color-amber); }
.review-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  padding: 0.65rem 1rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  color: #fff; margin-top: 1rem;
}
.review-badge--light { background: var(--color-red-tint); border-color: var(--color-line); color: var(--color-ink); }

/* Accreditation strip */
.accred-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; margin-top: 1.5rem; }
.accred-strip img { height: 40px; width: auto; object-fit: contain; }
.section--ink .accred-strip img { filter: brightness(0) invert(1); opacity: 0.85; }

/* Bento grid */
.bento { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } }
.bento-card { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 1.5rem; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.bento-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(17,17,17,0.08); border-color: var(--color-red); }
.bento-card__icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--color-red-tint); color: var(--color-red); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.bento-card h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.bento-card p { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 0.6rem; }
.bento-card a.card-link { font-weight: 700; font-size: 0.9rem; }

/* Work image card */
.work-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-line); }
.work-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Timeline */
.timeline { position: relative; margin-top: 2.5rem; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.2); }
@media (min-width: 860px) { .timeline::before { left: 50%; transform: translateX(-1px); } }
.timeline-step { position: relative; padding-left: 3.2rem; margin-bottom: 2rem; }
.timeline-step__num { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--color-red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; z-index: 1; font-family: var(--font-body); }
.timeline-step h3 { margin-bottom: 0.3rem; color: #fff; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
@media (min-width: 780px) { .faq-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 1.25rem 1.4rem; }
.faq-item h3 { font-size: 1.02rem; margin-bottom: 0.4rem; color: var(--color-ink); }
.faq-item p { color: var(--color-muted); margin: 0; font-size: 0.95rem; }

/* Review cards */
.review-card { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 1.75rem; margin-bottom: 1.25rem; }
.review-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.review-card__meta strong { display: block; color: var(--color-ink); font-size: 1.05rem; }
.review-card__meta span { color: var(--color-muted); font-size: 0.85rem; }
.review-card__date { color: var(--color-muted); font-size: 0.85rem; white-space: nowrap; text-align: right; }
.review-card__rating { font-family: var(--font-display); font-weight: 700; color: var(--color-red); font-size: 1.1rem; }
.review-card__title { font-weight: 700; color: var(--color-red); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.review-card p.review-text { color: var(--color-ink); margin: 0; }
.review-card__service { display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--color-muted); background: var(--color-surface); padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.5rem; }

/* Split CTA */
.split-cta { display: grid; grid-template-columns: 1fr; gap: 1.5rem; background: var(--color-ink); color: #fff; border-radius: var(--radius-md); padding: 2.25rem; align-items: center; }
@media (min-width: 780px) { .split-cta { grid-template-columns: 2fr 1fr; } }
.split-cta h2 { color: #fff; margin-bottom: 0.5rem; }
.split-cta p { color: #C7C7C7; margin: 0; }
.split-cta__actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* Pill nav */
.pill-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 0; }
.pill { display: inline-block; padding: 0.5rem 1rem; border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-line); font-size: 0.9rem; font-weight: 600; color: var(--color-ink); }
.pill:hover { border-color: var(--color-red); color: var(--color-red); text-decoration: none; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--color-muted); padding: 1rem 0 0; }
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-red); }
.breadcrumbs .sep { margin: 0 0.4rem; }

/* Info cards */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 1.5rem; }
.info-card h3 { margin-bottom: 0.5rem; }

/* Content */
.prose { max-width: 68ch; }
.prose p { color: var(--color-muted); }
.two-col { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.2fr 0.8fr; } }

/* Contact */
.contact-details { list-style: none; margin: 0; padding: 0; }
.contact-details li { display: flex; gap: 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid var(--color-line); }
.contact-details li svg { color: var(--color-red); flex-shrink: 0; }
.contact-details strong { display: block; color: var(--color-ink); }

/* Footer */
.site-footer { background: var(--color-ink); color: #ABABAB; padding: 3rem 0 5.5rem; }
@media (min-width: 860px) { .site-footer { padding-bottom: 3rem; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #ABABAB; font-size: 0.92rem; }
.site-footer a:hover { color: var(--color-red); }
.footer-bottom {
  max-width: var(--container); margin: 2.5rem auto 0; padding: 1.5rem 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem; color: #6E6E6E;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}
.footer-bottom a { color: #8A8A8A; }

/* Utility */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
