/* === Bhoomi Infosolutions — modern UI overlay ===
   Loaded after Bootstrap + the inline scoped styles, so plain-class selectors
   here override the [_ngcontent-*]-scoped variants by cascade order. */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bi-green: #73b800;
  --bi-green-dark: #5a9300;
  --bi-green-soft: #f0f7e2;
  --bi-red: #ed1f27;
  --bi-red-dark: #c81820;
  --bi-text: #1f2937;
  --bi-muted: #6b7280;
  --bi-light: #f8fafc;
  --bi-dark: #0f172a;
  --bi-border: #e5e7eb;
  --bi-radius: 14px;
  --bi-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --bi-shadow-md: 0 4px 16px rgba(15, 23, 42, .08);
  --bi-shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);
  --bi-transition: all .25s ease;
}

/* ---------- Base typography ---------- */
body {
  font-family: 'Plus Jakarta Sans', 'Lato', system-ui, -apple-system, sans-serif !important;
  color: var(--bi-text);
  font-size: 16px;
  line-height: 1.65;
  background: #fff;
  padding-top: 80px !important;
}

/* Custom Angular elements default to display:inline, which leaves whitespace
   gaps between them in the body (visible as a thin strip below the fixed
   navbar). Force them to behave like blocks. */
app-root,
app-menu,
app-footer,
app-home,
app-about-us-widget,
app-product-widget,
app-contactus,
router-outlet,
ng-component {
  display: block;
}
router-outlet { display: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--bi-text);
  letter-spacing: -.015em;
  font-weight: 700;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
}
p { color: var(--bi-text); }
img { max-width: 100%; height: auto; }
html { scroll-behavior: smooth; }

/* ---------- Navbar ---------- */
.navbar.navbar-light.bg-light {
  background-color: rgba(255, 255, 255, .92) !important;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .04);
  padding: .75rem 2rem;
  border: 0;
}
.navbar .navbar-brand img { height: 48px; width: auto; }
.navbar .nav-link {
  color: var(--bi-text) !important;
  font-weight: 600;
  padding: .5rem 1rem !important;
  border-radius: 8px;
  transition: var(--bi-transition);
}
.navbar .nav-link:hover {
  color: var(--bi-green-dark) !important;
  background-color: var(--bi-green-soft);
}
.navbar .dropdown-toggle::after { margin-left: .35em; }
.navbar .dropdown-menu {
  border: 0;
  border-radius: var(--bi-radius);
  box-shadow: var(--bi-shadow-lg);
  padding: .5rem;
  margin-top: .5rem;
  min-width: 280px;
}
.navbar .dropdown-item {
  border-radius: 8px;
  padding: .6rem 1rem;
  color: var(--bi-text);
  transition: var(--bi-transition);
  font-weight: 500;
  white-space: normal;
}
.navbar .dropdown-item:hover {
  background-color: var(--bi-green-soft);
  color: var(--bi-green-dark);
}
.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(31,41,55,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
}
.custom-toggler {
  border: 1px solid var(--bi-border) !important;
  border-radius: 8px;
  padding: .35rem .6rem !important;
}

/* ---------- Section widgets ---------- */
.widget {
  padding: 5rem 1rem !important;
}
.widget.aboutus-widget {
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%) !important;
  color: var(--bi-text) !important;
}
.widget.product-widget {
  background: #fff !important;
  color: var(--bi-text) !important;
}
.widget.contactus-widget {
  background: var(--bi-light) !important;
  color: var(--bi-text) !important;
}
.widget > .row { max-width: 1200px; margin: 0 auto !important; justify-content: center; }
.widget .header { margin-bottom: 3rem; }
.widget .header h1 {
  text-align: center;
  font-size: 2.5rem;
  margin: 0;
  position: relative;
  padding-bottom: 1rem;
}
.widget .header h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--bi-green);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* About-us widget on home */
.widget.aboutus-widget .companyheader h1 {
  text-align: left;
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}
.widget.aboutus-widget .companyheader h1::after { display: none; }
.widget.aboutus-widget p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--bi-text);
}
.widget.aboutus-widget .emphasis {
  color: var(--bi-green-dark);
  font-weight: 600;
}
.widget.aboutus-widget img {
  max-width: 100%;
  height: auto;
  border-radius: var(--bi-radius);
  box-shadow: var(--bi-shadow-md);
}
.widget.aboutus-widget a > img { transition: var(--bi-transition); }
.widget.aboutus-widget a:hover > img { transform: scale(1.02); box-shadow: var(--bi-shadow-lg); }
.widget.aboutus-widget .align-center { text-align: left; margin-top: 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 8px !important;
  font-weight: 600;
  padding: .65rem 1.5rem !important;
  transition: var(--bi-transition) !important;
  border: 0 !important;
  cursor: pointer;
}
.widget.aboutus-widget .btn,
.btn.btn-primary {
  background-color: var(--bi-green) !important;
  color: #fff !important;
}
.widget.aboutus-widget .btn:hover,
.btn.btn-primary:hover {
  background-color: var(--bi-green-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--bi-shadow-md);
  color: #fff !important;
}
.btn.btn-form,
.btn.btn-secondary {
  background-color: var(--bi-green) !important;
  color: #fff !important;
  padding: .9rem 2rem !important;
  font-size: 1rem !important;
  letter-spacing: .02em;
  width: auto;
}
.btn.btn-form:hover,
.btn.btn-secondary:hover {
  background-color: var(--bi-green-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--bi-shadow-md);
  color: #fff !important;
}

/* ---------- Product cards ---------- */
.product-widget .row { margin-bottom: 0; }
.productCard {
  border: 0 !important;
  border-radius: var(--bi-radius) !important;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--bi-shadow-sm);
  transition: var(--bi-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.75rem;
}
.productCard:hover {
  transform: translateY(-4px);
  box-shadow: var(--bi-shadow-lg);
}
.productCard .card-img-top {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  display: block;
}
.productCard .card-body {
  padding: 1.5rem !important;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.productCard .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bi-text);
  margin-bottom: .75rem;
}
.productCard .card-text {
  font-size: .95rem;
  color: var(--bi-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}
.productCard .btn { align-self: flex-start; }

/* ---------- Contact widget ---------- */
.widget.contactus-widget iframe {
  width: 100% !important;
  height: 360px !important;
  border-radius: var(--bi-radius);
  box-shadow: var(--bi-shadow-md);
  border: 0 !important;
}
.widget.contactus-widget h4 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.widget.contactus-widget .form-control {
  border: 1px solid var(--bi-border) !important;
  border-radius: 8px !important;
  padding: .85rem 1rem !important;
  font-size: 1rem !important;
  margin-bottom: 1rem;
  background: #fff;
  transition: var(--bi-transition);
  height: auto;
}
.widget.contactus-widget .form-control:focus {
  border-color: var(--bi-green) !important;
  box-shadow: 0 0 0 3px var(--bi-green-soft) !important;
  outline: 0;
}
.widget.contactus-widget textarea.form-control { min-height: 130px; }
.widget.contactus-widget .form-group { margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.footer {
  background-color: var(--bi-dark) !important;
  color: #cbd5e1 !important;
  padding: 4rem 1rem 2rem !important;
}
.footer > .row { max-width: 1200px; margin: 0 auto !important; }
.footer .heading {
  color: #fff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1.5rem !important;
  padding-bottom: .75rem !important;
  position: relative;
}
.footer .heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--bi-green);
  border-radius: 2px;
}
.footer p {
  color: #94a3b8 !important;
  font-size: .92rem;
  line-height: 1.75;
}
.footer a {
  color: #cbd5e1 !important;
  font-weight: 500 !important;
  font-size: .92rem;
  display: inline-block;
  padding: .25rem 0;
  transition: var(--bi-transition);
  text-decoration: none !important;
}
.footer a:hover {
  color: var(--bi-green) !important;
  transform: translateX(2px);
}
.footer br { display: none; }
.footer .social_icon {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .5rem;
}
.footer .social_icon a {
  width: 42px;
  height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #334155;
  background: transparent;
  transition: var(--bi-transition);
  padding: 0 !important;
  transform: none;
}
.footer .social_icon a:hover {
  background: var(--bi-green);
  border-color: var(--bi-green);
  transform: translateY(-2px);
}
.footer .social_icon a fa-icon {
  font-size: 16px !important;
  color: #fff !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}
.footer .social_icon a fa-icon svg { width: 18px; height: 18px; }

/* ---------- Inner pages (about, careers, contact, products/*, privacy) ---------- */
.page {
  padding: 0 0 4rem !important;
}
/* Kill the original .page .header rule from styles.cb*.css which forces
   background:#000 + color:#fff on the col, making our H1 invisible and
   trapping the hero image inside a black box. */
.page .header,
.page > .row > .col-md-12.header {
  background-color: transparent !important;
  color: var(--bi-text) !important;
  padding: 0 !important;
  max-width: 100%;
}

/* Heading row: clean light gradient banner with the H1 centered. */
.page > .row:first-of-type {
  background: linear-gradient(135deg, var(--bi-green-soft) 0%, #e8f5d0 100%);
  margin: 0 0 3rem !important;
  padding: 3rem 0 0 !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page > .row:first-of-type h1 {
  margin: 0;
  padding: 0 1rem 1.25rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bi-text) !important;
  position: relative;
}
.page > .row:first-of-type h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--bi-green);
  margin: 1.25rem auto 0;
  border-radius: 2px;
}

/* Hero image: short full-width banner sitting flush below the heading. */
.page-hero-image {
  display: block;
  width: 100%;
  height: 220px;
  margin: 2rem 0 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
}
.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
@media (max-width: 768px) {
  .page > .row:first-of-type { padding-top: 2rem !important; }
  .page > .row:first-of-type h1 { font-size: 1.75rem; }
  .page-hero-image { height: 150px; margin-top: 1.5rem; }
}
.page > .row:not(:first-of-type) {
  max-width: 1100px;
  margin: 0 auto !important;
  padding: 0 1rem;
}
.page .content { padding: 0; }
.page h2, .page h3, .page h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--bi-text);
}
.page h2 { font-size: 1.875rem; }
.page h3 { font-size: 1.375rem; color: var(--bi-green-dark); }
.page p, .page li {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--bi-text);
}
.page ul, .page ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.page img {
  max-width: 100%;
  height: auto;
  border-radius: var(--bi-radius);
  box-shadow: var(--bi-shadow-sm);
  margin: 1rem 0;
}
.page a { color: var(--bi-green-dark); font-weight: 600; }
.page a:hover { color: var(--bi-green); text-decoration: underline; }

/* The contact page reuses the inner-page layout but also embeds a map + form */
.page.contactus iframe {
  width: 100% !important;
  border-radius: var(--bi-radius);
  box-shadow: var(--bi-shadow-md);
  border: 0 !important;
}
.page.contactus .form-control {
  border: 1px solid var(--bi-border) !important;
  border-radius: 8px !important;
  padding: .85rem 1rem !important;
  font-size: 1rem !important;
  margin-bottom: 1rem;
  background: #fff;
  transition: var(--bi-transition);
  height: auto;
}
.page.contactus .form-control:focus {
  border-color: var(--bi-green) !important;
  box-shadow: 0 0 0 3px var(--bi-green-soft) !important;
  outline: 0;
}

/* Hide empty col-md-1 spacers — modern grid handles centering with max-width */
@media (min-width: 768px) {
  .widget > .row > .col-md-1:empty,
  .page > .row > .col-md-1:empty,
  .footer > .row > .col-md-1:empty,
  .widget .row .col-md-1:empty,
  .page .row .col-md-1:empty {
    display: none !important;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
  body { padding-top: 70px !important; }
  .navbar { padding: .5rem 1rem; }
  .navbar .navbar-brand img { height: 40px; }
  .navbar-collapse {
    background: #fff;
    padding: 1rem;
    border-radius: var(--bi-radius);
    box-shadow: var(--bi-shadow-md);
    margin-top: .75rem;
  }
  .navbar .nav-link { padding: .75rem 1rem !important; }
  .navbar .dropdown-menu {
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: auto;
  }
  .widget { padding: 3rem 1rem !important; }
  .widget .header { margin-bottom: 2rem; }
  .widget .header h1 { font-size: 1.875rem; }
  .widget.aboutus-widget .companyheader h1 { font-size: 1.75rem; }
  .widget.contactus-widget iframe { height: 280px !important; }
  .footer { padding: 3rem 1rem 1.5rem !important; }
  .footer .col-md-4, .footer .col-md-3 { margin-bottom: 2rem; }
}

/* Container utility tweaks */
.container-fluid.widget,
.container-fluid.page {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
