/* Site header + slide-out menu. Scoped to .fm-header / .fm-drawer */
.fm-header, .fm-drawer, .fm-overlay { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.fm-header *, .fm-header *::before, .fm-header *::after,
.fm-drawer *, .fm-drawer *::before, .fm-drawer *::after { box-sizing: border-box; }
.fm-header ul, .fm-drawer ul { list-style: none; margin: 0; padding: 0; }
.fm-header a, .fm-drawer a { text-decoration: none; }

/* The top bar is 40px tall and scrolls away; the navbar then sticks to the top of the screen. */
.fm-header { --fm-top: 40px; position: sticky; top: calc(var(--fm-top) * -1); z-index: 1000; background: #fff; }

/* ---------- top bar ---------- */
.fm-topbar { height: var(--fm-top); background: #0b1325; color: #cbd5e1; font-size: 12.5px; }
.fm-topbar-inner { max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.fm-topbar-info { display: flex; align-items: center; gap: 26px; }
.fm-topbar-info li { display: flex; align-items: center; gap: 8px; }
.fm-topbar-info svg { color: #f87171; flex: none; }
.fm-topbar-info a, .fm-topbar-info span { color: #cbd5e1; font-weight: 500; transition: color .25s; }
.fm-topbar-info a:hover { color: #fff; }
.fm-topbar-social { display: flex; align-items: center; gap: 6px; }
.fm-topbar-social a { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #cbd5e1; transition: background .25s, color .25s, transform .25s; }
.fm-topbar-social a:hover { background: #dc2626; color: #fff; transform: translateY(-2px); }

/* ---------- main bar ---------- */
.fm-navbar { position: relative; background: #fff; border-bottom: 1px solid #e8edf3; transition: box-shadow .3s ease; }
.fm-header.scrolled .fm-navbar { box-shadow: 0 10px 30px rgba(11,19,37,.12); border-bottom-color: transparent; }
.fm-navbar::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: linear-gradient(90deg, #dc2626, #f97316); transition: width .6s ease; }
.fm-header.scrolled .fm-navbar::after { width: 100%; }
.fm-navbar-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 104px; display: flex; align-items: stretch; justify-content: space-between; gap: 24px; transition: height .3s ease; }
.fm-header.scrolled .fm-navbar-inner { height: 80px; }

.fm-logo { display: flex; align-items: center; flex: none; }
.fm-logo img { height:100px; width: auto; display: block; transition: height .3s ease, transform .3s ease; }
.fm-header.scrolled .fm-logo img { height: 64px; }
.fm-logo:hover img { transform: scale(1.04); }

/* nav */
.fm-nav { flex: 1; display: flex; justify-content: flex-end; }
.fm-nav > ul { display: flex; align-items: stretch; gap: 2px; white-space: nowrap; }
.fm-nav > ul > li { position: relative; display: flex; align-items: stretch; }
.fm-nav > ul > li > a { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 14px; white-space: nowrap; font-family: 'Rajdhani', 'Inter', sans-serif; font-size:20px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #0f172a; transition: color .25s ease; }
.fm-nav > ul > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: #dc2626; border-radius: 3px 3px 0 0; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.fm-nav > ul > li:hover > a, .fm-nav > ul > li > a.active { color: #dc2626; }
.fm-nav > ul > li:hover > a::after, .fm-nav > ul > li > a.active::after { transform: scaleX(1); }
.fm-nav > ul > li > a svg { transition: transform .3s ease; }
.fm-nav > ul > li:hover > a svg, .fm-nav > ul > li:focus-within > a svg { transform: rotate(180deg); }

/* dropdown panel */
.fm-drop { position: absolute; left: 50%; top: 100%; width: 560px; margin-left: -280px; padding: 20px; background: #fff; border-radius: 0 0 14px 14px; border-top: 3px solid #dc2626; box-shadow: 0 30px 60px rgba(11,19,37,.22); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s ease, transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s linear .3s; }
.fm-has-drop:hover .fm-drop, .fm-has-drop:focus-within .fm-drop { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.fm-drop.fm-drop-sm { width: 320px; margin-left: -160px; }
.fm-drop.fm-drop-sm .fm-drop-grid { grid-template-columns: 1fr; }
.fm-drop-head { font-size: 11px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: #94a3b8; margin: 0 4px 12px; }
.fm-drop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fm-drop-grid a { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap:0 10px; padding:10px; border: 1px solid #e8edf3; border-radius: 10px; background: #f8fafc; transition: background .25s, border-color .25s, transform .25s, box-shadow .25s; }
.fm-drop-grid a:hover { background: #fff; border-color: #dc2626; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(11,19,37,.1); }
.fm-drop-name { font-family: 'Rajdhani', 'Inter', sans-serif; font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .2px; color: #0f172a; grid-column: 1; }
.fm-drop-count { grid-column: 1; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: #94a3b8; }
.fm-drop-arrow { grid-column: 2; grid-row: 1 / span 2; color: #cbd5e1; transition: color .25s, transform .3s; }
.fm-drop-grid a:hover .fm-drop-arrow { color: #dc2626; transform: rotate(45deg); }
.fm-drop-all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 12px; border-radius: 10px; background: #0b1325; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; transition: background .25s; }
.fm-drop-all svg { transition: transform .25s; }
.fm-drop-all:hover { background: #dc2626; color: #fff; }
.fm-drop-all:hover svg { transform: translateX(5px); }

/* right cluster */
.fm-navbar-right { display: flex; align-items: center; gap: 16px; flex: none; }
.fm-call { display: flex; align-items: center; gap: 12px; color: #0f172a; }
.fm-call-ic { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #fef2f2; color: #dc2626; display: flex; align-items: center; justify-content: center; transition: background .3s, color .3s; }
.fm-call-ic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #dc2626; opacity: 0; animation: fmPulse 2.4s ease-out infinite; }
@keyframes fmPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
.fm-call:hover .fm-call-ic { background: #dc2626; color: #fff; }
.fm-call-text small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: #94a3b8; }
.fm-call-text b { display: block; font-family: 'Rajdhani', 'Inter', sans-serif; font-size: 21px; line-height: 1.05; font-weight: 800; letter-spacing: .3px; color: #0f172a; }
.fm-quote-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border-radius: 8px; background: #dc2626; color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 10px 22px rgba(220,38,38,.32); transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.fm-quote-btn::before { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); }
.fm-quote-btn:hover { background: #b91c1c; color: #fff; transform: translateY(-2px); box-shadow: 0 16px 28px rgba(220,38,38,.4); }
.fm-quote-btn:hover::before { left: 130%; transition: left .7s ease; }

/* search button */
.fm-search-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #e2e8f0; background: #fff; color: #0f172a; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background .25s, color .25s, border-color .25s, transform .3s; }
.fm-search-btn:hover, .fm-search-btn[aria-expanded="true"] { background: #0b1325; border-color: #0b1325; color: #fff; transform: scale(1.06); }

/* search panel: drops down over the navbar */
.fm-search { position: absolute; left: 0; right: 0; top: 100%; background: #0b1325; border-top: 3px solid #dc2626; box-shadow: 0 30px 60px rgba(11,19,37,.35); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s ease, transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s linear .3s; }
.fm-search.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.fm-search-inner { max-width: 900px; margin: 0 auto; padding: 30px 20px 26px; }
.fm-search-form { position: relative; display: flex; align-items: center; background: #fff; border-radius: 12px; padding: 6px 6px 6px 18px; box-shadow: 0 0 0 4px rgba(220,38,38,.25); }
.fm-search-ic { color: #94a3b8; flex: none; }
.fm-search-form input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; padding: 0 14px; font-family: inherit; font-size: 17px; font-weight: 500; color: #0f172a; box-shadow: none; }
.fm-search-form input::placeholder { color: #94a3b8; }
.fm-search-form input::-webkit-search-cancel-button { display: none; }
.fm-search-go { height: 48px; padding: 0 26px; border: 0; border-radius: 8px; background: #dc2626; color: #fff; font-family: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: background .25s; }
.fm-search-go:hover { background: #b91c1c; }
.fm-search-close { width: 44px; height: 44px; margin-left: 6px; border: 0; border-radius: 8px; background: #f1f5f9; color: #475569; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .25s, color .25s; }
.fm-search-close:hover { background: #0b1325; color: #fff; }
.fm-search-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.fm-search-quick span { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #94a3b8; margin-right: 4px; }
.fm-search-quick a { font-size: 12.5px; font-weight: 600; color: #e2e8f0; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); border-radius: 30px; padding: 6px 14px; transition: background .25s, border-color .25s, transform .25s; }
.fm-search-quick a:hover { background: #dc2626; border-color: #dc2626; color: #fff; transform: translateY(-2px); }

/* burger */
.fm-burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 10px; background: #0b1325; cursor: pointer; padding: 0; position: relative; transition: background .25s; }
.fm-burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, width .3s ease, background .25s; }
.fm-burger span:nth-child(1) { top: 16px; }
.fm-burger span:nth-child(2) { top: 22px; right: 18px; }
.fm-burger span:nth-child(3) { top: 28px; }
.fm-burger:hover { background: #dc2626; }
.fm-burger:hover span:nth-child(2) { right: 12px; }

/* ---------- slide-out menu ---------- */
html.fm-lock, html.fm-lock body { overflow: hidden; }
.fm-overlay { position: fixed; inset: 0; z-index: 99998; background: rgba(5,10,20,.62); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s; }
.fm-overlay.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.fm-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 99999; width: min(420px, 92vw); display: flex; flex-direction: column; color: #e2e8f0; overflow-y: auto; transform: translateX(105%); transition: transform .5s cubic-bezier(.22,.61,.36,1); background-color: #0b1325; background-image: radial-gradient(circle at 100% 0%, rgba(220,38,38,.25), transparent 45%), radial-gradient(circle at 0% 100%, rgba(2,132,199,.18), transparent 45%);  border-left: 3px solid #dc2626; box-shadow: -30px 0 60px rgba(0,0,0,.4); }
.fm-drawer.open { transform: translateX(0); }
.fm-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.fm-drawer-brand { font-family: 'Rajdhani', 'Inter', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.2px; text-transform: uppercase; color: #fff; }
.fm-drawer-brand em { font-style: normal; color: #dc2626; }
.fm-drawer-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .25s, transform .35s; }
.fm-drawer-close:hover { background: #dc2626; border-color: #dc2626; transform: rotate(90deg); }

.fm-drawer-nav { padding: 18px 28px; flex: 1; }
.fm-drawer-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.08); opacity: 0; transform: translateX(26px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.fm-drawer.open .fm-drawer-nav > ul > li { opacity: 1; transform: none; }
.fm-drawer.open .fm-drawer-nav > ul > li:nth-child(1) { transition-delay: .18s; }
.fm-drawer.open .fm-drawer-nav > ul > li:nth-child(2) { transition-delay: .24s; }
.fm-drawer.open .fm-drawer-nav > ul > li:nth-child(3) { transition-delay: .30s; }
.fm-drawer.open .fm-drawer-nav > ul > li:nth-child(4) { transition-delay: .36s; }
.fm-drawer.open .fm-drawer-nav > ul > li:nth-child(5) { transition-delay: .42s; }
.fm-drawer.open .fm-drawer-nav > ul > li:nth-child(6) { transition-delay: .48s; }
.fm-drawer-nav a { display: flex; align-items: center; gap: 16px; padding: 18px 0; font-family: 'Rajdhani', 'Inter', sans-serif; font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: #fff; transition: color .25s, padding-left .3s ease; }
.fm-drawer-nav a i { font-style: normal; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #dc2626; min-width: 22px; }
.fm-drawer-nav a:hover { color: #f87171; padding-left: 8px; }

.fm-acc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fm-acc-row a { flex: 1; }
.fm-acc-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .25s, transform .35s; }
.fm-acc.open .fm-acc-toggle { background: #dc2626; border-color: #dc2626; transform: rotate(180deg); }
.fm-acc-panel { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.fm-acc-panel li { padding-left: 38px; }
.fm-drawer-nav .fm-acc-panel a { padding: 11px 0; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: .2px; text-transform: none; color: #cbd5e1; justify-content: space-between; }
.fm-acc-panel small { font-size: 11px; font-weight: 700; color: #fff; background: rgba(255,255,255,.1); border-radius: 20px; padding: 2px 9px; }
.fm-drawer-nav .fm-acc-panel a:hover { color: #fff; padding-left: 6px; }
.fm-acc-panel li:last-child { padding-bottom: 14px; }

.fm-drawer-foot { padding: 22px 28px 30px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 12px; }
.fm-drawer-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 8px; font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; transition: transform .25s, background .25s, color .25s, border-color .25s; }
.fm-drawer-btn:hover { transform: translateY(-2px); }
.fm-drawer-btn-red { background: #dc2626; color: #fff; box-shadow: 0 12px 24px rgba(220,38,38,.35); }
.fm-drawer-btn-red:hover { background: #b91c1c; color: #fff; }
.fm-drawer-btn-line { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.fm-drawer-btn-line:hover { background: #fff; color: #0b1325; border-color: #fff; }
.fm-drawer-mail { text-align: center; font-size: 13.5px; color: #94a3b8; transition: color .25s; word-break: break-word; }
.fm-drawer-mail:hover { color: #fff; }
.fm-drawer-social { display: flex; justify-content: center; gap: 10px; }
.fm-drawer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: background .3s, border-color .3s, transform .3s; }
.fm-drawer-social a:hover { background: #dc2626; border-color: #dc2626; transform: translateY(-4px); }

/* ---------- responsive ---------- */
@media (max-width: 1360px) {
  /* keep just the round phone button; the number is still in the top bar and footer */
  .fm-call-text { display: none; }
}
@media (max-width: 1180px) {
  .fm-call { display: none; }
  .fm-nav > ul > li > a { padding: 0 10px; font-size: 15.5px; }
  .fm-nav > ul > li > a::after { left: 10px; right: 10px; }
}
@media (max-width: 991px) {
  .fm-header { --fm-top: 0px; }
  .fm-topbar { display: none; }
  .fm-nav, .fm-quote-btn { display: none; }
  .fm-burger { display: block; }
  .fm-navbar-inner { height: 84px; }
  .fm-header.scrolled .fm-navbar-inner { height: 70px; }
  .fm-logo img { height: 66px; }
  .fm-header.scrolled .fm-logo img { height: 54px; }
}
@media (max-width: 600px) {
  .fm-search-inner { padding: 20px 14px 18px; }
  .fm-search-form { padding-left: 14px; }
  .fm-search-form input { font-size: 15px; height: 48px; }
  .fm-search-go { display: none; }
  .fm-search-ic { width: 18px; height: 18px; }
}
@media (max-width: 420px) {
  .fm-drawer-nav a { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .fm-header *, .fm-drawer, .fm-drawer *, .fm-overlay { transition: none !important; animation: none !important; }
}

/* ---- compact Trailers dropdown (3 columns, single-line rows) ---- */
.fm-drop:not(.fm-drop-sm) { width: 640px; margin-left: -320px; padding: 14px 14px 12px; }
.fm-drop:not(.fm-drop-sm) .fm-drop-head { margin: 0 4px 9px; font-size: 10.5px; }
.fm-drop:not(.fm-drop-sm) .fm-drop-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fm-drop:not(.fm-drop-sm) .fm-drop-grid a { grid-template-columns: 1fr auto; padding: 8px 11px; gap: 8px; border-radius: 8px; }
.fm-drop:not(.fm-drop-sm) .fm-drop-name { font-size: 14.5px; line-height: 1.15; grid-column: 1; grid-row: 1; }
.fm-drop:not(.fm-drop-sm) .fm-drop-count { grid-column: 2; grid-row: 1; font-size: 10px; letter-spacing: .3px; background: #eef2f7; color: #64748b; border-radius: 999px; padding: 2px 8px; font-weight: 700; white-space: nowrap; }
.fm-drop:not(.fm-drop-sm) .fm-drop-arrow { display: none; }
.fm-drop:not(.fm-drop-sm) .fm-drop-grid a:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(11,19,37,.09); }
.fm-drop:not(.fm-drop-sm) .fm-drop-grid a:hover .fm-drop-count { background: #fee2e2; color: #dc2626; }
.fm-drop:not(.fm-drop-sm) .fm-drop-all { margin-top: 10px; padding: 9px; font-size: 11.5px; }

/* ---- compact dropdown: fix column sizing ---- */
.fm-drop:not(.fm-drop-sm) { width: 680px; margin-left: -340px; }
.fm-drop:not(.fm-drop-sm) .fm-drop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fm-drop:not(.fm-drop-sm) .fm-drop-grid > li { min-width: 0; }
.fm-drop:not(.fm-drop-sm) .fm-drop-grid a { width: 100%; min-width: 0; }
.fm-drop:not(.fm-drop-sm) .fm-drop-name { min-width: 0; overflow-wrap: anywhere; }
.fm-drop:not(.fm-drop-sm) .fm-drop-count { min-width: 24px; text-align: center; padding: 2px 7px; font-size: 11px; }
