/* ═══════════════════════════════════════════════
   ForexDaily Header & Footer Builder — header.css
   ═══════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --fdhf-ink:       #080C14;
  --fdhf-ink-2:     #0E1320;
  --fdhf-ink-3:     #141926;
  --fdhf-ink-4:     #1C2235;
  --fdhf-line:      #232B42;
  --fdhf-brand:      #E8B84B;
  --fdhf-brand-2:    #F0CE6A;
  --fdhf-brand-dim:  rgba(232,184,75,.12);
  --fdhf-silver:    #8B96B0;
  --fdhf-white:     #F0F2F8;
  --fdhf-cream:     #D8DCE8;
  --fdhf-shadow:    0 2px 20px rgba(0,0,0,.4);
  --fdhf-shadow-lg: 0 8px 48px rgba(0,0,0,.6);
  --fdhf-r:         10px;
  --fdhf-r-sm:      6px;
  --fdhf-header-h:  64px;
  --fdhf-topbar-h:  38px;
  --fdhf-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ════════════════════════════════════════════════
   TOP BAR
   ════════════════════════════════════════════════ */
.fdhf-topbar {
  background: var(--fdhf-ink-2);
  border-bottom: 1px solid var(--fdhf-line);
  height: var(--fdhf-topbar-h);
  font-size: 12px;
  color: var(--fdhf-silver);
  transition: transform var(--fdhf-transition), opacity var(--fdhf-transition), height var(--fdhf-transition);
  overflow: hidden;
  position: relative;
  z-index: 200;
}

.fdhf-topbar.fdhf-topbar-hidden {
  transform: translateY(-100%);
  opacity: 0;
  height: 0;
  pointer-events: none;
}

.fdhf-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.fdhf-topbar-left {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.fdhf-topbar-left a,
.fdhf-topbar-award {
  color: var(--fdhf-silver);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.fdhf-topbar-award { font-weight: 600; color: var(--fdhf-brand); }
.fdhf-topbar-left a:hover { color: var(--fdhf-brand); }

.fdhf-topbar-right {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.fdhf-topbar-date {
  font-size: 11px;
  color: var(--fdhf-silver);
  white-space: nowrap;
}
.fdhf-topbar-date strong { color: var(--fdhf-brand); font-weight: 600; }

.fdhf-topbar-socials {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ── Social buttons (shared) ── */
.fdhf-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  background: var(--fdhf-ink-4);
  border: 1px solid var(--fdhf-line);
  border-radius: 50%;
  color: var(--fdhf-silver);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.fdhf-social-btn svg { width: 13px; height: 13px; }
.fdhf-social-btn:hover {
  background: var(--fdhf-brand-dim);
  border-color: var(--fdhf-brand);
  color: var(--fdhf-brand);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════
   MAIN HEADER
   ════════════════════════════════════════════════ */
.fdhf-header {
  background: var(--fdhf-ink-2);
  border-bottom: 1px solid var(--fdhf-line);
  position: sticky;
  top: 0;
  z-index: 150;
  transition: box-shadow 0.3s ease, height 0.3s ease, backdrop-filter 0.3s ease, background 0.3s ease;
  will-change: transform;
  /* Must be positioning context for mega panel */
  isolation: isolate;
}

.fdhf-header.fdhf-sticky {
  box-shadow: var(--fdhf-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(14,19,32,0.95);
}

.fdhf-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px;
  height: var(--fdhf-header-h);
  display: flex;
  align-items: center;
  gap: 28px;
  transition: height var(--fdhf-transition);
}

@media (max-width: 900px) {
  .fdhf-header-inner {
    justify-content: space-between;
    gap: 0;
  }
  .fdhf-logo-wrap {
    flex: 1;
    min-width: 0;
  }
  /* Hide search toggle and CTA on mobile — they live in drawer */
  .fdhf-search-toggle,
  .fdhf-cta-btn {
    display: none !important;
  }
  /* Actions area: only hamburger visible, push to far right */
  .fdhf-header-actions {
    margin-left: auto;
    gap: 0;
  }
}

.fdhf-header.fdhf-sticky .fdhf-header-inner {
  height: 54px;
}

/* ── Logo ── */
.fdhf-logo-wrap { flex-shrink: 0; }
.fdhf-logo-wrap a,
.fdhf-logo-text-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.fdhf-logo-wrap a:hover,
.fdhf-logo-text-link:hover { opacity: 0.85; }
.fdhf-logo-wrap img {
  height: 42px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: height var(--fdhf-transition);
}
.fdhf-header.fdhf-sticky .fdhf-logo-wrap img { height: 40px; }

.fdhf-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--fdhf-brand), #C8974A);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  color: #1a1000;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.fdhf-logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--fdhf-white);
  letter-spacing: .3px;
}

/* ── Desktop Nav ── */
.fdhf-desktop-nav { flex: 1; min-width: 0; }

.fdhf-nav-list {
  display: flex;
  gap: 2px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fdhf-nav-item { position: relative; }

.fdhf-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--fdhf-silver);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--fdhf-r-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.fdhf-nav-link:hover,
.fdhf-nav-item.active > .fdhf-nav-link {
  color: var(--fdhf-white);
  background: var(--fdhf-ink-4);
}

.fdhf-nav-arrow { display: flex; align-items: center; }
.fdhf-nav-arrow svg {
  width: 12px; height: 12px;
  opacity: 0.6;
  transition: transform 0.25s ease;
}
.fdhf-nav-item:hover > .fdhf-nav-link .fdhf-nav-arrow svg,
.fdhf-nav-item:focus-within > .fdhf-nav-link .fdhf-nav-arrow svg {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── Regular Dropdown ── */
.fdhf-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--fdhf-ink-3);
  border: 1px solid var(--fdhf-line);
  border-radius: var(--fdhf-r);
  box-shadow: var(--fdhf-shadow-lg);
  list-style: none;
  margin: 0;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

.fdhf-nav-item.has-dropdown:hover > .fdhf-dropdown,
.fdhf-nav-item.has-dropdown:focus-within > .fdhf-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fdhf-dropdown-item a {
  display: block;
  padding: 8px 12px;
  color: var(--fdhf-silver);
  font-size: 13px;
  text-decoration: none;
  border-radius: var(--fdhf-r-sm);
  transition: color 0.2s, background 0.2s;
}
.fdhf-dropdown-item a:hover {
  color: var(--fdhf-brand);
  background: var(--fdhf-brand-dim);
}

/* ── Mega Panel ── */
/* ── Mega panel ── */
/* Regular dropdown items keep position:relative so dropdown anchors under them.
   Only mega-menu items go static so the panel anchors to the header. */
.fdhf-nav-item { position: relative; }  /* keep relative for dropdown */
.fdhf-nav-item.has-mega { position: static; } /* mega anchors to header */
.fdhf-nav-list { position: static; }
.fdhf-desktop-nav { position: static; }

.fdhf-mega-panel {
  position: absolute;
  top: 100%;          /* bottom of .fdhf-header */
  left: 0;
  right: 0;
  transform: translateY(6px);
  background: var(--fdhf-ink-3);
  border: 1px solid var(--fdhf-line);
  border-top: 2px solid var(--fdhf-brand);
  border-radius: 0 0 var(--fdhf-r) var(--fdhf-r);
  box-shadow: var(--fdhf-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 199;
  pointer-events: none;
}

/* CSS-only show — JS also manages this for flicker prevention */
.fdhf-nav-item.has-mega:hover > .fdhf-mega-panel,
.fdhf-nav-item.has-mega:focus-within > .fdhf-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.fdhf-mega-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 28px 20px;
  /* match header-inner content width exactly */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.fdhf-mega-col {
  padding: 0 20px 0 20px;
  border-right: 1px solid var(--fdhf-line);
}
.fdhf-mega-col:first-child { padding-left: 0; }
.fdhf-mega-col:last-child { padding-right: 0; border-right: none; }

.fdhf-mega-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fdhf-brand);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fdhf-line);
}
.fdhf-mega-col-title a {
  color: inherit;
  text-decoration: none;
}
.fdhf-mega-col-title a:hover { color: var(--fdhf-brand-2); }

.fdhf-mega-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fdhf-mega-links li a {
  display: block;
  padding: 6px 8px;
  color: var(--fdhf-silver);
  font-size: 13px;
  text-decoration: none;
  border-radius: var(--fdhf-r-sm);
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
}
.fdhf-mega-links li a:hover {
  color: var(--fdhf-white);
  background: var(--fdhf-ink-4);
  padding-left: 12px;
}
.fdhf-mega-links li.active a {
  color: var(--fdhf-brand);
}

/* ── Header Right Actions ── */
.fdhf-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Search toggle */
.fdhf-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--fdhf-line);
  border-radius: var(--fdhf-r-sm);
  color: var(--fdhf-silver);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.fdhf-search-toggle svg { width: 16px; height: 16px; }
.fdhf-search-toggle:hover,
.fdhf-search-toggle.active {
  color: var(--fdhf-brand);
  border-color: var(--fdhf-brand);
  background: var(--fdhf-brand-dim);
}

/* CTA button */
.fdhf-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--fdhf-r-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}
.fdhf-cta-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.fdhf-cta-primary {
  background: linear-gradient(135deg, var(--fdhf-brand), #C8974A);
  color: #1a1000 !important;
}
.fdhf-cta-ghost {
  background: transparent;
  color: var(--fdhf-cream) !important;
  border: 1px solid var(--fdhf-line);
}
.fdhf-cta-ghost:hover { border-color: var(--fdhf-brand); color: var(--fdhf-brand) !important; }

/* Hamburger */
.fdhf-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--fdhf-line);
  border-radius: var(--fdhf-r-sm);
  cursor: pointer;
  color: var(--fdhf-cream);
  transition: color 0.2s, border-color 0.2s;
  margin-left: auto; /* push to far right */
  flex-shrink: 0;
}
.fdhf-hamburger svg { width: 20px; height: 20px; }
.fdhf-hamburger:hover { border-color: var(--fdhf-brand); color: var(--fdhf-brand); }

.fdhf-ham-close { display: none; }
.fdhf-hamburger.is-open .fdhf-ham-open { display: none; }
.fdhf-hamburger.is-open .fdhf-ham-close { display: block; }

/* ── Search Bar (slide down) ── */
.fdhf-search-bar {
  background: var(--fdhf-ink-3);
  border-top: 0px solid var(--fdhf-brand);
  border-bottom: 0px solid var(--fdhf-line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}
.fdhf-search-bar.fdhf-search-open {
  max-height: 90px;
}

/* Inner wrapper — constrained to header content width */
.fdhf-search-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
}

/* WP wraps form in <div class="search-form"> — target both */
.fdhf-search-bar-inner .search-form {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: stretch;
  height: 44px;
}

/* The actual <form> element fills the div and shows the pill */
.fdhf-search-bar-inner .search-form form,
.fdhf-search-bar-inner > form {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--fdhf-line);
  border-radius: 40px;
  overflow: hidden;
  background: var(--fdhf-ink-4);
  transition: border-color 0.2s;
  height: 44px;
  width: 100%;
}
.fdhf-search-bar-inner .search-form form:focus-within,
.fdhf-search-bar-inner > form:focus-within {
  border-color: var(--fdhf-brand);
}

/* Input fills all space inside the pill */
.fdhf-search-bar-inner input[type="search"] {
  flex: 1 1 0;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--fdhf-white);
  padding: 0 20px;
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}
.fdhf-search-bar-inner input[type="search"]::placeholder {
  color: var(--fdhf-silver);
}

/* Submit button — gold right cap */
.fdhf-search-bar-inner button[type="submit"],
.fdhf-search-bar-inner input[type="submit"] {
  flex-shrink: 0;
  background: var(--fdhf-brand);
  color: #1a1000 !important;
  border: none;
  padding: 0 24px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border-radius: 0 40px 40px 0;
  transition: background 0.2s;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  line-height: 1;
}
.fdhf-search-bar-inner button[type="submit"]:hover,
.fdhf-search-bar-inner input[type="submit"]:hover {
  background: var(--fdhf-brand-2);
}

/* Close X — fixed circle right side */
.fdhf-search-close {
  flex-shrink: 0;
  background: var(--fdhf-ink-4);
  border: 1px solid var(--fdhf-line);
  color: var(--fdhf-silver);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.fdhf-search-close svg { width: 16px; height: 16px; }
.fdhf-search-close:hover {
  color: var(--fdhf-white);
  border-color: var(--fdhf-brand);
  background: var(--fdhf-brand-dim);
}

/* ════════════════════════════════════════════════
   MOBILE DRAWER OVERLAY
   ════════════════════════════════════════════════ */
.fdhf-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 299;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--fdhf-transition), visibility var(--fdhf-transition);
}
.fdhf-overlay.fdhf-overlay-visible {
  opacity: 1;
  visibility: visible;
}

/* ════════════════════════════════════════════════
   MOBILE DRAWER
   ════════════════════════════════════════════════ */
.fdhf-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82vw, 400px);
  height: 100dvh;
  height: 100vh; /* fallback */
  background: var(--fdhf-ink-2);
  border-left: 1px solid var(--fdhf-line);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--fdhf-transition);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
  overflow: hidden;
}
.fdhf-mobile-drawer.fdhf-drawer-open {
  transform: translateX(0);
}

/* Drawer Header */
.fdhf-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--fdhf-line);
  flex-shrink: 0;
}
.fdhf-drawer-logo a,
.fdhf-drawer-logo .fdhf-logo-text-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.fdhf-drawer-logo img { height: 32px; width: auto; }
.fdhf-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--fdhf-ink-4);
  border: 1px solid var(--fdhf-line);
  border-radius: 50%;
  color: var(--fdhf-silver);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.fdhf-drawer-close svg { width: 16px; height: 16px; }
.fdhf-drawer-close:hover { color: var(--fdhf-white); border-color: var(--fdhf-brand); }

/* Drawer Search */
.fdhf-drawer-search {
  padding: 14px 20px;
  border-bottom: 1px solid var(--fdhf-line);
  flex-shrink: 0;
}
.fdhf-drawer-search .search-form,
.fdhf-drawer-search form { display: flex; gap: 8px; }
.fdhf-drawer-search input[type="search"] {
  flex: 1;
  background: var(--fdhf-ink-4);
  border: 1px solid var(--fdhf-line);
  border-radius: var(--fdhf-r-sm);
  color: var(--fdhf-white);
  padding: 9px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.fdhf-drawer-search input[type="search"]:focus { border-color: var(--fdhf-brand); }
.fdhf-drawer-search input[type="search"]::placeholder { color: var(--fdhf-silver); }
.fdhf-drawer-search button[type="submit"],
.fdhf-drawer-search input[type="submit"] {
  background: var(--fdhf-brand);
  color: #1a1000;
  border: none;
  padding: 9px 14px;
  border-radius: var(--fdhf-r-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* Drawer Nav panels */
.fdhf-drawer-nav {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.fdhf-panel-track {
  display: flex;
  height: 100%;
  transition: transform var(--fdhf-transition);
}

.fdhf-panel {
  min-width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 8px 0;
  flex-shrink: 0;
}

/* Scrollbar */
.fdhf-panel::-webkit-scrollbar { width: 4px; }
.fdhf-panel::-webkit-scrollbar-track { background: transparent; }
.fdhf-panel::-webkit-scrollbar-thumb { background: var(--fdhf-line); border-radius: 2px; }

/* Panel back bar */
.fdhf-panel-back {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--fdhf-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid var(--fdhf-line);
  margin-bottom: 8px;
  user-select: none;
  transition: color 0.2s;
}
.fdhf-panel-back:hover { color: var(--fdhf-brand-2); }
.fdhf-panel-back svg { width: 16px; height: 16px; }

.fdhf-panel-title {
  color: var(--fdhf-white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile menu items */
.fdhf-mobile-nav-list,
.fdhf-mobile-sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fdhf-mobile-item {
  border-bottom: 1px solid rgba(35,43,66,0.5);
}
.fdhf-mobile-item:last-child { border-bottom: none; }

.fdhf-mobile-item-btn,
.fdhf-mobile-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: var(--fdhf-cream);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s, background 0.2s;
}
.fdhf-mobile-item-btn:hover,
.fdhf-mobile-item-link:hover {
  color: var(--fdhf-brand);
  background: var(--fdhf-brand-dim);
}
.fdhf-mobile-item-btn svg { width: 16px; height: 16px; opacity: 0.5; flex-shrink: 0; }

/* Sub-panel items (dynamically added by JS) */
.fdhf-sub-item {
  border-bottom: 1px solid rgba(35,43,66,0.5);
}
.fdhf-sub-item:last-child { border-bottom: none; }

.fdhf-sub-item-link {
  display: block;
  padding: 13px 20px;
  color: var(--fdhf-silver);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
  border-left: 2px solid transparent;
}
.fdhf-sub-item-link:hover {
  color: var(--fdhf-white);
  background: var(--fdhf-ink-4);
  padding-left: 24px;
  border-left-color: var(--fdhf-brand);
}

/* Section heading in sub-panel */
.fdhf-sub-heading {
  padding: 10px 20px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fdhf-brand);
  border-bottom: 1px solid var(--fdhf-line);
  margin-bottom: 4px;
}
.fdhf-sub-heading-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(35,43,66,0.5);
  color: var(--fdhf-cream);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s, background 0.2s;
}
.fdhf-sub-heading-btn:hover { color: var(--fdhf-brand); background: var(--fdhf-brand-dim); }
.fdhf-sub-heading-btn svg { width: 14px; height: 14px; opacity: 0.5; flex-shrink: 0; }

/* Drawer Footer */
.fdhf-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--fdhf-line);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fdhf-drawer-cta {
  display: block;
  width: unset;
  text-align: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--fdhf-brand), #C8974A);
  color: #1a1000 !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--fdhf-r-sm);
  text-decoration: none;
  transition: opacity 0.2s;
}
.fdhf-drawer-cta:hover { opacity: 0.85; }

.fdhf-drawer-socials {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.fdhf-drawer-socials .fdhf-social-btn {
  width: 36px; height: 36px;
}
.fdhf-drawer-socials .fdhf-social-btn svg { width: 15px; height: 15px; }

/* Body scroll lock */
body.fdhf-no-scroll { overflow: hidden; }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .fdhf-topbar { display: none; } /* hidden on mobile by default, can be toggled */
  .fdhf-desktop-nav { display: none !important; }
  .fdhf-cta-btn { display: none !important; }
  .fdhf-search-toggle { display: none; }
  .fdhf-hamburger { display: flex; }
}

@media (min-width: 901px) {
  .fdhf-hamburger { display: none !important; }
  .fdhf-mobile-drawer { display: none !important; }
  .fdhf-overlay { display: none !important; }
}

/* WordPress custom logo adjustments */
.fdhf-logo-wrap .custom-logo-link { display: flex; align-items: center; }
.fdhf-logo-wrap .custom-logo { height: 52px; width: auto; max-width: 200px; object-fit: contain; }
