/* ================================================================
   Builder Detail Page — Redesigned
   ================================================================ */

.bd-page { min-height: 100vh; background: #f8fafc; }

/* ══ HERO ══════════════════════════════════════════════════════════ */
.bd-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
}
.bd-hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--bd-hero-bg);
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.45);
  transform: scale(1.04);
  transition: transform 8s ease;
}
.bd-hero:hover .bd-hero-bg { transform: scale(1.07); }
.bd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15,23,42,0.2) 0%,
    rgba(15,23,42,0.6) 50%,
    rgba(15,23,42,0.88) 100%
  );
}
.bd-hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 40px 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Breadcrumb */
.bd-bc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 22px;
}
.bd-bc-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}
.bd-bc-link:hover { color: #fff; }
.bd-bc-sep { color: rgba(255,255,255,0.35); }
.bd-bc-cur { color: rgba(255,255,255,0.9); font-weight: 600; }

/* Identity row */
.bd-identity {
  display: flex;
  align-items: flex-end;
  gap: 22px;
}

/* Logo */
.bd-logo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  overflow: visible;
}
.bd-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
  display: block;
}
.bd-logo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  background: linear-gradient(135deg, #e0e7ff, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 2.4rem;
}
.bd-logo-tick {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  font-size: 0.55rem;
  color: #fff;
}

/* Id text */
.bd-id-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.bd-id-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bd-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
}
.bd-badge--verified  { background: rgba(22,163,74,0.85);  color: #fff; }
.bd-badge--unverified{ background: rgba(220,38,38,0.85);  color: #fff; }
.bd-badge--premium   { background: linear-gradient(135deg,#f59e0b,#ef4444); color: #fff; }

.bd-hero-name {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.bd-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bd-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 11px;
  border-radius: 999px;
}
.bd-meta-pill i { font-size: 0.7rem; opacity: 0.8; }
.bd-meta-pill--star { background: rgba(245,158,11,0.2); border-color: rgba(245,158,11,0.4); color: #fde68a; }
.bd-meta-rc { font-weight: 400; opacity: 0.75; margin-left: 2px; }

/* Hero CTAs */
.bd-hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.bd-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.18s;
}
.bd-hero-cta--call {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}
.bd-hero-cta--call:hover { background: #1d4ed8; transform: translateY(-1px); }
.bd-hero-cta--web {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}
.bd-hero-cta--web:hover { background: rgba(255,255,255,0.22); }

/* ══ STATS RIBBON ════════════════════════════════════════════════ */
.bd-stats-ribbon {
  background: #fff;
  border-bottom: 1px solid #e9edf3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  overflow-x: auto;
}
.bd-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  flex-shrink: 0;
}
.bd-stat-sep {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, #e2e8f0, transparent);
  flex-shrink: 0;
}
.bd-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.bd-si--blue   { background: #eff6ff; color: #2563eb; }
.bd-si--green  { background: #f0fdf4; color: #16a34a; }
.bd-si--orange { background: #fff7ed; color: #ea580c; }
.bd-si--purple { background: #f5f3ff; color: #7c3aed; }
.bd-si--rose   { background: #fff1f2; color: #e11d48; }
.bd-stat-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bd-stat-n {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}
.bd-stat-l {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.bd-stat-n--green  { color: #16a34a; }
.bd-stat-n--orange { color: #ea580c; }

/* ══ BODY ═══════════════════════════════════════════════════════ */
.bd-body { padding: 28px 24px 60px; }
.bd-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .bd-layout { grid-template-columns: 1fr; }
  .bd-sidebar { display: none; }
}

/* ══ CARDS ═══════════════════════════════════════════════════════ */
.bd-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 26px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 20px rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;
}
.bd-card--flush {
  padding: 0;
  overflow: hidden;
}
.bd-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.bd-card-head--pad { padding: 22px 24px 14px; }
.bd-card-head-dot {
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, #2563eb, #7c3aed);
  flex-shrink: 0;
}
.bd-dot--purple { background: linear-gradient(180deg, #7c3aed, #db2777); }
.bd-dot--amber  { background: linear-gradient(180deg, #f59e0b, #ef4444); }
.bd-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  flex: 1;
}

/* ══ ABOUT SECTION ═══════════════════════════════════════════════ */
.bd-about-text {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.75;
  margin: 0 0 22px;
}

/* Metric cards */
.bd-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 600px) { .bd-metrics-grid { grid-template-columns: repeat(2, 1fr); } }
.bd-metric {
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.bd-metric--blue   { background: #eff6ff; border-color: #dbeafe; }
.bd-metric--green  { background: #f0fdf4; border-color: #bbf7d0; }
.bd-metric--purple { background: #f5f3ff; border-color: #ddd6fe; }
.bd-metric--amber  { background: #fffbeb; border-color: #fde68a; }
.bd-metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.bd-metric--blue   .bd-metric-icon { background: #dbeafe; color: #2563eb; }
.bd-metric--green  .bd-metric-icon { background: #bbf7d0; color: #16a34a; }
.bd-metric--purple .bd-metric-icon { background: #ddd6fe; color: #7c3aed; }
.bd-metric--amber  .bd-metric-icon { background: #fde68a; color: #d97706; }
.bd-metric strong { font-size: 1.3rem; font-weight: 900; color: #0f172a; line-height: 1; }
.bd-metric span   { font-size: 0.68rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.03em; }

/* Trust row */
.bd-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.bd-trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 11px;
  border-radius: 999px;
}
.bd-trust-tag i { font-size: 0.65rem; }

/* ══ PROJECTS ═══════════════════════════════════════════════════ */
.bd-proj-filter {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}
.bd-ftab {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.bd-ftab:hover { border-color: #2563eb; color: #2563eb; }
.bd-ftab.active { background: #2563eb; color: #fff; border-color: #2563eb; }

/* Grid — explicit display:grid prevents property-listing.css conflicts */
.bd-proj-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0;
  background: #f1f5f9;
  border-top: 1px solid #f1f5f9;
}
@media (max-width: 768px) { .bd-proj-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .bd-proj-grid { grid-template-columns: 1fr !important; } }

/* Card — must be block, not flex/grid */
.bd-proj-card {
  background: #fff !important;
  display: block !important;
  flex-direction: unset !important;
  flex: unset !important;
  width: auto !important;
  text-decoration: none;
  color: inherit;
  border: none;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.bd-proj-card[data-href] { cursor: pointer; }
.bd-proj-card:hover {
  z-index: 2;
  box-shadow: 0 8px 32px rgba(37,99,235,0.14);
  transform: translateY(-2px);
}

/* Thumbnail */
.bd-proj-thumb {
  position: relative !important;
  height: 180px !important;
  overflow: hidden !important;
  display: block !important;
  width: 100% !important;
  flex: unset !important;
}
.bd-proj-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease;
}
.bd-proj-card:hover .bd-proj-img { transform: scale(1.07); }
.bd-proj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.65) 0%, rgba(15,23,42,0.1) 55%, transparent 100%);
  pointer-events: none;
}
.bd-proj-type-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}
.bd-tag--rent { background: #059669; }
.bd-tag--comm { background: #7c3aed; }
.bd-proj-price-float {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  z-index: 1;
}

/* Card body */
.bd-proj-body {
  padding: 14px 14px 16px !important;
  display: block !important;
  width: auto !important;
  flex: unset !important;
}
.bd-proj-name {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd-proj-loc {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bd-proj-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.bd-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
}
.bd-chip--type { background: #eff6ff; color: #2563eb; border-color: #dbeafe; }
.bd-proj-cta {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}
.bd-proj-cta i { font-size: 0.6rem; }

/* ══ REVIEWS ═══════════════════════════════════════════════════ */
.bd-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #d97706;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 4px 12px;
  border-radius: 999px;
}
.bd-rating-pill i { font-size: 0.7rem; }
.bd-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 680px) { .bd-reviews-grid { grid-template-columns: 1fr; } }
.bd-review-card {
  background: #f8fafc;
  border: 1px solid #e9edf3;
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s;
}
.bd-review-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.bd-review-quote { color: #c7d2fe; font-size: 1.4rem; line-height: 1; }
.bd-review-text {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
  flex: 1;
  font-style: italic;
}
.bd-review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #e9edf3;
}
.bd-review-stars { color: #f59e0b; font-size: 0.68rem; display: flex; gap: 2px; }
.bd-review-author { display: flex; align-items: center; gap: 7px; }
.bd-review-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.bd-review-name { font-size: 0.76rem; font-weight: 700; color: #1e293b; }

/* ══ SIDEBAR ═══════════════════════════════════════════════════ */
.bd-sidebar-sticky {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Info card */
.bd-info-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 20px rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;
}
.bd-info-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 14px;
}
.bd-info-card-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: #94a3b8;
  font-size: 1.1rem;
}
.bd-info-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.bd-info-card-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.bd-info-card-city {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.bd-info-card-city i { font-size: 0.62rem; color: #2563eb; }

.bd-info-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bd-info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
  gap: 8px;
}
.bd-info-list li:last-child { border-bottom: none; }
.bd-info-list li span { color: #64748b; display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.bd-info-list li span i { color: #94a3b8; font-size: 0.65rem; }
.bd-info-list li strong { font-weight: 700; color: #0f172a; text-align: right; }
.bd-info-list li a { color: #2563eb; font-weight: 700; text-decoration: none; text-align: right; word-break: break-all; }
.bd-info-list li a:hover { text-decoration: underline; }
.bd-info-green  { color: #16a34a !important; }
.bd-info-orange { color: #ea580c !important; }

.bd-info-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bd-info-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s;
}
.bd-info-btn--call {
  background: #2563eb;
  color: #fff;
}
.bd-info-btn--call:hover { background: #1d4ed8; }
.bd-info-btn--web {
  background: #f8fafc;
  color: #2563eb;
  border: 1.5px solid #dbeafe;
}
.bd-info-btn--web:hover { background: #eff6ff; }

/* Why box */
.bd-why-box {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 18px;
  padding: 20px;
  color: #fff;
}
.bd-why-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.bd-why-title i { color: #60a5fa; font-size: 0.8rem; }
.bd-why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.bd-why-list li {
  font-size: 0.77rem;
  color: rgba(255,255,255,0.82);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bd-why-list li i { color: #4ade80; font-size: 0.68rem; flex-shrink: 0; }

/* ── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 900px) {
  .bd-hero       { height: 340px; }
  .bd-hero-inner { padding: 0 20px 24px; }
  .bd-identity   { gap: 14px; }
  .bd-logo-wrap  { width: 80px; height: 80px; }
  .bd-stat-card  { padding: 14px 16px; }
  .bd-body       { padding: 16px 14px 48px; }
}
@media (max-width: 600px) {
  .bd-hero         { height: 300px; }
  .bd-stats-ribbon { justify-content: flex-start; }
  .bd-stat-sep     { display: none; }
  .bd-stat-card    { padding: 12px 14px; }
  .bd-proj-filter  { display: none; }
  .bd-reviews-grid { grid-template-columns: 1fr; }
  .bd-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
