/* ============================================================
   SmartBarq V3 - Main Stylesheet
   ============================================================ */

:root {
  --primary: #1a56db;
  --primary-dark: #1341b0;
  --dark: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
}

* { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); }

/* ── Top Banner ─────────────────────────────────────────── */
.top-banner {
  background: var(--dark);
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 0;
  position: relative;
  z-index: 1001;
}
.top-banner .contact-info span { display: flex; align-items: center; gap: 6px; }
.top-banner .social-icons a { color: #64748b; margin-left: 12px; font-size: 15px; transition: color .2s; }
.top-banner .social-icons a:hover { color: #fff; }

/* ── Navbar ─────────────────────────────────────────────── */
.main-navbar {
  background: rgba(15, 23, 42, 0.97) !important;
  padding: 12px 0;
  transition: box-shadow .3s;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.main-navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.main-navbar .navbar-brand img { max-height: 55px; }
.main-navbar .nav-link { color: #cbd5e1 !important; font-weight: 500; font-size: 15px; padding: 6px 14px !important; border-radius: 6px; transition: all .2s; }
.main-navbar .nav-link:hover, .main-navbar .nav-link.active { color: #fff !important; background: rgba(255,255,255,.08); }
.main-navbar .dropdown-menu { border: none; box-shadow: 0 8px 30px rgba(0,0,0,.12); border-radius: 12px; padding: 8px; }
.main-navbar .dropdown-item { border-radius: 6px; padding: 8px 12px; font-size: 14px; color: var(--text); }
.main-navbar .dropdown-item:hover { background: #f1f5f9; color: var(--primary); }

/* ── Carousel ───────────────────────────────────────────── */
#mainCarousel .carousel-item img { height: 520px; object-fit: cover; filter: brightness(.65); }
#mainCarousel .carousel-caption { bottom: 60px; text-align: left; left: 10%; right: 30%; }
#mainCarousel .carousel-caption h5 { font-size: clamp(22px, 3vw, 36px); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
#mainCarousel .carousel-caption p { font-size: 16px; opacity: .9; margin-bottom: 20px; }
#mainCarousel .carousel-caption .btn { font-weight: 600; padding: 10px 28px; border-radius: 8px; }

/* ── Page Hero (Full Background Image) ─────────────────── */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.65));
  z-index: 1;
}
.page-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
}
.page-hero h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.3); margin-bottom: 12px; }
.page-hero .lead { font-size: clamp(14px, 2vw, 18px); opacity: .85; max-width: 600px; margin: 0 auto; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.9); }

/* Default hero backgrounds per page */
.hero-about    { background-image: url('../images/about-us.jpg'); }
.hero-team     { background-image: url('../images/team2.jpeg'); }
.hero-services { background-image: url('../images/construction.jpg'); }
.hero-contact  { background-image: url('../images/home-about.jpg'); }
.hero-blog     { background-image: url('../images/slide2.jpg'); }
.hero-solution { background-image: url('../images/solution3.jpg'); }
.hero-default  { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); }

/* ── About Section ──────────────────────────────────────── */
#about { background: #fff; }
#about img { border-radius: 12px; }
#about h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 16px; }

/* ── Services Preview ───────────────────────────────────── */
#services-preview { background: #f8fafc; }
.services-preview-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.services-preview-item:last-child { border-bottom: none; }
.services-preview-item i { color: var(--primary); }
.service-title { color: var(--text); transition: color .2s; }
.service-title:hover { color: var(--primary); }

/* ── Service Cards ──────────────────────────────────────── */
.service-card { transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1) !important; }

/* ── Team Cards ─────────────────────────────────────────── */
.team-card { transition: transform .2s, box-shadow .2s; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1) !important; }
.team-img { width: 120px; height: 120px; object-fit: cover; border: 3px solid var(--border); }
.role { color: var(--primary) !important; font-weight: 500; }

/* ── Blog ───────────────────────────────────────────────── */
.blog-card { transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1) !important; }
.blog-content img { max-width: 100%; border-radius: 8px; }
.blog-content h1, .blog-content h2, .blog-content h3 { margin-top: 1.5rem; }

/* ── Footer ─────────────────────────────────────────────── */
.main-footer { background: var(--dark); }
.main-footer h5 { font-weight: 700; color: #f1f5f9; margin-bottom: 16px; }
.main-footer p, .main-footer li { color: #94a3b8; font-size: 14px; margin-bottom: 8px; }
.main-footer a { color: #94a3b8; text-decoration: none; font-size: 14px; transition: color .2s; }
.main-footer a:hover { color: #fff; }

/* ── WhatsApp Button ────────────────────────────────────── */
.whatsapp-button {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25d366; color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 9999; transition: transform .2s, box-shadow .2s; text-decoration: none;
}
.whatsapp-button:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,.5); color: white; }

/* ── Utilities ──────────────────────────────────────────── */
.btn-primary { background: var(--primary); border-color: var(--primary); font-weight: 600; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.hover-primary:hover { color: var(--primary) !important; }
.service-description { line-height: 1.8; color: var(--muted); }
.custom-page-content img { max-width: 100%; border-radius: 8px; }
.custom-page-content h1, .custom-page-content h2 { margin-top: 1.5rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  #mainCarousel .carousel-item img { height: 320px; }
  #mainCarousel .carousel-caption { left: 5%; right: 5%; bottom: 40px; }
  #mainCarousel .carousel-caption h5 { font-size: 20px; }
  #mainCarousel .carousel-caption p { display: none; }
  .page-hero { min-height: 260px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero .hero-content { padding: 60px 20px; }
}
