/* === Base & Reset === */
:root {
  --navy: #0a192f;
  --navy-light: #112240;
  --amber: #f6b93b;
  --amber-dark: #d4a017;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --text: #212529;
  --shadow: 0 10px 30px rgba(10,25,47,.12);
  --radius: 14px;
  --transition: .25s ease;
  --max-width: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 92%; max-width: var(--max-width); margin: 0 auto; }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--navy);
}
.logo-img { height: 34px; width: auto; display: block; }
@media (max-width: 768px) { .logo-img { height: 28px; } }
.logo-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  display: grid; place-items: center; color: var(--navy); font-weight: 900;
}
.main-nav { display: flex; gap: 32px; }
.main-nav a {
  font-weight: 600; font-size: .95rem; color: var(--gray-800);
  position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--amber); transition: var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--white); padding: 10px 18px;
  border-radius: 50px; font-weight: 700; font-size: .9rem;
  transition: var(--transition);
}
.header-cta:hover { background: var(--amber); color: var(--navy); }
.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
}
.mobile-menu-btn span {
  display: block; width: 26px; height: 3px; background: var(--navy);
  margin: 5px 0; border-radius: 2px; transition: var(--transition);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(10,25,47,.92) 35%, rgba(10,25,47,.65) 100%),
    url("../assets/img/products/hero-emergency-lighting.jpg") center/cover no-repeat;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(246,185,59,.15); color: var(--amber);
  padding: 6px 14px; border-radius: 50px; font-size: .85rem; font-weight: 700;
  margin-bottom: 20px; border: 1px solid rgba(246,185,59,.25);
}
.hero h1 {
  color: var(--white); font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1; margin: 0 0 22px;
}
.hero h1 span { color: var(--amber); }
.hero p {
  color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 600px; margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 50px; font-weight: 700;
  transition: var(--transition); border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* === Trust bar === */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
}
.trust-item {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: .95rem; color: var(--navy);
}
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 28px;
  background: var(--navy); color: var(--amber);
  border-radius: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .4px;
}
@media (max-width: 768px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .trust-item { justify-content: flex-start; }
}

/* === Section general === */
.section { padding: 90px 0; }
.section-alt { background: var(--gray-50); }
.section-head {
  text-align: center; max-width: 760px; margin: 0 auto 56px;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 14px; color: var(--navy); }
.section-head p { color: var(--gray-600); font-size: 1.08rem; margin: 0; }

/* === Stats bar === */
.stats-bar {
  background: var(--navy-light); color: var(--white); padding: 46px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat-number { font-size: 2.4rem; font-weight: 800; color: var(--amber); }
.stat-label { font-size: .95rem; color: rgba(255,255,255,.75); }

/* === Categories === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.category-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition); cursor: pointer;
  border: 1px solid var(--gray-200);
}
.category-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10,25,47,.16); }
.category-card img { width: 100%; height: 220px; object-fit: cover; }
.category-body { padding: 24px; }
.category-body h3 { margin: 0 0 10px; font-size: 1.15rem; color: var(--navy); }
.category-body p { margin: 0; font-size: .92rem; color: var(--gray-600); line-height: 1.55; }
.category-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-weight: 700; font-size: .9rem; color: var(--navy);
}
.category-link svg { width: 16px; height: 16px; }

/* === Products === */
.product-toolbar {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 38px;
}
.filter-btn {
  padding: 9px 18px; border-radius: 50px; border: 1px solid var(--gray-200);
  background: var(--white); color: var(--gray-800); font-weight: 600; cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--gray-100);
  display: flex; flex-direction: column; transition: var(--transition);
}
.product-card:hover { transform: translateY(-4px); }
.product-img-wrap { position: relative; background: var(--gray-50); height: 220px; overflow: hidden; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: var(--transition); }
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.product-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--amber); color: var(--navy);
  font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 50px;
}
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--navy); }
.product-body h3 a { color: inherit; }
.product-body h3 a:hover { color: var(--amber-dark); }
.product-body .model { font-size: .8rem; color: var(--gray-600); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.product-specs {
  margin: 12px 0 0; font-size: .85rem; color: var(--gray-600); line-height: 1.6;
}
.product-specs li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--gray-200); }
.product-specs span:first-child { color: var(--gray-800); font-weight: 600; }
.product-actions { margin-top: auto; padding-top: 16px; display: flex; gap: 10px; }
.btn-sm { padding: 9px 14px; font-size: .85rem; border-radius: 8px; }
.btn-ghost { background: var(--gray-100); color: var(--navy); }
.btn-ghost:hover { background: var(--gray-200); }

/* === Why us === */
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.why-card {
  background: var(--white); padding: 30px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center; border-top: 4px solid var(--amber);
}
.why-icon {
  width: 56px; height: 56px; margin: 0 auto 18px;
  background: rgba(246,185,59,.12); border-radius: 14px;
  display: grid; place-items: center; color: var(--amber-dark);
}
.why-card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--navy); }
.why-card p { margin: 0; font-size: .9rem; color: var(--gray-600); }

/* === About === */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media:has(.about-carousel)::before { display: none; }
.about-content h2 { margin-top: 0; }
.about-content p { color: var(--gray-600); }
.about-list { margin-top: 22px; }
.about-list li {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px;
  color: var(--gray-800); font-weight: 500;
}
.check { color: var(--amber-dark); font-weight: 900; }

/* === About Carousel === */
.about-carousel {
  position: relative; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow);
  background: #000;
}
.about-carousel-track {
  display: flex; width: 100%; height: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.about-carousel-slide {
  flex: 0 0 100%; width: 100%; position: relative;
  aspect-ratio: 4 / 5; background: #000;
}
.about-carousel-slide img {
  width: 100%; height: 100%; object-fit: contain;
  display: block; border-radius: 0; box-shadow: none;
}
.about-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.85); color: var(--navy, #0b2545);
  border: 0; width: 38px; height: 38px; border-radius: 50%;
  font-size: 22px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: background .2s, transform .2s;
  z-index: 2;
}
.about-carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.about-carousel-btn.prev { left: 10px; }
.about-carousel-btn.next { right: 10px; }
.about-carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 8px; z-index: 2;
}
.about-carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.55); border: 0;
  cursor: pointer; padding: 0; transition: background .2s, transform .2s;
}
.about-carousel-dots button.active { background: #fff; transform: scale(1.3); }
@media (max-width: 760px) {
  .about-carousel-slide { aspect-ratio: 3 / 4; }
  .about-carousel-btn { width: 32px; height: 32px; font-size: 18px; }
}

/* === Inquiry === */
.inquiry-wrap {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 48px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px;
}
.inquiry-info h3 { margin-top: 0; color: var(--navy); font-size: 1.5rem; }
.inquiry-info p { color: var(--gray-600); }
.contact-list { margin-top: 28px; }
.contact-list li { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--gray-800); }
.contact-list .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--gray-100); display: grid; place-items: center; }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--gray-800); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-200);
  border-radius: 10px; font-family: inherit; font-size: .95rem;
  transition: var(--transition); background: var(--gray-50);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); background: var(--white); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--gray-600); margin-top: 12px; }

/* === WhatsApp float === */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 1100;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.35);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* === Footer === */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,.7); padding: 70px 0 26px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); margin: 0 0 18px; font-size: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,.7); margin-bottom: 10px; font-size: .92rem; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; font-size: .85rem;
}

/* === Modal === */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,25,47,.7);
  display: none; align-items: center; justify-content: center; z-index: 1200;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius); width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-header { padding: 22px 26px; border-bottom: 1px solid var(--gray-200); }
.modal-header h3 { margin: 0; color: var(--navy); }
.modal-close {
  position: absolute; top: 18px; right: 20px; background: none; border: none;
  font-size: 1.6rem; cursor: pointer; color: var(--gray-600);
}
.modal-body { padding: 26px; }

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

/* === Responsive === */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .mobile-menu-btn { display: block; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--white);
    padding: 20px; box-shadow: var(--shadow); gap: 16px;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid, .why-grid { grid-template-columns: 1fr; }
  .about-grid, .inquiry-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
