/* ============================================
   Building Doctor BD — Master CSS
   Reusable across all pages
   ============================================ */

/* 1. Design Tokens */
:root {
  --bd-navy:   #061b3f;
  --bd-navy2:  #071b4b;
  --bd-orange: #ff5a00;
  --bd-orange2:#ff6b00;
  --bd-gold:   #ffb000;
  --bd-text:   #07142f;
  --bd-muted:  #5e6676;
  --bd-soft:   #f6f7f9;
  --bd-border: #e7e9ee;
}

/* 2. Base / Reset */
.bd-main, .bd-main * { box-sizing: border-box; }
.bd-main {
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--bd-text);
  background: #fff;
  line-height: 1.5;
}
.bd-main img { max-width: 100%; display: block; }
.bd-container { width: min(1180px, calc(100% - 48px)); margin: auto; }

/* 3. Badge */
.bd-badge {
  display: inline-block;
  color: var(--bd-orange);
  background: #fff3ec;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

/* 4. Buttons */
.bd-btn {
  height: 54px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}
.bd-btn:hover { transform: translateY(-2px); opacity: 0.95; }
.bd-btn-orange { background: var(--bd-orange); color: #fff; box-shadow: 0 8px 20px rgba(255,90,0,.22); }
.bd-btn-outline { background: #fff; color: var(--bd-navy); border-color: #cfd4dd; box-shadow: 0 2px 6px rgba(0,0,0,0.03); }

/* 5. Section Layout */
.bd-section { padding: 60px 0; background: var(--bd-soft); }
.bd-section-head { text-align: center; margin-bottom: 45px; }
.bd-eyebrow { color: var(--bd-orange); font-size: 13px; font-weight: 900; margin-bottom: 6px; letter-spacing: 1px; }
.bd-section-head h2 { color: var(--bd-navy); font-size: 36px; font-weight: 900; margin: 0; letter-spacing: -0.5px; }
.bd-section-head p { color: #4b5563; font-size: 16px; margin: 8px 0 0; }

/* 6. Hero */
.bd-hero { position: relative; overflow: hidden; min-height: 620px; background: #f7f7f7; display: flex; align-items: center; }
.bd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 40%, rgba(255,255,255,.40) 70%, rgba(255,255,255,.15) 100%);
  z-index: 2;
}
.bd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: center;
  gap: 40px;
  min-height: 580px;
  position: relative;
  z-index: 5;
  padding: 40px 0;
}
.bd-hero-content { position: relative; z-index: 5; background: transparent; }
.bd-hero h1 { font-size: 48px; line-height: 1.15; letter-spacing: -1.2px; font-weight: 900; color: var(--bd-navy); margin: 0 0 18px; }
.bd-hero h1 span { color: var(--bd-orange); }
.bd-subtitle { font-size: 18px; color: #222b3b; margin: 0 0 28px; max-width: 560px; line-height: 1.5; }
.bd-hero-actions { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.bd-hero-bg-image { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.bd-hero-bg-image img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }

/* Hero Benefit Cards */
.bd-benefits { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; width: 100%; max-width: 600px; margin: 28px 0 10px; }
.bd-hero-mobile-wa { display: none; }
.bd-benefit { text-align: center; padding: 12px 8px; border-radius: 12px; transition: all .28s ease; cursor: pointer; background: rgba(6,27,63,0.18); border: 1px solid rgba(6,27,63,0.1); }
.bd-benefit:hover { background: rgba(6,27,63,0.28); transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.bd-benefit:hover .bd-benefit-icon { transform: scale(1.08); background: #fff; }
.bd-benefit-icon { width: 42px; height: 42px; transition: all .28s ease; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; background: rgba(255,255,255,0.85); border: 1px solid rgba(6,27,63,0.1); font-size: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.bd-benefit p { font-size: 12px; line-height: 1.4; font-weight: 700; margin: 0; color: #374151; }

/* WhatsApp + Call CTA hover */
.bd-cta-wa { transition: all .28s ease; }
.bd-cta-wa:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(37,211,102,0.5) !important; filter: brightness(1.06); }
.bd-cta-call { transition: all .28s ease; }
.bd-cta-call:hover { transform: translateY(-4px); background: rgba(255,255,255,0.2) !important; box-shadow: 0 10px 24px rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.4) !important; }

/* 7. Stats Bar */
.bd-stats { background: linear-gradient(90deg,#061b3f,#071f50); color: #fff; }
.bd-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.bd-stat { min-height: 132px; display: flex; align-items: center; justify-content: center; gap: 22px; border-right: 1px solid rgba(255,255,255,.18); }
.bd-stat:last-child { border-right: 0; }
.bd-stat i { font-size: 32px; color: var(--bd-gold); }
.bd-stat strong { font-size: 32px; line-height: 1; display: block; font-weight: 800; }
.bd-stat p { font-size: 15px; margin: 6px 0 0; color: #cbd5e1; }

/* 8. Service Cards */
.bd-services-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }
.bd-service-card { background: #fff; border: 1px solid var(--bd-border); border-radius: 12px; padding: 30px 20px 24px; text-align: center; min-height: 240px; box-shadow: 0 8px 24px rgba(7,27,75,.03); transition: all 0.3s ease; }
.bd-service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(7,27,75,0.08); border-color: rgba(255,90,0,0.3); }
.bd-icon-circle { width: 60px; height: 60px; border-radius: 50%; background: #fff0e8; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; color: var(--bd-orange); font-size: 24px; }
.bd-service-card h3 { color: #0f172a; font-size: 18px; line-height: 1.3; margin: 0 0 12px; font-weight: 800; }
.bd-service-card p { font-size: 13px; color: #4b5563; margin: 0; line-height: 1.45; }

/* 9. Why Section */
.bd-why { padding: 60px 0; background: var(--bd-soft); }
.bd-why-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.bd-why h2 { font-size: 36px; line-height: 1.2; color: var(--bd-navy); font-weight: 900; margin: 0 0 20px; letter-spacing: -0.5px; }
.bd-why h2 span { color: var(--bd-orange); }
.bd-check-list { list-style: none; margin: 0; padding: 0; }
.bd-check-list li { margin: 14px 0; font-size: 16px; font-weight: 600; display: flex; gap: 12px; align-items: center; color: #1e293b; }
.bd-check-list i { color: var(--bd-orange); font-size: 20px; }
.bd-why-image { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.bd-why-image img { width: 100%; height: 380px; object-fit: cover; }
.bd-float-card { position: absolute; right: 32px; bottom: 20px; background: #fff; border-radius: 12px; padding: 20px 28px; box-shadow: 0 14px 34px rgba(6,27,63,.18); text-align: center; }
.bd-float-card strong { display: block; color: var(--bd-orange); font-size: 36px; font-weight: 900; line-height: 1; }
.bd-float-card span { font-weight: 800; color: var(--bd-navy); font-size: 14px; }
.bd-stars { color: #ff9700; letter-spacing: 2px; margin-top: 6px; }

/* 10. Testimonials */
.bd-testimonials { padding: 60px 0; background: var(--bd-soft); }
.bd-testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.bd-testimonial { background: #fff; border: 1px solid var(--bd-border); border-radius: 12px; padding: 26px; display: grid; grid-template-columns: 58px 1fr; gap: 18px; box-shadow: 0 8px 24px rgba(7,27,75,.02); }
.bd-testimonial img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bd-border); }
.bd-testimonial .bd-stars { margin: 0 0 8px; font-size: 12px; }
.bd-testimonial p { font-size: 14px; color: #334155; margin: 0 0 12px; line-height: 1.5; font-style: italic; }
.bd-testimonial strong { display: block; font-size: 15px; color: var(--bd-navy); font-weight: 700; }
.bd-testimonial small { font-size: 12px; color: var(--bd-muted); }

/* 11. Trusted Brands */
.bd-trusted { text-align: center; padding: 40px 0 60px; background: #fafafa; border-top: 1px solid var(--bd-border); }
.bd-logo-row { display: grid; grid-template-columns: repeat(6,1fr); gap: 28px; align-items: center; color: #64748b; font-weight: 800; font-size: 16px; }
.bd-logo-row span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; background: #fff; border-radius: 8px; border: 1px solid #f0f2f5; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.bd-logo-row small { display: block; font-size: 10px; font-weight: 800; color: #94a3b8; }

/* 12. Page Hero (inner pages) */
.bd-page-hero { background: linear-gradient(135deg, var(--bd-navy) 0%, var(--bd-navy2) 100%); color: #fff; padding: 16px 0; text-align: center; }
.bd-page-hero h1 { font-size: 42px; font-weight: 900; margin: 0 0 12px; letter-spacing: -0.5px; }
.bd-page-hero p { font-size: 18px; color: rgba(255,255,255,0.75); margin: 0; }
.bd-breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.bd-breadcrumb a { color: var(--bd-orange); text-decoration: none; }
.bd-breadcrumb span { color: rgba(255,255,255,0.35); }

.bd-areas-served { padding: 60px 0; background: var(--bd-soft); }
.bd-areas-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 780px; margin: 0 auto; }
.bd-area-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--bd-border); border-radius: 30px; padding: 10px 20px; font-size: 14px; font-weight: 700; color: var(--bd-navy); }
.bd-areas-note { text-align: center; font-size: 14px; color: #6b7280; margin: 24px 0 0; }
.bd-areas-note a { color: var(--bd-orange); font-weight: 700; text-decoration: none; }

.bd-page-hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.bd-page-hero-wa, .bd-page-hero-call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 10px; font-size: 14px; font-weight: 800; text-decoration: none; font-family: inherit; white-space: nowrap; }
.bd-page-hero-wa { background: #25D366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,0.3); }
.bd-page-hero-call { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); }

/* ============================================
   Responsive
   ============================================ */
@media(max-width:1050px) {
  .bd-services-grid { grid-template-columns: repeat(3,1fr); }
}
@media(max-width:768px) {
  .bd-container { width: min(100% - 32px, 1180px); }
  .bd-hero { padding: 40px 0; min-height: 0; background: #f7f9fc; }
  /* clean hero on mobile — hide background photo + desktop side-gradient */
  .bd-hero-bg-image { display: none; }
  .bd-hero::before { display: none; }
  .bd-hero-grid, .bd-why-grid, .bd-testimonial-grid { grid-template-columns: 1fr; }
  .bd-hero-grid { min-height: 0; }
  .bd-hero h1 { font-size: 36px; }
  .bd-benefits { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .bd-hero-actions { flex-direction: column; gap: 12px; }
  .bd-hero-actions .bd-btn { width: 100%; }
  .bd-hero-mobile-wa { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px; margin-top: 14px; background: #25D366; color: #fff; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 800; box-shadow: 0 8px 20px rgba(37,211,102,0.3); }
  .bd-stats-grid { grid-template-columns: repeat(2,1fr); }
  .bd-stat { border-bottom: 1px solid rgba(255,255,255,.14); border-right: 1px solid rgba(255,255,255,.14); }
  .bd-stat:nth-child(2n) { border-right: 0; }
  .bd-stat:nth-child(3), .bd-stat:nth-child(4) { border-bottom: 0; }
  .bd-services-grid { grid-template-columns: repeat(2,1fr); }
  .bd-logo-row { grid-template-columns: repeat(3,1fr); gap: 14px; }
  .bd-why-image img { height: 280px; }
  .bd-page-hero h1 { font-size: 30px; }
}
@media(max-width:480px) {
  .bd-hero h1 { font-size: 30px; }

  /* Services: 2-column compact grid on mobile (shorter page) */
  .bd-services-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .bd-service-card { padding: 20px 12px 18px; min-height: 0; }
  .bd-icon-circle { width: 48px; height: 48px; margin-bottom: 12px; }
  .bd-service-card h3 { font-size: 15px; margin-bottom: 7px; }
  .bd-service-card p { font-size: 12px; line-height: 1.4; }

  /* Testimonials: show only first 3 on mobile (keeps page short) */
  .bd-testimonial:nth-child(n+4) { display: none; }

  /* Trim big section padding on mobile */
  .bd-section, .bd-why, .bd-testimonials { padding-top: 44px; padding-bottom: 44px; }
  section[style*="padding:70px 0"], section[style*="padding:72px 0"] { padding-top: 44px !important; padding-bottom: 44px !important; }
  /* stats stay as a balanced 2x2 grid on mobile */
  .bd-stats-grid { grid-template-columns: repeat(2,1fr); }
  /* perfectly centered stacked stats on mobile */
  .bd-stat { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0; padding: 26px 10px; min-height: auto; }
  .bd-stat i { display: none; }            /* hide non-rendering icon (was adding offset) */
  .bd-stat p { margin-top: 6px; }
  .bd-stat { border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
  .bd-stat:nth-child(2n) { border-right: 0; }
  .bd-stat:nth-child(3), .bd-stat:nth-child(4) { border-bottom: 0; }
  .bd-float-card { right: 14px; bottom: 14px; padding: 12px 18px; }
  .bd-logo-row { grid-template-columns: repeat(2,1fr); }
}

/* ============================================
   Service Sub-Pages — Shared CSS
   ============================================ */

/* Service Overview */
.bd-svc-overview { padding: 60px 0; background: #fff; }
.bd-svc-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.bd-svc-overview-text h2 { font-size: 34px; font-weight: 900; color: var(--bd-navy); margin: 0 0 18px; line-height: 1.2; letter-spacing: -0.5px; }
.bd-svc-overview-text h2 span { color: var(--bd-orange); }
.bd-svc-overview-text p { font-size: 16px; color: #4b5563; line-height: 1.8; margin: 0 0 16px; }
.bd-svc-overview-visual { border-radius: 20px; min-height: 340px; display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 50px rgba(7,27,75,.12); }

/* Features Grid */
.bd-features-section { padding: 60px 0; background: var(--bd-soft); }
.bd-features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.bd-feature-card { background: #fff; border: 1px solid var(--bd-border); border-radius: 14px; padding: 28px 24px; transition: all 0.3s ease; }
.bd-feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(7,27,75,.07); border-color: rgba(255,90,0,0.2); }
.bd-feature-icon { width: 50px; height: 50px; border-radius: 12px; background: #fff0e8; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.bd-feature-card h3 { font-size: 16px; font-weight: 800; color: var(--bd-navy); margin: 0 0 8px; }
.bd-feature-card p { font-size: 14px; color: #4b5563; line-height: 1.6; margin: 0; }

/* Process Steps */
.bd-process-section { padding: 60px 0; background: #fff; }
.bd-process-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; position: relative; }
.bd-process-steps::before { content:""; position:absolute; top:22px; left:10%; right:10%; height:2px; background: linear-gradient(90deg, var(--bd-orange), rgba(255,90,0,0.2)); z-index:0; }
.bd-process-step { text-align: center; position: relative; z-index: 1; }
.bd-process-num { width: 46px; height: 46px; border-radius: 50%; background: var(--bd-orange); color: #fff; font-size: 16px; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; box-shadow: 0 4px 14px rgba(255,90,0,0.3); }
.bd-process-step h3 { font-size: 13px; font-weight: 800; color: var(--bd-navy); margin: 0 0 6px; }
.bd-process-step p { font-size: 12px; color: #4b5563; line-height: 1.5; margin: 0; }

/* FAQ */
.bd-svc-faq { padding: 60px 0; background: var(--bd-soft); }
.bd-svc-faq-list { max-width: 750px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.bd-svc-faq-item { background: #fff; border: 1px solid var(--bd-border); border-radius: 12px; padding: 22px 26px; }
.bd-svc-faq-item h3 { font-size: 16px; font-weight: 800; color: var(--bd-navy); margin: 0 0 8px; }
.bd-svc-faq-item p { font-size: 14px; color: #4b5563; line-height: 1.6; margin: 0; }

/* Service CTA */
.bd-svc-cta { background: linear-gradient(135deg,var(--bd-navy),var(--bd-navy2)); color: #fff; padding: 60px 0; text-align: center; }
.bd-svc-cta h2 { font-size: 32px; font-weight: 900; margin: 0 0 12px; letter-spacing: -0.5px; }
.bd-svc-cta p { font-size: 16px; color: rgba(255,255,255,0.75); margin: 0 0 28px; }
.bd-svc-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media(max-width:900px) {
  .bd-svc-overview-grid { grid-template-columns: 1fr; }
  .bd-svc-overview-visual { min-height: 240px; }
  .bd-features-grid { grid-template-columns: repeat(2,1fr); }
  .bd-process-steps { grid-template-columns: repeat(2,1fr); }
  .bd-process-steps::before { display: none; }
}
@media(max-width:600px) {
  /* keep 2-column on mobile for a shorter, compact page */
  .bd-features-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .bd-feature-card { padding: 18px 14px; }
  .bd-feature-card h3 { font-size: 15px; }
  .bd-feature-card p { font-size: 13px; }
  .bd-process-steps { grid-template-columns: repeat(2,1fr); gap: 24px 14px; }
}

/* ===== Mobile compaction for inner pages (shorter scroll) ===== */
@media(max-width:480px) {
  /* trim section padding across all inner-page sections */
  .bd-svc-overview, .bd-features-section, .bd-process-section,
  .bd-svc-faq, .bd-svc-cta { padding-top: 42px; padding-bottom: 42px; }
  section[style*="padding: 60px 0"], section[style*="padding:60px 0"],
  section[style*="padding: 70px 0"] { padding-top: 42px !important; padding-bottom: 42px !important; }
  /* tighten big inner headings */
  .bd-svc-overview-text h2, .bd-svc-cta h2 { font-size: 26px; }
  .bd-svc-overview-grid { gap: 28px; }

  /* card-list grids: keep 2 columns on mobile for a shorter page */
  .bd-values-grid, .bd-jobs-grid, .bd-prob-grid,
  .bd-team-grid, .bd-cs-grid, .bd-svc-grid {
    grid-template-columns: repeat(2,1fr) !important;
    gap: 12px !important;
  }
  /* cards inside compact grids must not overflow their column */
  .bd-values-grid > *, .bd-jobs-grid > *, .bd-prob-grid > *,
  .bd-team-grid > *, .bd-cs-grid > *, .bd-svc-grid > * {
    box-sizing: border-box; min-width: 0;
  }
  /* card buttons stack full-width so two buttons fit in a narrow column */
  .bd-svc-actions, .bd-prob-actions { flex-direction: column; gap: 8px; }
  .bd-svc-actions > *, .bd-prob-actions > * {
    width: 100%; box-sizing: border-box; text-align: center; justify-content: center;
  }
}
