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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.2); }
}

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

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(201, 168, 76, 0.4);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 160px 20px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-overline {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 2rem;
    padding: 8px 20px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--pure-white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-line {
    display: block;
}

.hero-line em {
    font-style: italic;
    color: var(--gold);
    position: relative;
}

.hero-line em::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(201, 168, 76, 0.3);
    border-radius: var(--radius-full);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 24px 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    max-width: 600px;
    margin: 0 auto;
}

.hero-stat {
    text-align: center;
    padding: 0 24px;
    flex: 1;
}

.stat-number, .stat-suffix {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-suffix {
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.6);
}

.stat-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

.hero-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeIn 1s ease 2s both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: var(--radius-full);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

.hero-scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

/* About Preview Section */
.about-preview { background: var(--pure-white); }

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

.about-images {
    position: relative;
}

.about-img-main {
    width: 85%;
    height: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-img-main:hover img { transform: scale(1.05); }

.about-img-accent {
    position: absolute;
    bottom: -40px;
    right: 0;
    width: 55%;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--pure-white);
    z-index: 2;
}

.about-img-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: 30px;
    right: 20px;
    background: var(--primary-green);
    color: var(--pure-white);
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gold);
}

.badge-text {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 4px;
    line-height: 1.4;
}

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

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

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

.feature-icon {
    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;
    transition: all var(--transition-normal);
}

.about-feature:hover .feature-icon {
    background: var(--gold);
    color: var(--pure-white);
    transform: rotateY(180deg);
}

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

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

/* Services Preview Section */
.services-preview { background: var(--cream); }

.section-header { margin-bottom: 60px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--pure-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.service-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-card-img img { transform: scale(1.1); }

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 74, 46, 0.6), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-card:hover .service-card-overlay { opacity: 1; }

.service-card-content {
    padding: 32px;
    position: relative;
}

.service-card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-green);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.3rem;
    margin-top: -56px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(26, 74, 46, 0.3);
    transition: all var(--transition-normal);
}

.service-card:hover .service-card-icon {
    background: var(--gold);
    color: var(--pure-white);
    transform: rotateY(180deg);
}

.service-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.service-card-content p {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-green);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.service-card-link i {
    transition: transform var(--transition-fast);
}

.service-card-link:hover {
    color: var(--gold);
    gap: 14px;
}

.service-card-link:hover i { transform: translateX(4px); }

/* Why Choose Us Section */
.why-choose { background: var(--pure-white); }

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

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

.why-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.why-feature {
    display: flex;
    gap: 24px;
    padding: 20px;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.why-feature:hover {
    background: var(--cream);
    border-color: var(--light-gray);
    transform: translateX(8px);
}

.why-feature-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    min-width: 50px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.why-feature:hover .why-feature-number { opacity: 1; }

.why-feature-text h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 6px;
}

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

.why-images {
    position: relative;
}

.why-img-main {
    width: 90%;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.why-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.why-img-main:hover img { transform: scale(1.05); }

.why-img-floating {
    position: absolute;
    top: -30px;
    right: -20px;
    width: 45%;
    height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--pure-white);
    z-index: 2;
}

.why-img-floating img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-badge {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: var(--pure-white);
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: float 5s ease-in-out infinite;
}

.why-badge i {
    font-size: 1.8rem;
    color: var(--primary-green);
}

.why-badge span {
    display: block;
    font-size: 0.75rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.why-badge strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--charcoal);
}

/* Packages Preview Section */
.packages-preview { position: relative; }

.packages-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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;
}

.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);
}

.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-btn {
    width: 100%;
    text-align: center;
}

/* Testimonials Section */
.testimonials { background: var(--pure-white); }

.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 0 20px;
    text-align: center;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
    color: var(--charcoal);
    max-width: 700px;
    margin: 0 auto 32px;
}

.testimonial-author {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--gold);
}

.testimonial-author h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    text-align: left;
}

.testimonial-author span {
    display: block;
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-align: left;
}

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.testimonial-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 2px solid var(--light-gray);
    background: var(--pure-white);
    color: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
}

.testimonial-nav-btn:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--pure-white);
    transform: scale(1.1);
}

.testimonials-dots {
    display: flex;
    gap: 10px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--light-gray);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.testimonial-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

/* CTA Section */
.cta-section {
    position: relative;
    min-height: 600px;
    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;
    margin-bottom: 48px;
}

.cta-contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.cta-contact-item i {
    color: var(--gold);
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid, .why-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-images { order: -1; }
    .why-images { order: -1; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .packages-grid { grid-template-columns: 1fr; gap: 40px; }

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

    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .hero-stat-divider { display: none; }
    .hero-stat { padding: 12px; }
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }

    .about-img-main, .why-img-main {
        width: 100%;
        height: 350px;
    }

    .about-img-accent, .why-img-floating {
        display: none;
    }

    .about-experience-badge {
        top: auto;
        bottom: -20px;
        right: 20px;
    }

    .why-badge {
        left: 20px;
        bottom: -20px;
    }

    .cta-contact-info { flex-direction: column; gap: 16px; align-items: center; }

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

@media (max-width: 480px) {
    .hero-content { padding: 140px 16px 60px; }
    .hero-stats { padding: 16px 20px; }
    .stat-number { font-size: 1.5rem; }

    .testimonial-author { flex-direction: column; text-align: center; }
    .testimonial-author h4, .testimonial-author span { text-align: center; }

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