/* ==========================================
   ABOUT PAGE STYLES
   Legacy Protection Services
   Matched to homepage compact scale
========================================== */

/* ------------------------------------------
   GLOBAL ABOUT PAGE RESETS
------------------------------------------ */
.about-page .section-badge {
    display: inline-block;
    background: rgba(214, 154, 59, 0.12);
    color: var(--color-primary-dark);
    font-size: 0.7rem;  /* Reduced from 0.75rem */
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.9rem;
    border-radius: 40px;
    margin-bottom: 0.75rem;
}

/* ------------------------------------------
   OUR STORY SECTION
------------------------------------------ */
.our-story-section {
    padding: clamp(48px, 6vw, 80px) 0;
    background: #ffffff;
}

.our-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.our-story-content {
    max-width: 100%;
}

.our-story-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);  /* Matched to homepage h2 */
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.our-story-content p {
    font-size: 0.9rem;  /* Reduced from 1rem */
    line-height: 1.65;  /* Matched to homepage */
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.founding-principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.principle {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem;  /* Reduced from 1rem */
    background: #F8F9FA;  /* Lighter, matches homepage cards */
    border-radius: 0.75rem;  /* Reduced from 1rem */
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.principle:hover {
    border-color: rgba(214, 154, 59, 0.2);
    background: #FEF5E8;  /* Matches intro-meta-item hover */
}

.principle i {
    width: 36px;  /* Reduced from 40px */
    height: 36px;  /* Reduced from 40px */
    background: rgba(214, 154, 59, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 0.9rem;  /* Reduced from 1.1rem */
    flex-shrink: 0;
}

.principle h4 {
    font-size: 0.85rem;  /* Reduced from 0.9rem */
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.15rem;
}

.principle p {
    font-size: 0.7rem;  /* Reduced from 0.75rem */
    margin: 0;
    line-height: 1.5;
}

.our-story-image {
    border-radius: 1rem;  /* Reduced from 1.5rem */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);  /* Softer shadow */
    background: #f5f5f5;
}

.our-story-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ------------------------------------------
   MISSION VISION VALUES SECTION
------------------------------------------ */
.mission-vision-section {
    padding: clamp(48px, 6vw, 80px) 0;
    background: #F0F2F5;  /* Matched to homepage grey sections */
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;  /* Reduced from 2rem */
}

.mission-card,
.vision-card,
.values-card {
    background: #ffffff;
    border-radius: 1rem;  /* Reduced from 1.5rem */
    padding: 1.5rem;  /* Reduced from 2rem */
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.mission-card:hover,
.vision-card:hover,
.values-card:hover {
    transform: translateY(-4px);  /* Matched to homepage */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(214, 154, 59, 0.2);
}

.mission-icon,
.vision-icon,
.values-icon {
    width: 55px;  /* Reduced from 70px */
    height: 55px;  /* Reduced from 70px */
    background: rgba(214, 154, 59, 0.1);
    border-radius: 12px;  /* Reduced from 20px */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;  /* Reduced from 1.25rem */
}

.mission-icon i,
.vision-icon i,
.values-icon i {
    font-size: 1.5rem;  /* Reduced from 2rem */
    color: var(--color-primary);
}

.mission-card h3,
.vision-card h3,
.values-card h3 {
    font-size: 1rem;  /* Reduced from 1.3rem */
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

.mission-card p,
.vision-card p,
.values-card p {
    font-size: 0.8rem;  /* Reduced from 0.9rem */
    line-height: 1.65;  /* Matched to homepage */
    color: var(--color-text-light);
}

/* ------------------------------------------
   DIFFERENCE SECTION
------------------------------------------ */
.difference-section {
    padding: clamp(48px, 6vw, 80px) 0;
    background: #ffffff;
}

.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;  /* Reduced from 3rem */
}

.section-header-center h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);  /* Matched to homepage */
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.75rem;
}

.section-header-center p {
    font-size: 0.9rem;  /* Reduced from 1rem */
    color: var(--color-text-light);
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;  /* Reduced from 2rem */
}

.difference-card {
    background: #F8F9FA;  /* Matched to feature-card */
    border-radius: 1rem;  /* Reduced from 1.25rem */
    padding: 1.5rem;  /* Reduced from 2rem 1.5rem */
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.difference-card:hover {
    transform: translateY(-4px);
    background: #F0F2F5;
    border-color: rgba(214, 154, 59, 0.15);
}

.difference-icon {
    width: 50px;  /* Reduced from 60px */
    height: 50px;  /* Reduced from 60px */
    background: rgba(214, 154, 59, 0.1);
    border-radius: 12px;  /* Reduced from 16px */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;  /* Reduced from 1rem */
}

.difference-icon i {
    font-size: 1.4rem;  /* Reduced from 1.8rem */
    color: var(--color-primary);
}

.difference-card h3 {
    font-size: 1rem;  /* Reduced from 1.1rem */
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

.difference-card p {
    font-size: 0.8rem;  /* Reduced from 0.85rem */
    line-height: 1.6;
    color: var(--color-text-light);
}

/* ------------------------------------------
   LEADERSHIP SECTION
------------------------------------------ */
.leadership-section {
    padding: clamp(48px, 6vw, 80px) 0;
    background: #F0F2F5;  /* Matched to homepage grey sections */
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;  /* Reduced from 2rem */
}

.leader-card {
    background: #ffffff;
    border-radius: 1rem;  /* Reduced from 1.5rem */
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.leader-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(214, 154, 59, 0.2);
}

.leader-image {
    height: 250px;  /* Reduced from 280px */
    overflow: hidden;
    background: #f5f5f5;
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.leader-card:hover .leader-image img {
    transform: scale(1.02);
}

.leader-info {
    padding: 1.25rem;  /* Reduced from 1.5rem */
    text-align: center;
}

.leader-info h3 {
    font-size: 1rem;  /* Reduced from 1.2rem */
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.2rem;
}

.leader-title {
    display: inline-block;
    font-size: 0.7rem;  /* Reduced from 0.8rem */
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;  /* Reduced from 0.75rem */
}

.leader-info p {
    font-size: 0.75rem;  /* Reduced from 0.85rem */
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;  /* Reduced from 1rem */
}

.leader-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;  /* Reduced from 0.75rem */
}

.leader-social a {
    width: 32px;  /* Reduced from 36px */
    height: 32px;  /* Reduced from 36px */
    background: rgba(214, 154, 59, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.leader-social a:hover {
    background: var(--color-primary);
    color: var(--color-black);
    transform: translateY(-2px);
}

/* ------------------------------------------
   STATS SECTION
------------------------------------------ */
.stats-section {
    padding: clamp(48px, 6vw, 60px) 0;
    background: #ffffff;
}

.stats-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;  /* Reduced from 2rem */
    text-align: center;
}

.stat-item {
    padding: 0.75rem;  /* Reduced from 1rem */
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;  /* Reduced from 2.5rem */
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;  /* Reduced from 0.85rem */
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ------------------------------------------
   CERTIFICATIONS SECTION
------------------------------------------ */
.certifications-section {
    padding: clamp(48px, 6vw, 80px) 0;
    background: #F0F2F5;  /* Matched to homepage grey sections */
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;  /* Reduced from 2rem */
}

.cert-card {
    background: #ffffff;
    border-radius: 1rem;  /* Reduced from 1.25rem */
    padding: 1.5rem;  /* Reduced from 2rem 1.5rem */
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(214, 154, 59, 0.2);
}

.cert-card i {
    font-size: 2rem;  /* Reduced from 2.5rem */
    color: var(--color-primary);
    margin-bottom: 0.75rem;  /* Reduced from 1rem */
}

.cert-card h4 {
    font-size: 0.9rem;  /* Reduced from 1rem */
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

.cert-card p {
    font-size: 0.7rem;  /* Reduced from 0.8rem */
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ------------------------------------------
   REVEAL ANIMATIONS (Keep the same)
------------------------------------------ */
.reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Override CTA Section to White for better separation */
.about-page .cta-section {
    background: #ffffff;
}

/* Optional: Add a subtle border-top to the CTA for separation */
.about-page .cta-section {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ------------------------------------------
   RESPONSIVE BREAKPOINTS
   Matched to homepage breakpoint system
------------------------------------------ */

/* Tablet landscape & smaller desktops */
@media (max-width: 1100px) {
    .difference-grid,
    .certifications-grid {
        gap: 1.25rem;
    }
    
    .mission-vision-grid {
        gap: 1.25rem;
    }
    
    .leadership-grid {
        gap: 1.25rem;
    }
    
    .difference-card,
    .cert-card {
        padding: 1.25rem;
    }
}

/* Tablet portrait */
@media (max-width: 991px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .difference-grid,
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .our-story-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .our-story-image {
        order: -1;
    }
    
    .founding-principles {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .principle {
        padding: 0.6rem;
    }
    
    .difference-card {
        padding: 1rem;
    }
    
    .cert-card {
        padding: 1rem;
    }
    
    .leader-image {
        height: 220px;
    }
    
    .leader-info {
        padding: 1rem;
    }
}

/* Mobile portrait */
@media (max-width: 640px) {
    .difference-grid,
    .certifications-grid,
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-section .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .section-header-center {
        margin-bottom: 1.5rem;
    }
    
    .section-header-center h2 {
        font-size: 1.2rem;
    }
    
    .section-header-center p {
        font-size: 0.8rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .mission-card,
    .vision-card,
    .values-card {
        padding: 1rem;
    }
    
    .difference-card {
        padding: 1rem;
    }
    
    .cert-card {
        padding: 1rem;
    }
    
    .leader-image {
        height: 200px;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .our-story-grid,
    .mission-vision-grid,
    .difference-grid,
    .leadership-grid,
    .certifications-grid,
    .stats-section .stats-grid {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Touch device optimization */
@media (hover: none) {
    .mission-card:hover,
    .vision-card:hover,
    .values-card:hover,
    .difference-card:hover,
    .leader-card:hover,
    .cert-card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    }
    
    .principle:hover {
        background: #F8F9FA;
        border-color: rgba(0, 0, 0, 0.04);
    }
    
    .leader-card:hover .leader-image img {
        transform: none;
    }
}