/* ============================================================
   THEME: Light Theme (Security / Fire Alarm)
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-surface: #f4f4f5;
  --bg-surface-hover: #e4e4e7;
  
  --accent: #d32f2f;
  --accent-hover: #b71c1c;
  --accent-light: rgba(211, 47, 47, 0.1);
  
  --text-main: #18181b;
  --text-muted: #52525b;
  --text-inverse: #ffffff;
  
  --border: #e4e4e7;
  --border-light: rgba(0, 0, 0, 0.08);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { cursor: pointer; background: none; border: 0; color: inherit; font-family: inherit; }
::selection { background: var(--accent); color: var(--text-inverse); }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 5%;
}
section { padding-block: var(--space-xl); }

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}
.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #ff5252 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(211, 47, 47, 0.25);
}
.badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1150px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all var(--transition);
}
.site-header.scrolled {
  top: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.3rem; 
  font-weight: 900;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}
.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 40px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.2);
}
.btn-primary:hover {
  background: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.btn-outline {
  border: 2px solid var(--border);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text-inverse);
}
.menu-toggle { display: none; font-size: 1.5rem; color: var(--text-main); }

@media (max-width: 900px) {
  .nav-links, .nav .btn-primary { display: none; }
  .menu-toggle { display: block; }
  .site-header { top: 12px; width: 95%; padding: 14px 20px; border-radius: var(--radius-lg); }
}

/* ---------- 6. Hero ---------- */
.hero {
  padding-top: 140px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.hero-title {
  font-size: clamp(3rem, 4.5vw, 4.5rem);
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 2px solid var(--border);
  background: var(--bg-surface);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 3s ease-out;
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: var(--space-md); }
  .hero-content { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
}

/* ---------- 7. Stats Banner ---------- */
.stats-wrapper {
  background: #18181b;
  color: var(--text-inverse);
  padding: 1.5rem 0;
  margin: var(--space-md) 0;
}
.stats-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.stat-box { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;}
.stat-icon { font-size: 2rem; color: var(--accent); }
.stat-label { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- 8. Products Grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: var(--space-md);
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; 
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 15px 35px rgba(211, 47, 47, 0.12);
  transform: translateY(-6px);
}

.product-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3; 
  overflow: hidden;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.08); 
}

.product-info {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
}

.product-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  transition: color var(--transition);
}

.product-card:hover .product-info h3 {
  color: var(--accent);
}

.explore-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .explore-link {
  opacity: 1;
  transform: translateX(0);
  background: var(--accent);
  color: var(--text-inverse);
}

@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-info { padding: 14px 12px; }
  .product-info h3 { font-size: 0.9rem; }
  .explore-link { display: none; }
}

/* ---------- 9. Seamless JS Brand Marquee ---------- */
.brand-marquee-container {
  width: 100%;
  overflow: hidden; 
  padding-block: var(--space-md);

  white-space: nowrap; 
  font-size: 0; 
}

.brand-marquee-track {
  display: inline-block;
  will-change: transform;
}

.brand-card {
  display: inline-flex;
  width: 250px; 
  aspect-ratio: 16 / 9; 
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  margin-right: 2rem; 
  vertical-align: top; 
}

.brand-card img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
}

/* ---------- 10. Location Grid (70% Map / 30% Info) ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  width: 100%;
  min-height: 450px; 
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.map-container {
  width: 100%;
  height: 100%;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.address-container {
  background: var(--bg-surface);
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
}

.address-text {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.address-text i {
  color: var(--accent);
  font-size: 1.4rem;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
  .map-container {
    height: 350px;
  }
  .address-container {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    align-items: center;
    text-align: center;
  }
}

/* ---------- 11. Footer ---------- */
.site-footer {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-md);
  background: var(--bg-surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-brand p { color: var(--text-muted); max-width: 350px; font-size: 0.95rem; }
.footer-title { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: var(--space-md); }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

/* Mobile Drawer Overlay */
.drawer {
  position: fixed; inset: 0; background: rgba(255,255,255,0.98); z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.drawer.active { opacity: 1; pointer-events: auto; }
.drawer-close { position: absolute; top: 24px; right: 24px; font-size: 2rem; color: var(--text-main); }
.drawer-nav { display: flex; flex-direction: column; gap: 32px; text-align: center; }
.drawer-nav a { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--text-main); }
/* --- Logo Images --- */
.site-logo {
  height: 40px; /* Adjust this number to make your header logo bigger or smaller */
  width: auto;
  display: block;
}

.footer-logo {
  height: 36px; /* Adjust this number to make your footer logo bigger or smaller */
  width: auto;
  display: block;
}

@media (max-width: 900px) {
  .site-logo {
    height: 32px; /* Makes the logo slightly smaller on mobile screens */
  }
}