/* ============================================
   Narsingdi CCTV & Security Solutions — styles
   Easy to re-theme: adjust the variables below.
   ============================================ */

:root {
  --navy: #0b2e4f;
  --navy-dark: #071f38;
  --blue: #1a6fb0;
  --blue-light: #2f8fd6;
  --accent: #f5a623;
  --accent-dark: #d98c0f;
  --ink: #17242f;
  --gray: #5a6b78;
  --gray-light: #eef2f5;
  --border: #dfe6ea;
  --white: #ffffff;
  --success: #2e8b57;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(11, 46, 79, 0.10);
  --shadow-lg: 0 14px 40px rgba(11, 46, 79, 0.16);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-alt { background: var(--gray-light); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 14px; color: var(--navy-dark); }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 14px; color: var(--gray); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(26, 111, 176, 0.09);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head p { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--navy-dark); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); box-shadow: var(--shadow); }
.btn-call { background: var(--navy); color: var(--white); }
.btn-call:hover { background: var(--navy-dark); }
.btn-whatsapp { background: #25D366; color: #06340f; }
.btn-whatsapp:hover { background: #1ebd5a; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / Nav ---------- */
.top-bar {
  background: var(--navy-dark);
  color: #cfe1f0;
  font-size: 0.82rem;
  padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.top-bar a { color: #cfe1f0; }
.top-bar .top-links { display: flex; gap: 18px; }

header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--navy-dark); flex-shrink: 0; }
.brand .logo-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
}
.brand small { display: block; font-weight: 500; font-size: 0.7rem; color: var(--gray); letter-spacing: 0.03em; }

nav.main-nav { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; }
nav.main-nav a {
  font-weight: 600; font-size: 0.9rem; color: var(--ink);
  padding: 6px 2px; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--blue); border-color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.nav-toggle { display: none; }

.lang-toggle { display: flex; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; flex-shrink: 0; }
.lang-btn { border: none; background: white; color: var(--gray); font-weight: 700; font-size: 0.8rem; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.lang-btn.active { background: var(--navy); color: white; }

@media (max-width: 1320px) {
  nav.main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 280px;
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 90px 26px 26px; box-shadow: var(--shadow-lg); transition: right 0.25s ease; gap: 18px; }
  nav.main-nav.open { right: 0; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer;
    padding: 6px; z-index: 200;
  }
  .nav-toggle span { width: 26px; height: 3px; background: var(--navy-dark); border-radius: 3px; }
  .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 90; }
  .nav-backdrop.open { display: block; }

  /* On desktop the brand/tagline must not shrink so nav links don't wrap (see nav-wrap above).
     On narrow phones nav links are hidden in the drawer instead, so let the brand shrink and
     its text wrap normally — otherwise it forces the whole header (and page) to scroll sideways. */
  .brand { flex-shrink: 1; min-width: 0; }
  .brand > span { min-width: 0; }
}

@media (max-width: 420px) {
  .brand { font-size: 1rem; }
  .brand .logo-mark { width: 36px; height: 36px; font-size: 1rem; }
  .brand small { font-size: 0.62rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 55%, var(--blue));
  color: white;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(245,166,35,0.25), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: white; margin-bottom: 18px; }
.hero p.lead { color: #d9e6f2; font-size: 1.12rem; max-width: 520px; }
.hero-badges { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: #e7f0f9; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 16px; box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,0.15); }

/* ---------- Partner certification badge (Hikvision Gold Partner) ---------- */
.partner-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(120deg, #f5d67a, #d9a531);
  color: #4a3200; font-weight: 800; font-size: 0.85rem;
  padding: 8px 16px; border-radius: 30px; margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(217,165,49,0.35);
}
.hero-visual .partner-ribbon {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  background: linear-gradient(120deg, #f5d67a, #d9a531);
  color: #4a3200; font-weight: 800; font-size: 0.78rem;
  padding: 10px 16px; border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 6px;
  text-align: left; line-height: 1.25; max-width: 200px;
}
.partner-badge-inline {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(217,165,49,0.12); border: 1px solid rgba(217,165,49,0.4);
  color: #8a5f00; font-weight: 700; font-size: 0.85rem;
  padding: 7px 14px; border-radius: 20px;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 60px; text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .hero-badges, .cta-row { justify-content: center; }
  .partner-badge { margin-left: auto; margin-right: auto; }
}
@media (max-width: 500px) {
  .hero-visual .partner-ribbon { position: static; margin: 14px auto 0; max-width: none; justify-content: center; }
}

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--navy); color: white; padding: 30px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-grid .num { font-size: 1.9rem; font-weight: 800; color: var(--accent); }
.stats-grid .label { font-size: 0.85rem; color: #cfe1f0; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Mobile swipe slider (used for camera types / property types on phones) ---------- */
@media (max-width: 620px) {
  .mobile-slider {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    margin: 0 -20px;
    padding: 4px 20px 12px;
    scrollbar-width: none;
  }
  .mobile-slider::-webkit-scrollbar { display: none; }
  .mobile-slider > * {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}

.card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .card-body { padding: 20px; }
.card .card-img { aspect-ratio: 4/3; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; }

.icon-card { text-align: center; padding: 30px 22px; }
.icon-circle {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px;
  background: rgba(26,111,176,0.1); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}

/* ---------- Project cards ---------- */
.project-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag {
  font-size: 0.74rem; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  background: var(--gray-light); color: var(--navy); border: 1px solid var(--border);
}
.tag.blue { background: rgba(26,111,176,0.1); color: var(--blue); border-color: transparent; }
.project-meta { display: flex; flex-direction: column; gap: 4px; font-size: 0.86rem; color: var(--gray); margin: 10px 0 14px; }
.project-meta strong { color: var(--ink); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  padding: 8px 18px; border-radius: 20px; border: 1px solid var(--border); background: white;
  font-size: 0.86rem; font-weight: 600; cursor: pointer; color: var(--ink);
}
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 20px; background: white; border: 1px solid var(--border); border-radius: var(--radius); }
.step .step-num {
  position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--navy-dark); font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* ---------- Table ---------- */
table.simple-table { width: 100%; border-collapse: collapse; background: white; }
table.simple-table th, table.simple-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.92rem;
}
table.simple-table th { background: var(--gray-light); color: var(--navy-dark); }
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

/* ---------- Testimonials ---------- */
.quote-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.quote-card .stars { color: var(--accent); margin-bottom: 10px; }
.quote-card .who { font-weight: 700; margin-top: 10px; color: var(--navy-dark); }
.quote-card .who span { display: block; font-weight: 400; color: var(--gray); font-size: 0.85rem; }

/* ---------- Client logos ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; align-items: center; }
.logo-chip {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border: 1px solid var(--border); border-radius: 10px; background: white;
  font-weight: 700; color: var(--navy); font-size: 0.95rem; min-width: 160px;
}

/* ---------- Forms ---------- */
.form-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy-dark); }
.field .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.94rem; background: var(--gray-light);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); background: white; }
.field textarea { resize: vertical; min-height: 100px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-chip { border: 1px solid var(--border); border-radius: 20px; padding: 9px 16px; font-size: 0.86rem; cursor: pointer; background: var(--gray-light); }
.radio-chip input { width: auto; margin-right: 6px; }
.radio-chip:has(input:checked) { background: rgba(26,111,176,0.12); border-color: var(--blue); color: var(--blue); font-weight: 700; }
.form-note { font-size: 0.82rem; color: var(--gray); }
.form-success {
  display: none; background: rgba(46,139,87,0.1); border: 1px solid var(--success); color: #1f5f3d;
  padding: 16px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 600;
}
.form-success.show { display: block; }

/* ---------- Contact info cards ---------- */
.contact-info-card {
  display: flex; gap: 14px; align-items: flex-start; background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.contact-info-card .icon-circle { flex-shrink: 0; margin: 0; width: 46px; height: 46px; font-size: 1.2rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: white; text-align: center; border-radius: 16px; padding: 50px 30px; margin: 0 20px;
}
.cta-banner h2 { color: white; }
.cta-banner p { color: #d9e6f2; max-width: 560px; margin: 0 auto 24px; }
.cta-banner .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-dark); color: #c6d6e4; padding: 56px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; margin-bottom: 34px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .footer-grid { grid-template-columns: 1fr; } }
footer.site-footer h4 { color: white; font-size: 1rem; margin-bottom: 16px; }
footer.site-footer a { color: #c6d6e4; display: block; margin-bottom: 10px; font-size: 0.9rem; }
footer.site-footer a:hover { color: var(--accent); }
@media (max-width: 800px) {
  footer.site-footer { padding: 34px 0 18px; margin-top: 24px; }
  .footer-grid { gap: 20px 24px; margin-bottom: 20px; }
  footer.site-footer h4 { margin-bottom: 8px; font-size: 0.92rem; }
  footer.site-footer a { margin-bottom: 5px; font-size: 0.85rem; }
  footer.site-footer p { margin-bottom: 10px; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: white; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; text-align: center; font-size: 0.82rem; color: #8fa5b8; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  display: none; gap: 1px; background: var(--border);
}
.mobile-cta-bar a {
  flex: 1; text-align: center; padding: 14px 8px; font-weight: 700; font-size: 0.9rem;
}
.mobile-cta-bar .call { background: var(--navy); color: white; }
.mobile-cta-bar .wa { background: #25D366; color: #06340f; }
@media (max-width: 760px) { .mobile-cta-bar { display: flex; } body { padding-bottom: 54px; } }

/* ---------- Floating Call + WhatsApp bubbles (desktop/tablet — phones use the sticky bar above) ---------- */
.float-stack {
  position: fixed; bottom: 26px; right: 26px; z-index: 120;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.float-btn {
  width: 58px; height: 58px; border-radius: 50%; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease;
}
.float-btn:hover { transform: scale(1.08); }
.whatsapp-float { background: #25D366; }
.contact-float { background: var(--accent); color: var(--navy-dark); border: none; cursor: pointer; font-size: 1.5rem; }
@media (max-width: 760px) { .float-stack { display: none; } }

/* ---------- Quick contact modal (opened from the floating button) ---------- */
.modal-box-sm { max-width: 420px; }
.modal-box-sm .modal-body { padding: 28px 26px; }
.modal-box-sm h3 { margin-bottom: 6px; }
.modal-box-sm .form-note { margin-bottom: 16px; }

/* ---------- Quick inquiry mini-form (homepage hero) ---------- */
.quick-inquiry {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px; padding: 18px 20px; margin-top: 26px; backdrop-filter: blur(2px);
}
.quick-inquiry h3 { color: white; font-size: 1rem; margin-bottom: 12px; }
.quick-inquiry-row { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-inquiry-row input {
  flex: 1; min-width: 140px; padding: 11px 13px; border-radius: 8px; border: none;
  font-family: inherit; font-size: 0.9rem;
}
.quick-inquiry-row button { flex-shrink: 0; }
.quick-inquiry .form-note { color: #cfe1f0; font-size: 0.78rem; margin: 10px 0 0; }
.quick-inquiry .form-success { margin: 0; }
@media (max-width: 860px) { .quick-inquiry-row { flex-direction: column; } .quick-inquiry-row button { width: 100%; } }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: white; padding: 54px 0; text-align: center;
}
.page-header h1 { color: white; margin-bottom: 8px; }
.page-header p { color: #d9e6f2; max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: 0.82rem; color: #a9c2d8; margin-bottom: 12px; }
.breadcrumb a { color: #d9e6f2; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--gray); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.badge-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.badge-list li { display: flex; gap: 10px; align-items: flex-start; }
.badge-list li::before { content: "✔"; color: var(--success); font-weight: 800; flex-shrink: 0; }

.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* Modal for project detail */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(7,31,56,0.7); z-index: 300;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white; border-radius: 14px; max-width: 720px; width: 100%; max-height: 88vh; overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,0.5); color: white; border: none;
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; z-index: 2;
}
.modal-box .modal-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.modal-media video { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.modal-thumbs { display: flex; gap: 8px; padding: 12px 26px 0; overflow-x: auto; }
.modal-thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.6; border: 2px solid transparent; flex-shrink: 0; }
.modal-thumbs img:hover { opacity: 0.85; }
.modal-thumbs img.active { opacity: 1; border-color: var(--blue); }
.modal-box .modal-body { padding: 26px; }
