/* ============================================
   Security Systems & More — Styles
   Modern, responsive, professional
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2640;
  --primary-light: #2a5a8c;
  --accent: #e8a220;
  --accent-dark: #c78510;
  --dark: #111827;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --error: #dc2626;
  --success: #16a34a;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-light);
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--dark);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

/* --- Site Header --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-icon {
  font-size: 1.75rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.025em;
}

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--gray-100);
}

.nav-cta {
  background: var(--accent);
  color: var(--dark) !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent-dark);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--accent-dark);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
}

.mobile-menu-btn:hover {
  background: var(--gray-100);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero with Background Image --- */
.hero {
  position: relative;
  background: var(--primary-dark);
  color: var(--white);
  padding: 0;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,30,55,0.88) 0%, rgba(26,58,92,0.75) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.hero-content {
  max-width: 680px;
  background: none;
  padding: 0;
  border-radius: 0;
}

.hero-heading {
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
  font-size: clamp(1.875rem, 5vw, 3rem);
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--gray-100);
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.trust-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
}

.trust-logo {
  font-weight: 700;
  color: var(--gray-600);
  font-size: 0.9375rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.trust-logo:hover {
  opacity: 1;
}

/* --- Section Headings --- */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

/* --- Problem Section --- */
.problem-section {
  padding: 5rem 0;
  background: var(--white);
}

.problem-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.problem-text p {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.problem-highlight {
  font-size: 1.25rem !important;
  font-weight: 600;
  color: var(--primary);
  padding: 1rem 1.5rem;
  background: var(--gray-100);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

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

.stat-box {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--gray-100);
  border-radius: var(--radius);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* --- Process Section --- */
.process-section {
  padding: 5rem 0;
  background: var(--gray-100);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.process-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.process-card h3 {
  margin-bottom: 0.75rem;
}

/* --- Differentiators --- */
.diff-section {
  padding: 5rem 0;
  background: var(--white);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.diff-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.diff-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.diff-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.diff-card h3 {
  margin-bottom: 0.75rem;
}

/* --- Testimonials --- */
.testimonials-section {
  padding: 5rem 0;
  background: var(--gray-100);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.125rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
}

/* --- CTA Section --- */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto 1rem;
  opacity: 0.9;
}

.cta-sub {
  font-weight: 600;
  font-size: 1.125rem !important;
  margin-bottom: 2rem !important;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* --- Page Hero --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero-heading {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero-sub {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Content Section --- */
.content-section {
  padding: 4rem 0;
}

.content-section.alt-bg {
  background: var(--gray-100);
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h2 {
  margin-bottom: 1.5rem;
}

.content-block p {
  font-size: 1.0625rem;
  line-height: 1.75;
}

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

.center-text p {
  margin: 0 auto 1.5rem;
}

/* --- Service Block --- */
.service-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.service-block.reverse {
  direction: rtl;
}

.service-block.reverse > * {
  direction: ltr;
}

.service-icon {
  font-size: 3rem;
  line-height: 1;
}

.service-content h2 {
  margin-bottom: 0.5rem;
}

.service-lead {
  font-size: 1.125rem !important;
  font-weight: 600;
  color: var(--primary) !important;
  margin-bottom: 1.25rem !important;
}

.service-list {
  margin: 1rem 0 1.5rem 1.25rem;
}

.service-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

/* --- Client Logos --- */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.client-logos .trust-logo {
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.contact-form-wrapper h2,
.contact-info-wrapper h3 {
  margin-bottom: 0.75rem;
}

.contact-form-wrapper > p {
  margin-bottom: 1.5rem;
  color: var(--gray-600);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--gray-700);
}

.required {
  color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--gray-400);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-900);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--gray-100);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.contact-info-card {
  background: var(--gray-100);
  padding: 1.75rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gray-900);
}

.service-areas .area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.service-areas .area-list span {
  background: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  border: 1px solid var(--gray-200);
}

.quick-actions .btn {
  margin-bottom: 0.75rem;
}

.quick-actions .btn:last-child {
  margin-bottom: 0;
}

/* --- Map Section --- */
.map-section {
  padding: 4rem 0;
  background: var(--gray-100);
}

.map-section h2 {
  text-align: center;
  margin-bottom: 0.75rem;
}

.map-section > .container > p {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--gray-600);
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* --- Site Footer --- */
.site-footer {
  background: var(--dark);
  color: var(--gray-400);
  padding-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-logo .logo-text {
  color: var(--white);
}

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.footer-contact a {
  color: var(--gray-400);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.875rem;
}

/* --- Mobile Menu --- */
@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    padding: 1rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
  }

  .header-phone {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .problem-stats {
    grid-template-columns: 1fr;
  }

  .service-block {
    grid-template-columns: 1fr;
  }

  .service-block.reverse {
    direction: ltr;
  }

  .service-icon {
    font-size: 2.5rem;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
