/* ========================================
   Our Story Page - B2B Focused
   ======================================== */

/* Hero Section */
.page-hero {
    padding: 10rem 2rem 5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    pointer-events: none;
}

.page-hero-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.2s;
    position: relative;
}

.page-hero-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.15;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.35s;
    position: relative;
}

.page-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.5s;
    position: relative;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shared Section Styles */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--orange);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

/* Opportunity Section */
.opportunity-section {
    padding: 5rem 2rem 6rem;
    background: var(--cream-dark);
}

.opportunity-container {
    max-width: 1100px;
    margin: 0 auto;
}

.opportunity-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.opportunity-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 2px 24px rgba(61, 52, 40, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.opportunity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(61, 52, 40, 0.1);
}

.opportunity-card.featured {
    background: linear-gradient(135deg, var(--orange) 0%, var(--coral) 100%);
    color: var(--white);
}

.opportunity-card.featured h3,
.opportunity-card.featured p {
    color: var(--white);
}

.opportunity-card.featured .opportunity-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.opportunity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--peach);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--orange);
}

.opportunity-icon svg {
    width: 24px;
    height: 24px;
}

.opportunity-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.opportunity-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .opportunity-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Vision Section */
.vision-section {
    padding: 6rem 2rem;
    background: var(--cream);
}

.vision-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}

.vision-portrait {
    position: sticky;
    top: 120px;
    text-align: center;
}

.portrait-wrapper {
    width: 220px;
    height: 220px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(145deg, rgba(232, 93, 47, 0.2), rgba(232, 93, 47, 0.05));
    position: relative;
}

.portrait-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--cream);
}

.portrait-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.portrait-name {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

.portrait-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.vision-content {
    padding-top: 0.5rem;
}

.vision-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
    line-height: 1.3;
}

.vision-text {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.vision-text p {
    margin-bottom: 1.5rem;
}

.vision-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.vision-highlight {
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 500;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    border-left: 4px solid var(--orange);
    margin-top: 2rem;
    box-shadow: 0 2px 16px rgba(61, 52, 40, 0.06);
}

@media (max-width: 800px) {
    .vision-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .vision-portrait {
        position: relative;
        top: 0;
    }
    
    .portrait-wrapper {
        width: 160px;
        height: 160px;
    }
}

/* Mission Section */
.mission-section {
    padding: 6rem 2rem;
    background: var(--white);
}

.mission-container {
    max-width: 900px;
    margin: 0 auto;
}

.mission-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.mission-header .section-title {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.mission-content {
    background: var(--cream);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3rem);
}

.mission-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(61, 52, 40, 0.1);
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.value-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--orange);
    box-shadow: 0 2px 12px rgba(61, 52, 40, 0.08);
}

.value-icon svg {
    width: 26px;
    height: 26px;
}

.value-content h4 {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.value-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 700px) {
    .mission-values {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    
    .value-item {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    
    .value-icon {
        flex-shrink: 0;
    }
}

/* Partnership Section */
.partnership-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.partnership-container {
    max-width: 1100px;
    margin: 0 auto;
}

.partnership-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.partnership-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.partnership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.partnership-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    box-shadow: 0 2px 24px rgba(61, 52, 40, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partnership-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(61, 52, 40, 0.1);
}

.partnership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--coral) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partnership-card:hover::before {
    opacity: 1;
}

.partnership-number {
    display: inline-block;
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--peach);
    line-height: 1;
    margin-bottom: 1rem;
}

.partnership-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.partnership-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .partnership-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* CTA Section */
.story-cta {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.story-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 50% 80% at 20% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 80% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.story-cta-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.story-cta-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.story-cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Page Header Override */
.header.page-header {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animation delays */
.opportunity-grid .opportunity-card:nth-child(1) { transition-delay: 0.1s; }
.opportunity-grid .opportunity-card:nth-child(2) { transition-delay: 0.2s; }
.opportunity-grid .opportunity-card:nth-child(3) { transition-delay: 0.3s; }

.partnership-grid .partnership-card:nth-child(1) { transition-delay: 0.1s; }
.partnership-grid .partnership-card:nth-child(2) { transition-delay: 0.2s; }
.partnership-grid .partnership-card:nth-child(3) { transition-delay: 0.3s; }

.mission-values .value-item:nth-child(1) { transition-delay: 0.1s; }
.mission-values .value-item:nth-child(2) { transition-delay: 0.2s; }
.mission-values .value-item:nth-child(3) { transition-delay: 0.3s; }

/* Demo CTA button - matches primary style */
.btn-demo-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background: var(--white);
    color: var(--orange-dark);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-demo-cta:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-demo-cta-bg {
    position: absolute;
    inset: 0;
    background: var(--white);
    border-radius: 100px;
    z-index: 0;
}

.btn-demo-cta-spotlight {
    position: absolute;
    inset: 0;
    border-radius: 100px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.btn-demo-cta:hover .btn-demo-cta-spotlight {
    opacity: 1;
    animation: spotlight-move-demo 0.5s ease forwards;
}

@keyframes spotlight-move-demo {
    0% {
        background: radial-gradient(
            circle at 20% 50%,
            rgba(245, 166, 35, 0.15) 0%,
            rgba(245, 166, 35, 0.05) 35%,
            transparent 60%
        );
    }
    100% {
        background: radial-gradient(
            circle at 80% 50%,
            rgba(245, 166, 35, 0.15) 0%,
            rgba(245, 166, 35, 0.05) 35%,
            transparent 60%
        );
    }
}

.btn-demo-cta-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
}

.btn-demo-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15) 0%, rgba(232, 148, 42, 0.1) 100%);
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.btn-demo-cta-icon svg {
    width: 18px;
    height: 18px;
    color: var(--orange-dark);
    transition: color 0.3s ease;
}

.btn-demo-cta-text {
    white-space: nowrap;
}

.btn-demo-cta:hover .btn-demo-cta-icon {
    order: 2;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.3) 0%, rgba(232, 148, 42, 0.2) 100%);
    animation: slide-icon-right-demo 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.btn-demo-cta:hover .btn-demo-cta-text {
    order: 1;
    animation: slide-text-left-demo 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slide-icon-right-demo {
    0% {
        transform: translateX(calc(-100% - 0.75rem));
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-text-left-demo {
    0% {
        transform: translateX(calc(32px + 0.75rem));
    }
    100% {
        transform: translateX(0);
    }
}

.btn-demo-cta:hover .btn-demo-cta-icon svg {
    color: var(--orange);
}