/* AM PM Nationwide Security - Master Stylesheet
   Brand colors: Navy #0a2540, Gold accent #c8a24b, White
   Mobile-first, fast-loading, AA-accessible
*/
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.65;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0a2540; text-decoration: none; }
a:hover { color: #c8a24b; text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar {
  background: #0a2540;
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.topbar a { color: #fff; margin-left: 15px; }
.topbar a:hover { color: #c8a24b; }

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; font-size: 22px; font-weight: 800; color: #0a2540; letter-spacing: -0.5px; }
.logo span { color: #c8a24b; }
.logo img { height: 64px; width: auto; display: block; }
@media (max-width: 720px) {
  .logo img { height: 52px; }
}
nav ul { list-style: none; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
nav a { font-weight: 600; font-size: 15px; color: #1a1a1a; }
nav a.cta-btn {
  background: #c8a24b; color: #fff; padding: 10px 22px; border-radius: 4px;
  transition: background 0.2s;
}
nav a.cta-btn:hover { background: #a8842e; color: #fff; text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 100%);
  color: #fff;
  padding: 80px 0 90px;
  text-align: center;
}
.hero h1 { font-size: clamp(28px, 5vw, 46px); margin-bottom: 18px; line-height: 1.2; }
.hero p.lede { font-size: clamp(16px, 2vw, 20px); max-width: 780px; margin: 0 auto 32px; color: #e0e8f0; }
.hero .badges { margin: 22px 0; font-size: 14px; color: #c8a24b; }
.btn-primary {
  display: inline-block;
  background: #c8a24b;
  color: #fff;
  padding: 14px 34px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 4px;
  margin: 8px;
  transition: transform 0.15s, background 0.15s;
}
.btn-primary:hover { background: #a8842e; color: #fff; text-decoration: none; transform: translateY(-2px); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 14px 34px;
  font-size: 17px;
  font-weight: 700;
  border: 2px solid #fff;
  border-radius: 4px;
  margin: 8px;
}
.btn-secondary:hover { background: #fff; color: #0a2540; text-decoration: none; }

/* Sections */
section { padding: 70px 0; }
section.alt { background: #f7f9fc; }
h2 { font-size: clamp(24px, 4vw, 36px); color: #0a2540; margin-bottom: 14px; line-height: 1.25; }
h2.center, h3.center { text-align: center; }
.lede-sub { text-align: center; max-width: 760px; margin: 0 auto 40px; color: #445; font-size: 17px; }
h3 { font-size: 22px; color: #0a2540; margin: 18px 0 10px; }
p { margin-bottom: 14px; }

/* Grid cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  display: block;
  text-decoration: none;
  background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 100%);
  border: 2px solid #0a2540;
  border-radius: 8px;
  padding: 28px;
  color: #fff;
  box-shadow: 0 3px 10px rgba(10,37,64,0.15);
  transition: transform 0.18s, box-shadow 0.18s, background 0.2s, border-color 0.2s, color 0.2s;
}
a.card:hover { text-decoration: none; }
.card:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #c8a24b 0%, #d9b766 100%);
  border-color: #c8a24b;
  color: #0a2540;
  box-shadow: 0 10px 22px rgba(200,162,75,0.30);
}
.card .icon {
  width: 48px; height: 48px; background: #c8a24b; color: #0a2540;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px; font-weight: 800;
  transition: background 0.2s, color 0.2s;
}
.card:hover .icon { background: #0a2540; color: #c8a24b; }
.card h3 { margin-top: 0; color: #fff; transition: color 0.2s; }
.card:hover h3 { color: #0a2540; }
.card p, .card li { color: rgba(255,255,255,0.94); transition: color 0.2s; }
.card:hover p, .card:hover li { color: #0a2540; }
.card a.more { font-weight: 700; color: #c8a24b; transition: color 0.2s; }
.card:hover a.more { color: #0a2540; text-decoration: underline; }
.card ul.checklist li:before { color: #c8a24b; transition: color 0.2s; }
.card:hover ul.checklist li:before { color: #0a2540; }

/* Lists */
ul.checklist { list-style: none; padding: 0; }
ul.checklist li { padding: 8px 0 8px 28px; position: relative; }
ul.checklist li:before {
  content: "✓"; position: absolute; left: 0; color: #c8a24b; font-weight: 900;
}

/* Location grid */
.location-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.location-grid a {
  display: block;
  background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 100%);
  padding: 14px 16px;
  border: 2px solid #0a2540;
  border-radius: 6px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(10,37,64,0.12);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.location-grid a:hover {
  background: linear-gradient(135deg, #c8a24b 0%, #d9b766 100%);
  color: #0a2540;
  text-decoration: none;
  border-color: #c8a24b;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(200,162,75,0.30);
}

/* CTA banner */
.cta-banner {
  background: #c8a24b;
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner .btn-primary { background: #0a2540; }
.cta-banner .btn-primary:hover { background: #06172a; }

/* Forms */
form.quote-form {
  background: #fff;
  padding: 30px;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  max-width: 640px;
  margin: 0 auto;
}
form.quote-form label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 14px; }
form.quote-form input, form.quote-form select, form.quote-form textarea {
  width: 100%; padding: 11px; border: 1px solid #ccd4dd; border-radius: 4px;
  font-size: 15px; font-family: inherit;
}
form.quote-form textarea { min-height: 110px; resize: vertical; }
form.quote-form button {
  background: #c8a24b; color: #fff; border: 0; padding: 14px 32px;
  font-size: 16px; font-weight: 700; border-radius: 4px; cursor: pointer;
  margin-top: 18px;
}
form.quote-form button:hover { background: #a8842e; }

/* Breadcrumbs */
.breadcrumbs { padding: 14px 0; font-size: 14px; color: #666; }
.breadcrumbs a { color: #0a2540; }
.breadcrumbs span { margin: 0 6px; }

/* Footer */
footer {
  background: #0a2540;
  color: #c0cdd9;
  padding: 55px 0 20px;
  font-size: 14px;
}
footer a { color: #c0cdd9; }
footer a:hover { color: #c8a24b; }
footer h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
footer ul { list-style: none; }
footer ul li { padding: 4px 0; }
footer .bottom {
  border-top: 1px solid #1a3a5c;
  padding-top: 18px; margin-top: 30px;
  text-align: center; font-size: 13px;
}

/* Accessibility */
:focus { outline: 3px solid #c8a24b; outline-offset: 2px; }

/* Responsive */
@media (max-width: 720px) {
  .nav-wrap { flex-direction: column; gap: 10px; }
  nav ul { gap: 14px; justify-content: center; font-size: 14px; }
  .topbar .container { justify-content: center; gap: 10px; text-align: center; }
  .topbar a { margin-left: 0; margin-right: 10px; }
  .hero { padding: 50px 0 60px; }
  section { padding: 50px 0; }
}
