/* ════════════════════════════════════════════════
   HEADER & FOOTER CSS — Hedg Advisors
   Paste this inside your <style> block or link as
   a separate stylesheet.
   Requires these CSS variables to already exist:
   --brand, --brand-dark, --brand-pale, --dark,
   --dark-2, --mid, --muted, --border, --white,
   --gold, --green, --shadow-sm, --shadow-lg,
   --r-sm, --r-md, --r-lg, --r-xl,
   --font-body, --font-serif
════════════════════════════════════════════════ */

/* ── ANNOUNCEMENT BAR ── */
.announcement-bar {
  background: var(--dark);
  color: #CBD5E1;
  font-size: 13px;
  text-align: center;
  padding: 10px 16px;
  letter-spacing: .02em;
}
.announcement-bar a {
  color: #93C5FD;
  font-weight: 600;
  margin-left: 6px;
  transition: color .18s;
}
.announcement-bar a:hover { color: var(--white); }

/* ── SITE HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Nav wrapper */
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

/* Logo */
.nav-logo {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo span { color: var(--brand); }

/* Desktop menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--dark-2);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--brand);
  background: var(--brand-pale);
}
.nav-link i { font-size: 11px; transition: transform .2s; }
.nav-item:hover > .nav-link i { transform: rotate(180deg); }

/* Dropdown container */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, transform .22s;
  z-index: 9999;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Mega dropdown */
.nav-mega {
  min-width: 820px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 24px;
}
.mega-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col ul li + li { margin-top: 4px; }
.mega-col ul li a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mid);
  padding: 5px 8px;
  border-radius: 7px;
  display: block;
  transition: color .18s, background .18s;
  text-decoration: none;
}
.mega-col ul li a:hover { color: var(--brand); background: var(--brand-pale); }

/* Single dropdown */
.nav-single { min-width: 220px; padding: 12px 8px; }
.nav-single ul { list-style: none; margin: 0; padding: 0; }
.nav-single ul li a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  padding: 9px 16px;
  border-radius: var(--r-sm);
  transition: color .18s, background .18s;
  text-decoration: none;
}
.nav-single ul li a:hover { color: var(--brand); background: var(--brand-pale); }

/* Header CTA button */
.nav-cta {
  background: var(--brand);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .22s, transform .2s;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.nav-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.mobile-nav.open { max-height: 100vh; overflow-y: auto; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav-item > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-nav-item > a i { transition: transform .2s; }
.mobile-nav-item.open > a i { transform: rotate(180deg); }
.mobile-sub { display: none; background: #F9FAFB; padding: 8px 0; }
.mobile-nav-item.open .mobile-sub { display: block; }
.mobile-sub-group { padding: 12px 20px 8px 28px; }
.mobile-sub-group h6 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.mobile-sub-group ul { list-style: none; margin: 0; padding: 0; }
.mobile-sub-group ul li a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: var(--mid);
  border-bottom: 1px solid #EFEFEF;
  text-decoration: none;
}
.mobile-sub-group ul li:last-child a { border-bottom: none; }
.mobile-nav-cta { padding: 16px 20px; }
.mobile-nav-cta a {
  display: block;
  text-align: center;
  background: var(--brand);
  color: var(--white) !important;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--r-md);
  text-decoration: none;
}


/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
.site-footer {
  background: #060D1E;
  color: #94A3B8;
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

/* Brand column */
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--white);
  text-decoration: none;
}
.footer-logo span { color: var(--brand); }
.footer-brand p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.75;
  max-width: 260px;
}

/* Social icons */
.footer-socials { display: flex; gap: 10px; margin-top: 4px; }
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  font-size: 13px;
  transition: background .22s, color .22s, border-color .22s;
  text-decoration: none;
}
.footer-socials a:hover {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

/* Footer columns */
.footer-col h6 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: #64748B;
  transition: color .18s;
  text-decoration: none;
}
.footer-col ul li a:hover { color: var(--white); }

/* Contact list in footer */
.footer-contact-list { display: flex; flex-direction: column; gap: 12px !important; }
.footer-contact-list li {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #64748B;
}
.footer-contact-list li i {
  color: var(--brand);
  font-size: 13px;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-contact-list li a {
  color: #64748B;
  transition: color .18s;
  text-decoration: none;
}
.footer-contact-list li a:hover { color: var(--white); }

/* Footer bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: #4B5563; }
.footer-bottom-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom-links a {
  color: #4B5563;
  font-size: 13px;
  transition: color .18s;
  text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--white); }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(27, 77, 255, .38);
  opacity: 0;
  transform: translateY(12px);
  transition: all .3s;
  z-index: 100;
  pointer-events: none;
  border: none;
  cursor: pointer;
}
.scroll-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--brand-dark); transform: translateY(-2px); }


/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: span 3; flex-direction: row; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
  .footer-brand p { max-width: 400px; }
}

@media (max-width: 900px) {
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: span 2; }
  .nav-mega { min-width: 100%; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-links { gap: 14px; }
}
