/* ===========================================
   Our Story - Page-Specific Styles
   =========================================== */

/* -------------------------
   Hero
   ------------------------- */
.of-hero {
    min-height: 100vh;
    justify-content: flex-start;
    align-items: center;
    padding: 0 4%;
}

.of-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/U2030-photos/banner-our-story.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.of-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(7, 80, 86, 1)    0%,
        rgba(7, 80, 86, 1)    40%,
        rgba(7, 80, 86, 0.85) 55%,
        rgba(7, 80, 86, 0.4)  75%,
        rgba(7, 80, 86, 0.2)  100%
    );
}

.of-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10rem 0 6rem;
    width: 100%;
}

.of-hero-text {
    max-width: 650px;
}

.of-hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.of-hero-body {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.of-hero-ctas {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blaze-orange);
    font-family: 'Funnel Sans', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.page-our-story .hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    max-width: 600px;
}

/* -------------------------
   Core Values Grid
   ------------------------- */
/* -------------------------
   Core Values
   ------------------------- */
.core-values-section {
    background: var(--soft-cream);
    padding: 6rem 4%;
}

.of-values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.values-content .section-label::before,
.values-content .section-label::after {
    display: none;
}

.values-intro {
    font-size: 1.05rem;
    color: #5a6872;
    margin-top: 0.75rem;
    font-style: italic;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    padding-left: 1rem;
    border-left: 3px solid var(--sea-green);
    transition: all 0.3s ease;
}

.value-item:hover {
    padding-left: 1.5rem;
    border-left-color: var(--blaze-orange);
}

.value-item:hover .value-name {
    color: var(--blaze-orange);
}

.value-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-teal);
    margin: 0 0 0.25rem 0;
    transition: color 0.3s ease;
}

.value-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5a6872;
    margin: 0;
}

.values-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.values-image img {
    max-width: 100%;
    height: auto;
}

.values-tagline {
    text-align: center;
    color: var(--sea-green);
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 500;
    margin-top: 1.5rem;
}

/* -------------------------
   Origin Story
   ------------------------- */

.container.out-story-container {
    max-width: 1200px;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--navy-black);
    margin-bottom: 1.5rem;
}

.story-text p {
    color: #5a6872;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-text p strong {
    color: var(--navy-black);
}

.story-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(7, 80, 86, 0.2);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.story-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.story-slide:first-child {
    position: relative;
}

.story-slide.active {
    opacity: 1;
}

.story-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 80, 86, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* -------------------------
   Future Outlook
   ------------------------- */
.outlook-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.outlook-content p {
    font-size: 1.25rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.9);
}

.outlook-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.outlook-stat .number {
    font-family: 'Funnel Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--blaze-orange);
}

.outlook-stat .label {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
}

/* -------------------------
   Leadership Teams
   ------------------------- */
.teams-intro {
    font-size: 1.05rem;
    color: #5a6872;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 1rem;
    text-align: center;
}

.teams-intro + .teams-intro {
    margin-bottom: 3rem;
}

.leadership-subsection {
    margin-bottom: 4rem;
    text-align: center;
}

.leadership-subsection:last-child {
    margin-bottom: 0;
}

.leadership-subsection h3 {
    font-size: 1.5rem;
    color: var(--navy-black);
    margin-bottom: 2rem;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.team-grid--wide {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
}

.team-member {
    text-align: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member-photo {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 30px rgba(7, 80, 86, 0.15);
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-member:hover .team-member-photo img {
    transform: scale(1.05);
}

.team-member h4 {
    font-size: 1.1rem;
    color: var(--navy-black);
    margin-bottom: 0.25rem;
}

.team-member p {
    font-size: 0.85rem;
    color: #5a6872;
}

/* -------------------------
   Responsive
   ------------------------- */
@media (max-width: 992px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-image {
        order: -1;
        min-height: 300px;
    }

    .story-slide {
        position: absolute;
    }

    .story-slide:first-child {
        position: absolute;
    }
}

@media (max-width: 900px) {
    .of-values-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .values-image {
        order: -1;
    }

    .values-image img {
        max-width: min(400px, 100%);
    }

    .values-content .section-header {
        text-align: center !important;
    }

    .values-content .section-label {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-member-photo {
        width: 150px;
        height: 150px;
    }

    .of-hero-bg {
        background-position: right bottom;
        background-size: auto 45%;
        background-repeat: no-repeat;
    }

    .of-hero-bg::after {
        background: linear-gradient(
            to bottom,
            rgba(7, 80, 86, 1) 0%,
            rgba(7, 80, 86, 1) 55%,
            rgba(7, 80, 86, 0) 160%
        );
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Story Behind the Name */
.name-story-section {
    background: var(--white);
    padding: 6rem 4%;
}

.name-story-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.name-story-year {
    display: inline-block;
    font-family: 'Funnel Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--white);
    background: linear-gradient(135deg, var(--dark-teal), var(--sea-green));
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.name-story-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--navy-black);
    margin-bottom: 2rem;
}

.name-story-text {
    margin-bottom: 2.5rem;
}

.name-story-text p {
    font-size: 1.1rem;
    color: #5a6872;
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.name-story-text p:last-child {
    margin-bottom: 0;
}

.name-story-text strong {
    color: var(--dark-teal);
}

.name-story-future {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--sea-green);
    padding: 1.5rem 2rem;
    border-radius: 12px;
}

.name-story-future .material-icons-outlined {
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.name-story-future p {
    color: var(--white);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.name-story-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 450px;
}

.name-story-collage .collage-img {
    border-radius: 12px;
    overflow: hidden;
}

.name-story-collage .collage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.name-story-collage .collage-img:hover img {
    transform: scale(1.05);
}

.name-story-collage .collage-img:first-child {
    grid-row: span 2;
}

@media (max-width: 900px) {
    .name-story-wrapper {
        grid-template-columns: 1fr;
    }

    .name-story-collage {
        order: -1;
        height: 350px;
    }
}

/* -------------------------
   Values Quote Slider
   ------------------------- */
.of-quotes-section {
    background: linear-gradient(135deg, rgba(7, 80, 86, 0.92) 0%, rgba(7, 80, 86, 0.96) 100%), url('../images/U2030-photos/diverse-team-brainstorming-writing-ideas-on-stick-2026-01-11-11-01-37-utc.webp');
    background-size: cover;
    background-position: center 33%;
    padding: 6rem 4%;
}

.of-quotes-slider {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    text-align: center;
}

.of-quotes-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.of-quotes-slide.active {
    opacity: 1;
    visibility: visible;
}

.of-quote-attribution {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: -1rem;
    font-style: italic;
}

.of-quotes-dots {
    grid-area: 2 / 1;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
}

.of-quotes-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.of-quotes-dot.active {
    background: var(--blaze-orange);
    border-color: var(--blaze-orange);
}
