/* CSS Variables */
:root {
  --primary-red: #e31e24;
  --dark-bg: #0b1220;
  --card-surface: #0f172a;
  --muted-grey: #94a3b8;
  --white: #ffffff;
  --light-grey: #f8fafc;
  --border-color: #1e293b;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --success-green: #10b981;
  --warning-orange: #f59e0b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(11, 18, 32, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

.logo-image {
  height: 120px;
  width: auto;
  object-fit: contain;
}

.logo-text h2 {
  color: var(--primary-red);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: -2px;
}

.logo-text span {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -8px;
  left: 0;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-red);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.phone-cta:hover {
  background: #c41e22;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 3px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--primary-red);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

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

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: #c41e22;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  transform: translateY(-2px);
}

.hero-card {
  animation: fadeInRight 1s ease-out;
}

.monitoring-card {
  background: var(--card-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--success-green);
  font-weight: 600;
  font-size: 0.9rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-green);
  animation: pulse 2s infinite;
}

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

.camera-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.camera-view {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.camera-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.monitoring-stats {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-red);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Services Section */
.services {
  padding: 80px 0;
  background: var(--card-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

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

.service-card {
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-red);
  box-shadow: 0 10px 30px rgba(227, 30, 36, 0.2);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-red) 0%, #c41e22 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card>p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: bold;
}

/* Projects Section */
.projects {
  padding: 80px 0;
  background: var(--dark-bg);
}

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

.project-card {
  background: var(--card-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.project-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-details {
  display: flex;
  gap: 1rem;
}

.project-type,
.project-location {
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
}

.project-type {
  background: rgba(227, 30, 36, 0.1);
  color: var(--primary-red);
  border: 1px solid rgba(227, 30, 36, 0.2);
}

.project-location {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Why Us Section */
.why-us {
  padding: 80px 0;
  background: var(--card-surface);
}

.why-us-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: start;
}

.why-us-text h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.why-us-text>p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.check-icon {
  width: 24px;
  height: 24px;
  background: var(--success-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.benefit-item span {
  color: var(--text-secondary);
  font-weight: 500;
}

/* CRM Form Container - Ready for Custom Form Embedding */
.crm-form-container {
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.crm-form-container h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-red);
}


/* CRM Button Styles */
.crm-button {
  text-decoration: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.crm-button:hover {
  border-color: var(--primary-red);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(227, 30, 36, 0.15);
  background: linear-gradient(145deg, var(--dark-bg), #1a2235);
}

.form-placeholder-button {
  text-align: center;
  width: 100%;
  z-index: 1;
}

.crm-button h3 {
  transition: color 0.3s ease;
}

.crm-button:hover h3 {
  color: var(--primary-red);
}

.crm-button-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.crm-button-icon {
  width: 80px;
  height: 80px;
  background: rgba(227, 30, 36, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-red);
  transition: all 0.4s ease;
  border: 1px solid rgba(227, 30, 36, 0.2);
}

.crm-button:hover .crm-button-icon {
  background: var(--primary-red);
  color: white;
  transform: scale(1.1) rotate(-10deg);
  box-shadow: 0 0 20px rgba(227, 30, 36, 0.4);
}

.crm-cta-text {
  display: block;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.crm-button:hover .crm-cta-text {
  color: white;
  letter-spacing: 2px;
}

/* CRM Form Styling - Inherits brand theme when form is embedded */
.crm-form-container form {
  width: 100%;
}

.crm-form-container input,
.crm-form-container select,
.crm-form-container textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  background: var(--card-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.crm-form-container input:focus,
.crm-form-container select:focus,
.crm-form-container textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}

.crm-form-container input::placeholder,
.crm-form-container textarea::placeholder {
  color: var(--text-muted);
}

.crm-form-container button,
.crm-form-container input[type="submit"] {
  background: var(--primary-red);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.crm-form-container button:hover,
.crm-form-container input[type="submit"]:hover {
  background: #c41e22;
  transform: translateY(-2px);
}

/* FAQ Section */
.faq {
  padding: 80px 0;
  background: var(--dark-bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(227, 30, 36, 0.3);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: rgba(227, 30, 36, 0.05);
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-red);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 200px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.footer {
  background: var(--card-surface);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-logo h3 {
  color: var(--primary-red);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-address h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-address address {
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.6;
}

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

.footer-column h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--primary-red);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  text-align: center;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .why-us-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(11, 18, 32, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .phone-cta {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .phone-cta span:last-child {
    display: none;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .services,
  .projects,
  .why-us,
  .faq {
    padding: 60px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .camera-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    justify-content: center;
  }

  .logo {
    gap: 0.75rem;
  }

  .logo-image {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .header-content {
    height: 70px;
  }

  .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .hero {
    padding: 90px 0 50px;
  }

  .monitoring-card {
    padding: 1rem;
  }

  .crm-form-container {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

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

  .project-details {
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo-image {
    height: 90px;
  }
}

/* Partner Badge Styles */
.partner-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.service-card:hover .partner-badge {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.partner-icon {
  color: #fbbf24;
  /* Amber/Gold color */
  font-size: 0.9rem;
}

/* Bento Grid Styles for Ajax Page */
.ajax-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.5rem;
  margin: 3rem 0;
}

.bento-item {
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-red);
}

.bento-content {
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

.bento-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: white;
}

.bento-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.bento-image-placeholder {
  width: 100%;
  height: 100%;
  background-size: contain;
  /* Changed to contain to show full product */
  background-repeat: no-repeat;
  background-position: center;
  background-color: #000;
  /* Black background to match product shots */
  transition: transform 0.5s ease;
}

.bento-item:hover .bento-image-placeholder {
  transform: scale(1.05);
}

/* Specific Grid Placements */
.bento-large-vertical {
  grid-column: span 4;
  grid-row: span 2;
}

.bento-medium {
  grid-column: span 5;
  /* Adjusted for aesthetic balance */
  grid-row: span 1;
}

.bento-small {
  grid-column: span 3;
  /* Adjusted for aesthetic balance */
  grid-row: span 1;
}

/* Specific card adjustments based on the screenshot layout logic */
/* Row 1 */
.intrusion-card {
  grid-column: span 4;
  grid-row: span 2;
  /* Tall vertical on left */
}

.video-card {
  grid-column: span 5;
  grid-row: span 1;
  /* Wide on top middle */
}

.control-card {
  grid-column: span 3;
  grid-row: span 1;
  /* Small on top right */
}

/* Row 2 (under video/control) */
.automation-card {
  grid-column: span 4;
  /* Middle block */
  grid-row: span 1;
}

.hub-card {
  grid-column: span 4;
  /* Right block */
  grid-row: span 1;
}

/* Row 3 (Full width grid or bottom items) */
.fire-card {
  grid-column: span 6;
  grid-row: span 1;
}

.siren-card {
  grid-column: span 6;
  grid-row: span 1;
}


/* Responsive */
@media (max-width: 900px) {
  .ajax-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on tablet */
  }

  .bento-large-vertical,
  .bento-medium,
  .bento-small,
  .intrusion-card,
  .video-card,
  .control-card,
  .automation-card,
  .hub-card,
  .fire-card,
  .siren-card {
    grid-column: span 1;
    grid-row: span 1;
  }

  .intrusion-card {
    grid-column: span 2;
    /* Make intrusion full width or keep half */
    height: 300px;
    /* Force height if needed */
  }

  .fire-card,
  .siren-card {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .ajax-bento-grid {
    grid-template-columns: 1fr;
    /* 1 column on mobile */
  }

  .intrusion-card,
  .fire-card,
  .siren-card {
    grid-column: span 1;
  }
}