/* ---- All Year Security — base styles ---- */

:root {
  --bg: #0a0e18;
  --bg-panel: #10162399;
  --bg-panel-solid: #101623;
  --bg-card: #141b2b;
  --text: #f4f7fb;
  --text-muted: #a9b4c4;
  --accent: #1d7fd1;
  --accent-light: #4db3ff;
  --accent-dark: #0b4f96;
  --gold: #f0ad4e;
  --border: rgba(255, 255, 255, 0.09);
  --radius: 14px;
  --max-width: 1180px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

section > .container > div ul:not([class]),
.grid-2 ul:not([class]) {
  color: var(--text-muted);
  padding-left: 1.2em;
  margin: 0 0 1em;
}

section > .container > div ul:not([class]) li {
  margin-bottom: 6px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 84px 0;
}

.section-tight {
  padding: 56px 0;
}

.eyebrow {
  color: var(--accent-light);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
  display: block;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  color: #fff;
  border: none;
  padding: 16px 30px;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary:hover {
  box-shadow: 0 10px 26px rgba(11, 79, 150, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-block {
  width: 100%;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 24, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 14, 24, 0.97);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  transition: padding 0.25s ease;
}

.site-header.is-scrolled .header-inner {
  padding: 10px 24px;
}

.logo img {
  height: 34px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.phone-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  padding: 120px 0 90px;
  background-size: cover;
  background-position: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 1.1rem;
  max-width: 520px;
  color: #d7deea;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Page header (non-home pages) ---- */

.page-header {
  padding: 150px 0 60px;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-header p {
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Cards / grids ---- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.service-card img {
  height: 56px;
  width: auto;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ---- Testimonials ---- */

.stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.testimonial-card p {
  color: var(--text);
  font-size: 0.93rem;
  flex-grow: 1;
}

.testimonial-name {
  font-weight: 700;
  color: var(--text);
  margin-top: auto;
}

/* ---- About / values ---- */

.value-card {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 32px;
}

.stat {
  min-width: 120px;
}

.stat strong {
  display: block;
  font-size: 2.1rem;
  color: var(--gold);
  font-weight: 800;
}

.stat span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- Pricing (alarms) ---- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.price-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow);
  position: relative;
  padding-top: 40px;
}

.badge-gold {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f6c977, var(--gold));
  color: #1a1204;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(240, 173, 78, 0.4);
  overflow: hidden;
  isolation: isolate;
}

.price-card .price {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 6px 0 4px;
}

.price-card .plan-name {
  color: var(--accent-light);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-grow: 1;
}

.price-card li {
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

.price-card li:first-child {
  border-top: none;
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin: 36px 0;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}

.detail-grid .card {
  padding: 22px 16px;
}

.detail-grid h4 {
  font-size: 0.85rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.detail-grid p {
  font-size: 0.88rem;
  margin: 0;
}

/* ---- FAQ ---- */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent-light);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 14px;
  margin-bottom: 0;
}

/* ---- Forms ---- */

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

input,
textarea {
  width: 100%;
  background: #0d1220;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-light);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.82rem;
  margin-top: 14px;
  color: var(--text-muted);
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-status.success {
  color: #4ade80;
  display: block;
}

.form-status.error {
  color: #f87171;
  display: block;
}

/* ---- CTA banner ---- */

.cta-banner {
  background: linear-gradient(135deg, #0d1a2e, #0a0e18);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
}

.cta-banner .eyebrow {
  color: var(--gold);
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 28px;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .grid-3,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(300px, 80vw);
    background: var(--bg-panel-solid);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 28px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    border-left: 1px solid var(--border);
  }
  .main-nav.open {
    transform: translateX(0);
  }
  .nav-links {
    flex-direction: column;
    gap: 20px;
  }
  .form-row.two,
  .grid-3,
  .pricing-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 56px 0;
  }
  .cta-banner {
    padding: 36px 24px;
  }
}

/* ---- Scroll reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
