/* ============================================================
   CareBear Foundation — About Page (Who We Are)
   Page-specific styles only. Shared base styles are in style.css.
   ============================================================ */

/* ============================================================
   MISSION & VISION CARDS
   ============================================================ */
.cb-mv-section {
    padding: 120px 0;
    background: var(--cb-white);
}

.cb-mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.cb-mv-card {
    padding: 48px;
    border-radius: var(--cb-radius-xl);
    position: relative;
    overflow: hidden;
    transition: var(--cb-transition);
}

.cb-mv-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 4px 4px 0 0;
}

.cb-mv-card-mission {
    background: var(--cb-cream-warm);
    border: 1px solid rgba(162, 117, 75, 0.12);
}

.cb-mv-card-mission::before {
    background: linear-gradient(90deg, var(--cb-primary), var(--cb-primary-light));
}

.cb-mv-card-vision {
    background: var(--cb-secondary-light);
    border: 1px solid rgba(39, 174, 96, 0.12);
}

.cb-mv-card-vision::before {
    background: linear-gradient(90deg, var(--cb-secondary), var(--cb-secondary-dark));
}

.cb-mv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cb-shadow-md);
}

.cb-mv-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.cb-mv-card-mission .cb-mv-icon {
    background: var(--cb-primary-glow);
    color: var(--cb-primary);
}

.cb-mv-card-vision .cb-mv-icon {
    background: rgba(39, 174, 96, 0.12);
    color: var(--cb-secondary);
}

.cb-mv-card h2 {
    font-family: var(--cb-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.cb-mv-card-mission h2 { color: var(--cb-primary); }
.cb-mv-card-vision h2 { color: var(--cb-secondary); }

.cb-mv-card h3 {
    font-size: 26px;
    margin-bottom: 16px;
    line-height: 1.35;
}

.cb-mv-card p {
    font-size: 16px;
    color: var(--cb-gray);
    line-height: 1.85;
}

/* ============================================================
   FOUNDER / STORY SECTION
   ============================================================ */
.cb-story-section {
    padding: 120px 0;
    background: var(--cb-bg);
    position: relative;
}

.cb-story-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 100%;
    background: radial-gradient(ellipse at 20% 50%, var(--cb-primary-glow) 0%, transparent 60%);
    pointer-events: none;
}

.cb-story-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.cb-story-visual {
    position: relative;
}

.cb-story-img-wrapper {
    position: relative;
    border-radius: var(--cb-radius-xl);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--cb-primary-light), var(--cb-primary-dark));
    box-shadow: var(--cb-shadow-xl);
}

.cb-story-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 41, 55, 0.5) 0%, transparent 50%);
}

.cb-story-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
}

.cb-story-quote-float {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--cb-white);
    border-radius: var(--cb-radius-lg);
    padding: 28px 32px;
    max-width: 280px;
    box-shadow: var(--cb-shadow-lg);
    z-index: 3;
    border-left: 4px solid var(--cb-primary);
}

.cb-story-quote-float p {
    font-family: var(--cb-font-heading);
    font-size: 16px;
    font-style: italic;
    color: var(--cb-dark);
    line-height: 1.6;
    margin-bottom: 12px;
}

.cb-story-quote-float cite {
    font-family: var(--cb-font-body);
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    color: var(--cb-primary);
}

.cb-story-content {
    position: relative;
    z-index: 2;
}

.cb-story-content h2 {
    font-size: 38px;
    margin-bottom: 28px;
}

.cb-story-text {
    font-size: 17px;
    color: var(--cb-gray);
    line-height: 1.9;
    margin-bottom: 24px;
}

.cb-story-text:first-of-type::first-letter {
    font-family: var(--cb-font-heading);
    font-size: 56px;
    float: left;
    line-height: 1;
    margin: 4px 14px 0 0;
    color: var(--cb-primary);
    font-weight: 700;
}

.cb-story-highlight {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--cb-cream-warm);
    border-radius: var(--cb-radius-lg);
    border: 1px solid rgba(162, 117, 75, 0.1);
    margin: 32px 0;
}

.cb-story-highlight-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--cb-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cb-white);
}

.cb-story-highlight p {
    font-size: 15px;
    color: var(--cb-dark-soft);
    line-height: 1.7;
}

.cb-story-highlight strong {
    color: var(--cb-dark);
}

/* ============================================================
   CORE VALUES GRID
   ============================================================ */
.cb-values-section {
    padding: 120px 0;
    background: var(--cb-white);
}

.cb-values-header {
    text-align: center;
    margin-bottom: 72px;
}

.cb-values-header .cb-section-subtitle {
    margin: 0 auto;
    max-width: 520px;
    color: var(--cb-gray);
    font-size: 17px;
    line-height: 1.7;
    margin-top: 16px;
}

.cb-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.cb-value-card {
    padding: 48px 36px;
    border-radius: var(--cb-radius-xl);
    background: var(--cb-bg);
    border: 1px solid var(--cb-gray-border);
    transition: var(--cb-transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cb-value-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cb-primary), var(--cb-primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.cb-value-card:hover {
    border-color: var(--cb-primary);
    background: var(--cb-white);
    box-shadow: var(--cb-shadow-lg);
    transform: translateY(-8px);
}

.cb-value-card:hover::after {
    transform: scaleX(1);
}

.cb-value-icon-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto 28px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--cb-transition);
}

.cb-value-card:nth-child(1) .cb-value-icon-wrap { background: var(--cb-primary-glow); }
.cb-value-card:nth-child(2) .cb-value-icon-wrap { background: rgba(39, 174, 96, 0.1); }
.cb-value-card:nth-child(3) .cb-value-icon-wrap { background: rgba(59, 130, 246, 0.1); }

.cb-value-card:hover .cb-value-icon-wrap {
    transform: scale(1.08) rotate(3deg);
}

.cb-value-icon-wrap svg {
    width: 36px;
    height: 36px;
    transition: var(--cb-transition);
}

.cb-value-card:nth-child(1) .cb-value-icon-wrap svg { color: var(--cb-primary); }
.cb-value-card:nth-child(2) .cb-value-icon-wrap svg { color: var(--cb-secondary); }
.cb-value-card:nth-child(3) .cb-value-icon-wrap svg { color: #3b82f6; }

.cb-value-card h3 {
    font-family: var(--cb-font-body);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.cb-value-card p {
    font-size: 15px;
    color: var(--cb-gray);
    line-height: 1.8;
}

.cb-value-features {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.cb-value-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--cb-dark-soft);
    padding: 8px 12px;
    background: var(--cb-white);
    border-radius: var(--cb-radius);
    border: 1px solid var(--cb-gray-border);
}

.cb-value-card:hover .cb-value-features li {
    background: var(--cb-bg);
}

.cb-value-features li svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
    color: var(--cb-secondary);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.cb-timeline-section {
    padding: 120px 0;
    background: var(--cb-dark);
    position: relative;
    overflow: hidden;
}

.cb-timeline-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(162, 117, 75, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(39, 174, 96, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cb-timeline-header {
    text-align: center;
    margin-bottom: 72px;
    position: relative;
    z-index: 2;
}

.cb-timeline-header .cb-label .cb-label-dot {
    background: var(--cb-primary-light);
}

.cb-timeline-header .cb-label {
    color: var(--cb-primary-light);
}

.cb-timeline-header h2 {
    color: var(--cb-white);
}

.cb-timeline-header .cb-section-subtitle {
    margin: 16px auto 0;
    color: rgba(255, 255, 255, 0.5);
    max-width: 500px;
    font-size: 17px;
    line-height: 1.7;
}

.cb-timeline {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cb-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-50%);
}

.cb-timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 48px;
    position: relative;
}

.cb-timeline-item:last-child {
    margin-bottom: 0;
}

.cb-timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-right: calc(50% + 40px);
    text-align: right;
}

.cb-timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: calc(50% + 40px);
    text-align: left;
}

.cb-timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--cb-primary);
    border-radius: 50%;
    border: 3px solid var(--cb-dark);
    box-shadow: 0 0 0 4px rgba(162, 117, 75, 0.2);
    z-index: 2;
    top: 8px;
}

.cb-timeline-year {
    font-family: var(--cb-font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--cb-primary-light);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.cb-timeline-item h3 {
    font-family: var(--cb-font-body);
    font-size: 18px;
    font-weight: 700;
    color: var(--cb-white);
    margin-bottom: 8px;
}

.cb-timeline-item p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
}

/* ============================================================
   TEAM GRID
   ============================================================ */
.cb-team-section {
    padding: 120px 0;
    background: var(--cb-bg);
}

.cb-team-header {
    text-align: center;
    margin-bottom: 64px;
}

.cb-team-header .cb-section-subtitle {
    margin: 16px auto 0;
    max-width: 480px;
    color: var(--cb-gray);
    font-size: 17px;
    line-height: 1.7;
}

.cb-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.cb-team-card {
    text-align: center;
    padding: 40px 28px;
    background: var(--cb-white);
    border-radius: var(--cb-radius-xl);
    border: 1px solid var(--cb-gray-border);
    transition: var(--cb-transition);
}

.cb-team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cb-shadow-lg);
    border-color: var(--cb-primary);
}

.cb-team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cb-primary-light), var(--cb-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--cb-font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--cb-white);
    position: relative;
    transition: var(--cb-transition);
}

.cb-team-card:hover .cb-team-avatar {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(162, 117, 75, 0.3);
}

.cb-team-avatar::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed rgba(162, 117, 75, 0.25);
    animation: cb-spin-slow 20s linear infinite;
}

@keyframes cb-spin-slow {
    to { transform: rotate(360deg); }
}

.cb-team-card h3 {
    font-family: var(--cb-font-body);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cb-team-role {
    font-size: 14px;
    color: var(--cb-primary);
    font-weight: 600;
    margin-bottom: 14px;
}

.cb-team-card p {
    font-size: 14px;
    color: var(--cb-gray);
    line-height: 1.65;
}

.cb-team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.cb-team-social a {
    width: 36px;
    height: 36px;
    background: var(--cb-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cb-gray-light);
    transition: var(--cb-transition);
}

.cb-team-social a:hover {
    background: var(--cb-primary);
    color: var(--cb-white);
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
    .cb-story-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cb-story-quote-float {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        max-width: 100%;
    }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
    .cb-mv-section,
    .cb-story-section,
    .cb-values-section,
    .cb-timeline-section,
    .cb-team-section { padding: 80px 0; }

    .cb-mv-grid { grid-template-columns: 1fr; }

    .cb-values-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .cb-team-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }

    .cb-timeline::before { left: 20px; }
    .cb-timeline-dot { left: 20px; }

    .cb-timeline-item:nth-child(odd),
    .cb-timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 56px;
        padding-right: 0;
        text-align: left;
    }

    .cb-story-content h2 { font-size: 28px; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
    .cb-mv-card { padding: 32px 24px; }
    .cb-value-card { padding: 36px 24px; }
    .cb-team-card { padding: 32px 20px; }

    .cb-story-text:first-of-type::first-letter {
        font-size: 42px;
    }

    .cb-values-header,
    .cb-timeline-header,
    .cb-team-header { margin-bottom: 48px; }
}
