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

/* Our Story Section */
.our-story { background: var(--pure-white); }

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

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

.story-signature {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.story-signature img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--gold);
}

.story-signature h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
}

.story-signature span {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.story-images {
    position: relative;
}

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

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

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

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

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

.story-badge {
    position: absolute;
    top: 30px;
    right: 10px;
    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-year {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    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;
}

/* Mission & Vision */
.mission-vision { background: var(--cream); }

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card {
    background: var(--pure-white);
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

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

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

.mv-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-green);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: all var(--transition-normal);
}

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

.mv-card .heading-2 { margin-bottom: 0.5rem; }
.mv-card .divider { margin: 1rem 0; }
.mv-card .body-text { margin-bottom: 1rem; }
.mv-card .body-text:last-child { margin-bottom: 0; }

/* Core Values */
.core-values { background: var(--pure-white); }

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

.value-card {
    background: var(--pure-white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.value-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--light-gray);
    line-height: 1;
    transition: color var(--transition-normal);
}

.value-card:hover .value-number {
    color: rgba(201, 168, 76, 0.15);
}

.value-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-green);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.4rem;
    margin: 0 auto 24px;
    transition: all var(--transition-normal);
}

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

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

.value-card p {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.7;
}

/* Stats Section */
.stats-section { position: relative; }

.stats-section::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;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-8px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(201, 168, 76, 0.15);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.3rem;
    margin: 0 auto 20px;
}

.stat-item .stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--pure-white);
    line-height: 1;
}

.stat-item .stat-suffix {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
}

.stat-item .stat-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Team Section */
.team-section { background: var(--cream); }

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

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

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

.team-img {
    height: 280px;
    overflow: hidden;
    position: relative;
}

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

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

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 74, 46, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.team-social {
    display: flex;
    gap: 10px;
}

.team-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.team-social a:hover {
    background: var(--gold);
    color: var(--pure-black);
    transform: translateY(-3px);
}

.team-info {
    padding: 24px;
    text-align: center;
}

.team-info h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.team-info span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.team-info p {
    font-size: 0.85rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Timeline Section */
.timeline-section { background: var(--cream); }

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--primary-green));
}

.timeline-item {
    position: relative;
    padding: 0 0 50px 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--pure-white);
    border: 3px solid var(--gold);
    border-radius: var(--radius-full);
    z-index: 2;
    transition: all var(--transition-normal);
}

.timeline-item:hover::before {
    background: var(--gold);
    transform: scale(1.3);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.timeline-content {
    background: var(--pure-white);
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border-left: 3px solid transparent;
}

.timeline-item:hover .timeline-content {
    box-shadow: var(--shadow-md);
    border-left-color: var(--gold);
    transform: translateX(8px);
}

.timeline-content h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.9rem;
    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) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .story-images { order: -1; }
    .story-img-main { width: 100%; height: 350px; }
    .story-img-accent { display: none; }

    .mv-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

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

    .timeline { padding-left: 40px; }
    .timeline::before { left: 12px; }
    .timeline-item::before { left: -34px; width: 12px; height: 12px; }

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