/*
Theme Name: Elite Security Guard Pros
Theme URI: https://elitesecurityguardpros.com
Author: Innovation With Pixels
Author URI: https://innovationwithpixels.com
Description: Premium one-page lead-generation theme for Elite Security Guard Pros — licensed, bonded & insured security guard services across Orange County, CA. Hand-coded, no page builder and no plugins. Brand-matched to securityteampros.com (indigo #1A237E / amber #FF8F00, Manrope).
Version: 2.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elite-security-guard-pros
*/

/* =========================================================================
   1. TOKENS
   ========================================================================= */
:root {
  --primary: #14315B;       /* deep navy */
  --primary-600: #1d4a82;
  --primary-400: #346099;
  --ink-900: #081523;       /* near-black navy */
  --ink-800: #0e2138;
  --ink-700: #163252;

  --accent: #F4B62C;        /* gold */
  --accent-600: #dca018;
  --accent-300: #ffd472;
  --on-accent: #15233f;     /* dark text for on-gold buttons */

  --text: #14182a;
  --muted: #5a6178;
  --light: #f7f8fc;
  --on-dark: #ffffff;
  --on-dark-dim: #b7bee0;

  --surface: #ffffff;
  --surface-2: #f4f6fc;
  --border: #e7eaf4;
  --hairline: rgba(255,255,255,.14);

  --shadow-sm: 0 2px 10px rgba(12,19,48,.08);
  --shadow-md: 0 18px 44px -18px rgba(12,19,48,.30);
  --shadow-lg: 0 40px 90px -34px rgba(7,11,28,.55);
  --shadow-amber: 0 16px 34px -12px rgba(244,182,44,.5);

  --r: 10px;
  --r-lg: 20px;
  --r-xl: 28px;
  --maxw: 1220px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.22,.61,.36,1);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =========================================================================
   2. RESET / BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { font-family: var(--font); color: var(--text); line-height: 1.6; background: var(--surface); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
input, textarea, select, button { font: inherit; color: inherit; }
input, textarea, select { font-size: 16px; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.08; letter-spacing: -.025em; color: var(--primary); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
p { color: var(--muted); }
::selection { background: var(--accent); color: var(--on-accent); }

/* =========================================================================
   3. LAYOUT HELPERS
   ========================================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section--tint { background: var(--surface-2); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head.center { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-600); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { text-wrap: balance; }
.section-head p { font-size: 1.12rem; margin-top: 16px; text-wrap: pretty; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 1.02rem; padding: 16px 30px; min-height: 56px; border-radius: var(--r); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; white-space: nowrap; letter-spacing: -.01em; }
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-amber); }
.btn-primary:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.34); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { font-size: 1.08rem; padding: 19px 38px; min-height: 62px; }

/* =========================================================================
   4. HEADER — slim, transparent over hero
   ========================================================================= */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; transition: background .35s var(--ease), box-shadow .35s, border-color .35s; border-bottom: 1px solid transparent; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; }
.site-header.scrolled { background: rgba(10,15,40,.86); backdrop-filter: blur(12px); border-bottom-color: var(--hairline); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__logo { height: 44px; width: auto; flex: none; display: block; }
.brand__name { font-weight: 800; line-height: 1.02; color: #fff; font-size: 1.05rem; letter-spacing: -.01em; }
.brand__name small { display: block; font-weight: 700; font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-300); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: #fff; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--accent-300); }

/* =========================================================================
   5. HERO — cinematic photo + scrim
   ========================================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; isolation: isolate; padding: 120px 0 70px; color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--ink-900); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; filter: saturate(1.04) contrast(1.03) brightness(1.32); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(101deg, rgba(8,21,35,.82) 0%, rgba(8,21,35,.54) 40%, rgba(14,33,56,.26) 68%, rgba(20,49,91,.18) 100%),
    linear-gradient(0deg, rgba(8,21,35,.6) 0%, transparent 40%);
}
.hero__inner { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(36px, 5vw, 76px); align-items: center; width: 100%; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; background: rgba(244,182,44,.14); border: 1px solid rgba(244,182,44,.46); color: var(--accent-300); padding: 8px 16px; border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.3rem); margin: 22px 0 20px; text-wrap: balance; text-shadow: 0 2px 30px rgba(3,10,18,.62); }
.hero h1 .hl { color: var(--accent); }
.hero__sub { font-size: clamp(1.06rem, 1.5vw, 1.28rem); color: #e9ecfc; max-width: 44ch; text-shadow: 0 1px 16px rgba(3,10,18,.6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__assure { display: flex; align-items: center; gap: 14px; margin-top: 30px; color: var(--on-dark-dim); font-size: .9rem; flex-wrap: wrap; }
.hero__assure b { color: #fff; }
.hero__assure .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Lead form card */
.quote-card { background: var(--surface); color: var(--text); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-lg); position: relative; }
.quote-card__tag { position: absolute; top: -13px; right: 26px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; padding: 7px 15px; border-radius: 999px; box-shadow: var(--shadow-amber); }
.quote-card h3 { font-size: 1.55rem; }
.quote-card > p { font-size: .95rem; margin: 5px 0 18px; }
.form-row { display: grid; gap: 13px; margin-bottom: 13px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.field { display: block; }
.field > span { display: block; font-size: .78rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -.01em; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 15px; border: 1.5px solid var(--border); border-radius: var(--r); background: var(--surface-2); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary-400); background: #fff; box-shadow: 0 0 0 4px rgba(63,75,196,.15); }
.field textarea { resize: vertical; min-height: 78px; }
.form-fineprint { font-size: .78rem; color: var(--muted); margin-top: 12px; text-align: center; }
.form-success { background: #ecfdf3; border: 1px solid #a6e9c1; color: #06734a; border-radius: var(--r); padding: 18px 18px; font-weight: 700; display: flex; gap: 11px; align-items: flex-start; }
.form-success[hidden] { display: none; }
.form-success svg { width: 22px; height: 22px; flex: none; color: #099250; }

/* =========================================================================
   6. TRUST BAND — thin, factual
   ========================================================================= */
.trust { background: var(--ink-900); }
.trust .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding-block: 22px; }
.trust__item { display: inline-flex; align-items: center; gap: 11px; color: #e4e8ff; font-weight: 700; font-size: .96rem; }
.trust__item svg { width: 24px; height: 24px; color: var(--accent); flex: none; }

/* =========================================================================
   7. SERVICES
   ========================================================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-media { position: relative; aspect-ratio: 16 / 10; background: var(--ink-800); overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(8,21,35,.52)); }
.service-body { padding: 26px 26px 30px; }
.service-body h3 { font-size: 1.22rem; margin-bottom: 8px; }
.service-body p { font-size: .95rem; }

/* Horizontal slider (services) */
.slider { position: relative; }
.slider__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 20px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--primary-400) var(--surface-2); }
.slider__track::-webkit-scrollbar { height: 8px; }
.slider__track::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 8px; }
.slider__track::-webkit-scrollbar-thumb { background: var(--primary-400); border-radius: 8px; }
.slider__track > * { flex: 0 0 340px; max-width: 84vw; scroll-snap-align: start; }
.slider__nav { position: absolute; top: 34%; z-index: 5; width: 50px; height: 50px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); display: grid; place-items: center; color: var(--primary); transition: background .2s, color .2s, transform .2s, opacity .2s; }
.slider__nav:hover { background: var(--primary); color: #fff; transform: scale(1.07); }
.slider__nav svg { width: 22px; height: 22px; }
.slider__nav.prev { left: -8px; }
.slider__nav.next { right: -8px; }
.slider__nav[disabled] { opacity: .35; pointer-events: none; }
@media (max-width: 760px) { .slider__nav { display: none; } }

/* Location cards */
.location-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 6px; }
.location-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.location-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.location-card:hover img { transform: scale(1.08); }
.location-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 36%, rgba(8,21,35,.85)); }
.location-card b { position: absolute; left: 15px; bottom: 13px; z-index: 2; color: #fff; font-weight: 800; font-size: 1.04rem; letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.location-card .pin { position: absolute; top: 12px; right: 12px; z-index: 2; width: 27px; height: 27px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.location-card .pin svg { width: 14px; height: 14px; color: #fff; }

/* =========================================================================
   8. WHY US — image + list
   ========================================================================= */
.why { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.why__media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.why__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.04); }
.why__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,49,91,.5)); mix-blend-mode: multiply; }
.why__badge { position: absolute; left: 22px; bottom: 22px; z-index: 2; background: rgba(7,11,28,.7); backdrop-filter: blur(8px); border: 1px solid var(--hairline); border-radius: var(--r); padding: 14px 18px; color: #fff; }
.why__badge b { display: block; font-size: 1.7rem; color: var(--accent); line-height: 1; }
.why__badge span { font-size: .82rem; color: var(--on-dark-dim); }
.why__list { display: grid; gap: 20px; margin-top: 26px; }
.why__item { display: flex; gap: 16px; }
.why__check { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; background: rgba(26,35,126,.1); color: var(--primary); }
.why__check svg { width: 19px; height: 19px; }
.why__item h4 { font-size: 1.12rem; color: var(--text); margin-bottom: 3px; }
.why__item p { font-size: .96rem; }

/* =========================================================================
   9. COVERAGE — slim
   ========================================================================= */
.coverage { text-align: center; }
.city-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.city-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: .92rem; color: var(--text); transition: border-color .2s, color .2s, transform .2s; }
.city-list li:hover { border-color: var(--primary-400); color: var(--primary); transform: translateY(-2px); }
.coverage__note { margin-top: 22px; font-weight: 600; color: var(--muted); }
.coverage__note a { color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--accent); }

/* =========================================================================
   10. CLOSING CTA — full-bleed
   ========================================================================= */
.closer { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.closer__bg { position: absolute; inset: 0; z-index: -2; background: var(--ink-900); }
.closer__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.05); opacity: .42; }
.closer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(8,21,35,.94), rgba(20,49,91,.82)); }
.closer .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(34px, 5vw, 64px); align-items: center; padding-block: clamp(64px, 8vw, 104px); }
.closer h2 { color: #fff; }
.closer__copy p { color: #d7dcf3; font-size: 1.12rem; margin-top: 14px; max-width: 46ch; }
.closer__actions { display: flex; flex-direction: column; gap: 16px; }
.closer__call { text-align: left; padding-top: 6px; }
.closer__call .num { font-weight: 800; font-size: 1.7rem; }
.closer__call .num a { color: #fff; }
.closer__call .lbl { color: var(--on-dark-dim); font-size: .9rem; margin-top: 2px; }

/* =========================================================================
   11. FOOTER — single slim row
   ========================================================================= */
.site-footer { background: var(--ink-900); color: #98a0c8; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-block: 26px; font-size: .86rem; }
.site-footer .brand__name { color: #fff; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.footer-meta a { color: #cfd5f1; font-weight: 700; }
.footer-meta a:hover { color: var(--accent-300); }
.footer-meta .lic { display: inline-flex; align-items: center; gap: 7px; }
.footer-meta .lic svg { width: 15px; height: 15px; color: var(--accent); }

/* =========================================================================
   12. FLOATING MOBILE CTA
   ========================================================================= */
.floating-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1200; background: var(--primary); box-shadow: 0 -6px 24px rgba(0,0,0,.3); padding: 10px 14px; gap: 10px; }
.floating-cta a { flex: 1; min-height: 48px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; }
.floating-cta .fc-call { background: rgba(255,255,255,.15); color: #fff; }
.floating-cta .fc-quote { background: var(--accent); color: var(--on-accent); }
.floating-cta svg { width: 18px; height: 18px; }

/* =========================================================================
   13. MOTION
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  html.js [data-reveal].in { opacity: 1; transform: none; }
  html.js .hero [data-reveal] { transition-delay: var(--d, 0s); }
}

/* =========================================================================
   14. RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 38px; }
  .quote-card { max-width: 540px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: 1fr; }
  .why__media { aspect-ratio: 16 / 10; max-height: 460px; }
  .closer .container { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-phone { display: none; }
  .form-row.two { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero { min-height: auto; padding: 116px 0 60px; }
  .trust .container { gap: 12px 26px; }
  .floating-cta { display: flex; }
  body.has-floating-cta { padding-bottom: 76px; }
}
