/* Our Story page (Pages/OurStory.cshtml).
   The hero is in page-hero.css; .section-subtitle, .img-shine and data-reveal are in home.css. */

/* ---------- How it started ---------- */
.story-start {
    padding: 100px 0;
    overflow: hidden;
    background: #fff;
}

.story-start .section-subtitle,
.story-values .section-subtitle {
    font-size: 18px;
    line-height: 18px;
}

.story-title {
    margin: 16px 0 0;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 400;
    line-height: 52px;
}

.story-text {
    margin: 18px 0 0;
    color: rgba(26, 86, 50, 0.8);
    font-size: 18px;
    line-height: 28px;
}

/* Three steps joined by a dotted line down the icons. */
.story-steps {
    position: relative;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.story-steps::before {
    content: "";
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: 25px;
    border-left: 2px dashed rgba(26, 86, 50, 0.25);
}

.story-steps li {
    position: relative;
    display: flex;
    gap: 20px;
}

.story-steps li + li {
    margin-top: 26px;
}

.story-step-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--brand-lime);
    box-shadow: 0 0 0 1px rgba(26, 86, 50, 0.2);
    color: var(--brand-green);
    font-size: 22px;
}

.story-steps h3 {
    margin: 4px 0 0;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
}

.story-steps p {
    margin: 6px 0 0;
    color: rgba(26, 86, 50, 0.8);
    font-size: 16px;
    line-height: 26px;
}

/* Tall photo, a round photo over its lower-left corner, and a lime card over the top-right. */
.story-media {
    position: relative;
    padding: 40px 0 60px 60px;
}

.story-photo {
    border-radius: 200px 200px 20px 20px;
}

.story-photo img {
    display: block;
    width: 100%;
    height: 600px;
    border-radius: 200px 200px 20px 20px;
    object-fit: cover;
}

.story-round {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 220px;
    height: 220px;
    overflow: hidden;
    border: 8px solid #fff;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(26, 86, 50, 0.15);
}

.story-round img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card {
    position: absolute;
    top: 0;
    right: -10px;
    z-index: 2;
    max-width: 250px;
    padding: 24px;
    border-radius: 16px;
    background: var(--brand-lime);
    box-shadow: 0 10px 30px rgba(26, 86, 50, 0.15);
}

.story-card-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-green);
    color: var(--brand-lime);
    font-size: 24px;
}

.story-card p {
    margin: 14px 0 0;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 22px;
    line-height: 30px;
}

@media (max-width: 1199.98px) {
    .story-title {
        font-size: 38px;
        line-height: 46px;
    }

    .story-photo img {
        height: 540px;
    }

    .story-card {
        right: 0;
    }
}

@media (max-width: 991.98px) {
    .story-start {
        padding: 70px 0;
    }

    .story-media {
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .story-title {
        font-size: 32px;
        line-height: 42px;
    }

    .story-media {
        padding: 30px 0 50px 30px;
    }

    .story-photo img {
        height: 420px;
    }

    .story-round {
        width: 150px;
        height: 150px;
        border-width: 6px;
    }

    .story-card {
        max-width: 200px;
        padding: 18px;
    }

    .story-card p {
        font-size: 18px;
        line-height: 26px;
    }
}

/* ---------- Mission & values ---------- */
.story-values {
    padding: 100px 0;
    overflow: hidden;
    background: #f4f7f5;
}

.story-values-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.story-values-head .story-text {
    max-width: 480px;
    margin: 0;
}

/* Dark green card with a faint flower in the corner. */
.story-mission {
    position: relative;
    min-height: 100%; /* matches the value cards beside it, but grows if its own text is longer */
    overflow: hidden;
    padding: 44px 40px;
    border-radius: 20px;
    background: var(--brand-green);
}

.story-mission-deco {
    position: absolute;
    right: -40px;
    bottom: -60px;
    color: rgba(216, 228, 90, 0.08);
    font-size: 260px;
    line-height: 1;
    pointer-events: none;
}

.story-mission-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-lime);
    color: var(--brand-green);
    font-size: 28px;
}

.story-mission h3 {
    margin: 26px 0 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 400;
    line-height: 40px;
}

.story-mission > p {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 30px;
}

.story-vision {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.story-vision h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--brand-lime);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
}

.story-vision p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
    line-height: 26px;
}

.story-value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    height: 100%;
}

.story-value {
    height: 100%;
    padding: 30px 28px;
    border: 1px solid rgba(26, 86, 50, 0.12);
    border-radius: 16px;
    background: #fff;
    transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.story-value:hover {
    border-color: var(--brand-lime);
    background: var(--brand-lime);
    transform: translateY(-6px);
}

.story-value-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.story-value-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eef4ea;
    color: var(--brand-green);
    font-size: 24px;
    transition: background-color 0.4s ease;
}

.story-value:hover .story-value-icon {
    background: #fff;
}

.story-value-num {
    color: rgba(26, 86, 50, 0.15);
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 1;
}

.story-value h3 {
    margin: 22px 0 0;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
}

.story-value p {
    margin: 10px 0 0;
    color: rgba(26, 86, 50, 0.8);
    font-size: 16px;
    line-height: 26px;
}

@media (max-width: 991.98px) {
    .story-values {
        padding: 70px 0;
    }

    .story-values-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 575.98px) {
    .story-mission {
        padding: 34px 24px;
    }

    .story-mission h3 {
        font-size: 28px;
        line-height: 34px;
    }

    .story-value-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Shared centred section heading ---------- */
.story-journey .section-subtitle,
.story-diff .section-subtitle {
    font-size: 18px;
    line-height: 18px;
}

.story-center-head {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.story-center-head .story-text {
    max-width: 620px;
    margin: 16px auto 0;
}

/* ---------- Our journey (timeline) ---------- */
.story-journey {
    padding: 100px 0;
    overflow: hidden;
    background: #fff;
}

/* Cards alternate either side of a dashed centre line; each sits level with its round marker. */
.story-timeline {
    position: relative;
    margin: 60px 0 0;
    padding: 0;
    list-style: none;
}

.story-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    border-left: 2px dashed rgba(26, 86, 50, 0.25);
    transform: translateX(-1px);
}

.story-milestone {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 90px 1fr;
    align-items: center;
}

.story-milestone + .story-milestone {
    margin-top: 30px;
}

.story-milestone-dot {
    display: grid;
    grid-row: 1;
    grid-column: 2;
    place-items: center;
    justify-self: center;
    width: 60px;
    height: 60px;
    border: 6px solid #fff;
    border-radius: 50%;
    background: var(--brand-green);
    box-shadow: 0 0 0 1px rgba(26, 86, 50, 0.2);
    color: var(--brand-lime);
    font-size: 22px;
}

.story-milestone-card {
    display: flex;
    grid-row: 1;
    grid-column: 1;
    overflow: hidden;
    border: 1px solid rgba(26, 86, 50, 0.12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(26, 86, 50, 0.06);
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.story-milestone:nth-child(even) .story-milestone-card {
    grid-column: 3;
}

.story-milestone-card:hover {
    border-color: var(--brand-green);
    transform: translateY(-4px);
}

.story-milestone-card img {
    flex: none;
    width: 38%;
    min-height: 200px;
    object-fit: cover;
}

.story-milestone-body {
    padding: 24px;
}

.story-milestone-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    background: var(--brand-lime);
    color: var(--brand-green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.story-milestone-body h3 {
    margin: 12px 0 0;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
}

.story-milestone-body p {
    margin: 8px 0 0;
    color: rgba(26, 86, 50, 0.8);
    font-size: 16px;
    line-height: 25px;
}

/* ---------- What makes us different ---------- */
.story-diff {
    padding: 100px 0;
    overflow: hidden;
    background: #f4f7f5;
}

/* Three points either side of a round photo; the left ones mirror so icons face the photo. */
.story-diff-grid {
    display: grid;
    grid-template-columns: 1fr 400px 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 60px;
}

.story-diff-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.story-diff-list li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.story-diff-list.is-left li {
    flex-direction: row-reverse;
    text-align: right;
}

.story-diff-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 20px rgba(26, 86, 50, 0.08);
    color: var(--brand-green);
    font-size: 24px;
    transition: background-color 0.3s ease;
}

.story-diff-list li:hover .story-diff-icon {
    background: var(--brand-lime);
}

.story-diff-list h3 {
    margin: 4px 0 0;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
}

.story-diff-list p {
    margin: 8px 0 0;
    color: rgba(26, 86, 50, 0.8);
    font-size: 16px;
    line-height: 25px;
}

.story-diff-center {
    position: relative;
    padding: 20px;
}

.story-diff-photo {
    overflow: hidden;
    border: 10px solid #fff;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(26, 86, 50, 0.12);
    aspect-ratio: 1 / 1;
}

.story-diff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dashed ring that turns slowly around the photo. */
.story-diff-ring {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(26, 86, 50, 0.35);
    border-radius: 50%;
    animation: storySpin 40s linear infinite;
}

@keyframes storySpin {
    to { transform: rotate(360deg); }
}

/* ---------- Call to action (full width, no buttons) ---------- */
.story-cta {
    position: relative;
    padding: 120px 0 0;
    overflow: hidden;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(10, 36, 20, 0.88) 0%, rgba(6, 24, 14, 0.94) 100%),
        var(--cta-img) center / cover no-repeat,
        #0c2416;
}


.story-cta-content {
    max-width: 820px;
    margin: 0 auto;
}

.story-cta-icon {
    display: inline-grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--brand-lime);
    color: var(--brand-green);
    font-size: 34px;
}

.story-cta-title {
    margin: 26px 0 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 58px;
    font-weight: 400;
    line-height: 1.15;
}

.story-cta-text {
    max-width: 640px;
    margin: 22px auto 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    line-height: 28px;
}

.story-cta-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 100px 0 0;
    padding: 0;
    list-style: none;
    background: var(--brand-lime);
}

.story-cta-strip li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 26px 40px;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 22px;
    line-height: 28px;
}

.story-cta-strip li + li {
    border-left: 1px solid rgba(26, 86, 50, 0.2);
}

.story-cta-strip .bi {
    font-size: 24px;
}

@media (prefers-reduced-motion: reduce) {
    .story-diff-ring {
        animation: none;
    }
}

@media (max-width: 1199.98px) {
    .story-diff-grid {
        grid-template-columns: 1fr 300px 1fr;
        gap: 30px;
    }

    .story-cta-strip li {
        padding: 22px 28px;
        font-size: 20px;
    }
}

@media (max-width: 991.98px) {
    .story-journey,
    .story-diff {
        padding: 70px 0;
    }

    /* Timeline: line on the left, every card to its right. */
    .story-timeline::before {
        left: 30px;
    }

    .story-milestone {
        grid-template-columns: 60px 1fr;
        gap: 20px;
    }

    .story-milestone-dot {
        grid-column: 1;
    }

    .story-milestone-card,
    .story-milestone:nth-child(even) .story-milestone-card {
        grid-column: 2;
    }

    /* Different: photo on top, then all six points in one column. */
    .story-diff-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-diff-center {
        order: -1;
        width: 320px;
        max-width: 100%;
        margin: 0 auto;
    }

    .story-diff-list.is-left li {
        flex-direction: row;
        text-align: left;
    }

    .story-cta {
        padding-top: 90px;
    }

    .story-cta-title {
        font-size: 44px;
    }

    .story-cta-strip {
        margin-top: 70px;
    }
}

@media (max-width: 767.98px) {
    .story-cta-strip li {
        flex: 1 1 50%;
        justify-content: center;
        padding: 18px 12px;
        font-size: 17px;
    }

    .story-cta-strip li + li {
        border-left: 0;
    }
}

@media (max-width: 575.98px) {
    .story-milestone {
        grid-template-columns: 48px 1fr;
        gap: 14px;
    }

    .story-timeline::before {
        left: 24px;
    }

    .story-milestone-dot {
        width: 48px;
        height: 48px;
        border-width: 4px;
        font-size: 18px;
    }

    .story-milestone-card {
        flex-direction: column;
    }

    .story-milestone-card img {
        width: 100%;
        min-height: 0;
        height: 170px;
    }

    .story-milestone-body {
        padding: 20px;
    }

    .story-diff-center {
        width: 260px;
    }

    .story-cta-title {
        font-size: 34px;
        line-height: 1.25;
    }

    .story-cta-strip li {
        flex-basis: 100%;
    }
}
