/* =========================================================
   AP Services — Site Styles
   Brand palette derived from logo (blue + red on white)
   Mobile-first, restrained, service-business polish.
   ========================================================= */

:root {
  --ink:        #0b2440;     /* deep navy text */
  --ink-2:      #163556;     /* secondary text */
  --blue:       #0a52a8;     /* logo blue */
  --blue-dark:  #073d7d;
  --blue-soft:  #eaf2fb;
  --red:        #c8202a;     /* logo red */
  --red-dark:   #9a1820;
  --paper:      #ffffff;
  --bg:         #fafbfd;     /* page background */
  --soft:       #f3f6fb;
  --line:       #dfe7f1;
  --muted:      #5b7186;
  --shadow-sm:  0 2px 6px rgba(11,36,64,.06);
  --shadow-md:  0 8px 24px rgba(11,36,64,.08);
  --shadow-lg:  0 18px 48px rgba(11,36,64,.10);
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;
  --maxw:       1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============== Typography ============== */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 14px;
}
h1 { font-size: clamp(30px, 5.4vw, 46px); line-height: 1.1; }
h2 { font-size: clamp(24px, 3.6vw, 34px); }
h3 { font-size: clamp(18px, 2.4vw, 22px); }
h4 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
p  { margin: 0 0 14px; color: var(--ink-2); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 64ch; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.eyebrow.red { color: var(--red); }

/* ============== Header / Nav ============== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img {
  height: 38px;
  width: auto;
}
.brand-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: none;
}
@media (min-width: 480px) { .brand-name { display: inline; } }

.navlinks {
  display: none;
  align-items: center;
  gap: 4px;
}
.navlinks a {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.navlinks a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.navlinks a.active { color: var(--blue); }
.navlinks .btn { margin-left: 6px; }
@media (min-width: 980px) {
  .navlinks { display: inline-flex; }
}

/* mobile menu */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
@media (min-width: 980px) { .menu-toggle { display: none; } }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 0 16px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--soft);
  text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { background: var(--soft); text-decoration: none; }

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 20px;
  min-height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { box-shadow: var(--shadow-sm); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(200,32,42,.22);
}
.btn.primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn.blue {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(10,82,168,.18);
}
.btn.blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn.ghost { background: transparent; }
.btn.lg { min-height: 54px; padding: 14px 24px; font-size: 16px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ============== Sections ============== */
section { padding: clamp(48px, 7vw, 84px) 0; }
section.tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-header {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}
.section-header.left { text-align: left; margin-left: 0; }

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 6vw, 72px);
  background:
    radial-gradient(circle at 85% 0%, rgba(200,32,42,.06), transparent 30rem),
    radial-gradient(circle at 0% 100%, rgba(10,82,168,.07), transparent 26rem),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero h1 strong { color: var(--blue); font-weight: 800; }
.hero .trust-line {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

/* Two-col layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}
.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-md);
}
.aside-card h3 { margin-top: 0; }
.aside-card ul { padding-left: 18px; margin: 8px 0 12px; }
.aside-card li { margin-bottom: 6px; color: var(--ink-2); }

/* ============== Card grid ============== */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid.cols-4 { grid-template-columns: repeat(4,1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-top: 0; }
.card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card .card-icon.red { background: #fdecee; color: var(--red); }
.card ul { padding-left: 18px; margin: 8px 0 16px; }
.card ul li { margin-bottom: 6px; color: var(--ink-2); }
.card .card-cta { margin-top: auto; }
.card.feature {
  border-color: var(--line);
}
.card.accent {
  border-color: var(--blue);
}

/* numbered steps */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}
.step .num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}
.step h3 { margin: 4px 0 6px; }

/* badge / chip list */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}
.chip {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
}

/* dark CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #143055 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  margin: 0 auto;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c8d5e5; max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-band .actions { justify-content: center; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.cta-band .btn.primary:hover { background: var(--red-dark); }

/* Service area band */
.area {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.area .zones {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .area .zones { grid-template-columns: 1fr 1fr; } }
.zone {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.zone h3 { margin-top: 0; }
.zone ul { padding-left: 18px; margin: 6px 0 0; }
.zone li { color: var(--ink-2); margin-bottom: 4px; }

/* ============== Footer ============== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  margin-top: 24px;
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}
@media (min-width: 740px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-col h4 {
  font-size: 13px;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.footer-col a:hover { color: var(--blue); }
.footer-col p { font-size: 14px; }
.footer-brand img { height: 36px; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ============== Mobile sticky CTA bar ============== */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  background: rgba(255,255,255,.98);
  border-top: 1px solid var(--line);
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: 0 -4px 16px rgba(11,36,64,.08);
}
.mobile-cta-bar .btn { flex: 1; min-height: 48px; font-size: 14px; padding: 10px 12px; }
@media (min-width: 980px) { .mobile-cta-bar { display: none; } }
body.has-mobile-cta { padding-bottom: 76px; }
@media (min-width: 980px) { body.has-mobile-cta { padding-bottom: 0; } }

/* ============== Misc helpers ============== */
.center { text-align: center; }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; margin: 24px 0; }
.small { font-size: 13px; color: var(--muted); }
.notice {
  background: #fff8e6;
  border: 1px solid #f5e2a2;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: #6b540b;
}
.success {
  background: #ecf7ee;
  border: 1px solid #b9e0bf;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #1d6c2b;
}

/* page hero (smaller than home hero) */
.page-hero {
  padding: clamp(40px, 6vw, 64px) 0 clamp(24px, 4vw, 40px);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 12px; }

/* "what we don't promise" / honest scope block */
.honest {
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.honest h3 { margin-top: 0; }

/* Audience / list tag style */
.audience-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}
@media (min-width: 600px) { .audience-list { grid-template-columns: 1fr 1fr; } }
.audience-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 500;
  color: var(--ink-2);
}

/* "request type" big card */
.request-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.request-card .btn { margin-top: auto; }

/* check list */
.checklist {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.checklist li {
  position: relative;
  padding: 6px 0 6px 28px;
  color: var(--ink-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* skip link */
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px;
  background: #fff; padding: 10px 14px; border-radius: 8px;
  border: 1px solid var(--line); z-index: 100;
}
