/* ============================================================
   style.css — cctvdealers.in
   Theme: Dark Grey + Orange + White (Modern Tech Style)
   ============================================================ */

:root {
  /* ── Brand colours ─────────────────────────────────────── */
  --primary:        #e8820c;        /* vivid orange               */
  --primary-dark:   #c96d08;        /* darker orange for hover    */
  --primary-light:  #f5a03a;        /* lighter orange for accents */
  --primary-pale:   #fff3e0;        /* very light orange tint     */

  /* ── Greys ─────────────────────────────────────────────── */
  --dark:           #1c1c1e;        /* near-black                 */
  --dark2:          #2a2a2e;        /* section dark bg            */
  --dark3:          #363639;        /* card dark bg               */
  --grey:           #6b6b6b;        /* body text muted            */
  --grey-light:     #e4e4e6;        /* borders                    */
  --grey-bg:        #f4f4f6;        /* page light bg              */

  /* ── Utility ───────────────────────────────────────────── */
  --white:          #ffffff;
  --radius:         10px;
  --radius-sm:      6px;
  --shadow-sm:      0 2px 8px rgba(0,0,0,.07);
  --shadow:         0 6px 24px rgba(0,0,0,.12);
  --shadow-orange:  0 6px 20px rgba(232,130,12,.25);
}

/* ── Bootstrap overrides ──────────────────────────────────── */
.btn-primary          { background:var(--primary)!important; border-color:var(--primary)!important; color:#fff!important; font-weight:600; }
.btn-primary:hover    { background:var(--primary-dark)!important; border-color:var(--primary-dark)!important; box-shadow:var(--shadow-orange); }
.btn-outline-primary  { color:var(--primary)!important; border-color:var(--primary)!important; background:transparent!important; font-weight:600; }
.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(232,130,12,.15); }
.page-item.active .page-link { background:var(--primary)!important; border-color:var(--primary)!important; }
.page-link { color:var(--primary)!important; }
.page-link:hover { background:var(--primary-pale)!important; }
.dropdown-item:hover { 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; }
.nav-pills .nav-link.active { background:var(--primary)!important; }

/* ── Base ─────────────────────────────────────────────────── */
*    { box-sizing:border-box; }
body { font-family:'Segoe UI',system-ui,-apple-system,sans-serif; color:var(--dark); background:#fff; line-height:1.65; }
.x-small { font-size:.72rem; }

/* ════════════════════════════════════════════════════════════
   TOPBAR — dark charcoal strip
   ════════════════════════════════════════════════════════════ */
.topbar {
  background:var(--dark)!important;
  color:#e5e5e5;
  font-size:.82rem;
  border-bottom:2px solid var(--primary);
}
.topbar .topbar-left,
.topbar .topbar-right { color:#e5e5e5; }
.topbar a { color:#bbb!important; text-decoration:none; transition:color .15s; }
.topbar a:hover { color:var(--primary-light)!important; }

/* ════════════════════════════════════════════════════════════
   NAVBAR — white with orange bottom border
   ════════════════════════════════════════════════════════════ */
.navbar {
  background:#fff!important;
  box-shadow:0 2px 16px rgba(0,0,0,.08);
  border-bottom:3px solid var(--primary);
}
.nav-link {
  font-weight:500; color:var(--dark)!important;
  font-size:.9rem; border-radius:var(--radius-sm);
  padding:.45rem .85rem!important; transition:all .15s;
}
.nav-link:hover  { color:var(--primary)!important; background:var(--primary-pale); }
.dropdown-menu   { border:0; box-shadow:0 8px 32px rgba(0,0,0,.13); border-radius:var(--radius); border-top:3px solid var(--primary); min-width:200px; }
.dropdown-item   { font-size:.875rem; padding:.5rem 1rem; }

/* ════════════════════════════════════════════════════════════
   HERO SECTION — Dark tech gradient
   ════════════════════════════════════════════════════════════ */
.hero-dark-bg {
  background:
    linear-gradient(135deg,
      rgba(20,20,22,.97) 0%,
      rgba(28,28,30,.93) 55%,
      rgba(36,30,20,.85) 100%),
    url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1600&q=80')
    center/cover no-repeat;
  min-height:88vh;
  position:relative;
}
/* Subtle orange grid overlay */
.hero-dark-bg::before {
  content:'';
  position:absolute; inset:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(232,130,12,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,130,12,.03) 1px, transparent 1px);
  background-size:40px 40px;
}
.min-vh-hero { min-height:72vh; }

/* Hero text */
.hero-sub-label {
  color:rgba(255,255,255,.6);
  font-size:.95rem; font-weight:500;
  letter-spacing:.08em; text-transform:uppercase; margin-bottom:.6rem;
}
.hero-divider { width:48px; height:2px; background:var(--primary); margin-bottom:1.5rem; border-radius:2px; }
.hero-headline {
  font-size:clamp(2.6rem,5vw,4.2rem);
  font-weight:900; color:#fff;
  line-height:1.05; margin-bottom:1.2rem;
  letter-spacing:-.03em;
}
.hero-headline span { color:var(--primary); }
.hero-body-text { color:rgba(255,255,255,.7); font-size:1rem; line-height:1.75; }

/* Hero buttons */
.btn-hero-primary {
  background:var(--primary); border:2px solid var(--primary);
  color:#fff; padding:.75rem 2rem; font-weight:700;
  border-radius:var(--radius-sm); font-size:1rem; transition:all .2s;
  letter-spacing:.02em;
}
.btn-hero-primary:hover { background:var(--primary-dark); border-color:var(--primary-dark); color:#fff; transform:translateY(-2px); box-shadow:var(--shadow-orange); }
.btn-hero-outline {
  background:transparent; border:2px solid rgba(255,255,255,.3);
  color:#fff; padding:.75rem 2rem; font-weight:600;
  border-radius:var(--radius-sm); font-size:1rem; transition:all .2s;
}
.btn-hero-outline:hover { border-color:rgba(255,255,255,.7); background:rgba(255,255,255,.06); color:#fff; }

/* Hero enquiry form */
.hero-form-card  { border-radius:var(--radius); overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.hero-form-header { background:var(--primary); color:#fff; padding:1.1rem 1.5rem; }
.hero-form-body  { background:#fff; padding:1.5rem; }
.hero-form-body .form-control,
.hero-form-body .form-select { font-size:.9rem; }

/* ════════════════════════════════════════════════════════════
   STATS + FEATURES SECTION
   ════════════════════════════════════════════════════════════ */
.stats-features-section { background:#fff; border-bottom:1px solid var(--grey-light); }
.big-stat-number  { font-size:4rem; font-weight:900; color:var(--primary); line-height:1; }
.big-stat-label   { font-size: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(--grey); }
.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:.7rem; font-size:.95rem; color:var(--dark); padding:.4rem 0; }
.feature-check-icon { color:#22c55e; font-size:1.2rem; flex-shrink:0; margin-top:.1rem; }

/* ════════════════════════════════════════════════════════════
   SEARCH STRIP
   ════════════════════════════════════════════════════════════ */
.search-strip {
  background:var(--dark2)!important;
  border-top:2px solid var(--primary)!important;
  border-bottom:2px solid var(--primary)!important;
}
.search-strip .form-control,
.search-strip .form-select {
  background:var(--dark3);
  border-color:#444;
  color:#e0e0e0;
}
.search-strip .form-control::placeholder { color:#888; }
.search-strip .form-control:focus,
.search-strip .form-select:focus { border-color:var(--primary); background:var(--dark3); color:#fff; }
.search-strip option { background:var(--dark2); color:#e0e0e0; }

/* ════════════════════════════════════════════════════════════
   WHY CHOOSE US — Dark tech card style
   ════════════════════════════════════════════════════════════ */
.why-choose-section { background:var(--dark)!important; }
.why-choose-inner   { display:flex; flex-wrap:wrap; }
.why-choose-img-panel {
  flex:0 0 auto; width:36%;
  background:
    linear-gradient(rgba(0,0,0,.65),rgba(0,0,0,.65)),
    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-heading { font-size:clamp(1.8rem,3vw,2.8rem); font-weight:900; color:#fff; line-height:1.15; }
.why-choose-heading span { color:var(--primary); }
.why-choose-grid { flex:1; display:grid; grid-template-columns:1fr 1fr; background:var(--dark); }
.why-feature-item { display:flex; align-items:flex-start; gap:1rem; padding:2rem; border-bottom:1px solid rgba(255,255,255,.06); transition:background .2s; }
.why-feature-item:hover { background:rgba(232,130,12,.07); }
.why-feature-item:nth-child(odd) { border-right:1px solid rgba(255,255,255,.06); }
.why-feature-icon {
  width:50px; height:50px; 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; transition:all .2s;
}
.why-feature-item:hover .why-feature-icon { background:var(--primary); color:#fff; }
.why-feature-title { font-size:1rem; font-weight:700; color:#fff; margin-bottom:.3rem; }
.why-feature-desc  { font-size:.875rem; color:rgba(255,255,255,.55); margin:0; line-height:1.55; }
.why-choose-footer { background:var(--dark2); padding:1.5rem 0; border-top:1px solid rgba(255,255,255,.07); }
.why-footer-divider { width:100px; height:2px; background:var(--primary); margin-bottom:.7rem; }
.why-footer-tagline { font-size:1rem; color:rgba(255,255,255,.8); font-weight:500; }

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

/* ════════════════════════════════════════════════════════════
   CATEGORY TILES
   ════════════════════════════════════════════════════════════ */
.categories-section { background:var(--grey-bg)!important; }
.category-tile {
  display:block; background:#fff;
  border:1px solid var(--grey-light);
  border-radius:var(--radius); padding:1.2rem .8rem;
  text-align:center; transition:all .2s;
}
.category-tile:hover {
  border-color:var(--primary);
  box-shadow:0 4px 20px rgba(232,130,12,.15);
  transform:translateY(-3px);
}
.category-tile-icon {
  width:50px; height:50px; 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; }

/* ════════════════════════════════════════════════════════════
   DEALER CARDS
   ════════════════════════════════════════════════════════════ */
.dealer-card {
  border-radius:var(--radius)!important;
  border:1px solid var(--grey-light)!important;
  transition:all .2s; background:#fff;
}
.dealer-card:hover {
  transform:translateY(-4px);
  box-shadow:0 8px 28px rgba(0,0,0,.1);
  border-color:var(--primary)!important;
}
.dealer-desc { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-overflow:hidden; overflow:hidden; }

/* Revealed number box */
.revealed-number-box {
  background:var(--primary-pale);
  border:2px solid var(--primary);
  border-radius:var(--radius); padding:12px 16px; text-align:center;
}
.revealed-number-label { font-size:.72rem; font-weight:700; color:#888; text-transform:uppercase; letter-spacing:.05em; margin-bottom:4px; }
.revealed-number-value { font-size:1.5rem; font-weight:800; color:var(--primary); letter-spacing:.04em; }
.show-number-btn:hover { opacity:.88; transform:translateY(-1px); }

/* ════════════════════════════════════════════════════════════
   STATE TILES
   ════════════════════════════════════════════════════════════ */
.states-section { background:var(--dark2)!important; }
.state-tile {
  display:block; background:var(--dark3);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius-sm); padding:1rem .8rem;
  text-align:center; transition:all .2s;
}
.state-tile:hover { border-color:var(--primary); box-shadow:0 4px 16px rgba(232,130,12,.2); transform:translateY(-2px); }
.state-tile-emoji { font-size:1.3rem; margin-bottom:.3rem; }
.state-tile-name  { font-size:.82rem; font-weight:700; color:#e0e0e0; }

/* ════════════════════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════════════════════ */
.how-it-works-section { background:var(--dark)!important; }
.section-header::after { content:''; display:block; width:48px; height:4px; background:var(--primary); border-radius:3px; margin:8px auto 0; }
.hiw-card {
  background:var(--dark3); border:1px solid rgba(255,255,255,.07);
  border-radius:var(--radius); padding:2rem 1.5rem; transition:all .2s;
}
.hiw-card:hover { background:rgba(232,130,12,.1); border-color:var(--primary); }
.hiw-number {
  width:48px; height:48px; border-radius:50%;
  background:var(--primary); color:#fff;
  font-size:1.3rem; 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:.8rem; }
.hiw-title { font-size:1.05rem; font-weight:700; color:#fff; margin-bottom:.5rem; }
.hiw-desc  { font-size:.875rem; color:rgba(255,255,255,.55); line-height:1.65; }

/* ════════════════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════════════════ */
.testimonials-section { background:var(--grey-bg)!important; }
.testimonial-card {
  background:#fff; border:1px solid var(--grey-light);
  border-radius:var(--radius); padding:1.5rem; height:100%;
  border-top:3px solid var(--primary); transition:box-shadow .2s;
}
.testimonial-card:hover { box-shadow:var(--shadow); }
.testimonial-stars { color:var(--primary); font-size:.95rem; }
.testimonial-text  { font-style:italic; color:var(--grey); 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)!important; }
.dealer-cta-card {
  background:linear-gradient(135deg, var(--dark2) 0%, #1e1a14 100%);
  border:1px solid rgba(232,130,12,.25);
  border-radius:var(--radius); padding:2.5rem 2rem;
  border-left:5px solid var(--primary)!important;
  position:relative; overflow:hidden;
}
.dealer-cta-card::before {
  content:'';
  position:absolute; top:-40px; right:-40px;
  width:160px; height:160px; border-radius:50%;
  background:rgba(232,130,12,.06);
}

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

/* ════════════════════════════════════════════════════════════
   FEATURED DEALERS SECTION
   ════════════════════════════════════════════════════════════ */
.dealers-section { background:#fff!important; }
.dealers-section.alt { background:var(--grey-bg)!important; }

/* ════════════════════════════════════════════════════════════
   PAGE HEADER
   ════════════════════════════════════════════════════════════ */
.page-header {
  background:linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #1e1a14 100%)!important;
  border-bottom:3px solid var(--primary);
}
.breadcrumb-item a { color:rgba(255,255,255,.6)!important; }
.breadcrumb-item.active { color:rgba(255,255,255,.9)!important; }
.breadcrumb-item+.breadcrumb-item::before { color:rgba(255,255,255,.3)!important; }

/* ════════════════════════════════════════════════════════════
   DEALER LISTING PAGE
   ════════════════════════════════════════════════════════════ */
.dealers-list-header { background:var(--dark)!important; }

/* ════════════════════════════════════════════════════════════
   WHATSAPP + BACK TO TOP
   ════════════════════════════════════════════════════════════ */
.whatsapp-float {
  position:fixed; bottom:80px; right:20px; z-index:9999;
  width:58px; height:58px; border-radius:50%;
  background:#25d366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:1.75rem; box-shadow:0 4px 20px rgba(37,211,102,.45);
  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:42px; height:42px; 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 — Deep dark
   ════════════════════════════════════════════════════════════ */
.footer { background:#111!important; border-top:3px solid var(--primary); }
.footer-links a { color:#777; text-decoration:none; font-size:.85rem; display:block; padding:3px 0; transition:color .15s; }
.footer-links a:hover { color:var(--primary); }
.social-links a { color:#666!important; transition:color .2s; }
.social-links a:hover { color:var(--primary)!important; }

/* ════════════════════════════════════════════════════════════
   MISC
   ════════════════════════════════════════════════════════════ */
.btn-xs { padding:.2rem .5rem; 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; }
.card { border-radius:var(--radius)!important; }

@media (max-width:767px) {
  .hero-dark-bg { min-height:auto; }
  .hero-headline { font-size:2.2rem; }
  .big-stat-number { font-size:2.8rem; }

  /* Prevent large Bootstrap gutters from overflowing the viewport */
  .row.g-5 { --bs-gutter-x:1.5rem; --bs-gutter-y:1.5rem; }
  .row.g-4 { --bs-gutter-x:1rem; }

  /* Stop any accidental horizontal scroll */
  html, body { overflow-x:hidden; }

  /* Comfortable tap targets on phones */
  .btn, .form-control, .form-select { min-height:44px; }
  .btn-sm { min-height:36px; }

  /* Section padding tighter on mobile */
  section.py-5 { padding-top:2.2rem !important; padding-bottom:2.2rem !important; }

  /* Headings scale down */
  h1 { font-size:1.8rem; }
  h2 { font-size:1.5rem; }
  .features-headline { font-size:1.6rem; }

  /* Dealer cards full width, comfortable spacing */
  .dealer-card { margin-bottom:.5rem; }

  /* Pricing comparison table: let it scroll smoothly */
  .table-responsive { -webkit-overflow-scrolling:touch; }
}

@media (max-width:575.98px) {
  .hero-headline { font-size:1.9rem; }
  .big-stat-number { font-size:2.3rem; }
  .container, .container-fluid { padding-left:1rem; padding-right:1rem; }
  /* Stack two-column button groups */
  .d-flex.gap-3 { gap:.5rem !important; }
}

/* ── Blog content (Markdown-rendered) ───────────────────── */
.blog-content { font-size: 1.05rem; color: #2b2b2b; }
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  font-weight: 700;
  margin: 1.6rem 0 .8rem;
  line-height: 1.3;
  color: #1c1c1e;
}
.blog-content h1 { font-size: 1.8rem; }
.blog-content h2 { font-size: 1.5rem; padding-bottom: .3rem; border-bottom: 2px solid var(--primary-pale); }
.blog-content h3 { font-size: 1.25rem; }
.blog-content h4 { font-size: 1.1rem; }
.blog-content p { margin: 0 0 1.1rem; line-height: 1.8; }
.blog-content ul,
.blog-content ol { margin: 0 0 1.2rem 1.2rem; padding-left: 1rem; }
.blog-content li { margin-bottom: .5rem; line-height: 1.7; }
.blog-content ul li::marker { color: var(--primary); }
.blog-content a { color: var(--primary-dark); text-decoration: underline; }
.blog-content strong { color: #1c1c1e; }
.blog-content hr { margin: 2rem 0; border: 0; border-top: 1px solid #e5e5e5; }
.blog-content code {
  background: #f5f5f5;
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .9em;
  color: var(--primary-dark);
}
