/* ==========================================================================
   Baldia Interior India Pvt. Ltd. — Theme (site-wide)
   Loaded on every page after style.css: design tokens, typography, buttons,
   header + off-canvas menu, FAQ accordion, footer and floating WhatsApp.
   Every rule is scoped to body.site.
   Layout: Bootstrap rows/cols + Flexbox only (no CSS Grid), per project rules.
   ========================================================================== */

:root {
  --navy: #0A1A3A;
  --navy-900: #06122A;
  --ivory: #F8F5F0;
  --sand: #EFE7DC;
  --ink: #1B1F27;
  --muted: #5F6672;
  --font-display: "Plus Jakarta Sans", "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius-xl: 18px;
  --shadow-lg: 0 24px 60px -18px rgba(10,26,58,.35);
}

body.site { color: var(--ink); }
.site p { color: #444a55; }
.site .h2, .site h2.h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); line-height: 1.12;
}
.site .h2 em, .site h1 em { font-style: normal; color: var(--brand-orange); }
/* Display font is a clean sans: heavier weight + tighter tracking for headings */
.site h1, .site h2, .site .h2, .site h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; }
.site em { font-style: normal; }
.site .section { padding-block: clamp(4rem, 2.8rem + 5vw, 7rem); }
.site .bg-ivory { background: var(--ivory); }
.site .bg-sand { background: var(--sand); }
.site .sec-head .lead { color: var(--muted); }

/* Eyebrow: small label with a leading rule */
.site .eyebrow {
  font-size: .74rem; letter-spacing: .18em; color: var(--brand-orange);
  display: inline-flex; align-items: center; gap: .55rem;
}
.site .eyebrow::before { width: 28px; transform: none; margin: 0; }
.site .sec-head.center .eyebrow::before { display: inline-block; }
.site .sec-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--brand-orange); }

/* Buttons */
.site .btn { border-radius: 999px; }
.site .btn-brand { box-shadow: 0 10px 24px -10px rgba(252,81,13,.7); }
.site .btn-brand:hover { transform: translateY(-2px); }
.site .btn-glass {
  color: #fff; border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
}
.site .btn-glass:hover { background: #fff; color: var(--navy); border-color: #fff; }
.site .btn-navy { background: var(--navy); color: #fff; border: 1.5px solid var(--navy); }
.site .btn-navy:hover { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; }
.site .btn-line { color: var(--navy); border: 1.5px solid rgba(10,26,58,.25); background: transparent; }
.site .btn-line:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.site .btn-wa { background: #25D366; border: 1.5px solid #25D366; color: #fff; }
.site .btn-wa:hover { background: #1ebe5a; border-color: #1ebe5a; color: #fff; }

/* --- Topbar + header ---------------------------------------------------- */
.site .topbar { background: var(--navy-900); font-size: .82rem; }
.site .topbar a { opacity: .9; }
/* No backdrop-filter here: it would trap the fixed off-canvas inside the header */
.site .site-header { background: #fff; }
.site .navbar { padding-block: .7rem; }
@media (min-width: 992px) {
  .site .navbar { padding-block: 1.15rem; }
  .site .navbar-brand img { height: 46px; }
}
.site .navbar .nav-link { font-size: .95rem; }
.site .nav-cta { padding: .55rem 1.25rem; }

/* Desktop dropdowns: hover opens them; an invisible bridge covers the gap
   between link and menu so moving the mouse down doesn't close it. */
@media (min-width: 992px) {
  .site .navbar .dropdown { position: relative; }
  .site .navbar .dropdown-menu {
    top: 100%; left: 0; margin-top: .6rem; min-width: 240px;
    border: 1px solid var(--border); border-top: 3px solid var(--brand-orange);
    border-radius: 0 0 12px 12px; padding: .5rem; box-shadow: var(--shadow-lg);
  }
  .site .navbar .dropdown-menu::before {
    content: ""; position: absolute; left: 0; right: 0; top: calc(-.6rem - 3px); height: calc(.6rem + 3px);
  }
  .site .navbar .dropdown:hover > .dropdown-menu { display: block; }
  .site .navbar .dropdown-item { padding: .55rem .85rem; border-radius: 8px; transition: background .15s, color .15s, padding-left .2s var(--ease); }
  .site .navbar .dropdown-item:hover { padding-left: 1.1rem; }
  .site .navbar .dropdown-item.active { background: var(--brand-orange-050); color: var(--brand-orange-600); }
}

/* Mobile/tablet: off-canvas side menu */
@media (max-width: 991.98px) {
  .site .site-header { z-index: 1041; }   /* above the off-canvas backdrop (1040) */
  .site .site-header:has(.offcanvas.show)::after {
    content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: 1;
  }
  .site .navbar-toggler { width: 44px; height: 44px; border-radius: 12px; background: var(--ivory); color: var(--navy); display: flex; align-items: center; justify-content: center; }
  .site .navbar-toggler .fs-2 { font-size: 1.6rem !important; }
  .site .offcanvas { width: min(340px, 86vw); border-left: 0; z-index: 1045; }
  .site .offcanvas-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
  .site .offcanvas .nav-link:focus { box-shadow: none; }
  .site .oc-brand img { height: 34px; width: auto; }
  .site .oc-close {
    flex: 0 0 auto; margin-left: auto;
    width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ivory); color: var(--navy);
    display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all .2s var(--ease);
  }
  .site .oc-close:hover { background: var(--brand-orange); color: #fff; transform: rotate(90deg); }
  .site .offcanvas-body { display: flex; flex-direction: column; padding: .5rem 1.25rem 1.5rem; }
  .site .offcanvas .navbar-nav { margin: 0 !important; }
  .site .offcanvas .nav-item { border-bottom: 1px solid var(--border); }
  .site .offcanvas .nav-link {
    padding: .95rem .1rem !important; font-size: 1rem; font-weight: 600;
    display: flex; align-items: center; justify-content: space-between;
  }
  .site .offcanvas .nav-link.active::after { display: none; }
  .site .offcanvas .nav-link.active { color: var(--brand-orange); }
  .site .offcanvas .dropdown-toggle::after {
    border: 0; content: "\F282"; font-family: "bootstrap-icons"; font-size: .8rem; vertical-align: 0;
    transition: transform .25s var(--ease);
  }
  .site .offcanvas .dropdown-toggle.show::after { transform: rotate(180deg); }
  .site .offcanvas .dropdown-menu {
    position: static !important; transform: none !important; border: 0; box-shadow: none; margin: 0 0 .75rem;
    padding: .25rem 0 .25rem .75rem; border-left: 2px solid var(--brand-orange-050); border-radius: 0; background: transparent;
  }
  .site .offcanvas .dropdown-item { padding: .5rem .75rem; font-size: .92rem; color: var(--muted); border-radius: 8px; }
  .site .offcanvas .dropdown-item:hover, .site .offcanvas .dropdown-item.active { background: var(--brand-orange-050); color: var(--brand-orange-600); }
  .site .oc-contact { margin-top: auto; padding-top: 1.5rem; }
  .site .oc-label { display: block; font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
  .site .oc-line { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: .92rem; padding: .35rem 0; word-break: break-all; }
  .site .oc-line i { color: var(--brand-orange); }
  .site .oc-btns { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
  .site .oc-btns .btn { width: 100%; }
  .site .oc-wa { background: #25D366; color: #fff; border-color: #25D366; }
  .site .oc-wa:hover { background: #1ebe5a; color: #fff; }
}

/* Honeypot field (anti-spam) — kept off-screen, not display:none */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- FAQ accordion ------------------------------------------------------ */
.site .accordion-item { border: 0; border-bottom: 1px solid var(--border); border-radius: 0 !important; margin: 0; background: transparent; }
.site .accordion-button {
  background: transparent; padding: 1.4rem 0; font-size: 1.08rem; font-weight: 600; color: var(--ink); box-shadow: none;
}
.site .accordion-button:not(.collapsed) { background: transparent; color: var(--brand-orange-600); }
.site .accordion-button::after {
  width: 34px; height: 34px; border-radius: 50%; background-color: var(--ivory); background-position: center; background-size: 14px;
}
.site .accordion-button:not(.collapsed)::after { background-color: var(--brand-orange-050); }
.site .accordion-body { padding: 0 3rem 1.5rem 0; color: var(--muted); }

/* --- Footer: full-width bands + panel columns -------------------------- */
.site .footer-home { --fh-line: rgba(255,255,255,.09); }
.site .footer-home .fh-band { position: relative; z-index: 1; border-top: 1px solid var(--fh-line); }
.site .footer-home .fh-band.newsletter { border-top: 0; border-bottom: 0; padding-block: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); }
.site .footer-home .fh-main { padding-block: 0; }
.site .footer-home .fh-col { position: relative; padding: 3.2rem 2.2rem 3rem; }
.site .footer-home .fh-h {
  color: #fff; font-family: var(--font-head); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 1.1rem; display: flex; align-items: center; gap: .5rem;
}
.site .footer-home .fh-h::before { content: ""; width: 20px; height: 2px; background: var(--brand-orange); }
.site .footer-home .fh-col .fh-h { margin-bottom: 1.3rem; white-space: nowrap; }
.site .footer-home .fh-tags .fh-h { margin-bottom: .9rem; }
.site .footer-home .newsletter h2 { color: #fff; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); margin-bottom: .4rem; }
.site .footer-home .newsletter p, .site .footer-home .fh-desc { color: #8f9bb0; }
.site .footer-home address { font-style: normal; }
.site .footer-home .fh-logo { display: inline-block; }
.site .footer-home .fh-desc { max-width: 36ch; }
.site .footer-home .fh-band.fh-tags { border-top: 0; padding-block: .4rem 2.4rem; margin-top: 0; }
/* Arrow before each footer link */
.site .footer-home ul.fh-links a { display: inline-flex; align-items: center; gap: .5rem; transition: color .2s, transform .2s var(--ease); }
.site .footer-home ul.fh-links a::before {
  content: "\F285"; font-family: "bootstrap-icons"; font-size: .7rem; color: var(--brand-orange);
}
.site .footer-home ul.fh-links a:hover { transform: translateX(4px); }
.site .footer-home .fh-bottom { border-top: 0; padding-block: 1.3rem .4rem; }
.site .footer-home .fh-disclaimer { padding-bottom: 1.6rem; margin: 0; }

@media (min-width: 992px) {
  .site .footer-home .fh-col:first-child { padding-left: 0; }
  .site .footer-home .fh-col:last-child { padding-right: 0; }
  /* Divider runs the full band height, meeting the horizontal lines */
  .site .footer-home .fh-col + .fh-col { border-left: 1px solid var(--fh-line); }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .site .footer-home .fh-col:first-child { padding: 2.6rem 0 .4rem; }
  .site .footer-home .fh-col:not(:first-child) { padding: 2.4rem 1.6rem; }
  .site .footer-home .fh-col:nth-child(2) { padding-left: 0; }
  .site .footer-home .fh-col:nth-child(n+3) { border-left: 1px solid var(--fh-line); }
}
@media (max-width: 767.98px) {
  .site .footer-home .fh-col { padding: 2rem 0; }
  .site .footer-home .fh-col:first-child { padding-bottom: .4rem; }
  .site .footer-home .fh-col:nth-child(3) { border-left: 1px solid var(--fh-line); padding-left: 1.25rem; }
  .site .footer-home .fh-col:last-child { padding-top: .4rem; }
  .site .footer-home .fh-bottom { flex-direction: column; align-items: flex-start; }
  .site .accordion-body { padding-right: 0; }
}

/* --- Floating WhatsApp (desktop/tablet; phones use the mobile bar) ----- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 1040; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  box-shadow: 0 12px 28px -6px rgba(37,211,102,.6);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: wa-pulse 2.2s ease-out infinite;
}
.wa-float:hover { color: #fff; transform: scale(1.06); }
@keyframes wa-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
@media (max-width: 767.98px) { .wa-float { display: none; } }

/* --- Reveal variants ---------------------------------------------------- */
.js .site .reveal.d1 { transition-delay: .08s; }
.js .site .reveal.d2 { transition-delay: .16s; }
.js .site .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
}
