/* ==========================================================================
   LifeHapps Dedicated Insurance Pages - Design System & Stylesheet
   ========================================================================== */

:root {
    --bg-base: #0f172a;
    --bg-grid: #1e1b4b;
    --primary: #a855f7;
    --primary-hover: #c084fc;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent: #22d3ee;
    --accent-gold: #fbbf24;
    --success: #3fb950;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 15px 35px -5px rgba(168, 85, 247, 0.35);
    --border-radius: 16px;
    --transition: all 0.25s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 15%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 75%, rgba(34, 211, 238, 0.12) 0%, transparent 45%);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation (with Mega Dropdown)
   ========================================================================== */
header {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.2s ease;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
}

.logo-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.brand-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav > a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

nav > a:hover {
    color: var(--text-main);
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-trigger {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.dropdown-trigger:hover,
.nav-item-dropdown:hover .dropdown-trigger {
    color: var(--text-main);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -100px;
    width: 580px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    padding: 1.25rem;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    z-index: 1000;
    animation: fadeInSlide 0.2s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
    display: grid;
}

.dropdown-column h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
    margin-bottom: 0.6rem;
    padding-left: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item i {
    color: var(--primary);
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

.dropdown-item:hover {
    background: rgba(168, 85, 247, 0.12);
    color: var(--text-main);
    transform: translateX(3px);
}

.dropdown-item.active {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
    padding: 1.25rem 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--text-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.product-hero {
    padding: 3rem 0 4.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.product-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: var(--primary-hover);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.product-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.stat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-badge-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-badge-item i {
    font-size: 1.4rem;
    color: var(--accent);
}

.stat-badge-item strong {
    display: block;
    font-size: 1rem;
    color: var(--text-main);
}

.stat-badge-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn-hero-quote {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-quote:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #9333ea 100%);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -5px rgba(168, 85, 247, 0.5);
    color: #ffffff;
}

.btn-secondary-app {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    text-decoration: none;
    padding: 0.95rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-secondary-app:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Official Quotezone Card */
.hero-quotezone-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
}

.qz-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qz-partner-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qz-ad-pill {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.qz-banner-frame {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qz-banner-frame a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    min-height: 65px;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.qz-banner-frame a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(168, 85, 247, 0.3);
}

.qz-banner-frame img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    background: #ffffff;
}

.qz-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.qz-feat-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.qz-feat-item i {
    color: var(--accent);
    font-size: 0.95rem;
}

/* ==========================================================================
   Content Sections (Cover Types, Guides, FAQs)
   ========================================================================== */
.section-wrapper {
    padding: 4rem 0;
    border-top: 1px solid var(--card-border);
}

.section-title-area {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3rem;
}

.section-title-area h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.section-title-area p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Grid of Cards */
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-feature-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-hover);
    font-size: 1.35rem;
}

.info-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.info-feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Sweet Spot Advisory Box */
.sweet-spot-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 20px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    margin: 3rem 0;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.08);
}

.sweet-spot-icon {
    font-size: 3rem;
    color: var(--accent-gold);
}

.sweet-spot-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.sweet-spot-text p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    user-select: none;
}

.faq-question i {
    color: var(--accent);
    transition: transform 0.25s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Cross-Sell App Banner
   ========================================================================== */
.app-cross-sell {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(34, 211, 238, 0.12) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 4rem 0;
}

.app-cross-sell h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.app-cross-sell p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 2rem;
}

/* ==========================================================================
   Footer & Legal Disclosures
   ========================================================================== */
.partner-legal-notice {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 3rem 0 1rem;
}

.partner-legal-notice i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

footer {
    padding: 3rem 0;
    border-top: 1px solid var(--card-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--text-main);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cards-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sweet-spot-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .dropdown-menu {
        left: -180px;
        width: 500px;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 2.25rem;
    }

    nav {
        display: none;
    }

    nav.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        border-bottom: 1px solid var(--card-border);
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        grid-template-columns: 1fr;
        display: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.02);
        padding: 0.5rem;
    }

    .nav-item-dropdown.mobile-open .dropdown-menu {
        display: grid;
    }

    .mobile-menu-btn {
        display: block;
    }

    .cards-grid-3,
    .cards-grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-quote,
    .btn-secondary-app {
        width: 100%;
        justify-content: center;
    }
}
