/**
 * HAI UAE - Site Header & Footer Shell (2026 Redesign)
 * Version: 1.0.0 (2026.09.10)
 * Styles the site-wide header (navbar.php) and footer (footer.php).
 * Built on the --dir-* token system from directory.css. Loaded on all public pages.
 */

:root {
  --hh-header-height: 68px;
  --hh-header-height-shrunk: 52px;
  --hh-topbar-height: 36px;
}

.container-narrow {
  width: 100%;
  max-width: var(--dir-container-narrow, 1120px);
  margin-inline: auto;
  padding-inline: var(--dir-space-md, 1rem);
  box-sizing: border-box;
}

/* ==========================================================================
   Header Reset (Guards against main.css corruption)
   ========================================================================== */
header.hh-header,
.hh-header {
  position: relative !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

header.hh-header nav,
.hh-header nav {
  margin: 0 !important;
  max-width: none !important;
  height: auto !important;
}

/* ==========================================================================
   Header — Utility Topbar
   ========================================================================== */
.hh-topbar {
  background: var(--dir-navy, #0f172a);
  color: #ffffff;
  font-size: 0.8125rem;
  min-height: var(--hh-topbar-height, 36px);
  display: flex;
  align-items: center;
  width: 100%;
}

.hh-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--dir-container-max, 1240px);
  margin-inline: auto;
  padding-inline: var(--dir-space-md, 1rem);
  gap: var(--dir-space-sm, 0.5rem);
  padding-block: 0.4rem;
  box-sizing: border-box;
}

.hh-topbar-left,
.hh-topbar-right {
  display: flex;
  align-items: center;
  gap: var(--dir-space-md, 1rem);
}

.hh-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #f1f5f9;
  font-weight: 500;
}

.hh-topbar-item--muted {
  color: #cbd5e1;
}

.hh-topbar-icon {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.hh-topbar-link,
.hh-topbar a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 150ms ease, opacity 150ms ease, background-color 150ms ease;
}

.hh-topbar-link:hover,
.hh-topbar a:hover {
  color: #ffffff !important;
  opacity: 0.92;
}

.hh-topbar-link i,
.hh-topbar a i {
  font-size: 0.8rem;
  color: #cbd5e1;
  transition: transform 150ms ease, color 150ms ease;
}

.hh-topbar-link:hover i,
.hh-topbar a:hover i {
  color: #ffffff;
  transform: scale(1.08);
}

.hh-topbar .hh-lang-btn {
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none !important;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.hh-topbar .hh-lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff !important;
}

.hh-topbar .hh-lang-flag {
  font-size: 0.875rem;
  line-height: 1;
}

.hh-topbar .hh-lang-label {
  color: #ffffff !important;
  font-weight: 600;
}

.hh-lang-btn--mobile {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a !important;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hh-lang-btn--mobile:hover {
  background: #e2e8f0;
  color: #0f172a !important;
}

@media (max-width: 768px) {
  .hh-hide-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   Header — Main Navbar
   ========================================================================== */
.hh-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dir-border-subtle, #e2e8f0);
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
  padding: 0;
  min-height: var(--hh-header-height, 68px);
  width: 100%;
  display: flex;
  align-items: center;
  transition: min-height 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.hh-navbar--shrunk {
  min-height: var(--hh-header-height-shrunk, 54px);
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
}

.hh-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--dir-container-max, 1240px);
  margin-inline: auto;
  padding-inline: var(--dir-space-md, 1rem);
  gap: var(--dir-space-md, 1rem);
  min-height: var(--hh-header-height, 68px);
  box-sizing: border-box;
  transition: min-height 200ms ease;
}

.hh-navbar--shrunk .hh-navbar-inner {
  min-height: var(--hh-header-height-shrunk, 54px);
}

.hh-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding-block: 0.35rem;
  margin: 0;
  flex-shrink: 0;
}

.hh-brand-icon-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ffd500 0%, #ffcb05 50%, #eeb000 100%);
  color: #0f172a;
  font-family: var(--dir-font-heading, 'Outfit', sans-serif);
  font-weight: 900;
  font-size: 1.35rem;
  border-radius: 9px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  line-height: 1;
}

.hh-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hh-brand-title {
  font-family: var(--dir-font-heading, 'Outfit', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dir-navy, #0f172a);
}

.hh-brand-title span {
  color: #d97706;
}

.hh-brand-tagline {
  font-size: 0.6875rem;
  color: var(--dir-text-subtle, #64748b);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==========================================================================
   Header — Desktop vs Mobile Navigation
   ========================================================================== */

/* Desktop Navigation (>= 992px) */
@media (min-width: 992px) {
  .hh-desktop-nav {
    display: flex !important;
    align-items: center !important;
    margin-left: 1.5rem !important;
    flex: 1 1 auto !important;
  }

  .hh-controls-mobile,
  .hh-mobile-menu {
    display: none !important;
  }

  .hh-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.35rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .hh-nav-item {
    flex-shrink: 0;
    white-space: nowrap;
    list-style: none !important;
  }

  .hh-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border-radius: var(--dir-radius-md, 8px);
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 150ms ease, background-color 150ms ease;
    min-height: 40px;
    position: relative;
  }

  .hh-nav-link:hover,
  .hh-nav-link:focus,
  .hh-nav-link:active {
    color: var(--dir-blue, #1d4ed8) !important;
    background-color: var(--dir-blue-light, #eff6ff) !important;
    text-decoration: none !important;
  }

  .hh-nav-link.active {
    color: var(--dir-blue, #1d4ed8) !important;
    font-weight: 800 !important;
    background-color: transparent;
    text-decoration: none !important;
  }

  .hh-nav-link.active::after {
    display: none !important;
  }

  .hh-actions-desktop {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }
}

/* Mobile Navigation (< 992px) */
@media (max-width: 991.98px) {
  .hh-desktop-nav,
  .hh-actions-desktop {
    display: none !important;
  }

  .hh-controls-mobile {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  /* Prevent the brand block from pushing the mobile menu control off-screen */
  .hh-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .hh-brand-copy {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .hh-brand-tagline {
    display: none !important;
  }

  .hh-controls-mobile .hh-btn-cta--compact {
    display: none !important;
  }

  .hh-toggler.is-active .hh-toggler-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .hh-toggler.is-active .hh-toggler-bar:nth-child(2) {
    opacity: 0;
  }
  .hh-toggler.is-active .hh-toggler-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Responsive Top-Down Mobile Dropdown Menu */
  .hh-mobile-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border-top: 1px solid var(--dir-border-subtle, #e2e8f0) !important;
    border-bottom: 2px solid var(--dir-blue, #1d4ed8) !important;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.18), 0 4px 14px rgba(0, 0, 0, 0.06) !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease, visibility 0.32s ease !important;
    z-index: 1040 !important;
    box-sizing: border-box !important;
  }

  .hh-mobile-menu.is-open {
    max-height: calc(100vh - var(--hh-header-height, 68px)) !important;
    max-height: calc(100dvh - var(--hh-header-height, 68px)) !important;
    opacity: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    visibility: visible !important;
  }

  .hh-mobile-menu-inner {
    padding: 1.15rem 1rem 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.1rem !important;
    box-sizing: border-box !important;
  }

  .hh-mobile-nav {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
  }

  .hh-mobile-nav-item {
    list-style: none !important;
  }

  .hh-mobile-nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    padding: 0.65rem 0.85rem !important;
    border-radius: 10px !important;
    color: #1e293b !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
  }

  .hh-mobile-nav-link:hover,
  .hh-mobile-nav-link:focus {
    background: #f1f5f9 !important;
    color: #1d4ed8 !important;
  }

  .hh-mobile-nav-link.active {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
  }

  .hh-mobile-nav-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
  }

  .hh-mobile-nav-link:hover .hh-mobile-nav-icon,
  .hh-mobile-nav-link.active .hh-mobile-nav-icon {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
  }

  .hh-mobile-menu-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid #e2e8f0 !important;
  }

  .hh-mobile-action-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .hh-btn-mobile {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* Action Buttons & Utilities */
.hh-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--dir-radius-md, 8px);
  border: 1px solid var(--dir-border, #cbd5e1);
  background: var(--dir-surface, #ffffff);
  color: var(--dir-text-main, #0f172a);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 150ms ease;
  min-height: 40px;
  box-sizing: border-box;
}

.hh-btn-ghost:hover {
  border-color: var(--dir-blue, #1d4ed8);
  color: var(--dir-blue, #1d4ed8);
  background: var(--dir-blue-light, #eff6ff);
}

.hh-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--dir-radius-md, 8px);
  background: var(--brand, #ffcb05);
  color: var(--on-brand, #0f172a) !important;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px -1px rgba(255, 203, 5, 0.4);
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  min-height: 44px;
  box-sizing: border-box;
}

.hh-btn-cta:hover {
  background: var(--brand-hover, #e6b700);
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -2px rgba(255, 203, 5, 0.55);
}

.hh-btn-cta--compact {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 1rem;
  border-radius: 8px;
}

.hh-toggler {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 9px;
  border: 1px solid var(--dir-border-subtle, #e2e8f0);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  box-sizing: border-box;
}

.hh-toggler-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #0f172a;
  transition: transform 200ms ease, opacity 200ms ease;
}

.w-full {
  width: 100% !important;
}

/* ==========================================================================
   Footer — Quick Action CTA Band (Light Theme)
   ========================================================================== */
.hf-footer {
  margin-top: auto;
  background: var(--dir-surface, #ffffff);
  color: var(--dir-text-muted, #475569);
  border-top: 1px solid var(--dir-border-subtle, #e2e8f0);
}

.hf-cta-band {
  background: var(--dir-bg, #f8fafc);
  border-bottom: 1px solid var(--dir-border-subtle, #e2e8f0);
  padding-block: var(--dir-space-lg, 1.5rem);
}

.hf-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--dir-space-sm, 0.75rem);
}

@media (min-width: 992px) {
  .hf-cta-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--dir-space-md, 1rem);
  }
}

.hf-cta-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--dir-border-subtle, #e2e8f0);
  border-radius: var(--dir-radius-lg, 16px);
  padding: 0.9rem 1.1rem;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hf-cta-card:hover,
.hf-cta-card:focus,
.hf-cta-card:active {
  background: #ffffff;
  border-color: var(--dir-blue, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(29, 78, 216, 0.12);
  text-decoration: none !important;
}

.hf-cta-card,
.hf-cta-card:hover,
.hf-cta-card:focus,
.hf-cta-card:active,
.hf-cta-card *,
.hf-cta-card:hover * {
  text-decoration: none !important;
}

.hf-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--dir-radius-md, 10px);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.hf-cta-icon--blue    { background: #eff6ff; color: #1d4ed8; }
.hf-cta-icon--emerald { background: #ecfdf5; color: #047857; }
.hf-cta-icon--gold    { background: #fffbeb; color: #b45309; }
.hf-cta-icon--sky     { background: #f0f9ff; color: #0284c7; }

.hf-cta-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hf-cta-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--dir-text-main, #0f172a);
}

.hf-cta-sub {
  font-size: 0.78rem;
  color: var(--dir-text-subtle, #64748b);
}

.hf-cta-arrow {
  margin-inline-start: auto;
  color: #94a3b8;
  transition: color 180ms ease, transform 180ms ease;
}

.hf-cta-card:hover .hf-cta-arrow {
  color: var(--dir-blue, #1d4ed8);
  transform: translateX(3px);
}

/* ==========================================================================
   Footer — Main Grid (Light Theme)
   ========================================================================== */
.hf-main {
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) var(--dir-space-xl, 2.5rem);
  background: #ffffff;
}

.hf-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--dir-space-xl, 2rem);
}

@media (min-width: 576px) {
  .hf-main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--dir-space-lg, 1.5rem);
  }
  .hf-col--brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 992px) {
  .hf-main-grid {
    grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
    gap: var(--dir-space-xl, 2rem);
  }
  .hf-col--brand {
    grid-column: auto;
  }
}

.hf-col {
  display: flex;
  flex-direction: column;
}

.hf-brand {
  display: flex;
  flex-direction: column;
  gap: var(--dir-space-md, 1rem);
}

.hf-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.hf-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--dir-radius-md, 10px);
  background: linear-gradient(135deg, var(--dir-blue, #1d4ed8), #1e3a8a);
  color: #ffffff;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px -2px rgba(29, 78, 216, 0.35);
}

/* Brand-yellow variant — matches header's .hh-brand-icon-mark */
.hf-logo-mark--brand {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ffd500 0%, #ffcb05 50%, #eeb000 100%);
  color: #0f172a;
  font-family: var(--dir-font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  line-height: 1;
}

.hf-logo-text {
  font-family: var(--dir-font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dir-navy, #0a192f);
}

.hf-logo-text span {
  color: var(--dir-amber-accent, #d97706);
}

.hf-brand-desc {
  font-size: var(--dir-text-sm, 0.875rem);
  color: var(--dir-text-muted, #475569);
  line-height: 1.7;
  margin: 0;
  max-width: 42ch;
}

.hf-social-row {
  display: none !important;
  gap: 0.5rem;
}

.hf-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--dir-radius-md, 10px);
  background: var(--dir-bg, #f8fafc);
  border: 1px solid var(--dir-border-subtle, #e2e8f0);
  color: var(--dir-text-muted, #475569);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.hf-social-btn:hover {
  background: var(--dir-blue, #1d4ed8);
  border-color: var(--dir-blue, #1d4ed8);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.25);
}

.hf-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hf-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dir-text-main, #0f172a);
  background: var(--dir-bg, #f8fafc);
  border: 1px solid var(--dir-border-subtle, #e2e8f0);
  border-radius: var(--dir-radius-full, 9999px);
  padding: 0.35rem 0.8rem;
}

.hf-trust-pill i {
  color: var(--dir-emerald, #047857);
  font-size: 0.75rem;
}

.hf-heading {
  font-family: var(--dir-font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dir-text-main, #0f172a);
  margin: 0 0 var(--dir-space-md, 1rem);
}

.hf-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hf-links a {
  color: var(--dir-text-muted, #475569);
  font-size: var(--dir-text-sm, 0.875rem);
  text-decoration: none;
  transition: color 150ms ease, padding-inline-start 150ms ease;
}

.hf-links a:hover {
  color: var(--dir-blue, #1d4ed8);
  padding-inline-start: 0.25rem;
}

.hf-links .hf-link-accent {
  color: var(--dir-blue, #1d4ed8);
  font-weight: 600;
}

.hf-links .hf-link-accent:hover {
  color: #1e40af;
}

/* ==========================================================================
   Footer — Bottom Bar (Light Theme)
   ========================================================================== */
.hf-bottom {
  border-top: 1px solid var(--dir-border-subtle, #e2e8f0);
  padding-block: var(--dir-space-md, 1rem);
  background: var(--dir-bg, #f8fafc);
}

.hf-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--dir-space-sm, 0.75rem);
  text-align: center;
}

@media (min-width: 992px) {
  .hf-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 1.5rem;
  }

  .hf-copyright {
    flex: 1 1 auto;
    text-align: left;
  }

  .hf-payments-wrap {
    flex: 0 0 auto;
    text-align: center;
  }

  .hf-legal-links {
    flex: 0 0 auto;
    justify-content: flex-end;
    white-space: nowrap;
    flex-wrap: nowrap;
  }
}

.hf-copyright {
  font-size: 0.8125rem;
  color: var(--dir-text-subtle, #64748b);
}

.hf-copyright strong {
  color: var(--dir-text-main, #0f172a);
}

.hf-payments-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.hf-payment-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hf-pay-badge {
  display: inline-block;
  height: 22px;
  width: auto;
  border-radius: 4px;
  border: 1px solid var(--dir-border-subtle, #e2e8f0);
  background: #ffffff;
  padding: 1px 2px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  vertical-align: middle;
}

.hf-pay-badge:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 3px 6px rgba(15, 23, 42, 0.09);
}

.hf-payments-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dir-text-subtle, #64748b);
  text-decoration: none;
  transition: color 140ms ease;
}

.hf-payments-label:hover {
  color: var(--dir-text-main, #0f172a);
}

.hf-payments-label i {
  font-size: 0.75rem;
  color: #10b981;
}

.hf-payments-label strong {
  color: var(--dir-text-main, #0f172a);
  font-weight: 700;
}

.hf-bottom-meta {
  display: flex;
  align-items: center;
  gap: var(--dir-space-md, 1rem);
}

.hf-load-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--dir-text-muted, #475569);
  background: #ffffff;
  border: 1px solid var(--dir-border-subtle, #e2e8f0);
  border-radius: var(--dir-radius-full, 9999px);
  padding: 0.3rem 0.7rem;
}

.hf-load-badge i {
  color: #fbbf24;
}

.hf-legal-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.2vw, 1rem);
  white-space: nowrap;
  max-width: 100%;
}

.hf-legal-links a,
.hf-cookie-btn {
  color: var(--dir-text-subtle, #64748b);
  font-size: clamp(0.75rem, 1.1vw, 0.8125rem);
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 150ms ease;
}

.hf-legal-links a:hover,
.hf-cookie-btn:hover {
  color: var(--dir-text-main, #0f172a);
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Polish
   ========================================================================== */
@media (max-width: 991.98px) {
  .hh-navbar-actions {
    display: none !important;
  }

  .hf-cta-card {
    padding: 0.75rem 0.85rem;
  }

  .hf-cta-arrow {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .hf-cta-grid {
    grid-template-columns: 1fr;
  }

  .hh-topbar-inner {
    justify-content: center;
  }

  .hh-topbar-left {
    display: none;
  }
}

/* ==========================================================================
   Reviews & Ratings Platform Styles (2026 Directory Redesign)
   ========================================================================== */
.review-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--dir-border-subtle, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.review-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.review-section-title {
  font-family: var(--dir-font-heading, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-scorecard {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .review-scorecard {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }
}

.review-score-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.review-score-big {
  font-family: var(--dir-font-heading, 'Outfit', sans-serif);
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1;
  color: #0f172a;
}

.review-stars-gold {
  color: #f59e0b;
  font-size: 1.15rem;
  margin-top: 0.35rem;
  letter-spacing: 2px;
}

.review-score-sub {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 0.4rem;
}

.review-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.review-breakdown-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: #475569;
}

.review-breakdown-label {
  width: 45px;
  font-weight: 600;
  white-space: nowrap;
}

.review-breakdown-bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.review-breakdown-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.review-breakdown-count {
  width: 32px;
  text-align: right;
  font-weight: 600;
  color: #64748b;
}

/* Review Cards List */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.review-card {
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.review-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #047857;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-author-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

.review-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
}

.review-date {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.review-card-rating {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.review-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.review-card-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #334155;
}

.review-owner-reply {
  margin-top: 1rem;
  padding: 1rem;
  background: #f0fdf4;
  border-left: 3px solid #047857;
  border-radius: 0 8px 8px 0;
  font-size: 0.875rem;
}

.review-owner-reply-header {
  font-weight: 700;
  color: #047857;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.review-card-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8125rem;
}

.review-action-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.review-action-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.review-action-btn.is-voted {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #3b82f6;
}

/* Inline Review Form */
.review-form-container {
  margin-top: 2rem;
  padding: 1.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.review-form-title {
  font-family: var(--dir-font-heading, 'Outfit', sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.review-form-sub {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.star-rating-selector {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 6px;
  font-size: 1.75rem;
  color: #cbd5e1;
  cursor: pointer;
  margin-bottom: 1rem;
}

.star-rating-selector input {
  display: none;
}

.star-rating-selector label {
  cursor: pointer;
  transition: color 0.15s ease;
}

.star-rating-selector label:hover,
.star-rating-selector label:hover ~ label,
.star-rating-selector input:checked ~ label {
  color: #f59e0b;
}

.review-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .review-form-grid {
    grid-template-columns: 1fr;
  }
}

.review-form-input,
.review-form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  box-sizing: border-box;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.review-form-input:focus,
.review-form-textarea:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.review-captcha-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.review-captcha-img {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.review-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
}

.review-empty-icon {
  font-size: 2.25rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Company Overview Card (Bottom Detail Component)
   ========================================================================== */
.cmp-overview-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06) !important;
  padding: 26px 30px !important;
  margin: 35px 0 25px 0 !important;
  position: relative !important;
  overflow: hidden !important;
  text-align: start !important;
  transition: box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.cmp-overview-card:hover {
  box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.09) !important;
  border-color: #cbd5e1 !important;
}

.cmp-overview-header {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding-bottom: 14px !important;
}

.cmp-overview-badge-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.cmp-overview-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 5px 11px !important;
  border-radius: 9999px !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

.cmp-overview-badge--verified {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}

.cmp-overview-badge--verified i {
  color: #10b981 !important;
}

.cmp-overview-badge--unverified {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

.cmp-overview-badge--unverified i {
  color: #d97706 !important;
}

.cmp-overview-title {
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  display: flex !important;
  align-items: center !important;
}

.cmp-overview-title .text-primary {
  color: #0284c7 !important;
}

.cmp-overview-body {
  margin-bottom: 22px !important;
}

.cmp-overview-desc {
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: #475569 !important;
  margin: 0 0 12px 0 !important;
}

.cmp-overview-desc b {
  color: #0f172a !important;
  font-weight: 600 !important;
}

.cmp-overview-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 16px !important;
  font-size: 12.5px !important;
  color: #64748b !important;
}

.cmp-overview-meta-item {
  display: inline-flex !important;
  align-items: center !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
}

.cmp-overview-meta-item strong {
  color: #334155 !important;
  font-weight: 600 !important;
  margin-inline-start: 4px !important;
}

.cmp-overview-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  margin-top: 20px !important;
  padding-top: 18px !important;
  border-top: 1px solid #f1f5f9 !important;
}

.cmp-overview-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 22px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

.cmp-overview-btn--claim {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12) !important;
}

.cmp-overview-btn--claim:hover {
  background: #1e293b !important;
  border-color: #1e293b !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2) !important;
}

.cmp-overview-btn--report {
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
}

.cmp-overview-btn--report:hover {
  background: #f8fafc !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08) !important;
}

.cmp-overview-btn i {
  font-size: 14px !important;
}

/* Neutralize legacy styles for backward safety */
.cmp-overview-card .v_gap,
.cmp-sidebar-profile-card .v_gap {
  display: none !important;
}

@media (max-width: 640px) {
  .cmp-overview-card {
    padding: 20px 18px !important;
  }
  .cmp-overview-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .cmp-overview-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 12px 18px !important;
  }
}


