/* ============================================================
   CommitteeHQ — Landing Page Styles
   ============================================================ */

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Landing Navbar --- */
.landing-navbar {
    background: transparent !important;
    box-shadow: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    padding: 1rem 0;
}
.landing-navbar.navbar-scrolled {
    background: linear-gradient(135deg, var(--chq-primary), #173d5e) !important;
    box-shadow: var(--chq-shadow-md);
    padding: 0.6rem 0;
}
.landing-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}
.landing-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color 0.2s ease;
}
.landing-navbar .nav-link:hover {
    color: #ffffff;
}

/* --- Hero Section --- */
.landing-hero {
    min-height: 80vh;
    background: linear-gradient(135deg, #1F4E79, #3B82C4);
    color: var(--chq-white);
    padding: 8rem 0 5rem;
}
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--chq-white);
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .landing-hero {
        min-height: 60vh;
        padding: 6rem 0 3rem;
    }
}

/* --- Feature Cards --- */
.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--chq-soft-grey);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--chq-shadow-md);
}
.feature-icon {
    font-size: 2.5rem;
    line-height: 1;
}

/* --- Module Cards --- */
.module-icon {
    font-size: 2rem;
    line-height: 1;
}

/* --- Pricing Cards --- */
.pricing-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--chq-soft-grey);
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.pricing-popular {
    border: 2px solid var(--chq-primary);
    transform: scale(1.03);
}
.pricing-popular:hover {
    transform: scale(1.03) translateY(-6px);
}
.pricing-price {
    padding: 1rem 0;
}
.pricing-card ul li {
    color: var(--chq-charcoal);
    font-size: 0.95rem;
}

/* --- Landing Footer --- */
.landing-footer {
    background: var(--chq-charcoal);
    color: var(--chq-white);
}
.landing-footer h5,
.landing-footer h6 {
    color: var(--chq-white);
}
.landing-footer a:hover {
    opacity: 1 !important;
    color: var(--chq-white) !important;
}

/* --- Section spacing --- */
#features,
#pricing {
    scroll-margin-top: 80px;
}

/* ============================================================
   Dark Mode — Landing Page Overrides
   ============================================================ */

/* Feature cards */
[data-bs-theme="dark"] .feature-card {
    background: #2a2a3a;
    border-color: #3a3a4a;
    color: #e0e0e0;
}
[data-bs-theme="dark"] .feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
[data-bs-theme="dark"] .feature-card .card-title {
    color: #7db4e0;
}
[data-bs-theme="dark"] .feature-card .card-text {
    color: #c0c0d0;
}

/* Module cards / section backgrounds */
[data-bs-theme="dark"] #features,
[data-bs-theme="dark"] #pricing {
    background-color: #141422;
}
[data-bs-theme="dark"] section.bg-sand,
[data-bs-theme="dark"] section.bg-soft-grey,
[data-bs-theme="dark"] .bg-light {
    background-color: #1a1a2a !important;
}

/* Pricing cards */
[data-bs-theme="dark"] .pricing-card {
    background: #2a2a3a;
    border-color: #3a3a4a;
    color: #e0e0e0;
}
[data-bs-theme="dark"] .pricing-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
[data-bs-theme="dark"] .pricing-popular {
    border-color: var(--chq-primary);
}
[data-bs-theme="dark"] .pricing-card ul li {
    color: #c0c0d0;
}
[data-bs-theme="dark"] .pricing-card .card-title,
[data-bs-theme="dark"] .pricing-card h5 {
    color: #7db4e0;
}

/* Module icon cards */
[data-bs-theme="dark"] .module-icon {
    color: #e0e0e0;
}

/* Landing footer stays dark in both modes */
[data-bs-theme="dark"] .landing-footer {
    background: #0e0e1a;
}
