/* ==========================================================================
   Gate Access Services — shared stylesheet
   Used by every page. Change a color, font, or component here once and it
   updates across the whole site.
   ========================================================================== */

*{margin:0;padding:0;box-sizing:border-box}
:root{
  --red:#8B1A1A;
  --cream:#F5F1EC;
  --charcoal:#1a1a1a;
  --gray:#555;
  --font-head:'Georgia',serif;
  --font-body:'Trebuchet MS',sans-serif;
}
html{scroll-behavior:smooth}
body{font-family:var(--font-body);color:var(--charcoal);background:#fff;font-size:14px;line-height:1.5}
img{max-width:100%;height:auto}
a{color:inherit}

/* ---------- TOP BAR ---------- */
.top-bar{background:var(--charcoal);color:#ccc;padding:7px 32px;display:flex;justify-content:space-between;align-items:center;font-size:12px;gap:12px;flex-wrap:wrap}
.top-bar a{color:#ccc;text-decoration:none;white-space:nowrap}
.top-bar a:hover{color:#fff}
.top-bar span{margin-right:20px}

/* ---------- NAV ---------- */
.nav-bar{background:#fff;padding:14px 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid var(--red);gap:16px;position:relative}
.nav-logo img{height:56px;width:auto;display:block}
.nav-links{display:flex;gap:0;list-style:none}
.nav-links li a{display:block;padding:9px 14px;color:var(--charcoal);text-decoration:none;font-size:13px;font-weight:600;letter-spacing:0.03em;text-transform:uppercase;transition:color .2s}
.nav-links li a:hover{color:var(--red)}
.nav-cta{background:var(--red);color:#fff;padding:10px 20px;border-radius:2px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;text-decoration:none;white-space:nowrap}
.nav-cta:hover{background:#701414}

/* Hamburger toggle (hidden on desktop) — pure CSS, no JS */
.nav-toggle{display:none}
.nav-toggle-label{display:none;flex-direction:column;justify-content:center;gap:5px;width:34px;height:34px;cursor:pointer;background:transparent;border:0;padding:0}
.nav-toggle-label span{display:block;height:3px;width:26px;background:var(--charcoal);border-radius:2px;transition:.25s}

/* ---------- TRUST BAR ---------- */
.trust-bar{background:var(--red);color:#fff;padding:11px 32px;display:flex;justify-content:space-around;align-items:center;flex-wrap:wrap;gap:8px}
.trust-item{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.trust-item.emergency{background:var(--charcoal);color:#fff;padding:6px 14px;border-radius:4px}
.trust-icon{width:22px;height:22px;border:2px solid rgba(255,255,255,.8);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;flex-shrink:0}

/* ---------- HERO (home) ---------- */
.hero{background:var(--cream);border-bottom:3px solid var(--red);position:relative;overflow:hidden}
.hero-pattern{position:absolute;inset:0;background-image:repeating-linear-gradient(45deg,rgba(139,26,26,.04) 0,rgba(139,26,26,.04) 1px,transparent 1px,transparent 14px);pointer-events:none}
.hero-inner{display:flex;align-items:stretch;min-height:320px}
.hero-content{position:relative;z-index:2;padding:50px 40px 40px;flex:1.2}
.hero-badge{display:inline-block;background:var(--red);color:#fff;padding:5px 14px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;margin-bottom:18px;border-radius:1px}
.hero h1{color:var(--charcoal);font-family:var(--font-head);font-size:32px;font-weight:700;line-height:1.2;max-width:520px;margin-bottom:14px}
.hero h1 span{color:var(--red)}
.hero p{color:#444;font-size:15px;max-width:460px;line-height:1.75;margin-bottom:28px}
.hero-btns{display:flex;gap:14px;flex-wrap:wrap}
.hero-right{flex:0.85;background:var(--red);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:40px 28px}
.hero-stat{text-align:center;padding:20px 0;border-bottom:1px solid rgba(255,255,255,.2);width:100%}
.hero-stat:last-child{border-bottom:none}
.hero-stat .num{font-size:30px;font-weight:700;color:#fff;font-family:var(--font-head);line-height:1}
.hero-stat .lbl{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.75);margin-top:5px}

/* ---------- PAGE HERO (interior pages) ---------- */
.page-hero{background:var(--cream);border-bottom:3px solid var(--red);position:relative;overflow:hidden;padding:44px 40px}
.page-hero .breadcrumb{font-size:12px;color:var(--gray);margin-bottom:12px;text-transform:uppercase;letter-spacing:.05em}
.page-hero .breadcrumb a{color:var(--red);text-decoration:none}
.page-hero h1{font-family:var(--font-head);font-size:30px;color:var(--charcoal);line-height:1.2;max-width:640px;margin-bottom:12px}
.page-hero h1 span{color:var(--red)}
.page-hero p{color:#444;font-size:15px;max-width:620px;line-height:1.7}

/* ---------- BUTTONS ---------- */
.btn-primary{background:var(--red);color:#fff;padding:13px 26px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;border-radius:2px;text-decoration:none;border:none;display:inline-block}
.btn-primary:hover{background:#701414}
.btn-outline{background:transparent;color:var(--red);padding:13px 26px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;border-radius:2px;text-decoration:none;border:2px solid var(--red);display:inline-block}
.btn-outline:hover{background:var(--red);color:#fff}

/* ---------- SECTIONS ---------- */
.section{padding:52px 40px}
.section-alt{background:var(--cream)}
.section-title{font-family:var(--font-head);font-size:24px;color:var(--charcoal);font-weight:700;margin-bottom:8px}
.section-sub{color:var(--gray);font-size:14px;margin-bottom:30px;line-height:1.6;max-width:600px}
.red-rule{width:50px;height:3px;background:var(--red);margin-bottom:20px;border-radius:1px}

/* Body copy blocks on interior pages */
.prose{max-width:760px}
.prose p{color:var(--gray);font-size:14.5px;line-height:1.8;margin-bottom:16px}
.prose h2{font-family:var(--font-head);font-size:20px;color:var(--charcoal);margin:28px 0 10px}
.prose h3{font-size:15px;color:var(--charcoal);text-transform:uppercase;letter-spacing:.04em;margin:20px 0 8px}
.prose ul{margin:0 0 16px 0;list-style:none}
.prose ul li{position:relative;padding-left:26px;color:var(--gray);font-size:14px;line-height:1.7;margin-bottom:9px}
.prose ul li::before{content:"\2713";position:absolute;left:0;top:0;width:18px;height:18px;background:var(--red);color:#fff;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}

/* ---------- SERVICE CARDS ---------- */
.services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.service-card{background:#fff;border:1px solid #e0e0e0;border-top:3px solid var(--red);padding:22px;border-radius:2px}
.service-card h3{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--charcoal);margin-bottom:7px}
.service-card p{font-size:13px;color:var(--gray);line-height:1.65}
.service-icon{width:40px;height:40px;background:var(--red);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.service-icon svg{width:20px;height:20px;fill:#fff}

/* ---------- WHY / STATS ---------- */
.why-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.why-left p{color:var(--gray);font-size:14px;line-height:1.75;margin-bottom:18px}
.why-items{display:flex;flex-direction:column;gap:12px}
.why-item{display:flex;align-items:flex-start;gap:12px;font-size:13px;color:var(--gray)}
.why-check{width:20px;height:20px;background:var(--red);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:10px;flex-shrink:0;margin-top:1px}
.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.stat-box{background:var(--red);color:#fff;padding:24px;text-align:center;border-radius:2px}
.stat-box .num{font-size:30px;font-weight:700;font-family:var(--font-head)}
.stat-box .lbl{font-size:12px;text-transform:uppercase;letter-spacing:.06em;opacity:.85;margin-top:5px}

/* ---------- REVIEWS ---------- */
.reviews-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.review-card{background:#fff;border:1px solid #e8e8e8;border-radius:3px;padding:22px}
.stars{color:#f4a500;font-size:15px;letter-spacing:2px}
.rating{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.rating-num{font-weight:700;color:var(--charcoal);font-size:13px}
.review-text{font-size:13px;color:#444;line-height:1.75;margin-bottom:16px;font-style:italic}
.reviewer{display:flex;align-items:center;gap:10px}
.rev-avatar{width:36px;height:36px;border-radius:50%;background:var(--red);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0}
.rev-name{font-size:13px;font-weight:700;color:var(--charcoal)}
.rev-source{font-size:11px;color:var(--gray);display:flex;align-items:center;gap:4px;margin-top:2px}
.g-dot{width:8px;height:8px;border-radius:50%;background:#4285F4;display:inline-block;flex-shrink:0}

/* ---------- TEAM ---------- */
.team-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.team-card{background:#fff;border:1px solid #e0e0e0;padding:22px;display:flex;gap:16px;align-items:flex-start}
.team-avatar{width:56px;height:56px;border-radius:50%;background:var(--charcoal);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;flex-shrink:0;overflow:hidden}
.team-avatar img{width:100%;height:100%;object-fit:cover;object-position:center 20%}
.team-info h3{font-size:14px;font-weight:700;color:var(--charcoal);margin-bottom:3px}
.team-info .role{font-size:11px;color:var(--red);font-weight:600;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}
.team-info p{font-size:12.5px;color:var(--gray);line-height:1.65}
.team-contact{margin-top:10px;font-size:12px;color:var(--red);font-weight:600}
.memberships{margin-top:12px;display:flex;flex-direction:column;gap:16px}
.membership-row{display:flex;align-items:center;gap:16px}
.membership-row img{width:130px;max-height:50px;height:auto;object-fit:contain;object-position:left center;flex-shrink:0}
.membership-row span{font-size:12.5px;color:var(--gray);font-weight:600}

/* ---------- CTA BANNER ---------- */
.cta-banner{background:var(--red);padding:50px 40px;text-align:center}
.cta-banner h2{font-family:var(--font-head);color:#fff;font-size:28px;margin-bottom:10px}
.cta-banner p{color:rgba(255,255,255,.85);font-size:14px;margin-bottom:26px}
.btn-white{background:#fff;color:var(--red);padding:13px 30px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;border-radius:2px;display:inline-block;text-decoration:none;margin:0 8px}
.btn-white:hover{background:#f0e6e6}
.btn-white-outline{background:transparent;color:#fff;padding:13px 30px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;border-radius:2px;display:inline-block;text-decoration:none;border:2px solid rgba(255,255,255,.75);margin:0 8px}
.btn-white-outline:hover{background:rgba(255,255,255,.12)}

/* ---------- FOOTER ---------- */
.footer{background:var(--charcoal);color:#aaa;padding:36px 40px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:28px;margin-bottom:28px}
.footer h3{color:#fff;font-size:13px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:14px;font-weight:700}
.footer p,.footer li{font-size:13px;line-height:1.9;color:#999;list-style:none}
.footer a{color:#999;text-decoration:none}
.footer a:hover{color:#fff}
.footer-bottom{border-top:1px solid #333;padding-top:18px;display:flex;justify-content:space-between;font-size:12px;color:#8f8f8f;flex-wrap:wrap;gap:8px}

/* ---------- MOBILE STICKY CALL BAR (hidden on desktop) ---------- */
.mobile-call-bar{display:none}

/* ==========================================================================
   RESPONSIVE — tablet and mobile
   ========================================================================== */
@media (max-width:900px){
  .services-grid,.reviews-grid{grid-template-columns:repeat(2,1fr)}
  .hero h1{font-size:28px}
}

@media (max-width:768px){
  .top-bar{padding:8px 18px;font-size:11px;justify-content:center;text-align:center}
  .top-bar span{margin-right:10px}

  /* Nav → hamburger. No-JS fallback: menu stays open (never trapped). */
  .nav-bar{padding:12px 18px;flex-wrap:wrap}
  .nav-links{order:3;flex-basis:100%;flex-direction:column;gap:0}
  .nav-links li a{padding:12px 4px;border-bottom:1px solid #eee}
  .nav-cta{order:2}
  /* JS-enhanced: reveal the toggle button and enable collapse */
  .nav-enhanced .nav-toggle-label{display:flex}
  .nav-enhanced .nav-links{max-height:0;overflow:hidden;transition:max-height .3s ease}
  .nav-enhanced .nav-toggle-label[aria-expanded="true"] ~ .nav-links{max-height:400px}

  .trust-bar{padding:12px 18px;justify-content:flex-start}
  .trust-item{font-size:11px}

  /* Hero stacks */
  .hero-inner{flex-direction:column}
  .hero-content{padding:34px 20px 26px}
  .hero-right{padding:26px 20px}
  .hero h1{font-size:26px}

  .page-hero{padding:32px 20px}
  .page-hero h1{font-size:25px}

  .section{padding:36px 20px}
  .cta-banner{padding:40px 20px}
  .footer{padding:30px 20px}

  .services-grid,.reviews-grid,.why-grid,.stats-grid,.team-grid,.footer-grid{grid-template-columns:1fr}
  .why-grid{gap:24px}
  .footer-bottom{flex-direction:column;text-align:center}
  .btn-white,.btn-white-outline{display:block;margin:8px auto;max-width:280px}

  /* Sticky "Call Us Now" bar that follows the user as they scroll */
  body{padding-bottom:60px}
  .mobile-call-bar{
    display:flex;align-items:center;justify-content:center;gap:8px;
    position:fixed;left:0;right:0;bottom:0;z-index:999;
    background:var(--red);color:#fff;text-decoration:none;
    padding:15px;font-size:15px;font-weight:700;letter-spacing:.03em;
    white-space:nowrap;box-shadow:0 -2px 12px rgba(0,0,0,.22);
  }
  .mobile-call-bar:active{background:#701414}
}

@media (max-width:420px){
  .hero-btns{flex-direction:column}
  .hero-btns a{text-align:center}
  .btn-primary,.btn-outline{display:block;text-align:center}
}


/* ==========================================================================
   ACCESSIBILITY HELPERS
   ========================================================================== */
.skip-link{position:absolute;left:-9999px;top:0;z-index:1000;background:var(--charcoal);color:#fff;padding:10px 16px;text-decoration:none;font-weight:700}
.skip-link:focus{left:8px;top:8px}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Visible keyboard focus (dark ring on light surfaces) */
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--charcoal);outline-offset:2px}
/* Light ring on dark / red surfaces where charcoal would disappear */
.top-bar a:focus-visible,.trust-bar a:focus-visible,.footer a:focus-visible,
.cta-banner a:focus-visible,.nav-cta:focus-visible,.btn-primary:focus-visible,
.btn-white:focus-visible,.btn-white-outline:focus-visible,.mobile-call-bar:focus-visible{
  outline:3px solid #fff;outline-offset:2px
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{transition-duration:.01ms !important;animation-duration:.01ms !important}
}
