/* ============================================================
   VEBLOOM — Components CSS
   ============================================================ */

/* ── HEADER ── */
.header {
    position: fixed; /* Fixed to ensure it sticks to top regardless of parent overflow */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: #ffffff; /* Solid white */
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
/* Offset body to account for fixed header */
body {
    padding-top: var(--nav-height);
}

.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.05);
}

.header .container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--grad-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 0 16px var(--accent-glow);
}

/* ── NAVIGATION ── */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex: 1;
    justify-content: center;
    position: relative;
}

.nav-item {
    position: static;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* ── MEGA MENU ── */
#header .mega-menu {
    position: absolute !important;
    top: calc(100% + 1px) !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(15px) !important;
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
    width: min(1100px, calc(100vw - 2rem)) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1) !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    overflow: hidden !important;
    display: grid !important;
    grid-template-columns: 1fr 340px !important;
    z-index: 1000 !important;
}

#header .nav-item:hover .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: all !important;
}

/* Mega Menu Main Section */
#header .mega-menu-main {
    padding: var(--space-8) !important;
    background: #ffffff !important;
}

#header .mega-menu-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-4) !important;
    margin-bottom: var(--space-6) !important;
}

#header .mega-menu-card {
    display: flex !important;
    gap: var(--space-4) !important;
    padding: var(--space-5) !important;
    border-radius: var(--radius-lg) !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
}

#header .mega-menu-card:hover {
    background: #f8fafc !important;
    border-color: #f1f5f9 !important;
}

#header .mega-menu-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    background: #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    color: var(--accent) !important;
    flex-shrink: 0 !important;
    transition: 0.3s !important;
}

#header .mega-menu-card:hover .mega-menu-icon {
    background: var(--accent) !important;
    color: #ffffff !important;
}

#header .mega-menu-card-info h5 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.25rem !important;
    color: var(--text) !important;
}

#header .mega-menu-card-info p {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

/* Mega Menu Footer */
#header .mega-menu-footer {
    padding: var(--space-4) var(--space-8) !important;
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    border-top: 1px solid #f1f5f9 !important;
}

/* Mega Menu Promo Section */
#header .mega-menu-promo {
    background: #f8fafc !important;
    padding: var(--space-8) !important;
    border-left: 1px solid #f1f5f9 !important;
    display: flex !important;
    flex-direction: column !important;
}

#header .promo-card {
    background: #ffffff !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--space-6) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
}

#header .promo-image {
    width: 100% !important;
    height: 140px !important;
    background: #fff !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: var(--space-5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border: 1px solid #f1f5f9 !important;
}

#header .promo-image img {
    max-width: 180px !important;
    max-height: 80px !important;
    object-fit: contain !important;
}

#header .promo-content h4 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    color: var(--text) !important;
}

#header .promo-content p {
    font-size: 0.85rem !important;
    margin-bottom: 1.25rem !important;
    color: var(--text-muted) !important;
    line-height: 1.6 !important;
}

/* ── SERVICE CARDS & ICONS ── */
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: var(--space-5);
    transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover .service-icon {
    background: var(--accent);
    color: #ffffff;
    transform: rotate(-5deg) scale(1.1);
}

.card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ── FOOTER ── */
.footer {
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    padding: 5rem 0 2.5rem;
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 280px;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.social-link .social-handle { display: none; }

.social-link:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}

.footer-col h6 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-links a i {
    font-size: 0.65rem;
    opacity: 0.6;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-dim);
    padding-top: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-dim);
    font-size: 0.82rem;
    transition: 0.2s;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

.footer-newsletter p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.newsletter-form input {
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    background: #fff;
    color: var(--text);
    width: 100%;
    transition: border-color 0.2s;
}

.newsletter-form input:focus {
    border-color: var(--accent);
}

.newsletter-form .btn {
    width: 100%;
    justify-content: center;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    background: #ffffff;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 20% 70%, rgba(99, 102, 241, 0.03) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(#f1f5f9 1.5px, transparent 1.5px),
        linear-gradient(90deg, #f1f5f9 1.5px, transparent 1.5px);
    background-size: 60px 60px;
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text);
    text-align: center;
}

.hero-content p,
.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 20;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.hero-stat {
    text-align: center;
}

.hero-stat h3 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.2rem;
    letter-spacing: -1.5px;
    line-height: 1;
}

.hero-stat p {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-dim);
    margin: 0;
}

/* Page Hero (Internal Pages) */
.page-hero {
    padding: 6rem 0 6rem; /* body already has padding-top: nav-height via fixed header */
    text-align: center;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* ── TESTIMONIALS ── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

/* ── FAQ ── */
.vbl-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.vbl-faq-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.vbl-faq-tab {
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid #f1f5f9;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.vbl-faq-tab.active {
    background: var(--text);
    color: #ffffff;
    border-color: var(--text);
}

.vbl-faq-item {
    border-bottom: 1px solid #f1f5f9;
}

.vbl-faq-header {
    display: flex;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
}

.vbl-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.vbl-faq-item.open .vbl-faq-content {
    max-height: 500px;
    padding-bottom: 24px;
}

/* ── HEADER CTA & HAMBURGER ── */
.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}


/* ── Refined Hamburger Menu Button ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.6rem;
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.hamburger:hover {
    border-color: var(--accent);
    background: var(--accent-glow2);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s ease;
}

.hamburger.open span {
    background: var(--accent);
}

/* ── MOBILE NAV ── */
.mobile-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 998;
    padding: 1.5rem;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    overflow-y: auto;
    border-top: 1px solid var(--border-light);
}

.mobile-nav.open {
    transform: translateX(0);
    opacity: 1;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: 0.2s ease;
}

.mobile-nav-link:hover {
    background: var(--accent-glow2);
    color: var(--accent);
}

.mobile-nav-link i {
    width: 22px;
    text-align: center;
    color: var(--accent);
    font-size: 0.9rem;
}

.mobile-nav-cta {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* ── RESPONSIVE BREAKPOINTS ── */

/* -- MOBILE SERVICES ACCORDION -- */
.mobile-services-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: left;
}
.mobile-services-toggle:hover,
.mobile-services-toggle.open {
    background: var(--accent-glow2);
    color: var(--accent);
}
.mobile-services-toggle .toggle-icon {
    font-size: 0.78rem;
    color: var(--accent);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
    margin-left: auto;
}
.mobile-services-toggle.open .toggle-icon {
    transform: rotate(180deg);
}
.mobile-services-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    padding-left: 0.75rem;
}
.mobile-services-submenu.open {
    max-height: 700px;
}
.mobile-services-submenu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s ease;
}
.mobile-services-submenu a:hover {
    color: var(--accent);
    background: var(--accent-glow2);
}
.mobile-services-submenu a i {
    width: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--accent);
    opacity: 0.85;
    flex-shrink: 0;
}
@media (max-width: 1200px) {
    .footer-top { grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 1024px) {
    .nav { display: none !important; }
    .header-cta { display: none !important; }
    .hamburger { display: flex !important; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { min-height: auto !important; padding: 7rem 1.25rem 4rem !important; }
    .hero-content h1 { font-size: 2rem !important; }
    .hero-stats { gap: 1.5rem !important; padding-top: 1.5rem !important; }
    .hero-stat h3 { font-size: 2rem !important; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .footer-bottom { flex-direction: column !important; text-align: center !important; }
    .footer-bottom-links { justify-content: center; }
    .page-hero { padding: 3rem 1.25rem 3rem; } /* body padding-top handles nav offset */
    .page-hero h1 { font-size: 2rem !important; }
    .page-hero p { font-size: 1rem !important; }
    .hero-actions { gap: 0.75rem; }
    .section { padding: 3.5rem 0; }
}

@media (max-width: 600px) {
    .hero-actions { flex-direction: column !important; width: 100% !important; }
    .hero-actions .btn { width: 100% !important; justify-content: center !important; }
    .hero-stats { gap: 1rem !important; }
    .hero-stat h3 { font-size: 1.8rem !important; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; justify-content: center; }
    .vbl-faq-tabs { gap: 8px; }
    .vbl-faq-tab { padding: 8px 16px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.75rem !important; }
    .hero-stats { flex-direction: column !important; gap: 0.75rem !important; }
    .container { padding: 0 1rem; }
    .footer-top { gap: 1.75rem !important; }
}

/* Hover Animation for Mega Menu Cards */
.mega-menu-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background-color: transparent !important;
}

.mega-menu-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface);
  border-radius: inherit;
  z-index: -2;
  transition: all 0.4s ease;
}

.mega-menu-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  background: var(--accent-glow);
  border-radius: inherit;
  transform: translate(-30%, 30%);
  transition: width 0.8s ease, height 0.8s ease;
  z-index: -1;
}
.mega-menu-card:hover::before {
  width: 300%;
  height: 300%;
}
