/* Excel Security Systems — product catalog styles.
   Extends the existing site system (Archivo display, navy/gold/paper palette).
   Loaded by products.html and every product-*.html page. */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #0f1d38;
  --navy2: #14213a;
  --gold: #f0a500;
  --ink: #14213a;
  --gold2: #c8901a;
  --hline: #e7e2d8;
  --paper: #fbfaf7;
  --light: #f3efe8;
  --gray: #6b7280;
  --text: #14213a;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: #fff; }

/* NAV — identical to the rest of the site */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #ffffff; backdrop-filter: blur(8px); box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo { height: 44px; display: flex; align-items: center; }
.nav-logo img { height: 44px; width: auto; display: block; border-radius: 6px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: #475569; text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-links a.on { font-weight: 700; }
.nav-cta { background: var(--ink); color: #fff; padding: 11px 22px; border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: 700; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.nav-cta:hover { background: var(--gold2); color: var(--ink); }

section { padding: 72px 5%; }
.light-bg { background: var(--light); }
.paper-bg { background: var(--paper); }

.section-label { font-family: var(--font-display); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; color: #8a6a1f; margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: 38px; font-weight: 900; letter-spacing: -0.02em; color: var(--text); line-height: 1.08; margin-bottom: 16px; text-wrap: balance; }
.section-sub { font-size: 18px; color: var(--gray); line-height: 1.6; max-width: 620px; }
.section-header { margin-bottom: 44px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin-left: auto; margin-right: auto; }

/* CATALOG HERO (dark, matches service pages) */
.cat-hero {
  background: linear-gradient(rgba(10, 22, 40, 0.80), rgba(10, 22, 40, 0.90)), url('alarm-hero.jpg') center/cover no-repeat;
  padding: 136px 5% 72px; text-align: center;
}
.cat-hero .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(240,165,0,0.14); border: 1px solid rgba(240,165,0,0.4);
  color: #f0c15a; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; margin-bottom: 22px;
}
.cat-hero .hero-badge i { color: var(--gold); font-size: 12px; }
.cat-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); font-weight: 900; color: #fff; line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 18px; text-wrap: balance; }
.cat-hero h1 em { color: var(--gold); font-style: normal; }
.cat-hero p { font-size: 18px; color: #94a3b8; line-height: 1.7; max-width: 700px; margin: 0 auto 28px; }
.no-price-note {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 12px 20px; color: #cbd5e1; font-size: 14px; line-height: 1.5;
}
.no-price-note i { color: var(--gold); }

/* BREADCRUMB — it is a <nav>, so it must undo the fixed site-nav rule above */
nav.crumbs {
  position: static; height: auto; z-index: auto;
  background: none; backdrop-filter: none; box-shadow: none; border-bottom: 0;
  display: block; padding: 92px 5% 0;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--gray); }
.crumbs a { color: var(--gray); text-decoration: none; }
.crumbs a:hover { color: var(--gold2); }
.crumbs li[aria-current] { color: var(--ink); font-weight: 600; }
.crumbs .sep { color: #c9c2b4; }

/* PRODUCT HERO */
.phero { padding: 28px 5% 64px; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.phero-media { position: relative; background: #fff; border: 1px solid var(--hline); border-radius: 12px; padding: 36px; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.phero-media::after { content: ''; position: absolute; inset: 12px -12px -12px 12px; border: 1px solid var(--gold2); border-radius: 12px; z-index: -1; }
.phero-media img { max-width: 100%; max-height: 380px; width: auto; object-fit: contain; display: block; }
.pbrand { font-family: var(--font-display); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; color: #8a6a1f; margin-bottom: 12px; }
.phero h1 { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 46px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.04; margin-bottom: 10px; text-wrap: balance; }
.pkicker { font-size: 18px; font-weight: 600; color: var(--gray); margin-bottom: 20px; }
.psummary { font-size: 16.5px; color: #4b5563; line-height: 1.7; margin-bottom: 22px; max-width: 56ch; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; list-style: none; }
.pchip { background: #f6efe1; color: #8a6a1f; border: 1px solid #ead9b8; padding: 5px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.2px; }
.pchip.model { background: var(--ink); color: #fff; border-color: var(--ink); font-variant-numeric: tabular-nums; }
.pcta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-primary { background: var(--ink); color: #fff; padding: 15px 28px; border-radius: 6px; text-decoration: none; font-size: 15px; font-weight: 700; transition: background 0.2s, color 0.2s; display: inline-flex; align-items: center; gap: 9px; }
.btn-primary:hover { background: var(--gold2); color: var(--ink); }
.btn-ghost { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; border-bottom: 2px solid var(--gold2); padding-bottom: 3px; transition: color 0.2s; }
.btn-ghost:hover { color: var(--gold2); }

/* "we install this" bar */
.install-note { display: flex; gap: 14px; align-items: flex-start; background: var(--light); border-left: 3px solid var(--gold2); padding: 16px 20px; border-radius: 0 8px 8px 0; margin-bottom: 24px; }
.install-note i { color: var(--gold2); font-size: 16px; margin-top: 2px; }
.install-note p { font-size: 14px; color: #52525b; line-height: 1.6; }
.install-note strong { color: var(--ink); }

/* FEATURE GRID */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.feature-card { border: 1px solid var(--hline); border-radius: 10px; padding: 26px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.feature-card:hover { border-color: var(--gold2); box-shadow: 0 12px 30px rgba(20,33,58,0.09); transform: translateY(-3px); }
.feature-icon { font-size: 24px; color: var(--gold2); margin-bottom: 14px; }
.feature-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray); line-height: 1.65; }

/* BULLET LIST */
.plist { list-style: none; display: grid; gap: 14px; max-width: 78ch; }
.plist li { display: flex; gap: 13px; font-size: 15.5px; color: #4b5563; line-height: 1.65; }
.plist li i { color: var(--gold2); font-size: 14px; margin-top: 5px; flex-shrink: 0; }

/* PLATFORM STRIP */
.platform { background: var(--navy); color: #fff; border-radius: 12px; padding: 34px 36px; }
.platform h3 { font-family: var(--font-display); font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.platform .sub { color: #94a3b8; font-size: 14.5px; margin-bottom: 22px; }
.platform ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 13px; }
.platform li { display: flex; gap: 11px; font-size: 14px; color: #cbd5e1; line-height: 1.6; }
.platform li i { color: var(--gold); font-size: 13px; margin-top: 4px; flex-shrink: 0; }

/* RADIO TABLE (panel) */
.radios { display: grid; gap: 0; border: 1px solid var(--hline); border-radius: 10px; overflow: hidden; }
.radio-row { display: grid; grid-template-columns: 220px 180px 1fr; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--hline); align-items: baseline; }
.radio-row:last-child { border-bottom: 0; }
.radio-row:nth-child(odd) { background: var(--paper); }
.radio-row b { font-family: var(--font-display); font-size: 15.5px; font-weight: 800; color: var(--ink); }
.radio-row .cap { font-size: 13px; font-weight: 700; color: #8a6a1f; letter-spacing: 0.3px; }
.radio-row span.desc { font-size: 14.5px; color: var(--gray); line-height: 1.6; }

/* SPEC TABLE */
.spec-wrap { overflow-x: auto; border: 1px solid var(--hline); border-radius: 10px; }
table.specs { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.specs th { text-align: left; font-family: var(--font-display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #8a6a1f; background: var(--light); padding: 14px 20px; border-bottom: 1px solid var(--hline); }
table.specs td { padding: 15px 20px; border-bottom: 1px solid var(--hline); color: #4b5563; line-height: 1.6; vertical-align: top; }
table.specs tr:last-child td { border-bottom: 0; }
table.specs td:first-child { font-weight: 700; color: var(--ink); width: 230px; }
table.specs tr:nth-child(even) td { background: var(--paper); }

/* PRODUCT CARD GRID */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.pcard { display: flex; flex-direction: column; border: 1px solid var(--hline); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; background: #fff; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.pcard:hover { border-color: var(--gold2); box-shadow: 0 14px 34px rgba(20,33,58,0.10); transform: translateY(-3px); }
.pcard .media { position: relative; background: #fff; border-bottom: 1px solid var(--hline); aspect-ratio: 4 / 3; }
.pcard .media img { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); max-width: none; max-height: none; object-fit: contain; }
.pcard .media .ph-img { position: absolute; inset: 0; min-height: 0; }
.pcard .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pcard .brandline { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #8a6a1f; }
.pcard h3 { font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.pcard .meta { font-size: 13.5px; color: var(--gray); line-height: 1.55; }
.pcard .model { margin-top: auto; padding-top: 10px; font-size: 11.5px; font-weight: 700; color: var(--ink); letter-spacing: 0.4px; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 7px; }
.pcard .model i { color: var(--gold2); font-size: 11px; }

/* NOTE CARD — closes a category for anyone whose hardware is not on this page.
   No photo, so the body fills the card and the grid keeps the row height. */
.pcard.pcard-note { background: var(--paper); border-style: dashed; border-color: #d9d2c4; }
.pcard.pcard-note:hover { background: #fff; border-style: solid; border-color: var(--gold2); }
.pcard.pcard-note .body { padding: 32px 24px; gap: 11px; justify-content: center; }
.pcard.pcard-note > .body > i { font-size: 26px; color: var(--gold2); }
.pcard.pcard-note h3 { font-size: 17px; }
.pcard.pcard-note .model { text-transform: none; letter-spacing: 0.2px; font-size: 12.5px; color: var(--gold2); }

/* IMAGE PLACEHOLDER */
.ph-img { width: 100%; height: 100%; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: repeating-linear-gradient(45deg, #f7f4ee, #f7f4ee 10px, #f2eee5 10px, #f2eee5 20px); border-radius: 8px; color: #a9a08c; }
.ph-img i { font-size: 30px; color: #c3b89e; }
.ph-img span { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.phero-media .ph-img { min-height: 300px; }

/* FEATURED PANEL BLOCK */
.featured { background: var(--navy); color: #fff; border-radius: 14px; padding: 44px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.featured::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); }
.featured-media { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 28px; display: flex; align-items: center; justify-content: center; min-height: 280px; }
.featured-media img { max-width: 100%; max-height: 300px; width: auto; object-fit: contain; }
.featured .tagline { display: inline-flex; align-items: center; gap: 8px; background: rgba(240,165,0,0.14); border: 1px solid rgba(240,165,0,0.4); color: #f0c15a; padding: 5px 13px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.featured .tagline i { color: var(--gold); font-size: 11px; }
.featured h2 { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 36px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.06; margin-bottom: 10px; color: #fff; }
.featured .sub { color: #94a3b8; font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.featured p.lede { color: #cbd5e1; font-size: 15.5px; line-height: 1.7; margin-bottom: 22px; max-width: 58ch; }
.featured .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 18px; margin-bottom: 26px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; }
.featured .stat b { display: block; font-family: var(--font-display); font-size: 25px; font-weight: 900; color: var(--gold); line-height: 1; letter-spacing: -0.01em; }
.featured .stat span { display: block; font-size: 12px; color: #94a3b8; margin-top: 5px; line-height: 1.4; }
.featured .btn-gold { background: var(--gold); color: var(--ink); padding: 14px 26px; border-radius: 6px; text-decoration: none; font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; gap: 9px; transition: background 0.2s; }
.featured .btn-gold:hover { background: #ffb61f; }

/* CATEGORY HEADER within catalog */
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.cat-head i { font-size: 20px; color: var(--gold2); }
.cat-head h2 { font-family: var(--font-display); font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.cat-blurb { font-size: 15.5px; color: var(--gray); line-height: 1.6; margin-bottom: 26px; max-width: 70ch; }
.cat-block + .cat-block { margin-top: 56px; }

/* CTA */
.cta-section { background: var(--navy); color: #fff; text-align: center; }
.cta-section .section-title { color: #fff; }
.cta-section .section-sub { color: #94a3b8; margin-left: auto; margin-right: auto; }
.cta-phones { display: flex; gap: 22px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.cta-phone { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 16px 28px; text-decoration: none; color: #fff; transition: background 0.2s, border-color 0.2s; }
.cta-phone:hover { background: rgba(240,165,0,0.12); border-color: var(--gold); }
.cta-phone i { font-size: 20px; color: var(--gold); }
.cta-phone .phone-label { font-size: 12px; color: #94a3b8; }
.cta-phone .phone-num { font-size: 18px; font-weight: 700; }
.service-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.service-link { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); padding: 8px 18px; border-radius: 20px; color: #94a3b8; text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.service-link:hover { color: #fff; border-color: var(--gold); background: rgba(240,165,0,0.12); }

/* RELATED */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }

/* FOOTER */
footer { background: #060e1a; color: #64748b; padding: 32px 5%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; }
footer a { color: #64748b; text-decoration: none; }
footer a:hover { color: #94a3b8; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }

@media (max-width: 980px) {
  .phero { grid-template-columns: 1fr; gap: 36px; }
  .featured { grid-template-columns: 1fr; gap: 32px; padding: 34px; }
  .radio-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 768px) {
  section { padding: 56px 5%; }
  .nav-links { display: none; }
  .cat-hero { padding: 120px 5% 56px; }
  .section-title { font-size: 28px; }
  .crumbs { padding-top: 88px; }
  .phero-media::after { display: none; }
  table.specs td:first-child { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* WHY block (panel page) */
.why-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 52px; align-items: center; }
.why-media { background: #fff; border: 1px solid var(--hline); border-radius: 12px; padding: 30px; display: flex; align-items: center; justify-content: center; }
.why-media img { max-width: 100%; max-height: 330px; width: auto; object-fit: contain; display: block; }
@media (max-width: 980px) { .why-grid { grid-template-columns: 1fr; gap: 32px; } }
