/* Armstrong Security Guards Limited - Modern Minimalist Design */
/* Color Palette:
   Primary (Authority): Deep Charcoal (#1E2328)
   Secondary (Accent): Electric Blue (#0060E6)
   Background: Near White (#F7F8FA)
   Text: Dark Gray (#333333), Black (#000000)
   Compliance/Trust: Green (#33BB55)
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --primary-dark: #1e2328;
  --accent-blue: #0060e6;
  --bg-light: #f7f8fa;
  --text-dark: #333333;
  --text-black: #000000;
  --trust-green: #33bb55;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --border-light: #e5e7eb;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  font-weight: 400;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: var(--text-black);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Modern Button Styles */
.btn {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 96, 230, 0.2);
}

.btn-primary:hover {
  background-color: #0052cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 96, 230, 0.3);
  color: var(--white);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}

.btn-outline:hover {
  background-color: var(--accent-blue);
  color: var(--white);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

/* Header and Navigation */
.modern-header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.modern-topbar {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 6px 0;
  font-size: 13px;
}

.modern-nav {
  padding: 12px 0;
  position: relative;
}

.modern-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-black);
  text-decoration: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.modern-logo img {
  height: 45px;
  width: auto;
  margin-right: 20px;
  flex-shrink: 0;
}

.modern-logo .accent {
  color: var(--accent-blue);
}

.modern-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-black);
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: relative;
}

.mobile-menu-toggle:hover {
  color: var(--accent-blue);
}

.mobile-menu-toggle i {
  display: block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
}

.modern-nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.modern-nav-link:hover,
.modern-nav-link.active {
  color: var(--accent-blue);
}

.modern-nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-blue);
  transition: width 0.3s ease;
}

.modern-nav-link:hover::after,
.modern-nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.modern-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2a3038 100%);
  color: var(--white);
  padding: 30px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.modern-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.modern-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  opacity: 0.9;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.modern-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.modern-hero .subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
}

.modern-hero .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Feature Cards */
.modern-features {
  padding: 40px 0;
  background-color: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature-card {
  background-color: var(--white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-black);
}

.feature-card p {
  color: var(--text-dark);
  line-height: 1.6;
}

/* Services Section */
.modern-services {
  padding: 40px 0;
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.service-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-content {
  padding: 24px;
}

.service-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-black);
}

.service-card p {
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.5;
}

.service-icon {
  width: 64px;
  height: 64px;
  background-color: var(--accent-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-black);
  margin-bottom: 12px;
}

.service-description {
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
}

.service-link:hover {
  color: var(--primary-dark);
}

/* Stats Section */
.modern-stats {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 16px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Trust Section */
.modern-trust {
  padding: 30px 0;
  background-color: var(--white);
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: var(--bg-light);
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.trust-icon {
  width: 24px;
  height: 24px;
  color: var(--trust-green);
  font-size: 18px;
}

.trust-text {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 14px;
}

/* Footer */
.modern-footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .modern-nav-links {
    gap: 16px;
  }

  .modern-logo {
    font-size: 1.2rem;
  }

  .modern-logo img {
    height: 40px;
    margin-right: 18px;
  }

  /* K9 Page Grid for Tablets */
  .k9-content-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

@media (max-width: 768px) {
  .modern-topbar {
    padding: 4px 0;
    font-size: 12px;
  }

  .modern-topbar > .container > div {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .modern-nav {
    padding: 8px 0;
  }

  .modern-logo {
    font-size: 1.1rem;
  }

  .modern-logo img {
    height: 35px;
    margin-right: 16px;
  }

  .mobile-menu-toggle {
    display: block !important;
    color: var(--text-black) !important;
  }

  .modern-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px 0;
    z-index: 1000;
  }

  .modern-nav-links.mobile-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .modern-nav-links li {
    width: 100%;
    text-align: center;
    padding: 8px 0;
  }

  .modern-nav-links .btn {
    margin: 8px 20px;
    display: block;
    width: calc(100% - 40px);
  }

  .modern-nav-link {
    display: block;
    padding: 12px 20px;
    width: 100%;
  }

  /* K9 Page Grid Responsive Fix */
  .k9-content-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .modern-form {
    padding: 24px;
  }

  .modern-hero {
    padding: 25px 0;
  }

  .modern-hero h1 {
    font-size: 2.2rem;
  }

  .modern-hero .subtitle {
    font-size: 1rem;
  }

  .modern-hero .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-lg {
    width: 100%;
    max-width: 280px;
    padding: 14px 24px;
    font-size: 16px;
  }

  .modern-features,
  .modern-services {
    padding: 25px 0;
  }

  .feature-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }

  .feature-card {
    padding: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .trust-badges {
    gap: 16px;
  }

  .trust-badge {
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .modern-topbar div {
    font-size: 11px;
  }

  .modern-logo {
    font-size: 1rem;
  }

  .modern-logo img {
    height: 30px;
    margin-right: 12px;
  }

  .modern-hero {
    padding: 20px 0;
  }

  .modern-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .modern-hero .subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }

  .modern-features,
  .modern-services {
    padding: 20px 0;
  }

  .modern-stats {
    padding: 20px 0;
  }

  .modern-trust {
    padding: 20px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .trust-badges {
    flex-direction: column;
    gap: 12px;
  }

  /* Additional K9 Page Responsive Fixes */
  .k9-content-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 24px !important;
  }

  .modern-form {
    padding: 20px;
    margin-bottom: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.4rem;
  }
  h4 {
    font-size: 1.2rem;
  }
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent-blue);
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-white {
  background-color: var(--white);
}

.bg-dark {
  background-color: var(--primary-dark);
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mt-5 {
  margin-top: 3rem;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Form Styles */
.modern-form {
  background-color: var(--white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  box-sizing: border-box;
}

/* K9 Page Grid Layout */
.k9-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 96, 230, 0.1);
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-top: 2px solid var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Lead Capture Popup */
.lead-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 35, 40, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lead-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.lead-popup {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.lead-popup-overlay.show .lead-popup {
  transform: scale(1);
}

.lead-popup-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2a3038 100%);
  color: var(--white);
  padding: 24px;
  border-radius: 12px 12px 0 0;
  position: relative;
}

.lead-popup-header * {
  color: var(--white) !important;
}

.lead-popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.lead-popup-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.lead-popup-content {
  padding: 32px 24px 24px;
}

.lead-popup h2 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  color: var(--white);
}

.lead-popup-header h2 {
  color: var(--white) !important;
}

.lead-popup-header .subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
}

.lead-popup-header img {
  filter: brightness(1.1) contrast(1.1);
}

.lead-popup .subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.lead-popup-form {
  margin-top: 0;
}

.lead-popup-form .form-group {
  margin-bottom: 16px;
}

.lead-popup-form .form-control {
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 14px;
}

.lead-popup-form .form-control:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 96, 230, 0.1);
}

.lead-popup-form textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.lead-popup-benefits {
  background-color: var(--bg-light);
  padding: 16px;
  border-radius: 8px;
  margin: 20px 0;
}

.lead-popup-benefits h4 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: var(--text-black);
}

.lead-popup-benefits ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-dark);
}

.lead-popup-benefits li {
  margin-bottom: 4px;
}

.lead-popup-footer {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.lead-popup-footer .btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 14px;
}

.btn-secondary {
  background-color: var(--light-gray);
  color: var(--text-dark);
  border: 2px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--border-light);
  color: var(--text-black);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .lead-popup {
    margin: 20px;
    width: calc(100% - 40px);
  }

  .lead-popup-header {
    padding: 20px;
  }

  .lead-popup-content {
    padding: 24px 20px 20px;
  }

  .lead-popup-footer {
    flex-direction: column;
  }
}
