/* ========================= STYLE GUIDE VARIABLES ========================= */
    :root {
      /* BRAND COLORS */
      --esp-brand: #FCB017;
      --esp-brand-text: #FCB017; 
      --esp-ink: #111111;
      --esp-text-muted: #424a57;
      --esp-line: rgba(0,0,0,.08);
      --esp-card-radius: 18px;
      
      /* SPACING (Desktop Defaults) */
      --sect-pad-top: 70px;
      --sect-pad-btm: 60px;
    }

    /* SPACING (Mobile Overrides) */
    @media (max-width: 768px) {
      :root {
        --sect-pad-top: 60px;
        --sect-pad-btm: 50px;
      }
    }

    /* ========================= GLOBAL RESET ========================= */
    body {
      margin: 0;
      font-family: Nunito, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      background: #ffffff;
      color: var(--esp-ink);
      overflow-x: hidden;
    }

    /* ========================= HERO SECTION ========================= */
    .esp-locations-hero {
      --brand: #FCB017;
      --ink: #ffffff;
      --overlay: rgba(0,0,0,.64);
      
      position: relative;
      isolation: isolate;
      /* Hero maintains slightly larger padding than standard sections for visual impact */
      min-height: 30vh; /* UPDATED: Changed from 40vh to 30vh */
      display: grid;
      place-items: center;
      color: var(--ink);
      
      /* BACKGROUND IMAGE */
      background:
        url("https://eaglesecurityprotection.co.uk/wp-content/uploads/2025/12/Service-banner.webp")
        center / cover no-repeat #222;
        
      padding-block: clamp(80px, 10vw, 120px);
    }

    .esp-locations-hero .esp-loc__overlay {
      position: absolute;
      inset: 0;
      background: var(--overlay);
      z-index: 0;
    }

    .esp-locations-hero .esp-loc__in {
      position: relative;
      z-index: 1;
      width: min(1200px, calc(100% - 40px));
      margin-inline: auto;
      text-align: left;
    }

    .esp-locations-hero .esp-loc__bar {
      display: inline-block;
      width: 88px; 
      height: 8px;
      background: var(--brand);
      border-radius: 6px;
      margin-bottom: 14px;
    }

    /* TYPOGRAPHY: H1 based on Style Guide (Max 40px, bold) */
    .esp-locations-hero .esp-loc__title {
      margin: 10px 0;
      font: 700 clamp(28px, 4vw, 40px)/1.2 Nunito, system-ui, sans-serif;
      color: #ffffff;
      max-width: 25ch;
    }
    
    /* TYPOGRAPHY: Lead Text based on Style Guide */
    .esp-locations-hero .esp-loc__lead {
      margin: 0 0 24px;
      font: 16px/1.7 Nunito, system-ui, sans-serif;
      max-width: 60ch;
      color: #f3f4f6;
    }

    @media (max-width: 768px) {
      .esp-locations-hero {
        background:
          url("https://eaglesecurityprotection.co.uk/wp-content/uploads/2025/12/Services-banner.webp")
          center / cover no-repeat #222;

        /* FIX: Changed min-height to 50vh and padding to 50px */
        min-height: 50vh; 
        padding-block: 50px; /* UPDATED: Changed from 160px/60px to 50px */
        text-align: left;
      }
      .esp-locations-hero .esp-loc__in { 
        display: flex; 
        flex-direction: column; 
        align-items: flex-start;
      }
      .esp-locations-hero .esp-loc__bar { margin-bottom: 25px; }
      .esp-locations-hero .esp-loc__title { font-size: 28px; margin-top: 0; }
    }

    /* ========================= INTRO SECTION ========================= */
    .esp-intro {
      background: #f5f7fa;
      /* APPLIED SPACING GUIDE (Top only as per original design, but using var) */
      padding-top: var(--sect-pad-top);
      padding-bottom: 0;
      text-align: center;
    }
    .esp-intro__container {
      max-width: 800px;
      margin: 0 auto;
      padding: 0 24px;
    }
    
    /* TYPOGRAPHY: H2 based on Style Guide */
    .esp-intro__title {
      font: 700 clamp(28px, 4vw, 40px)/1.2 Nunito, system-ui, sans-serif;
      color: var(--esp-ink);
      margin: 0 0 16px;
    }
    
    /* TYPOGRAPHY: P based on Style Guide */
    .esp-intro__text {
      font: 16px/1.7 Nunito, system-ui, sans-serif;
      color: var(--esp-text-muted);
      margin: 0;
    }

    /* ========================= CONTENT SLICES ========================= */
    .esp-slices {
      background: #f5f7fa;
      /* APPLIED SPACING GUIDE */
      padding-top: 40px; /* Reduced top padding slightly since Intro is above */
      padding-bottom: var(--sect-pad-btm);
    }

    .esp-slices__container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }

    .esp-slice {
      background: #ffffff;
      border-radius: var(--esp-card-radius);
      border: 1px solid rgba(15,23,42,.06);
      /* Matching Shadow from Style Guide Cards */
      box-shadow: 0 2px 6px rgba(16, 24, 40, .05), 0 30px 80px rgba(16, 24, 40, .1);
      overflow: hidden;
      display: grid;
      grid-template-columns: 1fr;
      margin-bottom: 56px;
      transition: transform .18s ease, box-shadow .18s ease;
    }

    .esp-slice:hover {
       /* Matching Hover Effect from Style Guide */
       transform: translateY(-3px);
       box-shadow: 0 6px 14px rgba(16, 24, 40, .08), 0 36px 110px rgba(16, 24, 40, .14);
    }

    .esp-slice:last-child {
      margin-bottom: 0;
    }

    .esp-slice__media { order: 1; }
    
    .esp-slice__body { 
      order: 2; 
      padding: 32px 24px;
      align-self: center; 
      display: flex;
      flex-direction: column; 
      justify-content: center; 
    }

    @media (min-width: 769px) {
      .esp-slice {
        grid-template-columns: 1.1fr 1fr;
        min-height: 380px; 
      }
      .esp-slice__media { order: 1; height: 100%; }
      .esp-slice--reverse .esp-slice__media { order: 2; }
      .esp-slice--reverse .esp-slice__body { order: 1; }
    }

    .esp-slice__media {
      position: relative;
      width: 100%;
      min-height: 260px;
      background: #e2e8f0;
      box-sizing: border-box;
      
      /* === FIXED BORDER LOGIC START === */
      /* Default for Mobile: Yellow border on BOTTOM only */
      border-bottom: 4px solid var(--esp-brand);
      border-top: 0;
      border-left: 0;
      border-right: 0;
      /* === FIXED BORDER LOGIC END === */
      
      /* Radius reset for internal consistency */
      border-radius: 0;
    }
    
    /* Mobile Radius Adjustments */
    @media (max-width: 768px) {
        .esp-slice__media {
             border-top-left-radius: var(--esp-card-radius);
             border-top-right-radius: var(--esp-card-radius);
             border-bottom-left-radius: 0;
             border-bottom-right-radius: 0;
        }
    }

    /* Desktop Border & Radius Logic */
    @media (min-width: 769px) {
         .esp-slice__media {
             /* Left side image by default */
             border-top-left-radius: var(--esp-card-radius);
             border-bottom-left-radius: var(--esp-card-radius);
             
             /* FIX: On desktop, remove bottom border and add RIGHT border */
             border-bottom: 0;
             border-right: 4px solid var(--esp-brand);
         }
         
         .esp-slice--reverse .esp-slice__media {
             /* Right side image for reverse cards */
             border-radius: 0; /* Reset */
             border-top-right-radius: var(--esp-card-radius);
             border-bottom-right-radius: var(--esp-card-radius);
             
             /* FIX: On reverse, border should be on the LEFT */
             border-right: 0;
             border-left: 4px solid var(--esp-brand);
         }
    }

    .esp-slice__media img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .esp-slice__eyebrow {
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--esp-brand);
      margin: 0 0 8px;
    }

    .esp-slice__title {
      margin: 0 0 12px;
      font: 700 clamp(18px, 2.2vw, 22px)/1.25 Nunito, system-ui, sans-serif;
      color: var(--esp-ink);
    }

    .esp-slice__text {
      margin: 0;
      font: 15.5px/1.75 Nunito, system-ui, sans-serif;
      color: var(--esp-text-muted);
    }
    @media (min-width: 769px) {
        .esp-slice__text { font-size: 16px; }
    }

    /* List inside slices */
    .esp-list {
      list-style: none;
      padding: 0;
      margin: 16px 0 24px 0;
    }
    .esp-list li {
      position: relative;
      padding-left: 24px;
      margin-bottom: 8px;
      color: var(--esp-text-muted);
      font-size: 15.5px;
      font-weight: 600;
    }
    .esp-list li::before {
      content: "✓";
      position: absolute;
      left: 0;
      top: 0px;
      color: var(--esp-brand);
      font-weight: 700;
    }

    /* Duties Grid */
    .esp-duties-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 12px;
      margin-bottom: 24px;
      margin-top: 16px;
    }
    .esp-duty-item {
      background: #f9fafb;
      padding: 10px 14px;
      border-radius: 8px;
      border: 1px solid #eee;
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
      color: #333;
      font-size: 14px;
    }

    /* ========================= LOCATION / MAP SECTION ========================= */
    .esp-location {
      width: 100%;
      margin: 0;
      /* APPLIED SPACING GUIDE */
      padding-top: 40px; 
      padding-bottom: var(--sect-pad-btm);
      background: #fafafa;
      border-top: 1px solid #f0f0f0;
    }

    .esp-location__inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }

    .esp-location__header {
      text-align: center;
      margin-bottom: 22px;
      color: var(--esp-ink);
    }

    .esp-location__header h2 {
      margin: 0 0 6px;
      font: 700 clamp(28px, 4vw, 40px)/1.2 Nunito, system-ui, sans-serif;
    }

    .esp-location__map-frame {
      width: 100%;
      height: 420px;
      border-radius: var(--esp-card-radius);
      overflow: hidden;
      box-shadow: 0 16px 36px rgba(15,23,42,0.18);
      background: #fafafa;
      border: 2px solid var(--esp-brand); /* Added border to map for consistency */
    }

    .esp-location__map-frame iframe {
      width: 100%;
      height: 100%;
      border: 0;
    }

    /* ========================= TRUST STRIP ========================= */
    .esp-trust-logo {
      display: block; margin: 0 auto; max-height: 140px; width: auto; max-width: 100%; object-fit: contain;
    }
    
    .esp-trust {
      --tc-yellow: #FCB017; 
      --tc-ink: #0f172a; 
      --tc-line: rgba(0,0,0,.06);
      
      background: #fff; 
      /* APPLIED SPACING GUIDE */
      padding-top: var(--sect-pad-top);
      padding-bottom: var(--sect-pad-btm);
      
    }
    .esp-trust .esp-trust-in { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
    
    .esp-trust h2 { 
      margin: 0 0 8px; 
      text-align: center; 
      color: var(--esp-ink); 
      font: 700 clamp(28px, 4vw, 40px)/1.2 Nunito, system-ui, sans-serif; 
    }
    .esp-trust p { 
      margin: 0 0 40px; 
      text-align: center; 
      color: var(--esp-text-muted); 
      font: 600 14.5px/1.55 Nunito, system-ui; 
    }
    
    .esp-trust-grid { display: grid; gap: 18px; grid-template-columns: repeat(2,1fr); max-width: 1100px; margin: 0 auto; padding-inline: 16px; }
    @media (min-width: 960px){ .esp-trust-grid { grid-template-columns: repeat(4,1fr); } }
    
    .esp-trust-card {
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
      min-height: 150px; padding: 16px; border: 2px solid var(--tc-yellow); border-radius: 16px; background: #fafafa;
      box-shadow: 0 8px 20px rgba(0,0,0,.06); transition: all .25s ease; text-decoration: none; color: inherit;
    }
    .esp-trust-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,.12); border-color: #f7b615; }

/* Inline styles for facility-management-security.html */
.st-1efd7491 { margin-top:16px !important; }
.st-359d368e { font-size:18px !important; margin-top:10px !important; }
:root { /* === MERGED DESIGN SYSTEM TOKENS (FROM REFERENCE) === */
      --esp-brand: #FCB017;
      --esp-ink: #111111;
      --esp-dark: #000000;
      /* QA FIX: Unified Muted Text Color */
      --esp-text-muted: #424a57; 
      /* QA FIX: Unified Border Radius */
      --esp-card-radius: 18px;
      --esp-line: rgba(0,0,0,.08);
      
      /* Mapped Legacy Tokens */
      --esp-text: var(--esp-text-muted); }
body { margin: 0;
      font-family: Nunito, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      background: #ffffff;
      color: var(--esp-ink);
      line-height: 1.7;
      -webkit-font-smoothing: antialiased; }
.esp-locations-hero { --brand: #FCB017;
      --ink: #ffffff;
      --overlay: rgba(0,0,0,.64);
      --minh: 30vh;
      position: relative;
      isolation: isolate;
      min-height: var(--minh);
      display: grid;
      place-items: center;
      color: var(--ink);
      background: url("https://eaglesecurityprotection.co.uk/wp-content/uploads/2025/11/Untitled-design-4-1-scaled.webp") center / cover no-repeat #222;
      padding-block: clamp(80px, 10vw, 120px); }
.esp-locations-hero .esp-loc__title { margin: 0 0 8px;
      /* Updated to 900 weight to match Reference system */
      font: 700 clamp(32px,6vw,64px)/1.05 Nunito,system-ui,sans-serif;
      color: #fff; }
.esp-location { width: 100%;
      margin: 0;
      padding: clamp(40px, 6vw, 90px) 0; /* Standardized spacing */
      background: #fafafa;
      border-top: 1px solid var(--esp-line); }
.esp-location__header { text-align: center;
      margin-bottom: 32px;
      color: var(--esp-ink); }
.esp-location__header p { color: var(--esp-text-muted);
        font-size: 18px; }
.esp-location__map-frame { width: 100%;
      height: 420px;
      border-radius: var(--esp-card-radius); /* Enforced System Radius */
      overflow: hidden;
      box-shadow: 0 16px 36px rgba(15,23,42,0.12); /* Matches Reference shadow style */
      background: #fafafa;
      border: 2px solid #fff; }
.esp-trust { --tc-yellow:#FCB017; --tc-ink:#0f172a; --tc-line:rgba(0,0,0,.06);
      /* Keeping Target's padding as requested */
      background:#fff; padding-block:clamp(28px,5vw,48px); border-top:1px solid var(--esp-line); border-bottom:1px solid var(--esp-line); }
.tc-eyebrow { display:inline-flex;align-items:center;gap:8px; padding:8px 14px;border:2px solid var(--tc-line);border-radius:999px;
      font:700 12px/1 Nunito;letter-spacing:.06em;text-transform:uppercase; color:var(--tc-yellow);background:#fff;margin:0 0 10px; }
.esp-trust-card img { width: auto;
        max-width: 100%;
        display: block; }
.esp.mg-faqs-birmingham.v2 { all: revert;
        --brand:#FCB017; --ink:#111; --line:#d9d9d9;
        font-family: Nunito, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
        color:#222; 
        background: radial-gradient(1200px 400px at 50% -10%, #FFF7E3 0%, rgba(255,247,227,0) 60%), #fff;
        padding: 60px 16px 50px;
        border: none;
        scroll-margin-top:100px; }

/* === GLOBAL FOOTER ACCESSIBLE CONTRAST === */
.esp-global-footer,.esp-global-footer p,.esp-global-footer span,.esp-global-footer strong{color:#f3f4f6!important}
.esp-global-footer a{color:#fff!important;text-decoration-color:#fcb017!important}
.esp-global-footer a:hover,.esp-global-footer a:focus{color:#fcb017!important}


/* === GLOBAL HONEYPOT VISIBILITY FIX === */
input[name="company_site"] {
  position: fixed !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
