/* ========================= 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 to 30vh as requested */
      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 {
        /* FIX: Changed from min-height: auto to stabilize height on mobile */
        min-height: 50vh; /* Updated to 50vh as requested */
        padding-block: 50px; /* Updated to 50px as requested */
        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; }
    }

    /* ========================= CONTENT SLICES (SERVICES LIST) ========================= */
    .esp-slices {
      background: #fafafa; /* Using Alt Background from Style Guide */
      /* APPLIED SPACING GUIDE */
      padding-top: var(--sect-pad-top);
      padding-bottom: var(--sect-pad-btm);
    }

    .esp-slices__container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }

    .esp-slices__header {
      text-align: center;
      max-width: 800px;
      margin: 0 auto 40px;
    }

    /* TYPOGRAPHY: H2 based on Style Guide (Max 40px) */
    .esp-slices__header h2 {
      margin: 0 0 8px;
      font: 700 clamp(28px, 4vw, 40px)/1.2 Nunito, system-ui, sans-serif;
      color: var(--esp-ink);
      letter-spacing: -.01em;
    }

    /* TYPOGRAPHY: Paragraph based on Style Guide */
    .esp-slices__header p {
      margin: 0 auto;
      font: 16px/1.7 Nunito, system-ui, sans-serif;
      color: var(--esp-text-muted);
      max-width: 78ch;
    }

    .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; 
    }

    /* Desktop View Grid */
    @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 picture {
      display: block;
      width: 100%;
      height: 100%;
    }

    /* Tablet / General Mobile View */
    @media (max-width: 768px) {
      .esp-slice__media {
        height: auto;        
        aspect-ratio: 16 / 9;    
        width: 100%;            
        max-width: 722px;       
        margin-inline: auto;    
      }
      .esp-slice__body {
        padding: 24px 20px;
      }
    }

    @media (max-width: 480px) {
      .esp-slice__media {
         width: 100%;
         height: auto;
         aspect-ratio: 1 / 1;
      }
      .esp-slice__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    .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); /* Brand Color #FCB017 */
      margin: 0 0 8px;
    }

    /* TYPOGRAPHY: H3 based on Style Guide (Max 22px) */
    .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);
    }

    /* TYPOGRAPHY: Body Text based on Style Guide (15.5px - 16px) */
    .esp-slice__text {
      margin: 0;
      font: 15.5px/1.75 Nunito, system-ui, sans-serif;
      color: var(--esp-text-muted); /* #424a57 */
    }
    @media (min-width: 769px) {
        .esp-slice__text { font-size: 16px; }
    }

    /* ========================= 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); 
      /* H2 Typography from Style Guide */
      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: #fff;
      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; }

/* ========================= SERVICES GRID ========================= */
.esp-our-services { background: #ffffff; padding: clamp(40px, 6vw, 90px) 24px; }
.esp-our-services .our-svc__in { max-width: 1200px; margin: 0 auto }
.our-svc__head { text-align: center; margin-bottom: clamp(24px, 4vw, 36px) }
.our-svc__head h2 { margin: 0 0 8px; font: 700 clamp(28px, 4vw, 40px)/1.2 Nunito, system-ui, sans-serif; color: var(--esp-ink); }
.our-svc__head p { margin: 0 auto; font: 16px/1.7 Nunito, system-ui, sans-serif; color: var(--esp-text-muted); max-width: 78ch; }

.our-svc__grid { display: grid; gap: clamp(16px, 2.4vw, 26px); grid-template-columns: 1fr; align-items: stretch; }
@media (min-width:900px) { .our-svc__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width:640px) and (max-width:899px) { .our-svc__grid { grid-template-columns: repeat(2, 1fr); } }

.svc-card { position: relative; background: #ffffff; border-radius: var(--esp-card-radius); border: 2px solid transparent; padding: 32px 24px; text-align: center; box-shadow: 0 2px 6px rgba(16, 24, 40, .05), 0 30px 80px rgba(16, 24, 40, .1); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; overflow: hidden; }
.svc-card:hover { transform: translateY(-3px); border-color: var(--esp-brand); box-shadow: 0 6px 14px rgba(16, 24, 40, .08), 0 36px 110px rgba(16, 24, 40, .14); }

.svc-card__thumb-wrap { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.svc-card__thumb { width: 116px; height: 116px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--esp-brand), #ffd37a 60%, var(--esp-brand)); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .06) }
.svc-card__thumb img { box-sizing: border-box; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #ffffff; padding: 4px; }
.svc-card__title { margin: 0 0 12px; color: var(--esp-ink); font: 700 clamp(18px, 2.2vw, 22px)/1.25 Nunito, sans-serif; }
.svc-card__text { margin: 0; max-width: 38ch; color: var(--esp-text-muted); font: 15.5px/1.75 Nunito, sans-serif; }

.svc-card__cta { margin-top: auto; padding-top: 24px; color: var(--esp-ink); font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.svc-card__cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #fff; border: 2px solid var(--esp-brand); color: var(--esp-ink); border-radius: 50%; font-size: 16px; transition: all 0.3s ease; }
.svc-card:hover .svc-card__cta { opacity: 1; transform: translateY(0); }
.svc-card:hover .svc-card__cta-icon { background: var(--esp-brand); color: #000; transform: translateX(6px); }

.st-1f6fb8c1 { 
    text-decoration: none !important; 
    color: inherit !important; 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    width: 100% !important; 
    height: 100% !important; 
    flex-grow: 1 !important; 
}

/* === 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;
}
