:root {
  --red: #d71920;
  --red-dark: #a50f15;
  --ink: #101216;
  --ink-2: #1a1d23;
  --ink-3: #262a31;
  --text: #1f2328;
  --muted: #5b6270;
  --line: #e3e5e9;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --radius: 14px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: "Oswald", "Inter", sans-serif; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.2rem; font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
section { padding: 88px 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 1rem; border: 2px solid transparent; transition: transform .15s, background .15s, border-color .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }

/* Top bar + header */
.topbar { background: var(--ink); color: #c9ccd3; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
header.site { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 96px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.32rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.brand-text small { font-family: "Oswald", sans-serif; font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-top: 4px; }
nav.main { display: flex; align-items: center; gap: 26px; }
nav.main a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav.main a:hover { color: var(--red); }
nav.main .btn { color: #fff; padding: 11px 18px; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% 0%, rgba(215,25,32,.35), transparent 60%), linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #2a0d0f 100%); color: #fff; padding: 96px 0 110px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--red); }
.hero .lead { color: #c9ccd3; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: #c9ccd3; }
.trust span::before { content: "✓"; color: var(--red); font-weight: 800; margin-right: 7px; }

/* Report mock card */
.report { background: #fff; color: var(--text); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; }
.report-head { background: var(--ink-3); color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.live { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.25); }
.report ul { list-style: none; margin: 0; padding: 6px 18px 12px; }
.report li { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.report li:last-child { border-bottom: 0; }
.thumb { width: 58px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, #3b4150, #1b1e24); position: relative; }
.thumb::after { content: "📷"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1rem; opacity: .8; }
.report b { display: block; font-size: .92rem; }
.report small { color: var(--muted); }
.tag { font-size: .72rem; font-weight: 700; padding: 4px 8px; border-radius: 99px; background: #e8f7ee; color: #15803d; white-space: nowrap; }
.report-foot { background: var(--bg-soft); padding: 12px 18px; font-size: .8rem; color: var(--muted); text-align: center; }

/* Stats strip */
.stats { background: var(--red); color: #fff; padding: 30px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats strong { display: block; font-family: "Oswald", sans-serif; font-size: 2rem; line-height: 1.1; }
.stats span { font-size: .9rem; opacity: .9; }

/* Services */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: 0 14px 40px rgba(16,18,22,.08); transform: translateY(-3px); border-color: #d5d8de; }
.card .icon { width: 50px; height: 50px; border-radius: 12px; background: #fdeaea; color: var(--red); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.section-head { margin-bottom: 44px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; justify-content: center; }
.chips span { background: var(--bg-soft); border: 1px solid var(--line); padding: 8px 14px; border-radius: 99px; font-size: .9rem; font-weight: 600; }

/* Difference (dark) */
.dark { background: var(--ink); color: #fff; }
.dark .lead { color: #b8bcc6; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; }
.checks li { position: relative; padding: 0 0 18px 38px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.checks b { display: block; }
.dark .checks span { color: #b8bcc6; }
.compare { background: var(--ink-2); border: 1px solid #2e333c; border-radius: 18px; padding: 28px; }
.compare table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 12px 8px; border-bottom: 1px solid #2e333c; text-align: left; }
.compare th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #8d93a0; }
.compare td:nth-child(2) { color: #22c55e; font-weight: 700; text-align: center; }
.compare td:nth-child(3) { color: #8d93a0; text-align: center; }
.compare th:nth-child(n+2) { text-align: center; }

/* Steps */
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 40px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 28px; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-family: "Oswald", sans-serif; font-size: 1.2rem; display: grid; place-items: center; }

/* Areas */
.soft { background: var(--bg-soft); }
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.areas .card h3 { color: var(--red); }
.areas .card p { font-size: .92rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-weight: 700; font-size: 1.08rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--red-dark), var(--red)); color: #fff; padding: 70px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .92; }
.cta-band .btn-red { background: #fff; color: var(--red); }
.cta-band .btn-red:hover { background: #f3f3f3; }

/* Careers */
.careers { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.careers .card { background: var(--ink); color: #fff; border: 0; }
.careers .card p { color: #b8bcc6; }

/* Footer */
footer { background: #0b0c0f; color: #a3a8b3; padding: 64px 0 28px; font-size: .92rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
footer a { color: #d6d9df; text-decoration: none; }
footer a:hover { color: #fff; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
.foot-logo { background: #fff; border-radius: 10px; padding: 10px; display: inline-block; margin-bottom: 14px; }
.foot-logo img { height: 56px; width: auto; }
.legal { border-top: 1px solid #22252c; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; }

/* Sticky mobile call bar */
.callbar { display: none; }

/* Simple content pages */
.page { padding: 64px 0 90px; }
.page .wrap { max-width: 820px; }
.page h2 { font-size: 1.4rem; margin-top: 1.6em; }

@media (max-width: 980px) {
  .hero .wrap, .split, .careers { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .areas { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .menu-btn { display: block; }
  nav.main { display: none; position: absolute; top: 80px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0,0,0,.08); }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  nav.main .btn { margin-top: 10px; border: 0; }
  .grid-3, .grid-4, .areas, footer .cols { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 80px; }
  .topbar .hide-sm { display: none; }
  header.site .wrap { height: 80px; }
  .brand img { height: 40px; }
  .brand { gap: 9px; }
  .brand-text b { font-size: 1.02rem; }
  .brand-text small { font-size: .62rem; letter-spacing: .1em; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; box-shadow: 0 -6px 20px rgba(0,0,0,.15); }
  .callbar a { padding: 15px; text-align: center; font-weight: 700; text-decoration: none; color: #fff; background: var(--ink); }
  .callbar a + a { background: var(--red); }
  body { padding-bottom: 54px; }
}

/* Photos */
.hero-photo { background: linear-gradient(100deg, rgba(10,11,14,.94) 0%, rgba(10,11,14,.82) 45%, rgba(40,8,10,.55) 100%), var(--hero) center/cover no-repeat, var(--ink); }
.card.has-img { padding-top: 0; overflow: hidden; }
.card-img { width: calc(100% + 56px); margin: 0 -28px 20px; height: 190px; object-fit: cover; }
.card.has-img .icon { margin-top: -46px; position: relative; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.photo { margin: 0; }
.photo img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(16,18,22,.18); }
.photo figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  /* keep the Scout chat bubble above the Call / Free Quote bar */
  #aps-chat-btn { bottom: 70px !important; }
  #aps-chat-proactive { bottom: 146px !important; }
}

/* Video hero */
.hero-video { background: var(--ink); }
.hero-video .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(10,11,14,.92) 0%, rgba(10,11,14,.75) 50%, rgba(40,8,10,.45) 100%); }
.hero-video .wrap { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .hero-video .hero-bg { display: none; } .hero-video { background: url('/img/hero-poster.jpg') center/cover; } }

/* Google rating badge */
.gbadge { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 14px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; font-size: .9rem; }
.gbadge b { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #4285f4; display: grid; place-items: center; font-size: .85rem; }
.gbadge .stars { color: #fbbc04; letter-spacing: 1px; }
.gbadge:hover { background: rgba(255,255,255,.14); }
.page h2 + p { margin-top: .3em; }

/* Technology page */
.tech-hero { background: radial-gradient(900px 500px at 80% 30%, rgba(59,130,246,.25), transparent 60%), linear-gradient(160deg, #0b1220 0%, #0f172a 60%, #1a0d12 100%); }
.tech-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.sentry-logo { width: 220px; height: auto; border-radius: 12px; margin-bottom: 22px; }
.tech-mock { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); }
.tech-steps .card { background: var(--ink-2); border-color: #2e333c; color: #fff; }
.tech-steps .card p { color: #b8bcc6; }
.tech-steps .card h3 { font-size: 1.05rem; }

/* Motion polish */
header.site { transition: box-shadow .2s; }
header.site.scrolled { box-shadow: 0 6px 24px rgba(16,18,22,.08); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.report li.feed { opacity: 0; transform: translateX(14px); transition: opacity .45s ease, transform .45s ease; }
.report li.feed.in { opacity: 1; transform: none; }
.hero h1, .hero .lead, .hero-ctas, .hero .trust, .hero .gbadge, .hero .eyebrow, .sentry-logo { animation: heroIn .7s ease both; }
.hero .lead { animation-delay: .1s; } .hero-ctas { animation-delay: .2s; } .hero .trust, .hero .gbadge { animation-delay: .3s; }
.report, .tech-mock { animation: heroIn .8s .25s ease both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.btn-red { box-shadow: 0 8px 22px rgba(215,25,32,.28); }
.card .icon { transition: transform .2s; }
.card:hover .icon { transform: scale(1.08) rotate(-3deg); }
@media (prefers-reduced-motion: reduce) { .reveal, .report li.feed { opacity: 1 !important; transform: none !important; } .hero * { animation: none !important; } }

/* Report thumbnails */
img.thumb { width: 76px; height: 57px; border-radius: 8px; object-fit: cover; background: #1b1e24; }
.tag.warn { background: #fff4e5; color: #b45309; }
.card-img { max-width: none; }

/* Side-by-side logo: keep header on one line at every width */
.brand-text b, nav.main a { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1180px) {
  .brand img { height: 44px; }
  .brand-text b { font-size: 1.05rem; }
  .brand-text small { font-size: .64rem; }
  nav.main { gap: 16px; }
  nav.main a { font-size: .88rem; }
  nav.main .btn { padding: 10px 14px; }
}
@media (min-width: 761px) and (max-width: 940px) {
  .brand-text { display: none; }
}

/* Footer logo matches the header lockup */
footer .foot-logo { display: inline-flex; padding: 12px 18px; border-radius: 12px; background: #fff; }
footer .foot-logo img { height: 46px; }
footer .foot-logo .brand-text { display: flex; }
footer .foot-logo .brand-text b { font-size: 1.12rem; }
footer .foot-logo .brand-text small { font-size: .68rem; }
footer .foot-logo { max-width: 100%; box-sizing: border-box; gap: 10px; }
footer .foot-logo img { height: 40px; flex-shrink: 0; }
footer .foot-logo .brand-text b { white-space: normal; font-size: 1rem; line-height: 1.1; }
footer .foot-logo .brand-text small { font-size: .6rem; letter-spacing: .1em; }

/* Phone + email in top bar and footer */
.topbar-contact { display: inline-flex; gap: 18px; align-items: center; }
.topbar-contact a { white-space: nowrap; }
.show-sm { display: none; }
@media (max-width: 760px) { .show-sm { display: inline; } .topbar .wrap { justify-content: center; } }
.foot-contact { display: flex; flex-direction: column; gap: 6px; }
.foot-contact a { color: #fff; font-weight: 600; font-size: 1rem; }

/* Bigger footer logo */
footer .cols { grid-template-columns: 1.9fr 1fr 1fr 1fr; }
footer .foot-logo { padding: 16px 22px; gap: 14px; }
footer .foot-logo img { height: 64px; }
footer .foot-logo .brand-text b { font-size: 1.4rem; white-space: nowrap; }
footer .foot-logo .brand-text small { font-size: .78rem; letter-spacing: .14em; }
@media (max-width: 1180px) {
  footer .foot-logo .brand-text b { font-size: 1.15rem; white-space: normal; }
  footer .foot-logo img { height: 54px; }
}
@media (max-width: 980px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  footer .cols { grid-template-columns: 1fr; }
  footer .foot-logo img { height: 50px; }
  footer .foot-logo .brand-text b { font-size: 1.12rem; white-space: nowrap; }
  footer .foot-logo .brand-text small { font-size: .66rem; }
}
footer .foot-logo { display: flex; width: 100%; max-width: 380px; }
footer .foot-logo .brand-text { min-width: 0; }
footer .foot-logo .brand-text b { white-space: normal !important; font-size: 1.45rem; line-height: 1.05; }
@media (max-width: 760px) { footer .foot-logo .brand-text b { font-size: 1.3rem; } footer .foot-logo img { height: 56px; } }
@media (max-width: 760px) {
  footer .foot-logo { max-width: 100%; }
  footer .foot-logo img { height: 50px; }
  footer .foot-logo .brand-text b { font-size: 1.18rem; }
  footer .foot-logo .brand-text small { font-size: .64rem; letter-spacing: .1em; white-space: nowrap; }
}

/* Phone/email bar + menu both stay pinned while scrolling */
.sticky-top { position: sticky; top: 0; z-index: 50; }
header.site { position: relative; top: auto; }
.sticky-top.scrolled header.site { box-shadow: 0 6px 24px rgba(16,18,22,.08); }
@media (max-width: 760px) {
  .topbar { font-size: .76rem; }
  .topbar .wrap { padding-top: 7px; padding-bottom: 7px; }
  .topbar-contact { gap: 12px; }
}
@media (max-width: 360px) { .topbar { font-size: .7rem; } .topbar-contact { gap: 8px; } }

/* Resident parking link */
.tb-park { color: #fff; font-weight: 700; text-decoration: none; }
.tb-park:hover { text-decoration: underline; }
.mobile-only { display: none; }
@media (max-width: 760px) { nav.main a.mobile-only { display: block; } }
