/* =========================================
   SAFER HAVEN.AI - ABOUT PAGE STYLES
   ========================================= */

.about-hero {
    position: relative;
    padding: var(--space-8) 0 var(--space-8); /* Aggressively reduced top space */
    background-color: var(--color-primary);
    overflow: hidden;
    color: var(--color-white);
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.geometric-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(74, 29, 142, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 29, 142, 0.5) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.2;
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

/* Hero Layout Grid */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    align-items: center;
    gap: var(--space-8);
    margin-top: -40px; /* Pull grid up to eliminate dead space */
}

/* Mind Map Core */
.mind-map-container {
    position: relative;
    width: 100%;
    height: 480px;
    margin: 0;
}

.mind-map-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.mind-map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* Central Hub */
.central-hub {
    width: 220px;
    height: 220px;
    background-color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px rgba(253, 183, 26, 0.4);
    z-index: 10;
    padding: 3px; /* Border thickness essentially */
}

.hub-inner-circle {
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px; /* Ultra-minimal padding for maximum logo size */
}

.hub-logo {
    width: 100%;
    height: auto;
    filter: brightness(1.1);
}

/* Nodes */
.node {
    position: absolute;
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(253, 183, 26, 0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(8px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1.0); }
    50% { transform: translateY(-15px) scale(1.02); }
}

/* Staggered float animations */
.vision-node { animation-delay: 0s; }
.mission-node { animation-delay: 1s; }
.purpose-node { animation-delay: 2s; }
.values-node { animation-delay: 3s; }
.foundation-node { animation-delay: 4s; }
.story-node { animation-delay: 5s; }

.node:hover {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-primary);
    transform: scale(1.15) translateY(-20px) !important;
    box-shadow: 0 15px 40px rgba(253, 183, 26, 0.4);
    border-color: var(--color-white);
    z-index: 100;
}

.node-icon {
    width: 32px;
    height: 32px;
    margin-bottom: var(--space-2);
}

.node-icon svg {
    width: 100%;
    height: 100%;
}

.node-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 0 5px; /* Add some horizontal padding */
}

/* Individual Node Adjustments */
.foundation-node .node-label {
    font-size: 0.65rem; /* Slightly smaller to fit "OUR FOUNDATION" */
}

/* Node Positions (Optimized for Offset Layout) */
.vision-node { top: 10px; left: 50%; transform: translateX(-50%); }
.mission-node { top: 20%; right: 5%; }
.purpose-node { bottom: 22%; right: 10%; }
.values-node { bottom: 10px; left: 50%; transform: translateX(-50%); }
.foundation-node { bottom: 22%; left: 10%; }
.story-node { top: 20%; left: 5%; }

/* Hero Text Styles (Services-like) */
.about-hero-text {
    max-width: 580px;
}

.about-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    color: var(--color-white);
    margin: var(--space-4) 0;
    line-height: 1.05;
    font-weight: 700;
}

.gold-text {
    color: var(--color-gold);
}

.about-hero-lead {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-gold);
    margin-bottom: var(--space-4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-hero-description {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--color-gray-300);
}

/* General About Sections */
.about-section {
    padding: var(--space-16) 0;
    overflow: hidden;
    scroll-margin-top: 140px;
}

.vision-section {
    padding: var(--space-8) 0;
}

.mission-section {
    padding: var(--space-8) 0;
}

.purpose-section,
.foundation-section,
.story-section {
    padding: var(--space-8) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-12);
}

.about-grid.reverse {
    direction: rtl;
}

.about-grid.reverse > * {
    direction: ltr;
}

.about-label {
    display: inline-block;
    color: var(--color-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: var(--space-3);
    font-family: 'Outfit', var(--font-heading);
    line-height: 1;
}

.about-title {
    font-family: 'Outfit', var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--color-primary);
    margin-bottom: var(--space-6);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.about-text {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    margin-bottom: var(--space-4);
}

/* Glass Card / Visuals */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(74, 29, 142, 0.05));
    border: 1px solid rgba(253, 183, 26, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(253, 183, 26, 0.4);
}

.vision-card {
    padding: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.vision-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.vision-card:hover .vision-image {
    transform: scale(1.05);
}

.mission-card,
.purpose-card,
.foundation-card,
.story-card {
    padding: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.mission-image,
.purpose-image,
.foundation-image,
.story-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.mission-card:hover .mission-image,
.purpose-card:hover .purpose-image,
.foundation-card:hover .foundation-image,
.story-card:hover .story-image {
    transform: scale(1.05);
}

.visual-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: radial-gradient(circle at 30% 30%, var(--color-primary-dark), var(--color-primary));
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-gold);
    font-weight: 700;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.visual-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(253, 183, 26, 0.1) 0%, transparent 70%);
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.6; }
}

.visual-placeholder span {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.8;
}

.section-alt {
    background-color: var(--color-gray-100);
}

/* Values Grid */
.about-header-centered {
    text-align: center;
    margin-bottom: var(--space-12);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.value-card {
    background-color: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border-bottom: 3px solid var(--color-gold);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-title {
    color: var(--color-primary);
    font-family: 'Outfit', var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    letter-spacing: -0.01em;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-grid.reverse {
        direction: ltr;
    }
    
    .mind-map-container {
        height: 600px;
    }
    
    .node {
        width: 80px;
        height: 80px;
    }
    
    .vision-node { top: 0; }
    .mission-node { top: 20%; right: 0; }
    .purpose-node { bottom: 20%; right: 0; }
    .values-node { bottom: 0; }
    .foundation-node { bottom: 20%; left: 0; }
    .story-node { top: 20%; left: 0; }
}

@media (max-width: 768px) {
    .about-hero {
        padding: var(--space-12) 0;
        min-height: auto;
        text-align: center;
    }

    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .about-hero-visual {
        display: none;
    }

    .about-hero-text {
        margin: 0 auto;
        max-width: 100%;
    }

    .about-hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin: var(--space-2) 0 var(--space-4);
    }
    
    .about-title {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }
    
    .about-label {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* Narrative 'Read More' Toggle (Desktop/Tablet Only) */
.read-more-btn {
    display: none; /* Hidden on mobile by default */
    background: none;
    border: none;
    color: var(--color-gold);
    font-family: 'Outfit', var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: var(--space-4);
    align-items: center;
    gap: var(--space-2);
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--color-gold-dark);
    gap: var(--space-3);
}

.read-more-btn .arrow {
    transition: transform 0.3s ease;
}

.more-content {
    transition: max-height 0.6s ease-in-out, opacity 0.5s ease-in-out;
}

@media (min-width: 769px) {
    .read-more-btn {
        display: inline-flex;
    }

    .more-content {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }

    .expandable-active .more-content {
        max-height: 2000px;
        opacity: 1;
        margin-top: var(--space-4);
    }

    .expandable-active .read-more-btn .arrow {
        transform: rotate(180deg);
    }
}
/* Impact Quote Section */
.about-quote-section {
    padding: var(--space-8) 0 var(--space-8);
    background-color: var(--color-white);
    text-align: center;
    position: relative;
}

.about-quote-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
}

.quote-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.impact-quote {
    margin: 0;
    padding: 0;
    border: none;
}

.quote-text {
    font-family: 'Outfit', var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.2;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
    font-style: italic;
}

.quote-author {
    display: block;
    font-family: 'Outfit', var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-style: normal;
}

@media (max-width: 768px) {
    .about-quote-section {
        padding: var(--space-6) 0 var(--space-2);
    }
    
    .quote-text {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
}
