Home / Widgets / Header – Lovable
Duplicate Snippet

Embed Snippet on Your Site

Header – Lovable

Adam Hobson PRO
<10
Code Preview
css
<style>
/* PFSA Header Variables */
:root {
  --pfsa-primary: #1e3a5f;
  --pfsa-primary-dark: #152a47;
  --pfsa-gold: #c9a227;
  --pfsa-gold-light: #d4b23d;
  --pfsa-text: #1a1a1a;
  --pfsa-text-light: #6b7280;
  --pfsa-bg: #ffffff;
  --pfsa-bg-dark: #0f172a;
  --pfsa-border: #e5e7eb;
}
/* Reset for header elements */
.pfsa-header * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* Top Bar */
.pfsa-topbar {
  background: var(--pfsa-bg-dark);
  color: #ffffff;
  font-size: 12px;
  padding: 8px 0;
}
.pfsa-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pfsa-topbar-left {
  display: flex;
  gap: 16px;
}
.pfsa-topbar-link {
  color: #9ca3af;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.pfsa-topbar-link:hover {
  color: #ffffff;
}
.pfsa-topbar-right {
  display: flex;
  gap: 12px;
}
.pfsa-social-link {
  color: #9ca3af;
  transition: color 0.2s;
}
.pfsa-social-link:hover {
  color: var(--pfsa-gold);
}
/* Main Header */
.pfsa-main-header {
  background: var(--pfsa-bg);
  border-bottom: 1px solid var(--pfsa-border);
  position: relative;
}
.pfsa-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  height: 80px;
  gap: 16px;
}
.pfsa-logo img {
  height: 48px;
  width: auto;
}
/* Navigation */
.pfsa-nav {
  display: flex;
  align-items: center;
  flex: 1;
}
.pfsa-nav-item {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
}
.pfsa-nav-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 24px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pfsa-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}
.pfsa-nav-btn:hover,
.pfsa-nav-btn.active {
  color: var(--pfsa-primary);
}
.pfsa-nav-btn svg {
  transition: transform 0.2s;
}
.pfsa-nav-btn.active svg {
  transform: rotate(180deg);
}
/* CTA Button */
.pfsa-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--pfsa-gold);
  color: #000000;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  flex-shrink: 0;
}
.pfsa-cta:hover {
  background: var(--pfsa-gold-light);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.4);
}
/* Mega Menu */
.pfsa-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1200px;
  background: var(--pfsa-bg-dark);
  border: 1px solid #334155;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1000;
}
.pfsa-nav-item:hover .pfsa-mega-menu,
.pfsa-mega-menu:hover {
  opacity: 1;
  visibility: visible;
}
.pfsa-mega-grid {
  display: grid;
  gap: 32px;
}
.pfsa-mega-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pfsa-mega-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.pfsa-mega-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pfsa-mega-column h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--pfsa-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #334155;
}
.pfsa-mega-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pfsa-mega-link {
  display: block;
  padding: 8px 12px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.pfsa-mega-link:hover {
  background: #1e293b;
  color: var(--pfsa-gold);
}
.pfsa-mega-link.featured {
  background: rgba(201, 162, 39, 0.1);
  color: var(--pfsa-gold);
}
.pfsa-mega-link.featured:hover {
  background: rgba(201, 162, 39, 0.2);
}
/* Featured Box */
.pfsa-featured-box {
  background: linear-gradient(135deg, var(--pfsa-primary), var(--pfsa-primary-dark));
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pfsa-featured-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--pfsa-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pfsa-featured-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 8px;
}
.pfsa-featured-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  line-height: 1.5;
}
.pfsa-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--pfsa-gold);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s;
}
.pfsa-featured-link:hover {
  gap: 12px;
}
/* Mobile Menu Button */
.pfsa-mobile-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
/* Mobile Styles */
@media (max-width: 1024px) {
  .pfsa-nav,
  .pfsa-cta {
    display: none;
  }
  
  .pfsa-mobile-btn {
    display: flex;
  }
  
  .pfsa-header-inner {
    height: 64px;
  }
  
  .pfsa-logo img {
    height: 40px;
  }
}
/* Mobile Menu Overlay */
.pfsa-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--pfsa-bg-dark);
  transform: translateX(100%);
  transition: transform 0.3s;
  z-index: 10000;
  overflow-y: auto;
}
.pfsa-mobile-menu.open {
  transform: translateX(0);
}
.pfsa-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 9999;
}
.pfsa-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}
.pfsa-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #334155;
}
.pfsa-mobile-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
}
.pfsa-mobile-nav {
  padding: 16px;
}
.pfsa-mobile-item {
  border-bottom: 1px solid #334155;
}
.pfsa-mobile-item-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.pfsa-mobile-submenu {
  display: none;
  padding-bottom: 16px;
}
.pfsa-mobile-item.open .pfsa-mobile-submenu {
  display: block;
}
.pfsa-mobile-item.open .pfsa-mobile-item-btn svg {
  transform: rotate(180deg);
}
.pfsa-mobile-sublink {
  display: block;
  padding: 10px 16px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 13px;
}
.pfsa-mobile-sublink:hover {
  color: var(--pfsa-gold);
}
.pfsa-mobile-cta {
  display: block;
  margin: 24px 16px;
  padding: 14px;
  background: var(--pfsa-gold);
  color: #000000;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}
</style>

Comments

Add a Comment