/* ═══ Website main menu (views/website/header.php, js/site-header.js) ═══
   1200px and wider: logo, links, Log In dropdown.  Narrower: logo, Log In, menu button + side menu. */
.dfh, .dfh-drawer {
  --dfh-h: 78px;
  --dfh-ink: var(--ws-ink, #0f2239);
  --dfh-ink-2: var(--ws-ink-2, #4a5568);
  --dfh-primary: var(--ws-primary, #ff7f46);
  --dfh-primary-2: var(--ws-primary-2, #ffa24d);
  --dfh-soft: var(--ws-primary-soft, #fff3ec);
  --dfh-border: var(--ws-border, #e8ebf2);
}
.dfh {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(15, 34, 57, .07);
  transition: box-shadow .2s ease;
  font-family: var(--ws-font, 'Rubik', sans-serif);
}
.dfh.is-scrolled { box-shadow: 0 6px 24px rgba(15, 34, 57, .08); }
.dfh *, .dfh-drawer * { box-sizing: border-box; }
.dfh-bar { display: flex; align-items: center; gap: 20px; height: var(--dfh-h); }

.dfh-skip { position: absolute; left: 12px; top: -60px; z-index: 1100; padding: 10px 16px; border-radius: 10px; background: var(--ws-ink, #0f2239); color: #fff !important; font-weight: 600; }
.dfh-skip:focus { top: 10px; }

/* logo */
.dfh-logo { display: block; flex: 0 0 auto; line-height: 0; }
.dfh-logo img { display: block; height: 64px !important; width: auto !important; max-width: none; object-fit: contain !important; } /* style.css sizes every img 100% !important */

/* links (wide screens) */
.dfh-nav { margin-left: auto; }
.dfh-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.dfh-nav a {
  position: relative; display: block; padding: 10px 13px; border-radius: 10px;
  color: var(--dfh-ink); font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.dfh-nav a:hover { color: var(--dfh-primary); background: var(--dfh-soft); }
.dfh-nav a.active { color: var(--dfh-primary); }
.dfh-nav a.active::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--dfh-primary); }
.dfh-nav a.dfh-hot { color: #c2410c; font-weight: 600; }
.dfh-nav a.dfh-hot::before { content: ''; position: absolute; top: 6px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); animation: dfh-ping 1.8s infinite; }
@keyframes dfh-ping { 70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* actions */
.dfh-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.dfh-login { position: relative; }
.dfh-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 100px; cursor: pointer;
  background: linear-gradient(135deg, var(--dfh-primary), var(--dfh-primary-2)); color: #fff; font: 600 15px/1 var(--ws-font, 'Rubik', sans-serif);
  box-shadow: 0 8px 20px rgba(255, 127, 70, .3); transition: transform .15s ease, box-shadow .15s ease;
}
.dfh-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 127, 70, .38); }
.dfh-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.dfh-caret { transition: transform .2s ease; }
.dfh-login.open .dfh-caret { transform: rotate(180deg); }

/* Log In dropdown */
.dfh-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 290px; padding: 8px; border-radius: 16px;
  background: #fff; border: 1px solid var(--dfh-border); box-shadow: 0 18px 50px rgba(15, 34, 57, .16);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.dfh-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* keeps hover across the gap */
.dfh-login.open .dfh-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1200px) {
  .dfh-login:hover .dfh-menu { opacity: 1; visibility: visible; transform: none; }
  .dfh-login:hover .dfh-caret { transform: rotate(180deg); }
}
.dfh-menu-title { padding: 8px 10px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a93a5; }
.dfh-menu a, .dfh-drawer-login a {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--dfh-ink); text-decoration: none; line-height: 1.25;
  transition: background-color .15s ease;
}
.dfh-menu a:hover, .dfh-menu a:focus-visible, .dfh-drawer-login a:hover { background: var(--dfh-soft); }
.dfh-menu a b, .dfh-drawer-login a b { display: block; font-size: 15px; font-weight: 600; }
.dfh-menu a small, .dfh-drawer-login a small { display: block; font-size: 12.5px; color: #8a93a5; }
.dfh-menu-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: var(--dfh-soft); color: var(--dfh-primary); }

/* menu button */
.dfh-burger { display: none; position: relative; width: 46px; height: 46px; border: 1px solid var(--dfh-border); border-radius: 12px; background: #fff; cursor: pointer; padding: 0; }
.dfh-burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--dfh-ink); }
.dfh-burger span:nth-child(1) { top: 15px; }
.dfh-burger span:nth-child(2) { top: 21px; }
.dfh-burger span:nth-child(3) { top: 27px; right: 19px; }
.dfh-burger:hover { border-color: var(--dfh-primary); }

/* side menu */
.dfh-overlay { position: fixed; inset: 0; z-index: 1040; background: rgba(15, 34, 57, .45); opacity: 0; transition: opacity .25s ease; }
.dfh-overlay.show { opacity: 1; }
.dfh-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1050; width: min(360px, 88vw);
  display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 60px rgba(15, 34, 57, .2);
  transform: translateX(105%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility .28s;
  font-family: var(--ws-font, 'Rubik', sans-serif); overflow-y: auto; overscroll-behavior: contain;
}
.dfh-drawer.open { transform: none; visibility: visible; }
.dfh-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--ws-border, #e8ebf2); }
.dfh-drawer-head .dfh-logo img { height: 52px !important; }
.dfh-close { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ws-border, #e8ebf2); border-radius: 12px; background: #fff; color: var(--ws-ink, #0f2239); cursor: pointer; }
.dfh-close:hover { color: var(--ws-primary, #ff7f46); border-color: var(--ws-primary, #ff7f46); }
.dfh-drawer-nav { list-style: none; margin: 0; padding: 10px 12px; }
.dfh-drawer-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 12px; border-radius: 12px;
  color: var(--ws-ink, #0f2239); font-size: 16px; font-weight: 500; text-decoration: none;
}
.dfh-drawer-nav a svg { width: 18px; height: 18px; color: #b6bdca; flex: 0 0 auto; }
.dfh-drawer-nav a:hover { background: var(--ws-bg, #f7f8fc); }
.dfh-drawer-nav a.active { background: var(--ws-primary-soft, #fff3ec); color: var(--ws-primary, #ff7f46); font-weight: 600; }
.dfh-drawer-nav a.active svg { color: var(--ws-primary, #ff7f46); }
.dfh-drawer-nav a.dfh-hot span::after { content: 'New'; margin-left: 8px; padding: 2px 8px; border-radius: 100px; background: #fee2e2; color: #b91c1c; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.dfh-drawer-login { margin-top: auto; padding: 12px 12px 20px; border-top: 1px solid var(--ws-border, #e8ebf2); background: var(--ws-bg, #f7f8fc); }
.dfh-drawer-login a { background: #fff; border: 1px solid var(--ws-border, #e8ebf2); margin-top: 8px; }
body.dfh-lock { overflow: hidden; }

.dfh a:focus-visible, .dfh button:focus-visible, .dfh-drawer a:focus-visible, .dfh-drawer button:focus-visible { outline: 3px solid rgba(255, 127, 70, .45); outline-offset: 2px; }

/* laptops 1200 - 1399: a bit tighter */
@media (max-width: 1399.98px) {
  .dfh-bar { gap: 14px; }
  .dfh-logo img { height: 60px !important; }
  .dfh-nav a { padding: 10px 10px; font-size: 14.5px; }
  .dfh-nav a.active::after { left: 10px; right: 10px; }
  .dfh-btn { padding: 0 18px; }
}
/* below 1200: side menu */
@media (max-width: 1199.98px) {
  .dfh-nav { display: none; }
  .dfh-actions { margin-left: auto; }
  .dfh-burger { display: block; }
}
@media (max-width: 575.98px) {
  .dfh { --dfh-h: 66px; }
  .dfh-login { display: none; } /* phones: the side menu has the log in choices */
  .dfh-logo img { height: 52px !important; }
  .dfh-burger { width: 44px; height: 44px; }
  .dfh-burger span:nth-child(1) { top: 14px; }
  .dfh-burger span:nth-child(2) { top: 20px; }
  .dfh-burger span:nth-child(3) { top: 26px; }
}
@media (min-width: 1200px) {
  .dfh-overlay, .dfh-drawer { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .dfh *, .dfh-drawer, .dfh-overlay, .dfh-menu { transition: none !important; animation: none !important; }
}
