/* Kitsap Fire & Security — site styles
   Brand colors come from the shield logo: red flame, black, silver. */
:root {
  --red: #c41300;
  --red-dark: #9a0f00;
  --ink: #16181c;
  --ink-2: #4b515b;
  --silver: #c9ccd1;
  --line: #e2e4e8;
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --dark: #121417;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--red); margin-bottom: .5em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-block; background: var(--red); color: #fff; border: 2px solid var(--red);
  padding: 13px 26px; border-radius: 6px; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-light { background: transparent; border-color: rgba(255,255,255,.75); }
.btn-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: #000; border-color: #000; }

/* Top bar */
.topbar { background: var(--dark); color: #cfd2d7; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--silver); }
.topbar-links { display: flex; gap: 22px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 56px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: .06em; line-height: 1.05; text-transform: uppercase; }
.brand-name small { display: block; font-weight: 600; font-size: .62rem; letter-spacing: .32em; color: var(--red); }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a, .site-nav button.sub-toggle {
  display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
  background: none; border: 0; font-family: inherit; cursor: pointer; border-radius: 6px;
}
.site-nav a:hover, .site-nav button.sub-toggle:hover, .site-nav a[aria-current="page"] { color: var(--red); }
.site-nav .nav-cta a { background: var(--red); color: #fff; margin-left: 8px; }
.site-nav .nav-cta a:hover, .site-nav .nav-cta a[aria-current="page"] { background: var(--red-dark); color: #fff; }
.has-sub { position: relative; }
.sub-toggle::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.submenu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.1);
  display: none;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { display: block; }
.submenu a { font-weight: 500; }
.submenu a:hover { background: var(--bg-alt); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 9px 14px; font: inherit; font-weight: 600; cursor: pointer; }

/* Home hero */
.hero {
  position: relative; color: #fff; padding: 110px 0 100px;
  background: linear-gradient(90deg, rgba(10,11,13,.92) 0%, rgba(10,11,13,.75) 50%, rgba(10,11,13,.35) 100%), url("images/security-cameras.jpg") center/cover no-repeat;
}
.hero-copy { max-width: 700px; }
.hero .eyebrow { color: #ff9a8a; }
.hero .lead { font-size: 1.2rem; color: #dfe1e5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: #dfe1e5; font-size: .98rem; }
.hero-points li::before { content: "✓"; color: #ff9a8a; font-weight: 700; margin-right: 8px; }

/* Inner page banner */
.page-banner { position: relative; color: #fff; padding: 90px 0 70px; background-color: var(--dark); background-position: center; background-size: cover; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,13,.9), rgba(10,11,13,.55)); }
.page-banner .wrap { position: relative; }
.page-banner h1 { margin: 0; }
.page-banner .eyebrow { color: #ff9a8a; }
.crumbs { font-size: .9rem; color: #c9ccd1; margin-top: 10px; }
.crumbs a { color: #fff; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark p { color: #b8bcc4; }
.section-head { margin-bottom: 40px; }
.section-head p { max-width: 720px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 32px rgba(0,0,0,.1); transform: translateY(-3px); }
.card img { aspect-ratio: 12 / 5; object-fit: cover; object-position: right center; width: 100%; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-2); font-size: .97rem; flex: 1; }
.card-link { color: var(--red); font-weight: 600; }
.card-link::after { content: " →"; }

/* Welcome letter */
.welcome { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; }
.welcome img { width: 100%; max-width: 260px; margin: 0 auto; background: #fff; padding: 28px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.signature { font-weight: 700; font-size: 1.1rem; margin-top: 1.4em; }
.signature span { display: block; font-weight: 400; color: var(--ink-2); font-size: .95rem; }

/* Feature band */
.band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.band img { border-radius: var(--radius); }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; }
.checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--red); font-weight: 800; }
.section-dark .checks li::before { color: #ff9a8a; }

/* Towns */
.towns { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.towns li { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); padding: 10px 16px; border-radius: 4px; font-weight: 600; }

/* CTA strip */
.cta-strip { background: var(--red); color: #fff; padding: 48px 0; }
.cta-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-strip h2 { margin: 0 0 .2em; }
.cta-strip p { margin: 0; color: #ffe1dc; }
.cta-strip .btn { background: #fff; color: var(--red); border-color: #fff; }
.cta-strip .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-strip .btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Service page layout */
.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.content-main .lead-text { font-size: 1.15rem; }
.aside-card { background: var(--bg-alt); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.aside-card h3 { margin-bottom: .6em; }
.aside-card .btn { width: 100%; text-align: center; margin-top: 8px; }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.aside-card li:last-child a { border-bottom: 0; }
.aside-card li a:hover, .aside-card li a[aria-current="page"] { color: var(--red); }
.phone-big { font-size: 1.5rem; font-weight: 800; color: var(--ink); text-decoration: none; display: block; }

/* Forms */
.form { background: var(--bg-alt); padding: 32px; border-radius: var(--radius); display: grid; gap: 18px; }
.form label, .form legend { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid #c8ccd3; border-radius: 6px; background: #fff; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form .checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-top: 8px; }
.form .checkbox-grid label { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.form .checkbox-grid input { width: 18px; height: 18px; accent-color: var(--red); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.req { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 6px; font-weight: 600; }
.form-status.ok { background: #e5f4e9; color: #1d6a33; }
.form-status.err { background: #fde9e6; color: var(--red-dark); }
[hidden] { display: none !important; }

/* Contact details */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--red); }


/* Footer */
.site-footer { background: var(--dark); color: #b8bcc4; padding: 60px 0 0; font-size: .95rem; }
.site-footer a { color: #e6e8eb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer .brand-footer { color: #fff; margin-bottom: 16px; }
.site-footer .brand-footer:hover { text-decoration: none; }
.site-footer .brand-footer img { height: 60px; width: auto; }
.site-footer .brand-name small { color: #ff9a8a; }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #2a2d33; padding: 20px 0; font-size: .85rem; color: #80858f; }

/* Responsive */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .content-grid, .band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); max-height: calc(100vh - 84px); overflow-y: auto; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 0; }
  .site-nav a, .site-nav button.sub-toggle { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; width: 100%; text-align: left; }
  .submenu { position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .has-sub:hover .submenu { display: none; }
  .has-sub.open .submenu { display: block; }
  .site-nav .nav-cta a { margin: 14px 0 0; text-align: center; border-radius: 6px; border: 0; }
  .welcome { grid-template-columns: 1fr; gap: 28px; }
  .welcome img { max-width: 180px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-links, .topbar-tagline { display: none; }
  .brand img { height: 46px; }
  .brand-name { font-size: 1.05rem; }
  .cards, .row-2, .row-3, .form .checkbox-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 72px 0; }
  .form { padding: 22px; }
}
