/* ============================================================
   HBI LUXURY ENHANCEMENTS v2.0
   Custom cursor, text reveals, section dividers, image hovers,
   grain overlays, refined animations
   ============================================================ */

/* ============================================================
   CUSTOM CURSOR — Gold dot on hover for interactive elements
   ============================================================ */
@media (pointer: fine) {
  .hbi-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--or);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    mix-blend-mode: difference;
    transition: width 0.3s var(--easing-page), height 0.3s var(--easing-page),
                opacity 0.3s, transform 0.3s var(--easing-page);
    opacity: 0;
    transform: translate(-50%, -50%);
  }
  .hbi-cursor.visible { opacity: 1; }
  .hbi-cursor.hover {
    width: 40px;
    height: 40px;
    background: rgba(196,150,58,0.12);
    border: 1px solid rgba(196,150,58,0.4);
  }
  .hbi-cursor.click {
    width: 32px;
    height: 32px;
    background: rgba(196,150,58,0.3);
  }
}

/* ============================================================
   HERO TEXT REVEAL — Split lines animation
   ============================================================ */
.hero-title .hbi-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(-15deg);
  animation: wordReveal 0.8s var(--easing-page) forwards;
}
.hero-title em .hbi-word {
  animation-delay: calc(var(--word-index, 0) * 0.12s + 0.4s);
}
@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

/* Failsafe: if word animation doesn't complete within 1.5s, force visible */
@keyframes hbiForceWordVisible {
  0%, 99% {}
  100% { opacity: 1 !important; transform: none !important; }
}
.hero-title .hbi-word {
  animation: wordReveal 0.8s var(--easing-page) forwards,
             hbiForceWordVisible 1.5s forwards;
}

/* ============================================================
   SECTION DIVIDERS — Elegant SVG curves between sections
   ============================================================ */
.hbi-divider-wave {
  position: relative;
  height: 80px;
  overflow: hidden;
  margin-top: -1px;
}
.hbi-divider-wave svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.hbi-divider-wave.dark-to-light svg { fill: var(--blanc); }
.hbi-divider-wave.light-to-dark svg { fill: var(--dark); }
.hbi-divider-wave.creme-to-dark svg { fill: var(--dark); }
.hbi-divider-wave.dark-to-creme svg { fill: var(--creme); }
.hbi-divider-wave.bordeaux-to-light svg { fill: var(--blanc); }
.hbi-divider-wave.bordeaux-to-creme svg { fill: var(--creme); }

/* ============================================================
   IMAGE HOVER EFFECTS — Zoom + gold overlay
   ============================================================ */
.hbi-img-hover {
  overflow: hidden;
  position: relative;
}
.hbi-img-hover img,
.hbi-img-hover .hbi-img-bg {
  transition: transform 0.8s var(--easing-page);
}
.hbi-img-hover:hover img,
.hbi-img-hover:hover .hbi-img-bg {
  transform: scale(1.06);
}
.hbi-img-hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(92,26,58,0.1), rgba(196,150,58,0.08));
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.hbi-img-hover:hover::after { opacity: 1; }

/* ============================================================
   GRAIN TEXTURE — Subtle noise overlay for luxury feel
   ============================================================ */
.hbi-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   GOLD SHIMMER — Animated border effect on cards
   ============================================================ */
.hbi-shimmer {
  position: relative;
  overflow: hidden;
}
.hbi-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(196,150,58,0.08), transparent);
  transition: none;
  animation: none;
}
.hbi-shimmer:hover::before {
  animation: shimmerSlide 1s var(--easing-page);
}
@keyframes shimmerSlide {
  from { left: -50%; }
  to { left: 150%; }
}

/* ============================================================
   PREMIUM BUTTON EFFECTS
   ============================================================ */
.btn-gold {
  position: relative;
  overflow: hidden;
}
.btn-gold::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn-gold:hover::after {
  width: 300px;
  height: 300px;
}

/* ============================================================
   SCROLL INDICATOR — Hero bottom
   ============================================================ */
.hbi-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hbi-scroll-indicator span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(196,150,58,0.5);
}
.hbi-scroll-mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(196,150,58,0.3);
  border-radius: 12px;
  position: relative;
}
.hbi-scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--or);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@keyframes scrollDot {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 18px; opacity: 0.3; }
}

/* ============================================================
   SMOOTH FOCUS STYLES — Accessibility with luxury
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
  border-radius: 2px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--or) !important;
  box-shadow: 0 0 0 3px rgba(196,150,58,0.15);
}

/* ============================================================
   FORM VALIDATION STATES
   ============================================================ */
.form-group.valid input,
.form-group.valid select,
.form-group.valid textarea {
  border-color: #2a7a3a;
}
.form-group.valid label::after {
  content: ' ✓';
  color: #2a7a3a;
  font-size: 0.8em;
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #cc4444;
  animation: shakeInput 0.4s ease;
}
.form-group.error label::after {
  content: ' *';
  color: #cc4444;
  font-size: 0.8em;
}
@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.form-group .hbi-error-msg {
  font-size: 0.84rem;
  color: #cc4444;
  margin-top: 4px;
  display: none;
}
.form-group.error .hbi-error-msg { display: block; }

/* ============================================================
   LAZY LOAD PLACEHOLDER
   ============================================================ */
.hbi-lazy {
  background: linear-gradient(135deg, var(--creme-dark), var(--creme));
  transition: opacity 0.5s;
}
.hbi-lazy.loaded { background: transparent; }

/* ============================================================
   TOOLTIP
   ============================================================ */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 14px;
  background: var(--dark);
  color: var(--or-pale);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* ============================================================
   NUMBER TICKER GLOW
   ============================================================ */
.stat-num {
  text-shadow: 0 0 40px rgba(196,150,58,0.25);
}

/* ============================================================
   GLASSMORPHISM REFINEMENT — login card
   ============================================================ */
.login-card {
  background: rgba(45,18,32,0.6) !important;
  backdrop-filter: blur(24px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.4) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(196,150,58,0.1);
}

/* ============================================================
   ENHANCED RESPONSIVE — Tablet refinements
   ============================================================ */
@media (max-width: 1100px) {
  .hbi-scroll-indicator { display: none; }
}
@media (max-width: 768px) {
  .hbi-cursor { display: none !important; }
  .hbi-divider-wave { height: 48px; }

  /* Newsletter: constrain width in single-column footer */
  .hbi-newsletter-form { max-width: 400px; }
}

/* ============================================================
   COOKIE CONSENT — Compact banner
   ============================================================ */
.hbi-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99990;
  background: rgba(26,10,18,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(196,150,58,0.15);
  transition: transform 0.4s cubic-bezier(0.76,0,0.24,1);
}
.hbi-cookie-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
}
.hbi-cookie-bar p {
  font-size: 0.78rem;
  color: rgba(245,239,228,0.5);
  margin: 0;
  line-height: 1.4;
}
.hbi-cookie-bar a {
  color: var(--or);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hbi-cookie-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.hbi-ck-btn {
  padding: 7px 16px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.hbi-ck-accept {
  background: var(--or);
  color: var(--dark);
}
.hbi-ck-accept:hover { background: var(--or-light); }
.hbi-ck-more {
  background: transparent;
  color: rgba(245,239,228,0.5);
  border: 1px solid rgba(245,239,228,0.12);
}
.hbi-ck-more:hover { border-color: rgba(245,239,228,0.25); color: rgba(245,239,228,0.7); }
.hbi-ck-decline {
  background: rgba(255,255,255,0.06);
  color: rgba(245,239,228,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}
.hbi-ck-decline:hover { color: rgba(245,239,228,0.7); border-color: rgba(255,255,255,0.15); }

/* Expandable settings panel */
.hbi-cookie-panel {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.hbi-cookie-panel.open {
  max-height: 200px;
  padding: 12px 24px 14px;
  border-top: 1px solid rgba(196,150,58,0.1);
}
.hbi-ck-opt {
  display: inline-flex;
  margin-right: 20px;
  margin-bottom: 4px;
}
.hbi-ck-opt label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: rgba(245,239,228,0.5);
  cursor: pointer;
}
.hbi-ck-opt strong { color: var(--or-pale); }
.hbi-ck-opt input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--or);
  flex-shrink: 0;
}
.hbi-ck-panel-btns {
  display: inline-flex;
  gap: 6px;
  margin-left: 12px;
}

/* Mobile cookie */
@media (max-width: 640px) {
  .hbi-cookie-bar { flex-direction: column; gap: 8px; padding: 10px 16px; text-align: center; }
  .hbi-cookie-bar p { font-size: 0.72rem; }
  .hbi-cookie-btns { width: 100%; }
  .hbi-ck-btn { flex: 1; text-align: center; min-height: 38px; padding: 8px 10px; }
  .hbi-cookie-panel.open { padding: 10px 16px 12px; }
  .hbi-ck-opt { display: flex; margin-right: 0; margin-bottom: 6px; }
  .hbi-ck-panel-btns { margin-left: 0; margin-top: 8px; width: 100%; }
  .hbi-ck-panel-btns .hbi-ck-btn { flex: 1; }
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.hbi-breadcrumbs {
  padding: 12px 0;
  background: rgba(196,150,58,0.03);
  border-bottom: 1px solid rgba(196,150,58,0.08);
}
.hbi-breadcrumbs .container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hbi-bc-link {
  font-size: 0.85rem;
  color: var(--or);
  transition: color 0.2s;
  font-weight: 400;
}
.hbi-bc-link:hover { color: var(--bordeaux); }
.hbi-bc-sep {
  color: rgba(196,150,58,0.3);
  display: flex;
  align-items: center;
}
.hbi-bc-sep svg { width: 12px; height: 12px; }
.hbi-bc-current {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ============================================================
   SECTION GOLD BORDER GLOW — Animated gold glow on dark sections
   ============================================================ */
.section-formation::after,
.section-experience::after,
.section-values::after,
.section-investisseurs::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,150,58,0.3), transparent);
  animation: sectionGlow 4s ease-in-out infinite;
}
@keyframes sectionGlow {
  0%, 100% { opacity: 0.3; left: 10%; right: 10%; }
  50% { opacity: 0.8; left: 20%; right: 20%; }
}

/* ============================================================
   GRAIN OVERLAY ON LIGHT SECTIONS
   ============================================================ */
.section-about,
.section-services,
.section-rh,
.section-roadmap,
.section-digital,
.section-contact {
  position: relative;
}
.section-about::after,
.section-services::after,
.section-rh::after,
.section-roadmap::after,
.section-digital::after,
.section-contact::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 0;
}
.section-about > .container,
.section-services > .container,
.section-rh > .container,
.section-roadmap > .container,
.section-digital > .container,
.section-contact > .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   TIER CARD HOVER — Lift + glow effect
   ============================================================ */
.tier-card {
  transition: transform 0.5s var(--easing-page), box-shadow 0.5s var(--easing-page);
}
.tier-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.tier-card.premium:hover {
  box-shadow: 0 20px 60px rgba(92,26,58,0.4), 0 0 0 1px rgba(196,150,58,0.2);
}
.tier-card.vip:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(196,150,58,0.3);
}

/* ============================================================
   STAT COUNTER — Glow pulse on load
   ============================================================ */
.stat-num {
  text-shadow: 0 0 40px rgba(196,150,58,0.25);
  animation: statGlow 3s ease-in-out infinite;
}
@keyframes statGlow {
  0%, 100% { text-shadow: 0 0 30px rgba(196,150,58,0.15); }
  50% { text-shadow: 0 0 50px rgba(196,150,58,0.35); }
}

/* ============================================================
   QUOTE MARK DECORATION — Elegant gold quote marks
   ============================================================ */
.about-quote::after {
  content: '"';
  position: absolute;
  right: 0;
  bottom: -10px;
  font-family: var(--font-display);
  font-size: 6rem;
  color: rgba(196,150,58,0.06);
  line-height: 1;
  pointer-events: none;
}

/* ============================================================
   LINK HOVER — Underline grow from center
   ============================================================ */
.footer-links li a {
  position: relative;
  display: inline;
}
.footer-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--or);
  transition: width 0.3s var(--easing-page), left 0.3s var(--easing-page);
}
.footer-links li a:hover::after {
  width: 100%;
  left: 0;
}

/* ============================================================
   PHASE NODE PULSE — Roadmap timeline
   ============================================================ */
.phase-card.p1 .phase-node { animation: phasePulse 3s ease-in-out infinite; }
@keyframes phasePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,150,58,0); }
  50% { box-shadow: 0 0 0 12px rgba(196,150,58,0.08); }
}

/* ============================================================
   PARTNER CARD — Left border reveal on hover
   ============================================================ */
.partner-card {
  border-left: 3px solid transparent;
  transition: border-color 0.4s var(--easing-page), transform 0.4s var(--easing-page), box-shadow 0.4s;
}
.partner-card:hover {
  border-left-color: var(--or);
}

/* ============================================================
   CERT CARD — Medal bounce on hover
   ============================================================ */
.cert-card:hover .cert-medal,
.cert-card:hover svg:first-child {
  animation: medalBounce 0.6s var(--easing-page);
}
@keyframes medalBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.2); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* ============================================================
   SMOOTH SCROLL BAR (webkit)
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(196,150,58,0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(196,150,58,0.5);
}

/* ============================================================
   LOADING SKELETON — For lazy-loaded content
   ============================================================ */
.hbi-skeleton {
  background: linear-gradient(90deg, rgba(196,150,58,0.04) 25%, rgba(196,150,58,0.08) 50%, rgba(196,150,58,0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   SELECTION COLOR — Brand-consistent text selection
   ============================================================ */
::selection {
  background: rgba(196,150,58,0.25);
  color: var(--bordeaux-deep);
}
::-moz-selection {
  background: rgba(196,150,58,0.25);
  color: var(--bordeaux-deep);
}

/* ============================================================
   SKIP TO CONTENT (a11y)
   ============================================================ */
.hbi-skip-link {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 28px;
  background: var(--or);
  color: var(--bordeaux-deep);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 100002;
  transition: top 0.3s;
}
.hbi-skip-link:focus {
  top: 0;
  outline: none;
}

/* ============================================================
   ANNOUNCEMENT CLOSE BUTTON
   ============================================================ */
.announcement {
  position: relative;
}
.announcement-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(245,239,228,0.4);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
  line-height: 1;
}
.announcement-close:hover { color: var(--or-pale); }

/* ============================================================
   TOPBAR — Hide on scroll down, show on scroll up
   ============================================================ */
.topbar {
  transition: transform 0.4s var(--easing-page), opacity 0.4s;
}
.topbar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}
.topbar-team-link {
  color: var(--or-pale) !important;
  padding: 4px 12px;
  border: 1px solid rgba(196,150,58,0.3);
  border-radius: 3px;
  font-size: 0.84rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar-team-link:hover { background: rgba(196,150,58,0.1); }

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.nav-search-toggle {
  color: var(--text-light);
  padding: 8px;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}
.nav-search-toggle:hover { color: var(--or); }

.hbi-search-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(253,250,246,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196,150,58,0.15);
  padding: 20px 0;
  display: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  animation: searchSlideDown 0.3s var(--easing-page);
}
.hbi-search-overlay.active { display: block; }
@keyframes searchSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hbi-search-form {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.hbi-search-form svg { color: var(--or); flex-shrink: 0; }
.hbi-search-form input[type="search"] {
  flex: 1;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(196,150,58,0.2);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--bordeaux-deep);
  outline: none;
  transition: border-color 0.3s;
}
.hbi-search-form input[type="search"]:focus { border-color: var(--or); }
.hbi-search-form input[type="search"]::placeholder { color: var(--text-light); }
.hbi-search-close {
  color: var(--text-light);
  padding: 8px;
  transition: color 0.2s;
  display: flex;
}
.hbi-search-close:hover { color: var(--bordeaux); }

/* ============================================================
   IMPROVED MOBILE MENU
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(253,250,246,0.99);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 0;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s var(--easing-page), transform 0.4s var(--easing-page);
  overflow-y: auto;
}
.mobile-menu.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(196,150,58,0.1);
}
.mobile-menu-close {
  color: var(--text-light);
  padding: 8px;
  transition: color 0.2s;
  display: flex;
}
.mobile-menu-close:hover { color: var(--bordeaux); }
.mobile-menu-links {
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
}
.mobile-menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bordeaux-deep);
  border-bottom: 1px solid rgba(196,150,58,0.08);
  transition: color 0.3s, padding-left 0.3s;
}
.mobile-menu-links a:hover,
.mobile-menu-links a.active { color: var(--or); padding-left: 8px; }
.mobile-menu-links a::after { content: '→'; color: var(--or); opacity: 0.3; transition: opacity 0.3s; }
.mobile-menu-links a:hover::after { opacity: 1; }
.mobile-menu-divider {
  height: 1px;
  margin: 8px 28px;
  background: rgba(196,150,58,0.1);
}
.mobile-menu-secondary {
  padding: 8px 28px;
  display: flex;
  flex-direction: column;
}
.mobile-menu-secondary a {
  padding: 12px 0;
  font-size: 0.92rem;
  color: var(--text-light);
  transition: color 0.3s;
}
.mobile-menu-secondary a:hover { color: var(--or); }
.mobile-menu-team {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--or) !important;
  margin-top: 8px;
}
.mobile-menu-cta {
  padding: 24px 28px;
  margin-top: auto;
}

/* ============================================================
   NEWSLETTER FORM (footer)
   ============================================================ */
.hbi-newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(196,150,58,0.25);
  transition: border-color 0.3s;
}
.hbi-newsletter-form:focus-within { border-color: var(--or); }
.hbi-newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--creme);
  outline: none;
}
.hbi-newsletter-form input::placeholder { color: rgba(245,239,228,0.3); }
.hbi-newsletter-form button {
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--or), var(--or-light));
  color: var(--bordeaux-deep);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}
.hbi-newsletter-form button:hover { opacity: 0.9; }

/* ============================================================
   SCROLL TO TOP — With progress ring
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--bordeaux), var(--bordeaux-mid));
  border: none;
  border-radius: 50%;
  color: var(--or);
  z-index: 500;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(92,26,58,0.3);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.scroll-top-ring {
  position: absolute;
  inset: 0;
}
.scroll-top-icon {
  position: relative;
  z-index: 1;
  display: flex;
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.hbi-whatsapp-float {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 500;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: whatsappPulse 3s ease-in-out infinite;
}
.hbi-whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(37,211,102,0.5); }
@keyframes whatsappPulse {
  0%,100% { box-shadow: 0 4px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.6), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ============================================================
   PRE-FOOTER SOCIAL BAND
   ============================================================ */
.hbi-prefooter .social-btn {
  background: rgba(255,255,255,0.08);
  border-color: rgba(196,150,58,0.3);
}
.hbi-prefooter .social-btn:hover {
  background: rgba(196,150,58,0.2);
  transform: translateY(-3px);
}

/* ============================================================
   STUDIO / GALLERY PAGE
   ============================================================ */
.hbi-studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}
.hbi-studio-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.hbi-studio-item.tall {
  grid-row: span 2;
}
.hbi-studio-item.hidden { display: none; }
.hbi-studio-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--easing-page);
  position: relative;
}
.hbi-studio-placeholder {
  background: linear-gradient(135deg, var(--creme), var(--creme-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}
.hbi-studio-item:hover .hbi-studio-img {
  transform: scale(1.06);
}
.hbi-studio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,10,18,0.85) 0%, rgba(26,10,18,0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}
.hbi-studio-item:hover .hbi-studio-overlay { opacity: 1; }
.hbi-studio-overlay-content h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}
.hbi-studio-overlay-content p {
  font-size: 0.82rem;
  color: rgba(245,239,228,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hbi-studio-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(196,150,58,0.2);
  border: 1px solid rgba(196,150,58,0.4);
  border-radius: 40px;
  font-size: 0.8rem;
  color: var(--or-pale);
  margin-top: 8px;
}
.hbi-studio-zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
}
.hbi-studio-item:hover .hbi-studio-zoom {
  opacity: 1;
  transform: scale(1);
}

/* Filter buttons — common style */
.hbi-filter-btn {
  padding: 9px 22px;
  background: transparent;
  border: 1px solid rgba(196,150,58,0.2);
  border-radius: 40px;
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.25s ease;
}
.hbi-filter-btn:hover,
.hbi-filter-btn.active {
  background: rgba(196,150,58,0.1);
  border-color: var(--or);
  color: var(--or);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.hbi-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(26,10,18,0.95);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.hbi-lightbox.active {
  display: flex;
  opacity: 1;
}
.hbi-lb-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196,150,58,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--or-pale);
  cursor: pointer;
  transition: 0.2s;
  z-index: 10;
}
.hbi-lb-close:hover { background: rgba(196,150,58,0.15); }
.hbi-lb-prev, .hbi-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196,150,58,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--or);
  cursor: pointer;
  transition: 0.2s;
  z-index: 10;
}
.hbi-lb-prev { left: 24px; transform: translateY(-50%) rotate(180deg); }
.hbi-lb-next { right: 24px; }
.hbi-lb-prev:hover, .hbi-lb-next:hover { background: rgba(196,150,58,0.12); }
.hbi-lb-content {
  max-width: 80vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hbi-lb-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.hbi-lb-info {
  margin-top: 20px;
  text-align: center;
}
.hbi-lb-info h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--or-light);
  margin-bottom: 12px;
}
.hbi-lb-toggle {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.hbi-lb-tab {
  padding: 8px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196,150,58,0.2);
  border-radius: 40px;
  color: rgba(245,239,228,0.5);
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.2s;
}
.hbi-lb-tab.active {
  background: rgba(196,150,58,0.15);
  border-color: var(--or);
  color: var(--or);
}

@media (max-width:1024px) {
  .hbi-studio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
}
@media (max-width:640px) {
  .hbi-studio-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .hbi-studio-item.tall { grid-row: span 1; }
  .hbi-lb-prev, .hbi-lb-next { width: 40px; height: 40px; }
  .hbi-lb-prev { left: 8px; }
  .hbi-lb-next { right: 8px; }

  /* Lightbox: fullscreen mobile */
  .hbi-lb-content { max-width: 96vw; }
  .hbi-lb-content img { max-height: 60vh; }
  .hbi-lb-info h4 { font-size: 1rem; }
  .hbi-lb-tab { padding: 6px 14px; font-size: 0.76rem; }

  /* Cookie panel: allow taller panel for many options */
  .hbi-cookie-panel.open { max-height: 280px; }
}
