/* ─────────────────────────────────────────────
   Blitz Falcon Energy — Revised Light Theme
   Colors: #1DA1F2, #0A6CB5, #0B2239, #F3F8FC, #FFC933
   Fonts:  Plus Jakarta Sans (headings) + Inter (body)
   ───────────────────────────────────────────── */

:root {
  --bf-nav: 4.5rem;
  --bf-navy: #0B2239;
  --bf-logo-blue: #1DA1F2;
  --bf-action-blue: #0A6CB5;
  --bf-light-bg: #F3F8FC;
  --bf-amber: #FFC933;
  --bf-border: #D9E5EF;
  --bf-text-dark: #0B2239;
  --bf-text-body: #3B5468;
  --bf-text-muted: #6B8399;
  --bf-radius-btn: 12px;
  --bf-radius-card: 16px;
}

html {
  scroll-padding-top: var(--bf-nav);
  scroll-behavior: smooth;
}

body {
  background: var(--bf-light-bg);
  color: var(--bf-text-dark);
  font-family: Inter, sans-serif;
  overflow-x: clip;
}

/* ── Navbar ── */
.bf-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* Default / Solid on all non-home pages */
.bf-nav--solid,
.bf-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--bf-border) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 12px rgba(11, 34, 57, 0.08) !important;
  color: var(--bf-text-dark) !important;
}

/* Text links on solid / scrolled navbar */
.bf-nav--solid nav > a,
.bf-nav--solid nav > .bf-dropdown > a,
.bf-nav.is-scrolled nav > a,
.bf-nav.is-scrolled nav > .bf-dropdown > a {
  color: var(--bf-text-dark);
}
.bf-nav--solid nav > a.text-action-blue,
.bf-nav--solid nav > .bf-dropdown > a.text-action-blue,
.bf-nav.is-scrolled nav > a.text-action-blue,
.bf-nav.is-scrolled nav > .bf-dropdown > a.text-action-blue {
  color: var(--bf-action-blue) !important;
}
.bf-nav--solid nav > a:hover,
.bf-nav--solid nav > .bf-dropdown > a:hover,
.bf-nav.is-scrolled nav > a:hover,
.bf-nav.is-scrolled nav > .bf-dropdown > a:hover {
  color: var(--bf-action-blue) !important;
}

/* Logo on solid / scrolled navbar */
.bf-nav--solid .bf-logo-text,
.bf-nav.is-scrolled .bf-logo-text {
  color: var(--bf-text-dark) !important;
}

/* Mobile button on solid / scrolled navbar */
.bf-nav--solid #bf-menu-btn,
.bf-nav.is-scrolled #bf-menu-btn {
  color: var(--bf-text-dark) !important;
  border-color: rgba(11, 34, 57, 0.2) !important;
}

/* Navbar on homepage hero ONLY: starts transparent with white text, becomes light on scroll */
.bf-nav--hero:not(.is-scrolled) {
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #fff !important;
}
.bf-nav--hero:not(.is-scrolled) nav > a,
.bf-nav--hero:not(.is-scrolled) nav > .bf-dropdown > a {
  color: rgba(255, 255, 255, 0.9);
}
.bf-nav--hero:not(.is-scrolled) nav > a.text-action-blue,
.bf-nav--hero:not(.is-scrolled) nav > .bf-dropdown > a.text-action-blue {
  color: var(--bf-logo-blue) !important;
}
.bf-nav--hero:not(.is-scrolled) nav > a:hover,
.bf-nav--hero:not(.is-scrolled) nav > .bf-dropdown > a:hover {
  color: #fff !important;
}
.bf-nav--hero:not(.is-scrolled) .bf-logo-text {
  color: #fff !important;
}
.bf-nav--hero:not(.is-scrolled) #bf-menu-btn {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ── Dropdown Nav ── */
.bf-dropdown {
  position: relative;
}
.bf-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 240px;
  background: #ffffff !important;
  border: 1px solid var(--bf-border) !important;
  border-radius: var(--bf-radius-card);
  box-shadow: 0 16px 40px rgba(11, 34, 57, 0.12) !important;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}
.bf-dropdown:hover .bf-dropdown-menu,
.bf-dropdown:focus-within .bf-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.bf-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.bf-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  color: var(--bf-text-dark) !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.bf-dropdown-menu a:hover {
  background: var(--bf-light-bg) !important;
  color: var(--bf-action-blue) !important;
}

/* Ensure reveal items have 100% visibility fallback */
.bf-services-reveal,
.bf-solutions-reveal,
.bf-gallery-reveal,
.bf-investment-reveal,
.bf-invest-step,
.bf-faq-reveal {
  opacity: 1;
  visibility: visible;
}

/* ── Hero ── */
.bf-hero-media {
  transform: scale(1.06);
}

.bf-mask {
  overflow: hidden;
  display: block;
}

.bf-mask > span {
  display: block;
}

/* ── Image frames ── */
.bf-img-frame {
  background: #e8eff5;
  border-radius: var(--bf-radius-card);
  overflow: hidden;
}

.bf-img-frame img {
  width: 100%;
  height: 100%;
}

.bf-product-media img {
  object-fit: contain;
  object-position: center;
  background: #e8eff5;
}

.bf-cover img {
  object-fit: cover;
}

/* ── Buttons (rounded) ── */
.bf-btn {
  border-radius: var(--bf-radius-btn);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.bf-btn-primary {
  background: var(--bf-action-blue);
  color: #fff;
}
.bf-btn-primary:hover {
  background: #085da0;
  box-shadow: 0 4px 16px rgba(10, 108, 181, 0.25);
}

.bf-btn-amber {
  background: var(--bf-amber) !important;
  color: var(--bf-navy) !important;
  font-weight: 700;
}
.bf-btn-amber:hover {
  background: #f0b800 !important;
  box-shadow: 0 4px 16px rgba(255, 201, 51, 0.35);
  transform: translateY(-1px);
}

.bf-btn-outline {
  background: transparent;
  color: var(--bf-action-blue) !important;
  border: 1.5px solid var(--bf-action-blue);
}
.bf-btn-outline:hover {
  background: var(--bf-action-blue);
  color: #fff !important;
}

.bf-btn-outline-white {
  background: rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  font-weight: 600;
}
.bf-btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Guaranteed visibility for Hero buttons */
.bf-hero-actions {
  visibility: visible !important;
  opacity: 1 !important;
}
.bf-hero-actions .bf-btn {
  visibility: visible !important;
  opacity: 1 !important;
}

.bf-btn-wa {
  background: #25D366;
  color: #fff;
}
.bf-btn-wa:hover {
  background: #1fb855;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

/* ── Arrow animation ── */
.bf-arrow {
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .bf-btn:hover .bf-arrow,
  .bf-cta:hover .bf-arrow {
    transform: translateX(4px);
  }
  .bf-zoom {
    overflow: hidden;
    border-radius: var(--bf-radius-card);
  }
  .bf-zoom img {
    transition: transform 0.7s ease;
  }
  .bf-zoom:hover img {
    transform: scale(1.035);
  }
  .bf-line-hover {
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  }
  .bf-line-hover:hover {
    border-color: var(--bf-action-blue);
    box-shadow: 0 4px 20px rgba(10, 108, 181, 0.08);
  }
}

/* ── Cards ── */
.bf-card {
  background: #fff;
  border: 1px solid var(--bf-border);
  border-radius: var(--bf-radius-card);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.bf-card:hover {
  box-shadow: 0 8px 30px rgba(11, 34, 57, 0.08);
  transform: translateY(-2px);
}

/* ── FAQ Accordion ── */
.bf-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.bf-faq-panel.is-open {
  grid-template-rows: 1fr;
}

.bf-faq-panel > div {
  overflow: hidden;
}

/* ── Process line ── */
.bf-process-line {
  background: linear-gradient(var(--bf-action-blue), rgba(10, 108, 181, 0.15));
}

/* ── Floating WA ── */
.bf-float {
  z-index: 40;
}

body.bf-lock {
  overflow: hidden;
}

/* ── Light section styles ── */
.bf-section-light {
  background: var(--bf-light-bg);
}
.bf-section-white {
  background: #fff;
}
.bf-section-navy {
  background: var(--bf-navy);
  color: #fff;
}

/* ── Language switcher ── */
.bf-lang-switch {
  display: inline-flex;
  border: 1px solid var(--bf-border);
  border-radius: 9999px;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.25s ease;
}
.bf-lang-switch button {
  padding: 5px 13px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--bf-text-dark);
  font-weight: 600;
}
.bf-lang-switch button.active {
  background: var(--bf-action-blue) !important;
  color: #fff !important;
}

/* On dark (hero) nav: Solid white text and high-contrast border from the start */
.bf-nav--hero:not(.is-scrolled) .bf-lang-switch {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(11, 34, 57, 0.35);
  backdrop-filter: blur(8px);
}
.bf-nav--hero:not(.is-scrolled) .bf-lang-switch button {
  color: #ffffff !important;
  opacity: 0.95;
  font-weight: 700;
}
.bf-nav--hero:not(.is-scrolled) .bf-lang-switch button:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.18);
}
.bf-nav--hero:not(.is-scrolled) .bf-lang-switch button.active {
  background: var(--bf-action-blue) !important;
  color: #ffffff !important;
  opacity: 1;
}

/* On scrolled hero nav */
.bf-nav--hero.is-scrolled .bf-lang-switch {
  border-color: var(--bf-border);
  background: transparent;
}
.bf-nav--hero.is-scrolled .bf-lang-switch button {
  color: var(--bf-text-dark);
  opacity: 1;
}
.bf-nav--hero.is-scrolled .bf-lang-switch button.active {
  background: var(--bf-action-blue);
  color: #fff;
}

/* ── Social media icons ── */
.bf-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.bf-social-link:hover {
  background: var(--bf-action-blue);
  border-color: var(--bf-action-blue);
  color: #fff;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .bf-hero-media {
    transform: none;
  }
  .bf-faq-panel {
    transition: none;
  }
  .bf-btn, .bf-card, .bf-line-hover {
    transition: none;
  }
}
