/* =========================================================================
   Safe and Sound Security Systems, Inc. — Site Stylesheet
   Colors are approximated from the company shield logo (deep green +
   burgundy on cream). Swap the values in :root below with exact brand hex
   codes whenever you have them — every component references these
   variables, so the whole site restyles from one place.
   ========================================================================= */

:root {
  /* ---- Brand colors (approximated from logo — verify exact hex if needed) ---- */
  --color-green-900: #0f2f22;
  --color-green-800: #163c2b;
  --color-green-700: #1d4d38;
  --color-green-600: #235e43;
  --color-green-500: #2c7350;

  --color-maroon-700: #5c1830;
  --color-maroon-600: #7a2140;
  --color-maroon-500: #8f2749;
  --color-maroon-400: #a83a5c;

  --color-cream: #f6f2e7;
  --color-cream-dark: #ece5d2;
  --color-white: #ffffff;

  --color-ink: #1a2420;
  --color-ink-soft: #45524c;
  --color-border: #dcd6c4;

  /* ---- Semantic assignments ---- */
  --color-primary: var(--color-green-700);
  --color-primary-dark: var(--color-green-900);
  --color-primary-light: var(--color-green-600);
  --color-accent: var(--color-maroon-600);
  --color-accent-dark: var(--color-maroon-700);
  --color-accent-light: var(--color-maroon-400);

  --color-bg: var(--color-white);
  --color-bg-alt: var(--color-cream);
  --color-text: var(--color-ink);
  --color-text-muted: var(--color-ink-soft);

  --color-success: #2c7350;
  --color-error: #8f2749;

  /* ---- Typography ---- */
  --font-heading: 'Oswald', 'Arial Narrow', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  /* ---- Layout (sharper, more industrial edges than a typical soft SaaS radius scale) ---- */
  --container-max: 1200px;
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --notch: 18px; /* corner-notch size for the badge/shield motif — see .notched */
  --shadow-sm: 0 1px 0 rgba(15, 47, 34, 0.12);
  --shadow-md: 10px 10px 0 rgba(15, 47, 34, 0.08);
  --shadow-lg: 16px 16px 0 rgba(15, 47, 34, 0.10);
  --transition: 180ms ease;
}

/* =========================================================================
   Reset
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-primary-dark);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
h1 { font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--color-accent-light);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* =========================================================================
   Layout helpers
   ========================================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
/* Shield-corner notch — a recurring cut-corner motif echoing the logo's
   shield shape, used instead of soft rounded corners on cards/panels/CTAs */
.notched {
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}
.notched-sm {
  --notch: 10px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

.section { padding: 5rem 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-primary-dark);
  color: var(--color-cream);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-white); }
.section-head { max-width: 720px; margin: 0 0 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.section--dark .eyebrow { color: var(--color-accent-light); }

.grid {
  display: grid;
  gap: 2rem;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 600px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-sm); }
.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-primary-dark);
}
.btn--outline:hover { background: var(--color-primary-dark); color: var(--color-white); }
.section--dark .btn--outline,
.hero .btn--outline,
.page-hero .btn--outline { color: var(--color-white); }
.section--dark .btn--outline:hover,
.hero .btn--outline:hover,
.page-hero .btn--outline:hover { background: var(--color-white); color: var(--color-primary-dark); }
.btn--block { width: 100%; }
.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.75rem; letter-spacing: 0.02em; }

/* =========================================================================
   Header / Nav
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  row-gap: 0.5rem;
  flex-wrap: wrap;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}
.brand img {
  height: 48px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a[aria-current="page"] { color: var(--color-primary-dark); font-weight: 600; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  min-width: 260px;
  display: grid;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  white-space: nowrap;
}
.dropdown a:hover { background: var(--color-bg-alt); }
.dropdown a::after { display: none; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.header-phone {
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: 0.85rem;
}
.header-phone a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}
.header-phone span { color: var(--color-text-muted); font-size: 0.75rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-primary-dark);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    height: 100vh;
    width: min(320px, 85vw);
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: 6rem 1.5rem 2rem;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    z-index: 550;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--color-border); }
  .main-nav a::after { display: none; }
  .has-dropdown .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    display: none;
    padding: 0 0 0 1rem;
  }
  .has-dropdown.is-open .dropdown { display: grid; }
  .dropdown a { white-space: normal; }
  .main-nav { overflow-x: hidden; }
  /* The desktop hover/focus-within rule below has higher specificity than
     the .has-dropdown .dropdown reset above, so its leftover centering
     transform (translateX(-50%)) can win back on mobile when the trigger
     link gets focus from a tap — shifting the submenu left. Neutralize it
     explicitly at matching specificity. */
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    transform: none;
  }
  .nav-toggle { display: block; }
  .header-phone { display: none; }

  /* On mobile the header only shows logo + hamburger — the quote button
     moves inside the slide-out menu instead of forcing the header to wrap
     onto a second row. */
  .header-cta > a.btn--primary { display: none; }
  .main-nav-cta {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    border-bottom: none !important;
  }

  /* Dark scrim behind the slide-out menu — tap it to close */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 47, 34, 0.6);
    z-index: 540;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

@media (min-width: 961px) {
  .main-nav-cta, .nav-backdrop { display: none; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-green-500) 100%);
  color: var(--color-white);
  padding: 6rem 0;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(143, 39, 73, 0.35), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); color: var(--color-white); }
.hero p.lead { font-size: 1.15rem; color: var(--color-cream); max-width: 55ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-badges { display: flex; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--color-cream); }
.hero-badge svg { flex-shrink: 0; }
.hero-visual {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(6px);
}
.hero-visual h3 { color: var(--color-white); }
.hero-visual ul { display: grid; gap: 0.9rem; margin-top: 1rem; }
.hero-visual li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--color-cream); font-size: 0.95rem; }

.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  padding: 3.5rem 0 3rem;
}
.page-hero h1 { color: var(--color-white); margin-bottom: 0.5rem; }
.breadcrumbs { font-size: 0.85rem; color: var(--color-cream); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--color-cream); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs a:hover { color: var(--color-white); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* =========================================================================
   Cards
   ========================================================================= */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-primary-dark);
  border-radius: var(--radius-md);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.card:hover { transform: translate(-5px, -5px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px; height: 56px;
  --notch: 8px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  background: var(--color-primary-dark);
  color: var(--color-cream);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.15rem; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card-link svg { transition: transform var(--transition); }
.card:hover .card-link svg { transform: translateX(4px); }

.service-card { display: flex; flex-direction: column; }

/* =========================================================================
   Stats / Why us
   ========================================================================= */
.stats-bar {
  background: var(--color-primary-dark);
  border-top: 3px solid var(--color-accent);
  border-bottom: 3px solid var(--color-accent);
}
.stats-bar .grid { padding-block: 2.5rem; text-align: center; }
.stat h2 {
  font-family: var(--font-mono);
  color: var(--color-white);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-transform: none;
  letter-spacing: normal;
}
.stat p {
  color: var(--color-cream);
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-heading);
}

.feature-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.feature-row .icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  --notch: 9px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  background: var(--color-primary-dark);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
}
.feature-row h4 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.feature-row p { color: var(--color-text-muted); margin: 0; font-size: 0.92rem; }

/* =========================================================================
   CTA banner
   ========================================================================= */
.cta-banner {
  background: var(--color-accent);
  background: linear-gradient(120deg, var(--color-accent-dark), var(--color-accent));
  color: var(--color-white);
  border-radius: var(--radius-lg);
  --notch: 28px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--color-white); margin-bottom: 0.4rem; }
.cta-banner p { color: var(--color-cream); margin: 0; }
.cta-banner .btn--outline { color: var(--color-white); }
.cta-banner .btn--outline:hover { background: var(--color-white); color: var(--color-accent-dark); }

/* =========================================================================
   Testimonials
   ========================================================================= */
.testimonial {
  background: var(--color-white);
  border: 1px solid var(--color-primary-dark);
  border-radius: var(--radius-md);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.testimonial .stars { color: var(--color-accent); margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial p.quote { font-style: italic; color: var(--color-text); }
.testimonial .author { font-weight: 600; margin-top: 1rem; font-size: 0.9rem; color: var(--color-primary-dark); }
.testimonial .author span { display: block; font-weight: 400; color: var(--color-text-muted); font-size: 0.8rem; }

/* =========================================================================
   FAQ Accordion
   ========================================================================= */
.accordion { border-top: 1px solid var(--color-border); }
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.08rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-primary-dark);
}
.accordion-trigger .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform var(--transition);
}
.accordion-trigger[aria-expanded="true"] .plus { transform: rotate(45deg); background: var(--color-accent); color: var(--color-white); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms ease;
}
.accordion-panel-inner { padding-bottom: 1.5rem; color: var(--color-text-muted); }

/* =========================================================================
   Forms
   ========================================================================= */
.form-grid { display: grid; gap: 1.25rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .form-row-2 { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--color-primary-dark);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(122, 33, 64, 0.15);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-hint { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 0.3rem; }
.checkbox-row { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; color: var(--color-text-muted); }
.checkbox-row input { width: auto; margin-top: 0.2rem; }

.form-status {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { background: rgba(44, 115, 80, 0.12); color: var(--color-green-700); border: 1px solid var(--color-green-500); }
.form-status.error { background: rgba(143, 39, 73, 0.1); color: var(--color-accent-dark); border: 1px solid var(--color-accent); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--color-primary-dark);
  color: var(--color-cream);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand img { height: 44px; }
.footer-brand span { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; color: var(--color-white); font-size: 1.1rem; }
.site-footer p { color: rgba(246,242,231,0.75); font-size: 0.9rem; }
.footer-col h4 { color: var(--color-white); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { color: rgba(246,242,231,0.8); font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--color-white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(246,242,231,0.6);
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--color-accent); border-color: var(--color-accent); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   Scroll reveal
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================================
   Misc: badges, list checks, service icon strip
   ========================================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.75rem;
  font-weight: 600;
}
.check-list { display: grid; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.check-list li svg { flex-shrink: 0; color: var(--color-accent); margin-top: 3px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.image-frame {
  border-radius: var(--radius-lg);
  --notch: 24px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-primary-dark);
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}
/* Drop a same-named photo into the path below and it fills the frame,
   cropped to fit — no padding, no distortion, no code changes needed. */
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-icon-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.table-wrap { overflow-x: auto; }
table.coverage { width: 100%; border-collapse: collapse; }
table.coverage th, table.coverage td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
table.coverage th { color: var(--color-primary-dark); font-family: var(--font-heading); }
table.coverage tbody tr:hover { background: var(--color-bg-alt); }
table.coverage thead th { border-bottom: 2px solid var(--color-primary-dark); }

/* =========================================================================
   Scroll anchoring — offset for sticky header + subnav
   ========================================================================= */
[id] { scroll-margin-top: 132px; }

/* =========================================================================
   Hero background — solid color block, scan-line texture, and an angled
   accent wedge instead of a soft blended gradient (bolder, more "security
   monitor" than "SaaS landing page")
   ========================================================================= */
.hero {
  background-color: var(--color-primary-dark);
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 5px),
    linear-gradient(120deg, transparent 55%, rgba(143, 39, 73, 0.55) 55%, rgba(143, 39, 73, 0.55) 62%, transparent 62%);
}
.hero::before { display: none; } /* superseded by background-image above */

.hero-visual {
  position: relative;
}
.hero-visual::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 22px; height: 22px;
  border-top: 2px solid var(--color-accent-light);
  border-left: 2px solid var(--color-accent-light);
}
.hero-visual::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 22px; height: 22px;
  border-bottom: 2px solid var(--color-accent-light);
  border-right: 2px solid var(--color-accent-light);
}

.page-hero {
  position: relative;
  background-color: var(--color-primary-dark);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 5px);
  overflow: hidden;
  border-bottom: 3px solid var(--color-accent);
}
.page-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.page-hero-stats .badge {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: var(--color-white);
}

/* Soft wave divider between a hero and the section below it, for a less
   boxy transition than a hard color break */
.section-divider {
  display: block;
  width: 100%;
  height: 48px;
  margin-bottom: -1px;
}
.section-divider path { fill: var(--color-bg); }
.section--alt + .section-divider path,
.section-divider.on-alt path { fill: var(--color-bg-alt); }

/* =========================================================================
   In-page sub-navigation (service pages)
   ========================================================================= */
.subnav {
  position: sticky;
  top: 73px;
  z-index: 400;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.subnav-inner {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 0.95rem 0;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.subnav a:hover { color: var(--color-primary-dark); }
.subnav a.is-active { color: var(--color-primary-dark); border-color: var(--color-accent); }

@media (max-width: 720px) {
  .subnav { top: 0; }
}

/* =========================================================================
   Spec / feature deep-dive rows (icon-chip list, denser than feature-row)
   ========================================================================= */
.spec-block {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.spec-block:last-child { border-bottom: none; }
.spec-block .icon-chip {
  flex-shrink: 0;
  width: 40px; height: 40px;
  --notch: 7px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  background: var(--color-accent);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
}
.spec-block h4 { margin-bottom: 0.3rem; font-size: 1.02rem; }
.spec-block p { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; }

/* Gradient card icon (replaces flat card-icon look on service deep-dive pages) */
.card-icon--gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
}

/* =========================================================================
   Process timeline (Assess -> Design -> Install -> Support)
   ========================================================================= */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  position: relative;
  counter-reset: step;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--color-border);
}
.process-step { position: relative; text-align: center; }
.process-step .num {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  margin: 0 auto 1.25rem;
  --notch: 11px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  background: var(--color-accent);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.process-step h4 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.process-step p { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; }

@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr; gap: 2rem; }
  .process-steps::before { display: none; }
}

/* =========================================================================
   Integration ecosystem diagram (icons connected by a line)
   ========================================================================= */
.integration-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 0;
}
.integration-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: 150px;
  text-align: center;
}
.integration-node .icon-circle {
  width: 68px; height: 68px;
  --notch: 14px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  background: var(--color-primary-dark);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}
.integration-node:hover .icon-circle { transform: translate(-3px, -3px); }
.integration-node span {
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-primary-dark);
}
.integration-connector {
  flex: 0 0 44px;
  height: 2px;
  margin-top: 34px;
  background: repeating-linear-gradient(90deg, var(--color-accent) 0 6px, transparent 6px 12px);
}
@media (max-width: 720px) {
  .integration-connector { display: none; }
}

/* =========================================================================
   Tier / comparison cards (feature tiers, no pricing implied)
   ========================================================================= */
.tier-card {
  border: 1px solid var(--color-primary-dark);
  border-radius: var(--radius-md);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  padding: 2rem;
  background: var(--color-white);
  position: relative;
  height: 100%;
}
.tier-card.featured {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-md);
}
.tier-card.featured::before {
  content: 'Most Common';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tier-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.tier-card .check-list { margin-top: 1.25rem; }

/* =========================================================================
   Mini FAQ heading inside service pages (reuses .accordion styles)
   ========================================================================= */
.inline-faq-note { color: var(--color-text-muted); font-size: 0.9rem; margin-top: -1.5rem; margin-bottom: 2rem; }
