/*
 * RFP360 Mega Menu – Stylesheet
 * All selectors are prefixed with .rfp360- to avoid theme conflicts.
 */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --rfp360-brand:        #ffa255;
  --rfp360-brand-dark:   #f08630;
  --rfp360-brand-light:  #fff4eb;
  --rfp360-brand-glow:   rgba(255,162,85,0.18);
  --rfp360-mega-divider: rgba(15,23,42,0.16);
  --rfp360-mega-divider-strong: rgba(15,23,42,0.22);

  --rfp360-c-blue:      #3b82f6; --rfp360-c-blue-bg:    #eff6ff;
  --rfp360-c-indigo:    #6366f1; --rfp360-c-indigo-bg:  #eef2ff;
  --rfp360-c-violet:    #8b5cf6; --rfp360-c-violet-bg:  #f5f3ff;
  --rfp360-c-pink:      #ec4899; --rfp360-c-pink-bg:    #fdf2f8;
  --rfp360-c-emerald:   #10b981; --rfp360-c-emerald-bg: #ecfdf5;
  --rfp360-c-teal:      #14b8a6; --rfp360-c-teal-bg:    #f0fdfa;
  --rfp360-c-sky:       #0ea5e9; --rfp360-c-sky-bg:     #f0f9ff;
  --rfp360-c-amber:     #f59e0b; --rfp360-c-amber-bg:   #fffbeb;
  --rfp360-c-rose:      #f43f5e; --rfp360-c-rose-bg:    #fff1f2;
  --rfp360-c-lime:      #65a30d; --rfp360-c-lime-bg:    #f7fee7;
  --rfp360-c-orange:    #ffa255; --rfp360-c-orange-bg:  #fff7ed;
  --rfp360-c-cyan:      #06b6d4; --rfp360-c-cyan-bg:    #ecfeff;

  --rfp360-text-primary:   #0f172a;
  --rfp360-text-secondary: #475569;
  --rfp360-text-muted:     #94a3b8;
  --rfp360-bg-white:  #ffffff;
  --rfp360-bg-soft:   #f8fafc;
  --rfp360-border:    rgba(15,23,42,0.07);
  --rfp360-shadow-lg: 0 20px 50px rgba(0,0,0,0.11), 0 6px 18px rgba(0,0,0,0.06);
  --rfp360-r:    12px;
  --rfp360-r-sm:  8px;
  --rfp360-r-pill: 999px;
  --rfp360-font: 'Plus Jakarta Sans', sans-serif;
  --rfp360-ease: cubic-bezier(0.4,0,0.2,1);
}

/* ─── ANNOUNCEMENT BAR ────────────────────────────────── */
.rfp360-announce-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  color: #fff;
  padding: 8px 20px;
  font-size: 14px;
  font-family: var(--rfp360-font);
  position: relative;
  z-index: 101;
}
.rfp360-ab-phone { flex: 1; }
.rfp360-ab-phone i { color: var(--rfp360-brand); font-size: 11px; }
.rfp360-ab-center {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
}
.rfp360-ab-hl { color: var(--rfp360-brand); font-weight: 700; margin-left: 6px; }
.rfp360-ab-webinar {
  padding: 8px 18px;
  background: linear-gradient(325deg,#017ee4 0%,#b800ff 100%);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-family: var(--rfp360-font);
  font-weight: 600;
  transition: transform 0.3s, background 0.3s;
}
.rfp360-ab-webinar:hover {
  background: linear-gradient(310deg,#b800ff 0%,#017ee4 100%);
  transform: scale(1.05);
}
.rfp360-ab-socials { flex: 1; display: flex; justify-content: flex-end; gap: 10px; }
.rfp360-ab-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: #fff; color: var(--rfp360-brand);
  border-radius: 50%; transition: all 0.3s; text-decoration: none;
  font-size: 13px;
}
.rfp360-ab-socials a:hover { background: var(--rfp360-brand); color: #fff; }

/* ─── HEADER ──────────────────────────────────────────── */
#rfp360-site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--rfp360-border);
  transition: box-shadow 0.3s;
  font-family: var(--rfp360-font);
  -webkit-font-smoothing: antialiased;
}
#rfp360-site-header.rfp360-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }

.rfp360-header-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 15px;
  height: 66px; display: flex; align-items: center;
}

/* Logo */
.rfp360-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.rfp360-logo-img { height: 36px; width: auto; }
.rfp360-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--rfp360-brand), var(--rfp360-brand-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
  box-shadow: 0 4px 12px var(--rfp360-brand-glow);
}
.rfp360-logo-text {
  font-size: 18px; font-weight: 800;
  color: var(--rfp360-text-primary); letter-spacing: -0.4px;
}
.rfp360-logo-text span { color: var(--rfp360-brand); }

/* Desktop Nav */
.rfp360-desktop-nav {
  display: flex; justify-content: center; align-items: center;
  gap: 5px; flex: 1;
}
.rfp360-nav-item {
  position: relative; height: 66px; display: flex; align-items: center;
}
.rfp360-nav-trigger {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: var(--rfp360-r-sm);
  font-size: 15px; font-weight: 600; color: var(--rfp360-text-secondary);
  cursor: pointer; background: none; border: none;
  font-family: var(--rfp360-font);
  text-decoration: none; white-space: nowrap; line-height: 1;
  transition: color 0.18s var(--rfp360-ease), background 0.18s var(--rfp360-ease);
}
.rfp360-nav-trigger:hover {
  color: var(--rfp360-text-primary); background: var(--rfp360-bg-soft);
}
.rfp360-chev {
  font-size: 9px; color: var(--rfp360-text-muted);
  transition: transform 0.2s var(--rfp360-ease), color 0.18s;
}
.rfp360-nav-item.rfp360-open .rfp360-nav-trigger {
  color: var(--rfp360-brand); background: var(--rfp360-brand-light);
}
.rfp360-nav-item.rfp360-open .rfp360-chev {
  transform: rotate(180deg); color: var(--rfp360-brand);
}

/* ─── MEGA MENU ───────────────────────────────────────── */
.rfp360-mega-menu {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rfp360-bg-white);
  border: 1px solid var(--rfp360-mega-divider);
  border-radius: 18px;
  box-shadow: var(--rfp360-shadow-lg);
  padding: 26px 28px 28px;
  display: none;
  z-index: 99;
  width: 860px;
  max-width: 94vw;
  font-family: var(--rfp360-font);
  -webkit-font-smoothing: antialiased;
}
.rfp360-mega-menu.rfp360-visible {
  display: block;
  animation: rfp360MenuPop 0.17s var(--rfp360-ease) forwards;
}
@keyframes rfp360MenuPop {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.98); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Structured mega layout */
.rfp360-mega-structured {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px 14px;
}
.rfp360-mega-group {
  position: relative;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rfp360-mega-divider-strong);
}
.rfp360-span-1 { grid-column: span 1; }
.rfp360-span-2 { grid-column: span 2; }
.rfp360-span-3 { grid-column: span 3; }
.rfp360-span-4 { grid-column: 1 / -1; }
.rfp360-no-border { border-bottom: none; }

.rfp360-mega-group-items { display: grid; gap: 6px; }
.rfp360-span-1 .rfp360-mega-group-items { grid-template-columns: 1fr; }
.rfp360-span-2 .rfp360-mega-group-items { grid-template-columns: repeat(2,minmax(0,1fr)); }
.rfp360-span-3 .rfp360-mega-group-items { grid-template-columns: repeat(3,minmax(0,1fr)); }
.rfp360-span-4 .rfp360-mega-group-items { grid-template-columns: repeat(4,minmax(0,1fr)); }

.rfp360-has-left-divider { padding-left: 18px; }
.rfp360-has-left-divider::before {
  content: "";
  position: absolute; left: -8px; top: 4px; bottom: 1px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--rfp360-mega-divider-strong), var(--rfp360-mega-divider-strong), transparent);
}

/* Mega label */
.rfp360-mega-label {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: #000;
  margin-bottom: 11px; padding-bottom: 10px;
  border-bottom: 1px solid var(--rfp360-mega-divider-strong);
  display: flex; align-items: center; gap: 6px;
}
.rfp360-mega-label i { color: var(--rfp360-brand); font-size: 9px; }

/* Menu card */
.rfp360-menu-card {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 12px; border-radius: var(--rfp360-r);
  text-decoration: none;
  transition: background 0.15s var(--rfp360-ease), transform 0.15s var(--rfp360-ease);
  cursor: pointer;
}
.rfp360-menu-card:hover { background: var(--rfp360-bg-soft); transform: translateY(-1px); }
.rfp360-menu-card:hover .rfp360-mc-icon { box-shadow: 0 4px 12px rgba(0,0,0,0.13); }
.rfp360-card-wide { grid-column: span 2; }

.rfp360-mc-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  transition: box-shadow 0.15s var(--rfp360-ease);
}
.rfp360-mc-body { flex: 1; min-width: 0; }
.rfp360-mc-title {
  font-size: 12.5px; font-weight: 700; color: var(--rfp360-text-primary);
  line-height: 1.3; margin-bottom: 3px; transition: color 0.14s;
}
.rfp360-menu-card:hover .rfp360-mc-title { color: var(--rfp360-brand-dark); }
.rfp360-mc-desc {
  font-size: 11px; color: var(--rfp360-text-muted);
  line-height: 1.5; font-weight: 400;
}

/* ─── SMALL DROPDOWN ──────────────────────────────────── */
.rfp360-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px); left: 0;
  background: var(--rfp360-bg-white);
  border: 1px solid var(--rfp360-border);
  border-radius: var(--rfp360-r);
  box-shadow: var(--rfp360-shadow-lg);
  padding: 8px;
  display: none;
  z-index: 99;
  min-width: 215px;
  font-family: var(--rfp360-font);
}
.rfp360-dropdown-menu.rfp360-visible {
  display: block;
  animation: rfp360DropPop 0.15s var(--rfp360-ease) forwards;
}
@keyframes rfp360DropPop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rfp360-dropdown-menu ul { list-style: none; padding: 0; margin: 0; }
.rfp360-dropdown-menu ul li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: var(--rfp360-r-sm);
  font-size: 13px; font-weight: 500;
  color: var(--rfp360-text-secondary); text-decoration: none; white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.rfp360-dropdown-menu ul li a:hover {
  color: var(--rfp360-brand-dark); background: var(--rfp360-brand-light);
}
.rfp360-dd-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
  transition: box-shadow 0.14s;
}
.rfp360-dropdown-menu ul li a:hover .rfp360-dd-icon {
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* ─── HEADER CTAs ─────────────────────────────────────── */
.rfp360-header-ctas {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto;
}
.rfp360-btn-ghost {
  padding: 7px 12px; font-size: 13px; font-weight: 600;
  color: var(--rfp360-text-secondary); text-decoration: none;
  border-radius: var(--rfp360-r-sm);
  transition: color 0.15s, background 0.15s;
  font-family: var(--rfp360-font);
}
.rfp360-btn-ghost:hover { color: var(--rfp360-text-primary); background: var(--rfp360-bg-soft); }
.rfp360-btn-primary {
  padding: 9px 20px; font-size: 13px; font-weight: 700;
  color: #fff; background: var(--rfp360-brand);
  border-radius: var(--rfp360-r-sm); text-decoration: none;
  box-shadow: 0 4px 14px var(--rfp360-brand-glow);
  transition: background 0.15s, transform 0.15s;
  font-family: var(--rfp360-font);
}
.rfp360-btn-primary:hover { background: var(--rfp360-brand-dark); transform: translateY(-1px); }

/* ─── HAMBURGER ───────────────────────────────────────── */
.rfp360-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 38px; height: 38px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: var(--rfp360-r-sm); transition: background 0.15s;
}
.rfp360-hamburger:hover { background: var(--rfp360-bg-soft); }
.rfp360-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--rfp360-text-primary); border-radius: 2px;
  transition: transform 0.3s var(--rfp360-ease), opacity 0.3s;
}
.rfp360-hamburger.rfp360-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rfp360-hamburger.rfp360-open span:nth-child(2) { opacity: 0; }
.rfp360-hamburger.rfp360-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU ─────────────────────────────────────── */
.rfp360-mobile-menu {
  display: none; position: fixed;
  top: 108px; left: 0; right: 0; bottom: 0;
  background: var(--rfp360-bg-white); z-index: 98;
  overflow-y: auto; padding: 12px 20px 40px;
  font-family: var(--rfp360-font);
}
.rfp360-mobile-menu.rfp360-open { display: block; }

.rfp360-mobile-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 4px; font-size: 14.5px; font-weight: 700;
  color: var(--rfp360-text-primary);
  border-bottom: 1px solid var(--rfp360-border);
  cursor: pointer; background: none;
  border-top: none; border-left: none; border-right: none;
  width: 100%; font-family: var(--rfp360-font); text-align: left;
}
.rfp360-chev-m {
  font-size: 10px; color: var(--rfp360-text-muted); transition: transform 0.2s;
}
.rfp360-mobile-trigger.rfp360-open .rfp360-chev-m {
  transform: rotate(180deg); color: var(--rfp360-brand);
}
.rfp360-mobile-sub { display: none; padding: 10px 0 16px 4px; }
.rfp360-mobile-sub.rfp360-open { display: block; }

.rfp360-m-sub-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--rfp360-text-muted);
  padding: 10px 6px 6px; display: flex; align-items: center; gap: 5px;
}
.rfp360-mobile-sub ul { list-style: none; padding: 0; margin: 0; }
.rfp360-mobile-sub ul li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px; font-size: 13px; font-weight: 500;
  color: var(--rfp360-text-secondary); text-decoration: none;
  border-radius: var(--rfp360-r-sm);
  transition: color 0.15s, background 0.15s;
}
.rfp360-mobile-sub ul li a:hover {
  color: var(--rfp360-brand-dark); background: var(--rfp360-brand-light);
}
.rfp360-m-icon {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.rfp360-mobile-direct {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 4px; font-size: 14.5px; font-weight: 700;
  color: var(--rfp360-text-primary);
  border-bottom: 1px solid var(--rfp360-border); text-decoration: none;
}
.rfp360-mobile-ctas {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 18px;
}
.rfp360-mobile-ctas a {
  display: block; text-align: center; padding: 12px;
  font-size: 14px; font-weight: 700;
  border-radius: var(--rfp360-r-sm); text-decoration: none;
  font-family: var(--rfp360-font);
}
.rfp360-m-outline { border: 1.5px solid var(--rfp360-border); color: var(--rfp360-text-primary); }
.rfp360-m-brand {
  background: var(--rfp360-brand); color: #fff;
  box-shadow: 0 4px 14px var(--rfp360-brand-glow);
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1180px) {
  .rfp360-nav-trigger { padding: 6px 8px; font-size: 12px; }
}
@media (max-width: 1024px) {
  .rfp360-desktop-nav { display: none; }
  .rfp360-hamburger { display: flex; }
  .rfp360-announce-bar { display: none; }
  .rfp360-mobile-menu { top: 66px; }
}
@media (max-width: 600px) {
  .rfp360-ab-phone, .rfp360-ab-socials { display: none; }
  .rfp360-btn-ghost, .rfp360-btn-primary { display: none; }
  .rfp360-span-2 .rfp360-mega-group-items,
  .rfp360-span-3 .rfp360-mega-group-items,
  .rfp360-span-4 .rfp360-mega-group-items { grid-template-columns: 1fr 1fr; }
}
