/* ==========================================================================
   Alarm Systems Basingstoke — Design tokens
   ========================================================================== */
:root{
  --navy:     #0E1B2E;
  --navy-2:   #16263D;
  --navy-3:   #1E314C;
  --red:      #C8272A;
  --red-2:    #E14448;
  --white:    #FFFFFF;
  --offwhite: #F5F6F8;
  --grey:     #5A6472;
  --grey-2:   #8993A0;
  --line:     rgba(200,39,42,0.2);

  --display: 'Barlow', Arial, sans-serif;
  --sans:    'Inter', Arial, sans-serif;
  --mono:    'JetBrains Mono', 'Courier New', monospace;

  --container: 1180px;
  --radius: 3px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0; background: var(--white); color: var(--navy);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--display); margin:0; font-weight:700; letter-spacing:-0.005em; }
p{ margin:0; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
:focus-visible{ outline: 2px solid var(--red); outline-offset: 3px; }

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

.eyebrow{
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red);
}

/* ==========================================================================
   Sensor-sweep divider — signature motif (PIR detection arcs)
   ========================================================================== */
.sweep-divider{ width:100%; height:44px; display:block; }
.sweep-divider path{ fill:none; stroke: var(--line); stroke-width:1.3; }
.sweep-divider path.accent{ stroke: var(--red); stroke-width:1.5; }
.sweep-divider circle{ fill: var(--red); }

/* ==========================================================================
   Header — click-to-call visible
   ========================================================================== */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(14,27,46,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(200,39,42,0.25);
}
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; height:84px; }
.logo{ display:flex; align-items:center; gap:12px; color: var(--white); }
.logo svg{ width:38px; height:38px; flex-shrink:0; }
.logo-text{ display:flex; flex-direction:column; line-height:1.1; }
.logo-text strong{ font-family: var(--display); font-size:19px; letter-spacing:-0.005em; color: var(--white); }
.logo-text span{ font-family: var(--mono); font-size:9.5px; letter-spacing:0.1em; text-transform:uppercase; color: var(--red-2); }

.main-nav{ display:flex; align-items:center; gap:24px; }
.main-nav a{
  font-family: var(--mono); font-size:11.5px; letter-spacing:0.05em; text-transform:uppercase;
  color: #C4CAD4; position:relative; padding:6px 0; white-space:nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"]{ color: var(--red-2); }
.main-nav a[aria-current="page"]::after{ content:''; position:absolute; left:0; right:0; bottom:0; height:1px; background:var(--red); }

.header-actions{ display:flex; align-items:center; gap:14px; }
.call-btn{
  display:flex; align-items:center; gap:8px;
  background: var(--red); color: var(--white);
  font-family: var(--mono); font-size:13px; letter-spacing:0.02em; font-weight:600;
  padding:10px 18px; border-radius: var(--radius);
  transition: background 0.2s ease;
}
.call-btn:hover{ background: var(--red-2); }

.nav-toggle{
  display:none; background:none; border:1px solid rgba(200,39,42,0.35);
  width:42px; height:42px; align-items:center; justify-content:center; color: var(--white);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{ position:relative; background: var(--navy); color: var(--white); padding: 94px 0 82px; overflow:hidden; }
.hero .wrap{ position:relative; z-index:1; }
.hero-grid{ display:grid; grid-template-columns: 1.15fr 0.85fr; gap:56px; align-items:end; }
.hero h1{ font-size: clamp(2.3rem, 4.3vw, 3.5rem); line-height:1.1; color: var(--white); margin: 18px 0 22px; max-width: 19ch; }
.hero h1 span{ color: var(--red-2); }
.hero p.lede{ font-size:1.06rem; color: #C4CAD4; max-width: 50ch; margin-bottom:32px; font-family:var(--sans); }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; gap:9px; padding:14px 26px;
  font-family: var(--mono); font-size:13px; letter-spacing:0.03em; text-transform:uppercase;
  border-radius: var(--radius); border:1px solid transparent; transition: all 0.2s ease; font-weight:600;
}
.btn-red{ background: var(--red); color: var(--white); }
.btn-red:hover{ background: var(--red-2); }
.btn-outline{ border-color: rgba(200,39,42,0.4); color: var(--white); }
.btn-outline:hover{ border-color: var(--red); color:var(--red-2); }

.hero-panel{ border:1px solid rgba(200,39,42,0.3); padding:26px; background: rgba(255,255,255,0.02); }
.hero-panel .eyebrow{ margin-bottom:14px; }
.hero-stat{ display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px solid rgba(200,39,42,0.2); font-size:14px; }
.hero-stat:last-child{ border-bottom:none; }
.hero-stat b{ font-family:var(--display); font-weight:700; color:var(--red-2); }

/* ==========================================================================
   Section framing
   ========================================================================== */
section{ padding: 78px 0; }
.section-navy{ background: var(--navy); color: var(--white); }
.section-navy-2{ background: var(--navy-2); color: var(--white); }
.section-head{ max-width: 660px; margin-bottom: 44px; }
.section-head h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top:12px; color: inherit; }
.section-head p{ margin-top:16px; color: var(--grey); font-size:1.02rem; font-family:var(--sans); }
.section-navy .section-head p, .section-navy-2 .section-head p{ color: #A9B0BB; }

.lead-copy{ display:grid; grid-template-columns: repeat(2, 1fr); gap:40px; font-size:1.02rem; color: var(--grey); }
.lead-copy p + p{ margin-top:14px; }

/* ==========================================================================
   Services grid
   ========================================================================== */
.services-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:1px; background: var(--line); border:1px solid var(--line); }
.service-card{ background: var(--white); padding: 32px 28px; }
.service-card .sec-icon{ width:44px; height:44px; margin-bottom:16px; }
.service-card .sec-icon path, .service-card .sec-icon line, .service-card .sec-icon rect, .service-card .sec-icon circle{ fill:none; stroke: var(--navy); stroke-width:1.4; }
.service-label{ font-family: var(--mono); font-size:10.5px; letter-spacing:0.1em; text-transform:uppercase; color: var(--red); display:block; margin-bottom:8px; }
.service-card h3{ font-size:1.5rem; margin-bottom:10px; color: var(--navy); }
.service-card p{ color: var(--grey); font-size:0.97rem; margin-bottom:14px; font-family:var(--sans); }
.service-card .card-link{ font-family: var(--mono); font-size:11.5px; letter-spacing:0.03em; text-transform:uppercase; color: var(--red); border-bottom:1px solid rgba(200,39,42,0.4); padding-bottom:2px; }
.service-card .card-link:hover{ color: var(--red-2); border-color: var(--red-2); }

/* ==========================================================================
   USP strip
   ========================================================================== */
.usp-row{ display:grid; grid-template-columns: repeat(4, 1fr); gap:1px; background: rgba(200,39,42,0.15); border: 1px solid rgba(200,39,42,0.15); }
.usp-item{ background: var(--navy); padding: 28px 24px; color: var(--white); }
.usp-item .eyebrow{ display:block; margin-bottom:12px; }
.usp-item h4{ font-size:1.08rem; margin-bottom:8px; color:var(--white); }
.usp-item p{ font-size:0.92rem; color: #A9B0BB; font-family:var(--sans); }

/* ==========================================================================
   Process steps
   ========================================================================== */
.process-list{ display:grid; grid-template-columns: repeat(4, 1fr); gap:28px; }
.process-step{ position:relative; padding-top:20px; border-top:1px solid var(--line); }
.process-step .step-no{ font-family:var(--mono); font-size:13px; color: var(--red); display:block; margin-bottom:10px; }
.process-step h4{ font-size:1.08rem; margin-bottom:8px; }
.process-step p{ color: var(--grey); font-size:0.94rem; font-family:var(--sans); }
.section-navy .process-step p, .section-navy-2 .process-step p{ color:#A9B0BB; }

/* ==========================================================================
   Coverage list
   ========================================================================== */
.area-list{ display:flex; flex-wrap:wrap; gap:10px 14px; }
.area-list li{ font-family: var(--mono); font-size:12.5px; color: var(--grey); padding:7px 14px; border:1px solid var(--line); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list{ border-top:1px solid var(--line); }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:20px;
  background:none; border:none; text-align:left; padding: 22px 4px;
  font-family: var(--display); font-size:1.1rem; color: var(--navy); cursor:pointer; font-weight:700;
}
.section-navy .faq-q, .section-navy-2 .faq-q{ color: var(--white); }
.faq-q .plus{ font-family: var(--mono); color: var(--red); font-size:20px; flex-shrink:0; transition: transform 0.2s ease; }
.faq-item[aria-expanded="true"] .plus{ transform: rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height 0.28s ease; }
.faq-a-inner{ padding: 0 4px 24px; color: var(--grey); max-width:70ch; font-family:var(--sans); }
.section-navy .faq-a-inner, .section-navy-2 .faq-a-inner{ color: #A9B0BB; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band{ background: var(--red); color: var(--white); padding: 54px 0; }
.cta-band .wrap{ display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.cta-band h2{ font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--white); max-width:26ch; }
.cta-band .btn-outline{ border-color: rgba(255,255,255,0.5); color: var(--white); }
.cta-band .btn-outline:hover{ background: var(--white); color: var(--red); }
.cta-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--navy); color: #A9B0BB; padding: 54px 0 26px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap:40px; padding-bottom:32px; border-bottom:1px solid rgba(200,39,42,0.2); }
.footer-brand .logo-text strong{ color: var(--white); }
.footer-brand p{ margin-top:14px; color: var(--grey-2); font-size:0.92rem; max-width:36ch; font-family:var(--sans); }
.footer-col h5{ font-family: var(--mono); font-size:11.5px; letter-spacing:0.1em; text-transform:uppercase; color: var(--red-2); margin-bottom:16px; }
.footer-col li{ margin-bottom:10px; font-size:0.94rem; color: #A9B0BB; font-family:var(--sans); }
.footer-col a:hover{ color: var(--red-2); }
.footer-bottom{ display:flex; justify-content:space-between; padding-top:20px; font-size:12px; color: var(--grey-2); font-family: var(--mono); flex-wrap:wrap; gap:10px; }

/* ==========================================================================
   Inner-page hero
   ========================================================================== */
.page-hero{ background: var(--navy); color: var(--white); padding: 60px 0 52px; position:relative; overflow:hidden; }
.page-hero h1{ color:var(--white); font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-top:14px; max-width:26ch; }
.page-hero p{ color: #A9B0BB; max-width:58ch; margin-top:16px; font-family:var(--sans); }

.values-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:1px; background: var(--line); border:1px solid var(--line); }
.value-card{ background: var(--white); padding:26px; }
.value-card h3{ font-size:1.12rem; margin-bottom:8px; }
.value-card p{ color: var(--grey); font-size:0.94rem; font-family:var(--sans); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-layout{ display:grid; grid-template-columns: 1fr; gap:56px; max-width:640px; margin:0 auto; }
.contact-detail{ display:flex; gap:16px; padding: 18px 0; border-bottom:1px solid var(--line); }
.contact-detail:first-child{ border-top:1px solid var(--line); }
.contact-detail svg{ width:20px; height:20px; color: var(--red); flex-shrink:0; margin-top:2px; }
.contact-detail h4{ font-family:var(--mono); font-size:11.5px; letter-spacing:0.1em; text-transform:uppercase; color: var(--red); margin-bottom:6px; }
.contact-detail p, .contact-detail a{ font-size:1rem; color: var(--navy); font-family:var(--sans); }
.contact-detail a:hover{ color: var(--red); }
.map-frame{ border:1px solid var(--line); height:260px; margin-top:28px; filter: grayscale(0.2) contrast(1.03); }
.map-frame iframe{ width:100%; height:100%; border:0; }

/* ==========================================================================
   Hero background texture — subtle repeating sweep pattern
   ========================================================================== */
.hero::before{
  content:'';
  position:absolute; inset:0;
  background-image: radial-gradient(circle at 15% 20%, rgba(200,39,42,0.08) 0, transparent 40%),
                     radial-gradient(circle at 85% 75%, rgba(200,39,42,0.06) 0, transparent 45%);
  pointer-events:none;
}

/* ==========================================================================
   Icon badges — circular background behind service/value icons
   ========================================================================== */
.icon-badge{
  width:60px; height:60px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(200,39,42,0.08);
  border:1px solid rgba(200,39,42,0.18);
  margin-bottom:18px;
}
.icon-badge .sec-icon{ width:28px; height:28px; margin-bottom:0; }
.section-navy .icon-badge, .section-navy-2 .icon-badge{
  background: rgba(225,68,72,0.12);
  border-color: rgba(225,68,72,0.25);
}

/* Card hover lift */
.service-card, .value-card{ transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.service-card:hover, .value-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(14,27,46,0.1);
  position:relative; z-index:2;
}
.usp-item{ transition: transform 0.2s ease, background 0.2s ease; }
.usp-item:hover{ transform: translateY(-3px); background: var(--navy-2); }

/* ==========================================================================
   Trust band — stat highlights
   ========================================================================== */
.trust-band{
  display:grid; grid-template-columns: repeat(4,1fr); gap:1px;
  background: var(--line); border:1px solid var(--line);
}
.trust-item{ background: var(--white); padding: 30px 22px; text-align:center; }
.trust-item .trust-num{ font-family:var(--display); font-size:2.1rem; font-weight:800; color:var(--red); display:block; line-height:1; }
.trust-item .trust-label{ font-family:var(--mono); font-size:11.5px; letter-spacing:0.06em; text-transform:uppercase; color:var(--grey); margin-top:10px; display:block; }

/* Split feature block (icon + text, no card border) */
.split-feature{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:start; }
.feature-item{ display:flex; gap:18px; }
.feature-item .icon-badge{ flex-shrink:0; margin-bottom:0; width:52px; height:52px; }
.feature-item .icon-badge .sec-icon{ width:24px; height:24px; }
.feature-item-text h4{ font-size:1.1rem; margin-bottom:8px; }
.feature-item-text p{ color:var(--grey); font-size:0.95rem; font-family:var(--sans); }
.section-navy .feature-item-text p, .section-navy-2 .feature-item-text p{ color:#A9B0BB; }

/* ==========================================================================
   Responsive additions for new blocks
   ========================================================================== */
@media (max-width: 980px){
  .trust-band{ grid-template-columns: 1fr 1fr; }
  .split-feature{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .main-nav{
    position:fixed; inset: 84px 0 0 0; background: var(--navy);
    flex-direction:column; align-items:flex-start; padding: 32px 28px; gap:22px;
    transform: translateX(100%); transition: transform 0.25s ease;
  }
  .main-nav.open{ transform: translateX(0); }
  .nav-toggle{ display:flex; }
  .header-actions .call-btn span{ display:none; }
  .call-btn{ padding:10px; }
  .usp-row{ grid-template-columns:1fr; }
  .process-list{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:28px; }
  .footer-bottom{ flex-direction:column; }
}
