/* ============================================================
   style.css — cctvdealers.in Frontend (Matches Reference Design)
   Primary: #c9920a (golden-orange) | Dark: #1a1a1a | Cream: #f5f0e8
   ============================================================ */

:root {
  --primary:       #c9920a;
  --primary-dark:  #a87708;
  --primary-light: #e6a810;
  --primary-pale:  #fdf6e3;
  --dark:          #1a1a1a;
  --dark2:         #2c2c2c;
  --cream:         #f5f0e8;
  --cream2:        #ede8dc;
  --text:          #1a1a1a;
  --muted:         #666;
  --border:        #e0e0e0;
  --white:         #ffffff;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.08);
  --shadow:        0 6px 24px rgba(0,0,0,.12);
  --radius:        10px;
  --radius-sm:     6px;
}

/* ── Bootstrap overrides ──────────────────────────────────── */
.btn-primary         { background:var(--primary)!important; border-color:var(--primary)!important; color:#fff!important; }
.btn-primary:hover   { background:var(--primary-dark)!important; border-color:var(--primary-dark)!important; }
.btn-outline-primary { color:var(--primary)!important; border-color:var(--primary)!important; background:transparent!important; }
.btn-outline-primary:hover { background:var(--primary)!important; color:#fff!important; }
.text-primary  { color:var(--primary)!important; }
.bg-primary    { background:var(--primary)!important; }
.border-primary{ border-color:var(--primary)!important; }
.badge.bg-primary { background:var(--primary)!important; }
.badge.bg-warning  { background:var(--primary)!important; color:#fff!important; }
.text-warning  { color:var(--primary)!important; }
.bg-warning    { background:var(--primary)!important; color:#fff!important; }
.btn-warning   { background:var(--primary)!important; border-color:var(--primary)!important; color:#fff!important; }
a              { color:var(--primary); text-decoration:none; }
a:hover        { color:var(--primary-dark); }
.form-control:focus,.form-select:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(201,146,10,.15); }
.page-item.active .page-link { background:var(--primary)!important; border-color:var(--primary)!important; }
.page-link { color:var(--primary)!important; }
.dropdown-item:hover,.dropdown-item:focus { background:var(--primary-pale); color:var(--primary); }
.accordion-button:not(.collapsed) { background:var(--primary-pale); color:var(--primary); box-shadow:none; }
.form-check-input:checked { background-color:var(--primary)!important; border-color:var(--primary)!important; }

/* ── Base ────────────────────────────────────────────────── */
*    { box-sizing:border-box; }
body { font-family:'Segoe UI',system-ui,-apple-system,sans-serif; color:var(--text); background:#fff; line-height:1.65; }
.x-small { font-size:.72rem; }
.section-header::after { content:''; display:block; width:48px; height:4px; background:var(--primary); border-radius:3px; margin:8px auto 0; }

/* ════════════════════════════════════════════════════════════
   TOPBAR
   ════════════════════════════════════════════════════════════ */
.topbar { background:var(--dark)!important; font-size:.82rem; border-bottom:2px solid var(--primary); }
.topbar a { color:#bbb!important; text-decoration:none; }
.topbar a:hover { color:var(--primary-light)!important; }

/* ════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════ */
.navbar { background:#fff!important; box-shadow:0 2px 12px rgba(0,0,0,.08); border-bottom:3px solid var(--primary); }
.nav-link { font-weight:500; color:var(--dark)!important; font-size:.92rem; border-radius:5px; padding:.45rem .8rem!important; transition:all .15s; }
.nav-link:hover { color:var(--primary)!important; background:var(--primary-pale); }
.dropdown-menu { border:0; box-shadow:0 8px 24px rgba(0,0,0,.12); border-radius:var(--radius); border-top:3px solid var(--primary); }

/* ════════════════════════════════════════════════════════════
   HERO SECTION — Dark city with overlay (Image 1)
   ════════════════════════════════════════════════════════════ */
.hero-dark-bg {
  background: linear-gradient(to right, rgba(10,10,10,.96) 0%, rgba(20,20,20,.9) 55%, rgba(30,30,30,.75) 100%),
              url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1600&q=80') center/cover no-repeat;
  min-height: 85vh;
}
.min-vh-hero { min-height: 70vh; }

/* Hero text */
.hero-sub-label { color:rgba(255,255,255,.75); font-size:1.05rem; font-weight:500; letter-spacing:.02em; margin-bottom:.5rem; }
.hero-divider   { width:60px; height:2px; background:#fff; margin-bottom:1.5rem; }
.hero-headline  { font-size:clamp(2.4rem,5vw,4rem); font-weight:900; color:#fff; line-height:1.1; margin-bottom:1.2rem; letter-spacing:-.02em; }
.hero-body-text { color:rgba(255,255,255,.75); font-size:1rem; line-height:1.7; }
.btn-hero-primary { background:var(--primary); border:2px solid var(--primary); color:#fff; padding:.7rem 1.8rem; font-weight:700; border-radius:6px; font-size:1rem; transition:all .2s; }
.btn-hero-primary:hover { background:var(--primary-dark); border-color:var(--primary-dark); color:#fff; transform:translateY(-2px); }
.btn-hero-outline { background:transparent; border:2px solid rgba(255,255,255,.5); color:#fff; padding:.7rem 1.8rem; font-weight:600; border-radius:6px; font-size:1rem; transition:all .2s; }
.btn-hero-outline:hover { border-color:#fff; background:rgba(255,255,255,.08); color:#fff; }

/* Hero form card */
.hero-form-card  { border-radius:12px; overflow:hidden; box-shadow:0 16px 48px rgba(0,0,0,.4); }
.hero-form-header{ background:var(--primary); color:#fff; padding:1.1rem 1.5rem; }
.hero-form-body  { background:#fff; padding:1.5rem; }

/* ════════════════════════════════════════════════════════════
   STATS + FEATURES (Image 2)
   ════════════════════════════════════════════════════════════ */
.big-stat-number  { font-size:4rem; font-weight:900; color:var(--primary); line-height:1; }
.big-stat-label   { font-size:1.1rem; font-weight:700; color:var(--dark); margin-top:.3rem; }
.big-stat-divider { width:50px; height:3px; background:var(--dark); margin:.8rem 0; }
.big-stat-sub     { font-size:.9rem; color:var(--muted); }
.features-headline { font-size:clamp(1.6rem,3vw,2.4rem); font-weight:900; color:var(--dark); line-height:1.2; }
.features-divider  { width:50px; height:3px; background:var(--dark); margin:.4rem 0; }
.feature-check-item { display:flex; align-items:flex-start; gap:.6rem; font-size:.95rem; color:var(--dark); padding:.35rem 0; }
.feature-check-icon { color:#28a745; font-size:1.2rem; flex-shrink:0; margin-top:.1rem; }
.feature-check-icon .fa-check-square { color:#28a745; }

/* ════════════════════════════════════════════════════════════
   WHY CHOOSE US (Image 3) — Cream background
   ════════════════════════════════════════════════════════════ */
.why-choose-section { background:var(--cream); }
.why-choose-inner   { display:flex; flex-wrap:wrap; }
.why-choose-img-panel {
  flex:0 0 auto; width:35%;
  background: linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
              url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=800&q=80') center/cover;
  min-height:420px; display:flex; align-items:flex-end; padding:2.5rem;
}
.why-choose-title-overlay .why-choose-heading { font-size:clamp(1.8rem,3vw,2.8rem); font-weight:900; color:#fff; line-height:1.15; }
.why-choose-grid { flex:1; display:grid; grid-template-columns:1fr 1fr; gap:0; background:var(--cream); }
.why-feature-item { display:flex; align-items:flex-start; gap:1rem; padding:2rem 2rem; border-bottom:1px solid var(--cream2); }
.why-feature-item:nth-child(odd) { border-right:1px solid var(--cream2); }
.why-feature-icon { width:52px; height:52px; border-radius:50%; border:2px solid var(--primary); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0; }
.why-feature-title { font-size:1rem; font-weight:700; color:var(--dark); margin-bottom:.3rem; }
.why-feature-desc  { font-size:.875rem; color:var(--muted); margin:0; line-height:1.5; }
.why-choose-footer { background:var(--cream2); padding:1.5rem 0; border-top:1px solid var(--cream2); }
.why-footer-divider { width:100px; height:2px; background:var(--dark); margin-bottom:.6rem; }
.why-footer-tagline { font-size:1rem; color:var(--dark); }

@media (max-width:991px) {
  .why-choose-img-panel { width:100%; min-height:240px; }
  .why-choose-grid { grid-template-columns:1fr; }
  .why-feature-item:nth-child(odd) { border-right:none; }
}

/* ════════════════════════════════════════════════════════════
   CATEGORIES GRID
   ════════════════════════════════════════════════════════════ */
.category-tile { display:block; background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:1.2rem .8rem; text-align:center; transition:all .2s; }
.category-tile:hover { border-color:var(--primary); box-shadow:var(--shadow); transform:translateY(-3px); }
.category-tile-icon  { width:48px; height:48px; border-radius:50%; background:var(--primary-pale); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:1.2rem; margin:0 auto .7rem; transition:all .2s; }
.category-tile:hover .category-tile-icon { background:var(--primary); color:#fff; }
.category-tile-name  { font-size:.82rem; font-weight:700; color:var(--dark); line-height:1.3; }
.category-tile-count { font-size:.72rem; color:var(--muted); margin-top:.2rem; }

/* ════════════════════════════════════════════════════════════
   DEALER CARDS
   ════════════════════════════════════════════════════════════ */
.dealer-card { border-radius:var(--radius)!important; border:1px solid var(--border)!important; transition:all .2s; }
.dealer-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--primary)!important; }
.dealer-desc { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-overflow:hidden; overflow:hidden; }

/* ════════════════════════════════════════════════════════════
   STATE TILES
   ════════════════════════════════════════════════════════════ */
.state-tile { display:block; background:#fff; border:1px solid var(--border); border-radius:var(--radius-sm); padding:1rem .8rem; text-align:center; transition:all .2s; }
.state-tile:hover { border-color:var(--primary); box-shadow:var(--shadow-sm); transform:translateY(-2px); color:var(--primary); }
.state-tile-emoji { font-size:1.3rem; margin-bottom:.3rem; }
.state-tile-name  { font-size:.82rem; font-weight:700; color:var(--dark); }
.state-tile-count { font-size:.7rem; color:var(--muted); }

/* ════════════════════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════════════════════ */
.how-it-works-section { background:linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%); }
.hiw-card    { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:2rem 1.5rem; transition:all .2s; }
.hiw-card:hover { background:rgba(201,146,10,.12); border-color:var(--primary); }
.hiw-number  { width:44px; height:44px; border-radius:50%; background:var(--primary); color:#fff; font-size:1.2rem; font-weight:800; display:flex; align-items:center; justify-content:center; margin:0 auto 1rem; }
.hiw-icon    { font-size:2rem; color:var(--primary); margin-bottom:1rem; }
.hiw-title   { font-size:1.1rem; font-weight:700; color:#fff; margin-bottom:.6rem; }
.hiw-desc    { font-size:.88rem; color:rgba(255,255,255,.65); line-height:1.6; }

/* ════════════════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════════════════ */
.testimonial-card  { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:1.5rem; height:100%; transition:box-shadow .2s; border-top:3px solid var(--primary); }
.testimonial-card:hover { box-shadow:var(--shadow); }
.testimonial-stars { color:var(--primary); font-size:.95rem; }
.testimonial-text  { font-style:italic; color:var(--muted); line-height:1.7; font-size:.9rem; }
.testimonial-avatar{ width:40px; height:40px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.9rem; flex-shrink:0; }

/* ════════════════════════════════════════════════════════════
   DEALER CTA
   ════════════════════════════════════════════════════════════ */
.dealer-cta-section { background:var(--dark); }
.dealer-cta-card    { background:var(--dark2); border:1px solid rgba(201,146,10,.3); border-radius:12px; padding:2.5rem 2rem; border-left:5px solid var(--primary); }

/* ════════════════════════════════════════════════════════════
   BLOG
   ════════════════════════════════════════════════════════════ */
.blog-card { border-radius:var(--radius)!important; transition:transform .2s,box-shadow .2s; }
.blog-card:hover { transform:translateY(-4px); box-shadow:var(--shadow)!important; }

/* ════════════════════════════════════════════════════════════
   PAGE HEADER
   ════════════════════════════════════════════════════════════ */
.page-header { background:linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #111 100%)!important; }

/* ════════════════════════════════════════════════════════════
   WHATSAPP FLOAT + BACK TO TOP
   ════════════════════════════════════════════════════════════ */
.whatsapp-float { position:fixed; bottom:80px; right:20px; z-index:9999; width:56px; height:56px; border-radius:50%; background:#25d366; color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.7rem; box-shadow:0 4px 20px rgba(37,211,102,.5); text-decoration:none; transition:transform .2s; }
.whatsapp-float:hover { transform:scale(1.1); color:#fff; }
.back-to-top { position:fixed; bottom:20px; right:20px; z-index:9998; width:40px; height:40px; border-radius:50%; background:var(--primary); color:#fff; display:none; align-items:center; justify-content:center; text-decoration:none; font-size:1rem; box-shadow:var(--shadow-sm); }
.back-to-top.show { display:flex; }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer { background:#111!important; }
.footer-links a { color:#888; text-decoration:none; font-size:.85rem; display:block; padding:3px 0; transition:color .15s; }
.footer-links a:hover { color:var(--primary); }

/* ════════════════════════════════════════════════════════════
   MISC
   ════════════════════════════════════════════════════════════ */
.btn-xs { padding:.2rem .45rem; font-size:.75rem; border-radius:4px; line-height:1.4; }
#toastContainer { z-index:9999; }
.avatar-circle { width:40px; height:40px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.9rem; }

@media (max-width:767px) {
  .hero-dark-bg { min-height:auto; }
  .hero-headline { font-size:2rem; }
  .big-stat-number { font-size:2.8rem; }
  .why-choose-img-panel { display:none; }
  .why-choose-grid { grid-template-columns:1fr; }
}
