/**
 * FinHub Unified CSS
 * Header, Footer, Navigation, and Responsive styles
 * For the Hello Elementor Child - FinHub Unified theme
 */

/* Reset for unified design */
*, *::before, *::after { box-sizing: border-box; }
body { padding-top: 72px !important; font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif; }

/* Hide old Elementor header/footer */
.elementor-location-header, .elementor-location-footer { display: none !important; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100000;
  background: #ffffff; box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: background 0.3s;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px;
}
.logo img { max-height: 50px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: #0D3B66; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; transition: color 0.3s; white-space: nowrap;
  text-decoration: none;
}
.nav-links a:hover { color: #1A6DB5; }

/* CTA Button */
.btn-primary-cta {
  display: inline-block; padding: 10px 24px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  background: #E8870E; color: #fff !important; border: 2px solid #E8870E;
  border-radius: 6px; text-decoration: none; transition: all 0.3s;
  white-space: nowrap;
}
.btn-primary-cta:hover { background: #d4770a; border-color: #d4770a; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #0D3B66; margin: 5px 0; transition: all 0.3s; border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: #ffffff; z-index: 99999; padding: 32px 24px; overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.mobile-nav.active { display: flex; flex-direction: column; gap: 0; }
.mobile-nav a {
  color: #0D3B66; font-size: 16px; font-weight: 700; text-transform: uppercase;
  padding: 16px 0; border-bottom: 1px solid rgba(13,59,102,0.1); display: block;
  text-decoration: none;
}
.mobile-nav a:hover { color: #1A6DB5; }

/* ===== FOOTER ===== */
.site-footer { background: #0D3B66; padding: 64px 0 0; color: rgba(255,255,255,0.75); }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px;
}
.footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.6); }
.footer-col h4 {
  font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #fff;
  margin-bottom: 20px; font-weight: 700;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.65); font-size: 14px; padding: 4px 0;
  transition: color 0.3s; text-decoration: none;
}
.footer-col a:hover { color: #fff; }
.footer-awards {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-awards img {
  height: 48px; width: auto; filter: grayscale(100%) brightness(1.5); opacity: 0.5;
  transition: all 0.3s;
}
.footer-awards img:hover { filter: grayscale(0) brightness(1); opacity: 1; }
.footer-compliance {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; text-align: center;
  font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.8;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99998;
  background: rgba(13,59,102,0.95); backdrop-filter: blur(8px);
  padding: 12px 24px; text-align: center;
}
.mobile-sticky-cta .btn-primary-cta { width: 100%; padding: 14px 24px; font-size: 14px; display: block; }

/* Scroll CTA */
.scroll-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99998;
  background: #0D3B66; padding: 16px 24px; box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  transform: translateY(100%); transition: transform 0.4s ease;
}
.scroll-cta.visible { display: block; transform: translateY(0); }
.scroll-cta-inner {
  max-width: 1100px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.scroll-cta-text { color: #fff; }
.scroll-cta-text strong { font-size: 16px; display: block; }
.scroll-cta-text span { font-size: 14px; opacity: 0.8; }
.scroll-cta-btn {
  display: inline-block; padding: 12px 28px; background: #E8870E; color: #fff;
  font-weight: 700; font-size: 14px; border-radius: 6px; text-decoration: none;
  white-space: nowrap; transition: background 0.3s;
}
.scroll-cta-btn:hover { background: #d4770a; }
.scroll-cta-close {
  background: none; border: none; color: rgba(255,255,255,0.6); font-size: 20px;
  cursor: pointer; padding: 4px 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .nav-links, .header-cta { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .mobile-sticky-cta { display: block; }
  .scroll-cta { display: none !important; }
  body { padding-bottom: 60px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .scroll-cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { text-align: center; }
  .footer-awards img { height: 36px; }
}

/* ===== BLOG / CONTENT AREA SPACING ===== */

/* Blog content area spacing */
.elementor-widget-theme-post-content,
.entry-content,
.post-content,
.elementor-section-wrap > .elementor-section:first-child {
  margin-top: 20px;
}

/* Ensure blog content doesn't collide with header */
main, #content, .site-main, .elementor {
  position: relative;
}

/* Remove any old theme header/footer styling conflicts */
.site-header a { text-decoration: none; }
.site-footer a { text-decoration: none; }
