/* ==========================================================
   Bhela Holdings — Custom Stylesheet (Bootstrap 5 compatible)
   Brand: navy #0c2340 | accent-red #c0392b | gold #f0a500
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --navy:   #0c2340;
  --red:    #c0392b;
  --red-dk: #962d22;
  --gold:   #f0a500;
  --light:  #f4f7fb;
  --white:  #ffffff;
  --text:   #333d4b;
  --muted:  #6c757d;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --trans:  .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: var(--navy);
}

a { color: var(--red); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--red-dk); }

/* ── Navbar ───────────────────────────────────────────────── */
#mainNavbar {
  background: transparent;
  padding: 18px 0;
  transition: background var(--trans), padding var(--trans), box-shadow var(--trans);
  z-index: 1050;
}

#mainNavbar.scrolled {
  background: var(--navy) !important;
  padding: 10px 0;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}

#mainNavbar .navbar-brand img {
  height: 60px;
  width: auto;
  transition: height var(--trans);
}

#mainNavbar.scrolled .navbar-brand img { height: 48px; }

#mainNavbar .nav-link {
  color: rgba(255,255,255,.9) !important;
  font-weight: 600;
  font-size: .95rem;
  padding: 8px 14px !important;
  transition: color var(--trans);
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active { color: var(--gold) !important; }

#mainNavbar .dropdown-menu {
  background: var(--navy);
  border: none;
  border-top: 3px solid var(--red);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 280px;
}

#mainNavbar .dropdown-item {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  padding: 10px 20px;
  transition: background var(--trans), color var(--trans);
}

#mainNavbar .dropdown-item:hover,
#mainNavbar .dropdown-item.active {
  background: var(--red);
  color: var(--white);
}

.navbar-toggler { border-color: rgba(255,255,255,.5); }

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── CTA Buttons ──────────────────────────────────────────── */
.btn-quote {
  background: var(--red);
  color: var(--white) !important;
  border: 2px solid var(--red);
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .5px;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  display: inline-block;
  cursor: pointer;
}

.btn-quote:hover {
  background: var(--red-dk);
  border-color: var(--red-dk);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,57,43,.4);
}

.btn-outline-hero {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  font-size: .9rem;
  transition: background var(--trans), color var(--trans);
  display: inline-block;
}

.btn-outline-hero:hover {
  background: rgba(255,255,255,.15);
  color: var(--white) !important;
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 60%, #0a1f35 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(192,57,43,.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(240,165,0,.05) 0%, transparent 40%);
}

#hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

#hero h1 span { color: var(--gold); }

#hero .lead {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.4));
  animation: floatImg 4s ease-in-out infinite;
}

@keyframes floatImg {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.hero-badge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 600;
}

/* ── Accreditations ───────────────────────────────────────── */
#accreditations {
  background: var(--white);
  padding: 70px 0;
  border-top: 4px solid var(--red);
}

.accred-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: box-shadow var(--trans), transform var(--trans);
  height: 100%;
}

.accred-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.accred-card img {
  max-height: 90px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.accred-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.accred-card p  { font-size: .85rem; color: var(--muted); margin: 0; }

/* ── About Section ────────────────────────────────────────── */
#about { padding: 80px 0; background: var(--light); }

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  border: 1px solid #e2e8f0;
  height: 100%;
  text-align: center;
  transition: box-shadow var(--trans);
}

.about-card:hover { box-shadow: var(--shadow); }

.about-card .icon-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid var(--red);
}

.about-card .icon-wrap img { max-width: 46px; height: auto; }
.about-card h2 { font-size: 1.2rem; margin-bottom: 12px; }

.about-card .line-dec {
  width: 40px; height: 3px;
  background: var(--red);
  margin: 0 auto 16px;
  border-radius: 2px;
}

.about-card p { font-size: .9rem; color: var(--muted); line-height: 1.7; }

/* ── Services Section ─────────────────────────────────────── */
#services { padding: 80px 0; background: var(--white); }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2rem; }

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: box-shadow var(--trans), transform var(--trans);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(12,35,64,.15);
  transform: translateY(-4px);
}

.service-card .card-img-wrap {
  background: var(--light);
  padding: 28px;
  display: flex; align-items: center; justify-content: center;
  min-height: 140px;
}

.service-card .card-img-wrap img {
  width: 80px; height: 80px;
  object-fit: contain;
}

.service-card .card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.service-card p   { font-size: .88rem; color: var(--muted); flex: 1; line-height: 1.6; }

.service-card .btn-service {
  margin-top: 16px;
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  font-size: .85rem;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color var(--trans);
}

.service-card .btn-service:hover { color: var(--red-dk); }

/* ── Contact Section ──────────────────────────────────────── */
#contact-us { padding: 80px 0; background: var(--navy); }

#contact-us h2 { color: var(--white); font-size: 2rem; margin-bottom: 30px; }

.contact-info-block h4 {
  color: var(--gold);
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.contact-info-block p { color: rgba(255,255,255,.8); margin-bottom: 20px; font-size: .95rem; }

.contact-info-block .social-links {
  display: flex; gap: 12px; list-style: none; padding: 0; margin: 24px 0 0;
}

.contact-info-block .social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: background var(--trans), border-color var(--trans);
}

.contact-info-block .social-links a:hover {
  background: var(--red); border-color: var(--red);
}

/* Contact Form */
.contact-form-wrap {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-form-wrap .form-control {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .9rem;
  margin-bottom: 16px;
}

.contact-form-wrap .form-control::placeholder { color: rgba(255,255,255,.45); }

.contact-form-wrap .form-control:focus {
  background: rgba(255,255,255,.12);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,165,0,.15);
  color: var(--white);
  outline: none;
}

.contact-form-wrap textarea.form-control { min-height: 130px; resize: vertical; }

.contact-form-wrap .btn-submit {
  background: var(--red); color: var(--white);
  border: none; border-radius: 50px;
  padding: 12px 36px; font-weight: 700; font-size: .95rem;
  width: 100%;
  transition: background var(--trans), transform var(--trans);
  cursor: pointer;
}

.contact-form-wrap .btn-submit:hover { background: var(--red-dk); transform: translateY(-2px); }

/* ── Quote Modal ──────────────────────────────────────────── */
#quoteModal .modal-header { background: var(--navy); }
#quoteModal .modal-title { color: var(--white); font-weight: 700; }
#quoteModal .btn-close { filter: invert(1); }

#quoteModal .form-control {
  border-radius: var(--radius);
  margin-bottom: 14px;
  padding: 11px 14px;
}

#quoteModal .btn-submit {
  background: var(--red); color: var(--white);
  border: none; border-radius: 50px;
  padding: 12px 36px; font-weight: 700;
  width: 100%; cursor: pointer;
  transition: background var(--trans);
}

#quoteModal .btn-submit:hover { background: var(--red-dk); }

/* ── Footer ───────────────────────────────────────────────── */
footer { background: #071929; color: rgba(255,255,255,.65); padding: 50px 0 24px; }

footer h5 {
  color: var(--white); font-size: .9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}

footer .footer-brand {
  font-size: 1.4rem; font-weight: 900; color: var(--white);
  text-decoration: none; display: block; margin-bottom: 10px;
}

footer .footer-brand span { color: var(--red); }

footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 8px; font-size: .88rem; }
footer ul li a { color: rgba(255,255,255,.65); transition: color var(--trans); }
footer ul li a:hover { color: var(--gold); }

footer .social-links {
  display: flex; gap: 10px; list-style: none; padding: 0; margin-top: 16px;
}

footer .social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: .85rem;
  transition: background var(--trans), color var(--trans);
}

footer .social-links a:hover {
  background: var(--red); border-color: var(--red); color: var(--white);
}

.footer-divider { border-color: rgba(255,255,255,.08); margin: 32px 0 20px; }
.footer-bottom { font-size: .8rem; color: rgba(255,255,255,.4); text-align: center; }

/* ── Back to Top ──────────────────────────────────────────── */
#backToTop {
  position: fixed; bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: var(--red); color: var(--white);
  border: none; border-radius: 50%; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--trans), transform var(--trans), visibility var(--trans);
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(192,57,43,.4);
}

#backToTop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--red-dk); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb-wrap {
  background: var(--light);
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumb { margin: 0; padding: 0; background: transparent; font-size: .85rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }
.breadcrumb-item.active { color: var(--red); font-weight: 600; }

/* ── Service Hero Banner (service pages) ──────────────────── */
.service-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  padding: 80px 0 60px;
  color: var(--white);
}

.service-hero h1 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.4rem); }
.service-hero p  { color: rgba(255,255,255,.8); font-size: 1rem; }

/* ── Utilities ────────────────────────────────────────────── */
.section-eyebrow {
  font-size: .78rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); margin-bottom: 6px; display: block;
}

.divider-red {
  width: 50px; height: 4px;
  background: var(--red); border-radius: 2px;
  margin: 12px auto 0;
}

.form-success-msg {
  display: none; color: #155724;
  background: #d4edda; border: 1px solid #c3e6cb;
  border-radius: var(--radius); padding: 12px 16px;
  font-size: .9rem; margin-top: 10px;
}

/* ── Sidebar Quote Form ───────────────────────────────────── */
.sidebar-form { background: var(--navy); border-radius: 12px; padding: 32px; }
.sidebar-form h3 { color: #fff; font-size: 1.1rem; margin-bottom: 20px; }
.sidebar-form .form-control {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 8px; margin-bottom: 14px;
}
.sidebar-form .form-control::placeholder { color: rgba(255,255,255,.45); }
.sidebar-form .form-control:focus {
  background: rgba(255,255,255,.12); border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,165,0,.15); color: #fff; outline: none;
}
.sidebar-form textarea.form-control { resize: vertical; min-height: 100px; }
.sidebar-form select.form-control option { background: var(--navy); color: #fff; }

/* Fix select option contrast in contact dark form */
.contact-form-wrap select.form-control option { background: var(--navy); color: #fff; }
#quoteModal select.form-control option { background: #fff; color: var(--text); }

/* ── Responsive ───────────────────────────────────────────── */

/* Fix Bootstrap g-5 gutter overflow on mobile */
@media (max-width: 767.98px) {
  .row.g-5 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 2rem;
  }
}

@media (max-width: 991.98px) {
  #mainNavbar { background: var(--navy) !important; padding: 12px 0; }
  #mainNavbar .navbar-collapse { padding: 16px 0; }
  #mainNavbar .nav-link { padding: 10px 0 !important; }
  #mainNavbar .btn-quote { margin: 10px 0; display: inline-block; }
  #mainNavbar .dropdown-menu { border-top: none; padding-left: 16px; }
}

/* ── Tablet (≤767px) ──────────────────────────────────────── */
@media (max-width: 767.98px) {
  #hero { padding: 100px 0 48px; min-height: auto; }
  .hero-img { max-width: 240px; margin: 24px auto 0; display: block; }
  .contact-form-wrap { padding: 24px 18px; }
  #backToTop { bottom: 16px; right: 16px; }

  /* Reduce section vertical padding */
  #accreditations { padding: 50px 0; }
  #about          { padding: 50px 0; }
  #services       { padding: 50px 0; }
  #contact-us     { padding: 50px 0; }

  /* Shrink service-hero on tablet */
  .service-hero { padding: 56px 0 44px; }
  .service-hero h1 { font-size: clamp(1.4rem, 5vw, 2rem); }

  /* Section heading size */
  .section-header h2,
  #accreditations h2,
  #about h2,
  #services h2 { font-size: 1.7rem; }

  /* Sidebar form: remove sticky when stacked */
  .sidebar-form {
    position: static !important;
    margin-top: 40px;
    border-top: 3px solid var(--red);
    border-radius: 0 0 12px 12px;
  }

  /* Inline sections (service page main sections) */
  section[style*="padding:80px"] { padding: 50px 0 !important; }
  section[style*="padding:70px"] { padding: 44px 0 !important; }
}

/* ── Mobile (≤575px) ──────────────────────────────────────── */
@media (max-width: 575.98px) {
  /* Hero CTAs: stack full-width */
  #hero .d-flex.flex-wrap { flex-direction: column; align-items: stretch; }
  #hero .btn-quote,
  #hero .btn-outline-hero { width: 100%; text-align: center; justify-content: center; }

  /* Hero image smaller */
  .hero-img { max-width: 200px; }

  /* Service-hero hide image to save space */
  .service-hero .col-lg-5 { display: none; }
  .service-hero .col-lg-7 { flex: 0 0 100%; max-width: 100%; }

  /* Tighter section padding */
  #accreditations,
  #about,
  #services,
  #contact-us { padding: 44px 0; }
  .service-hero { padding: 44px 0 36px; }

  /* Heading scale */
  h1 { font-size: clamp(1.6rem, 7vw, 2.2rem) !important; }
  h2 { font-size: 1.5rem; }

  /* Sidebar form full radius on mobile */
  .sidebar-form { border-radius: 12px; margin-top: 32px; }

  /* Service page inline sections */
  section[style*="padding:80px"] { padding: 44px 0 !important; }
  section[style*="padding:70px"] { padding: 36px 0 !important; }

  /* Footer tighter */
  footer { padding: 40px 0 20px; }

  /* Breadcrumb smaller */
  .breadcrumb { font-size: .78rem; }

  /* Quote modal full screen on mobile */
  #quoteModal .modal-dialog { margin: 0.5rem; }

  /* Contact section heading */
  #contact-us h2 { font-size: 1.5rem; }

  /* Make "Send Enquiry" / "Send Message" buttons easier to tap */
  .sidebar-form button[type="submit"],
  .contact-form-wrap .btn-submit { padding: 14px; font-size: 1rem; }
}
