/* ============================================================
   South Delhi Business Directory — Custom CSS (Bootstrap 5)
   Design: Navy + Gold, Playfair Display + Inter
   ============================================================ */

:root {
  --sd-primary:   #1a3a5c;
  --sd-primary-lt:#2a5080;
  --sd-accent:    #c8963e;
  --sd-gold:      #f0b429;
  --sd-bg:        #f8f9fb;
  --sd-surface:   #ffffff;
  --sd-border:    #e5e9f0;
  --sd-text:      #1e2a3a;
  --sd-muted:     #6b7a8d;
  --sd-radius:    .75rem;
  --sd-shadow:    0 2px 16px rgba(26,58,92,.08);
  --sd-shadow-lg: 0 8px 40px rgba(26,58,92,.14);
  --sd-font-serif:'Playfair Display', Georgia, serif;
  --sd-font-sans: 'Inter', system-ui, sans-serif;
  --sd-transition: all .2s ease;
}

/* ─── Base ──────────────────────────────────────────────────── */
body { font-family: var(--sd-font-sans); background: var(--sd-bg); color: var(--sd-text); }
h1,h2,h3,h4,h5 { font-family: var(--sd-font-serif); }
a { color: var(--sd-primary); transition: var(--sd-transition); }
a:hover { color: var(--sd-accent); }
img { max-width: 100%; }

/* ─── Topbar ────────────────────────────────────────────────── */
.sd-topbar {
  background: var(--sd-primary);
  color: rgba(255,255,255,.75);
  padding: .4rem 0;
  font-size: .8rem;
}
.sd-topbar a { color: rgba(255,255,255,.75); text-decoration: none; }
.sd-topbar a:hover { color: #fff; }

/* ─── Navbar ────────────────────────────────────────────────── */
.sd-navbar {
  background: var(--sd-primary) !important;
  padding: .75rem 0;
  box-shadow: 0 2px 20px rgba(26,58,92,.25);
  z-index: 1030;
}
.sd-navbar .nav-link { color: rgba(255,255,255,.85) !important; font-weight: 500; font-size: .9rem; padding: .5rem .75rem !important; border-radius: .4rem; transition: var(--sd-transition); }
.sd-navbar .nav-link:hover, .sd-navbar .nav-link.active { color: #fff !important; background: rgba(255,255,255,.1); }
.sd-navbar .dropdown-toggle::after { border-color: rgba(255,255,255,.7) transparent transparent; }

.sd-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.sd-brand-icon { width: 36px; height: 36px; background: var(--sd-accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; flex-shrink: 0; }
.sd-brand span { font-family: var(--sd-font-serif); font-size: 1.2rem; font-weight: 700; color: #fff; }

.sd-nav-search { width: 100%; max-width: 420px; }
.sd-nav-search .form-control { border: none; border-radius: .5rem 0 0 .5rem; padding: .5rem 1rem; font-size: .9rem; }
.sd-nav-search .btn-warning { border-radius: 0 .5rem .5rem 0; }

/* Mega dropdown */
.sd-mega-menu { min-width: 220px; border: none; border-radius: var(--sd-radius); box-shadow: var(--sd-shadow-lg); padding: .5rem; }
.sd-mega-menu .dropdown-item { border-radius: .4rem; padding: .5rem .75rem; font-size: .88rem; color: var(--sd-text); }
.sd-mega-menu .dropdown-item:hover { background: rgba(26,58,92,.06); color: var(--sd-primary); }

/* ─── Hero ──────────────────────────────────────────────────── */
.sd-hero {
  background: linear-gradient(135deg, var(--sd-primary) 0%, #0d2035 60%, #1a3a5c 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.sd-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.sd-hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(200,150,62,.2); color: var(--sd-gold); border: 1px solid rgba(200,150,62,.3); border-radius: 100px; padding: .35rem 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.25rem; }
.sd-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; line-height: 1.2; margin-bottom: 1rem; }
.sd-hero h1 span { color: var(--sd-gold); }
.sd-hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 560px; }

/* Hero Search */
.sd-hero-search .input-group { border-radius: var(--sd-radius); overflow: hidden; box-shadow: 0 4px 30px rgba(0,0,0,.2); }
.sd-hero-search .form-control { padding: .9rem 1.25rem; font-size: 1rem; border: none; }
.sd-hero-search .form-select { border: none; border-left: 1px solid #e5e9f0; border-radius: 0; font-size: .9rem; max-width: 160px; }
.sd-hero-search .btn { padding: .9rem 1.75rem; font-weight: 600; border-radius: 0 var(--sd-radius) var(--sd-radius) 0; }

/* Hero Stats */
.sd-hero-stat { text-align: center; }
.sd-hero-stat .num { font-family: var(--sd-font-serif); font-size: 1.8rem; font-weight: 700; color: var(--sd-gold); line-height: 1; }
.sd-hero-stat .lbl { font-size: .78rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; margin-top: .2rem; }

/* ─── Section Utilities ─────────────────────────────────────── */
.sd-section { padding: 4rem 0; }
.sd-section-sm { padding: 2.5rem 0; }
.sd-section-header { text-align: center; margin-bottom: 2.5rem; }
.sd-section-header .eyebrow { display: inline-block; color: var(--sd-accent); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; }
.sd-section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--sd-primary); margin-bottom: .6rem; }
.sd-section-header p { color: var(--sd-muted); max-width: 560px; margin: 0 auto; }

/* ─── Category Cards ────────────────────────────────────────── */
.sd-cat-card { background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: var(--sd-radius); padding: 1.75rem 1.25rem; text-align: center; text-decoration: none; transition: var(--sd-transition); display: block; }
.sd-cat-card:hover { border-color: var(--sd-primary); box-shadow: var(--sd-shadow-lg); transform: translateY(-4px); color: inherit; }
.sd-cat-card .cat-icon { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, rgba(26,58,92,.08), rgba(26,58,92,.15)); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--sd-primary); margin: 0 auto 1rem; transition: var(--sd-transition); }
.sd-cat-card:hover .cat-icon { background: var(--sd-primary); color: #fff; }
.sd-cat-card .cat-name { font-family: var(--sd-font-serif); font-weight: 700; color: var(--sd-primary); font-size: .95rem; margin-bottom: .3rem; }
.sd-cat-card .cat-count { font-size: .78rem; color: var(--sd-muted); }

/* ─── Business Cards ────────────────────────────────────────── */
.sd-biz-card { border-radius: var(--sd-radius) !important; transition: var(--sd-transition); overflow: hidden; }
.sd-biz-card:hover { transform: translateY(-4px); box-shadow: var(--sd-shadow-lg) !important; }
.sd-biz-cover { height: 180px; background: #e5e9f0; }
.sd-biz-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sd-biz-card:hover .sd-biz-cover img { transform: scale(1.04); }
.sd-biz-logo img { width: 44px; height: 44px; object-fit: cover; }

/* ─── Area Cards ────────────────────────────────────────────── */
.sd-area-card { background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: var(--sd-radius); padding: 1.25rem 1.5rem; text-decoration: none; display: flex; align-items: center; gap: 1rem; transition: var(--sd-transition); }
.sd-area-card:hover { border-color: var(--sd-primary); box-shadow: var(--sd-shadow); transform: translateY(-2px); }
.sd-area-card .area-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(26,58,92,.08); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--sd-primary); flex-shrink: 0; }
.sd-area-card .area-name { font-family: var(--sd-font-serif); font-weight: 700; color: var(--sd-primary); font-size: .95rem; }
.sd-area-card .area-count { font-size: .78rem; color: var(--sd-muted); }

/* ─── Breadcrumb ────────────────────────────────────────────── */
.sd-breadcrumb-bar { background: var(--sd-bg); border-bottom: 1px solid var(--sd-border); padding: .65rem 0; }
.sd-breadcrumb-bar .breadcrumb { margin: 0; font-size: .83rem; }
.sd-breadcrumb-bar .breadcrumb-item a { color: var(--sd-primary); text-decoration: none; }
.sd-breadcrumb-bar .breadcrumb-item.active { color: var(--sd-muted); }

/* ─── Page Hero (inner pages) ───────────────────────────────── */
.sd-page-hero { background: linear-gradient(135deg, var(--sd-primary), #0d2035); padding: 2.5rem 0 2rem; position: relative; z-index: 0; }
.sd-page-hero h1 { color: #fff; font-size: clamp(1.4rem,3vw,2rem); }
.sd-page-hero p { color: rgba(255,255,255,.7); }

/* Ensure breadcrumb bar always sits above page hero */
.sd-breadcrumb-bar { position: relative; z-index: 1; }

/* ─── Filter Sidebar ────────────────────────────────────────── */
.sd-filter-card { background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: var(--sd-radius); padding: 1.5rem; position: sticky; top: 80px; }
.sd-filter-card h6 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--sd-muted); margin-bottom: 1rem; }
.sd-filter-group { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--sd-border); }
.sd-filter-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sd-filter-group .form-check-label { font-size: .88rem; cursor: pointer; }

/* ─── Business Detail ───────────────────────────────────────── */
.sd-biz-hero { background: var(--sd-primary); padding: 2.5rem 0; }
.sd-biz-hero h1 { color: #fff; font-size: clamp(1.4rem,3vw,2rem); }
.sd-biz-cover-full { border-radius: var(--sd-radius); overflow: hidden; max-height: 420px; }
.sd-biz-cover-full img { width: 100%; height: 420px; object-fit: cover; }
.sd-info-card { background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: var(--sd-radius); padding: 1.5rem; }
.sd-info-row { display: flex; align-items: flex-start; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--sd-border); font-size: .9rem; }
.sd-info-row:last-child { border-bottom: none; }
.sd-info-row i { color: var(--sd-primary); font-size: 1rem; margin-top: .1rem; flex-shrink: 0; width: 20px; }
.sd-hours-badge { display: inline-block; padding: .2rem .6rem; border-radius: 100px; font-size: .72rem; font-weight: 600; }
.sd-hours-open { background: #dcfce7; color: #15803d; }
.sd-hours-closed { background: #fee2e2; color: #b91c1c; }

/* ─── Products/Services ─────────────────────────────────────── */
.sd-ps-card { background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: var(--sd-radius); padding: 1.25rem; transition: var(--sd-transition); }
.sd-ps-card:hover { border-color: var(--sd-primary); box-shadow: var(--sd-shadow); }
.sd-ps-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(26,58,92,.07); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--sd-primary); flex-shrink: 0; }
.sd-ps-price { font-family: var(--sd-font-serif); font-size: 1.1rem; font-weight: 700; color: var(--sd-accent); }

/* ─── Review Stars ──────────────────────────────────────────── */
.sd-star-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.sd-star-bar .progress { flex: 1; height: 8px; border-radius: 100px; }
.sd-review-card { background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: var(--sd-radius); padding: 1.25rem; }
.sd-reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sd-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex-shrink: 0; }

/* ─── Submit Form ───────────────────────────────────────────── */
/* Step Indicator — horizontal stepper */
.sd-step-indicator {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius);
  box-shadow: var(--sd-shadow);
}
.sd-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
/* Connecting line between steps */
.sd-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--sd-border);
  z-index: 0;
}
.sd-step.done:not(:last-child)::after { background: #16a34a; }
.sd-step .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sd-border);
  color: var(--sd-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  margin: 0 auto .5rem;
  position: relative;
  z-index: 1;
  transition: var(--sd-transition);
  flex-shrink: 0;
}
.sd-step.active .step-num { background: var(--sd-primary); color: #fff; box-shadow: 0 0 0 4px rgba(26,58,92,.15); }
.sd-step.done   .step-num { background: #16a34a; color: #fff; }
.sd-step .step-label { font-size: .72rem; color: var(--sd-muted); font-weight: 500; line-height: 1.3; max-width: 80px; }
.sd-step.active .step-label { color: var(--sd-primary); font-weight: 700; }
.sd-step.done   .step-label { color: #16a34a; }

/* ─── Featured Badge ────────────────────────────────────────── */
.sd-featured-ribbon { position: absolute; top: 12px; left: -4px; background: var(--sd-accent); color: #fff; font-size: .7rem; font-weight: 700; padding: .25rem .75rem; border-radius: 0 4px 4px 0; }

/* ─── CTA Banner ────────────────────────────────────────────── */
.sd-cta { background: linear-gradient(135deg, var(--sd-primary), #0d2035); border-radius: var(--sd-radius); padding: 3rem 2rem; }

/* ─── Footer ────────────────────────────────────────────────── */
.sd-footer { background: #0d1f33; }
.sd-footer-link { color: rgba(255,255,255,.55); text-decoration: none; font-size: .88rem; transition: var(--sd-transition); }
.sd-footer-link:hover { color: var(--sd-gold); }
.sd-social-link { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: var(--sd-transition); }
.sd-social-link:hover { background: var(--sd-accent); color: #fff; }

/* ─── Placeholder image ─────────────────────────────────────── */
.sd-placeholder-cover { background: linear-gradient(135deg, #e8edf5, #d0d9e8); display: flex; align-items: center; justify-content: center; height: 180px; }
.sd-placeholder-cover i { font-size: 2.5rem; color: #a0aec0; }

/* ─── Pagination ────────────────────────────────────────────── */
.pagination .page-link { color: var(--sd-primary); border-color: var(--sd-border); }
.pagination .page-item.active .page-link { background: var(--sd-primary); border-color: var(--sd-primary); }
.pagination .page-link:hover { background: rgba(26,58,92,.06); color: var(--sd-primary); }

/* ─── Badges ────────────────────────────────────────────────── */
.bg-primary-subtle  { background: rgba(26,58,92,.08) !important; }
.text-primary       { color: var(--sd-primary) !important; }
.bg-secondary-subtle{ background: rgba(107,122,141,.1) !important; }
.btn-primary        { background: var(--sd-primary); border-color: var(--sd-primary); }
.btn-primary:hover  { background: var(--sd-primary-lt); border-color: var(--sd-primary-lt); }
.btn-outline-primary{ color: var(--sd-primary); border-color: var(--sd-primary); }
.btn-outline-primary:hover { background: var(--sd-primary); color: #fff; }

/* ─── Utilities ─────────────────────────────────────────────── */
.text-accent { color: var(--sd-accent) !important; }
.bg-primary-dark { background: var(--sd-primary) !important; }
.rounded-xl { border-radius: var(--sd-radius) !important; }
.shadow-sd { box-shadow: var(--sd-shadow) !important; }

/* ─── Contact Info Card ────────────────────────────────────── */
.sd-info-card.contact-card { background: var(--sd-primary); color: #fff; }
.sd-info-card.contact-card h5 { color: #fff; }
.sd-info-card.contact-card .sd-info-row { border-color: rgba(255,255,255,.15); }
.sd-info-card.contact-card .sd-info-row i { color: var(--sd-gold); }
.sd-info-card.contact-card .text-muted { color: rgba(255,255,255,.55) !important; }
.sd-info-card.contact-card .fw-semibold { color: #fff; }

/* ─── Stats Bar ─────────────────────────────────────────────── */
.sd-stats-bar { background: var(--sd-primary); padding: 2.5rem 0; }
.sd-stat-item .stat-num { font-family: var(--sd-font-serif); font-size: 2.2rem; font-weight: 800; color: var(--sd-gold); line-height: 1; }
.sd-stat-item .stat-label { font-size: .82rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .05em; margin-top: .25rem; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sd-hero { padding: 3rem 0 2.5rem; }
  .sd-hero-search .form-select { display: none; }
  .sd-biz-cover-full img { height: 250px; }
  .sd-section { padding: 2.5rem 0; }
}
