/* ============================================
   MANYORO FUNERAL SERVICES - PACKAGES PAGE STYLES
   ============================================ */

/* Packages Intro */
.packages-intro { background: var(--pure-white); padding-bottom: 60px; }

.intro-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.intro-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--cream);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
}

.intro-feature i {
    color: var(--primary-green);
    font-size: 1rem;
}

/* Main Packages */
.main-packages { position: relative; }

.main-packages::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 40px 40px;
    pointer-events: none;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
    align-items: start;
}

.package-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.package-card:hover::before { opacity: 1; }

.package-featured {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(201, 168, 76, 0.3);
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    margin-top: -20px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.package-featured:hover { transform: scale(1.05) translateY(-8px); }

.package-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold);
    color: var(--pure-black);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-bottom-left-radius: var(--radius-md);
}

.package-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.package-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.package-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pure-white);
    margin-bottom: 16px;
}

.package-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    margin-bottom: 12px;
}

.price-currency {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    margin-top: 6px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--pure-white);
    line-height: 1;
}

.package-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.package-features {
    list-style: none;
    margin-bottom: 32px;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.package-features li:last-child { border-bottom: none; }

.package-features li i {
    color: var(--gold);
    font-size: 0.8rem;
}

.package-footer {
    text-align: center;
}

.package-btn {
    width: 100%;
    margin-bottom: 12px;
}

.package-note {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

/* Custom Package */
.custom-package { background: var(--pure-white); }

.custom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.custom-content .heading-1 { margin-bottom: 0.5rem; }
.custom-content .divider { margin: 1.5rem 0; }
.custom-content .body-text { margin-bottom: 1.5rem; }

.custom-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 2rem 0;
}

.custom-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.custom-feature i {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary-green);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
}

.custom-feature h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.custom-feature p {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

.custom-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-card-stack {
    position: relative;
    width: 280px;
    height: 380px;
}

.custom-card-item {
    position: absolute;
    width: 240px;
    height: 80px;
    background: var(--pure-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 15deg - 37.5deg)) translateY(calc(var(--i) * -60px - 60px));
    transition: all var(--transition-normal);
    border: 1px solid var(--light-gray);
}

.custom-card-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1rem;
}

.custom-card-item span {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
}

.custom-card-stack:hover .custom-card-item {
    transform: translate(-50%, -50%) rotate(0deg) translateY(calc(var(--i) * -70px - 100px));
}

/* FAQ Section */
.faq-section { background: var(--cream); }

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--pure-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item.active {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-green);
}

.faq-question i {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--cream);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 0.8rem;
    transition: all var(--transition-normal);
}

.faq-item.active .faq-question i {
    background: var(--primary-green);
    color: var(--pure-white);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
    padding: 0 28px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 28px 24px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--medium-gray);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 74, 46, 0.85), rgba(10, 10, 8, 0.9));
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .package-featured {
        transform: scale(1);
        margin-top: 0;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .package-featured:hover { transform: scale(1) translateY(-8px); }

    .custom-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .custom-visual { order: -1; height: 400px; }
}

@media (max-width: 768px) {
    .intro-features { flex-direction: column; align-items: center; }
    .intro-feature { width: 100%; max-width: 300px; justify-content: center; }

    .custom-card-stack { transform: scale(0.8); }

    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 300px; }
}
