/* ================================================================
   BATHOS INTERNATIONAL GROUP — DYNAMIC ENHANCEMENTS
   File: css/enhancements.css

   Add this line to <head> in every HTML file, AFTER style.css:
   <link rel="stylesheet" href="css/enhancements.css">
   ================================================================ */


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. SCROLL PROGRESS BAR — thin gold line at top of every page
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#bh-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #B8862A, #D4A84B, #B8862A);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(184,134,42,0.6);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. HERO PARTICLE CANVAS — sits behind hero content
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#bh-particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.45;
  pointer-events: none;
}

/* Make sure hero content sits above canvas */
.bh-home-hero__content,
.bh-home-hero__glow,
.bh-home-hero__accent,
.bh-hero-stats,
.bh-home-hero__scroll {
  position: relative;
  z-index: 2;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. TYPEWRITER — cycling sector words under hero headline
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bh-typewriter-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 28px;
  min-height: 32px;
}
.bh-typewriter-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}
.bh-typewriter-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-style: italic;
  color: #D4A84B;
  min-width: 280px;
  border-right: 2px solid #B8862A;
  white-space: nowrap;
  overflow: hidden;
  animation: bh-cursor-blink 0.8s step-end infinite;
}
@keyframes bh-cursor-blink {
  0%, 100% { border-color: #B8862A; }
  50%       { border-color: transparent; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. ANIMATED STAT COUNTERS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bh-counter { display: inline; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. WORLD MAP (Global Reach page)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bh-worldmap-section {
  background: var(--ink);
  padding: 100px 6%;
  position: relative;
  overflow: hidden;
}
.bh-worldmap-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.bh-worldmap-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}
.bh-worldmap-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}
.bh-worldmap-header p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.42);
  max-width: 320px;
  line-height: 1.75;
}

#bh-world-canvas {
  display: block;
  width: 100%;
  height: 460px;
  position: relative;
  z-index: 2;
  cursor: crosshair;
}

/* Tooltip */
#bh-map-tooltip {
  position: fixed;
  background: #0B1520;
  border: 1px solid #B8862A;
  border-radius: 4px;
  padding: 12px 16px;
  pointer-events: none;
  z-index: 9000;
  display: none;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
#bh-map-tooltip h4 {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: #D4A84B;
  margin-bottom: 6px;
}
#bh-map-tooltip ul {
  list-style: none;
  padding: 0; margin: 0;
}
#bh-map-tooltip ul li {
  font-size: 11.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  padding: 2px 0;
  letter-spacing: 0.3px;
}
#bh-map-tooltip ul li::before {
  content: '·  ';
  color: #B8862A;
}

/* Region stats strip below map */
.bh-map-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 2;
}
.bh-map-stat {
  text-align: center;
}
.bh-map-stat__num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 500;
  color: #D4A84B;
  line-height: 1;
  margin-bottom: 6px;
}
.bh-map-stat__label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. SUPPLY CHAIN: ANIMATED PROGRESS LINE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bh-process {
  position: relative;
}
/* The vertical gold line running down the left */
.bh-process::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  width: 1px;
  background: linear-gradient(180deg, #B8862A 0%, rgba(184,134,42,0.1) 100%);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.8s cubic-bezier(.25,.46,.45,.94);
  z-index: 0;
}
.bh-process.line-active::before {
  transform: scaleY(1);
}
/* Dynamically set height via JS */

/* Step number circles */
.bh-process-step__num {
  position: relative;
  z-index: 1;
  transition: background 0.4s, color 0.4s, transform 0.4s;
}
.bh-process-step.step-active .bh-process-step__num {
  background: #B8862A;
  color: #0B1520;
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(184,134,42,0.2);
}
.bh-process-step.step-active h4 {
  color: #B8862A;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. DIVISION CARDS: ICON SPIN + GLOW PULSE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bh-div-card .bh-div-card__icon {
  transition: transform 0.5s cubic-bezier(.25,.46,.45,.94),
              border-color 0.3s, background 0.3s;
}
.bh-div-card:hover .bh-div-card__icon {
  transform: rotate(15deg) scale(1.1);
}

/* Ambient glow pulse on active card */
@keyframes bh-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,134,42,0.15); }
  50%       { box-shadow: 0 0 32px 8px rgba(184,134,42,0.1); }
}
.bh-div-card:hover {
  animation: bh-glow-pulse 2s ease-in-out infinite;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. CONTACT FORM: FLOATING LABELS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bh-fg.floating {
  position: relative;
  margin-bottom: 26px;
}
.bh-fg.floating label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.3px;
  text-transform: none;
  color: #8E8A83;
  pointer-events: none;
  transition: all 0.22s ease;
  background: transparent;
  padding: 0 4px;
  z-index: 1;
}
.bh-fg.floating input,
.bh-fg.floating select,
.bh-fg.floating textarea {
  padding-top: 20px;
  padding-bottom: 8px;
}
.bh-fg.floating input:focus ~ label,
.bh-fg.floating input:not(:placeholder-shown) ~ label,
.bh-fg.floating select:focus ~ label,
.bh-fg.floating textarea:focus ~ label,
.bh-fg.floating textarea:not(:placeholder-shown) ~ label,
.bh-fg.floating.filled label {
  top: 6px;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #B8862A;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   9. PAGE TRANSITIONS — smooth fade between pages
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
body {
  animation: bh-page-in 0.5s ease both;
}
@keyframes bh-page-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Link click fade-out */
body.bh-fade-out {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   10. ABOUT: ANIMATED TIMELINE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bh-timeline {
  position: relative;
  padding: 0;
  margin-top: 56px;
}
.bh-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, #B8862A, rgba(184,134,42,0.15));
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.6s cubic-bezier(.25,.46,.45,.94);
}
.bh-timeline.line-active::before {
  transform: scaleY(1);
}
.bh-tl-item {
  display: flex;
  gap: 32px;
  padding: 28px 0 28px 0;
  border-bottom: 1px solid rgba(11,21,32,0.07);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.bh-tl-item.in {
  opacity: 1;
  transform: translateX(0);
}
.bh-tl-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  background: #B8862A;
  margin-top: 5px;
  margin-left: -6px;
  box-shadow: 0 0 0 4px rgba(184,134,42,0.15);
  flex-shrink: 0;
}
.bh-tl-year {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 500;
  color: #B8862A;
  letter-spacing: 1px;
  min-width: 52px;
  padding-top: 2px;
}
.bh-tl-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 500;
  color: #0B1520;
  margin-bottom: 6px;
}
.bh-tl-content p {
  font-size: 13.5px;
  font-weight: 300;
  color: #8E8A83;
  line-height: 1.75;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   11. CERTIFICATIONS: FLIP CARDS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bh-cert-card {
  perspective: 800px;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  height: 140px;
}
.bh-cert-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(.25,.46,.45,.94);
}
.bh-cert-card:hover .bh-cert-card__inner,
.bh-cert-card.flipped .bh-cert-card__inner {
  transform: rotateY(180deg);
}
.bh-cert-card__front,
.bh-cert-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 4px;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bh-cert-card__front {
  background: var(--ink);
  border-top: 2px solid #B8862A;
}
.bh-cert-card__back {
  background: #B8862A;
  transform: rotateY(180deg);
}
.bh-cert-card__back p {
  font-size: 12px;
  font-weight: 400;
  color: rgba(11,21,32,0.85);
  line-height: 1.6;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   12. BUTTON RIPPLE EFFECT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bh-btn {
  position: relative;
  overflow: hidden;
}
.bh-btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: bh-ripple 0.6s linear;
  background: rgba(255,255,255,0.25);
  pointer-events: none;
}
@keyframes bh-ripple {
  to { transform: scale(4); opacity: 0; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE ADJUSTMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
  #bh-world-canvas { height: 300px; }
  .bh-map-stats { gap: 32px; }
  .bh-typewriter-text { min-width: 200px; font-size: 16px; }
}
@media (max-width: 480px) {
  #bh-world-canvas { height: 220px; }
}
