/* Understand Yourself page (Pages/UnderstandYourself.cshtml).
   Shared pieces it also uses - .section-subtitle, .img-shine and the data-reveal animations - live in home.css;
   the page hero lives in page-hero.css. */

/* ---------- Why understanding yourself matters ---------- */
.why-section {
    padding: 100px 0;
    overflow: hidden;
    background: #f4f7f5;
}

/* Subheadings in this section are all 18px (the shared pill is 24px elsewhere). */
.why-section .section-subtitle {
    font-size: 18px;
    line-height: 18px;
}

.why-title {
    margin: 16px 0 0;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 400;
    line-height: 52px;
}

.why-text {
    margin: 16px 0 0;
    color: rgba(26, 86, 50, 0.8);
    font-size: 18px;
    line-height: 28px;
}

.why-thumb {
    margin-top: 30px;
    border-radius: 16px;
}

.why-thumb img {
    display: block;
    width: 100%;
    height: 407px;
    border-radius: 16px;
    object-fit: cover;
}

.why-side {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.why-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    border-radius: 12px;
    background: var(--brand-green);
    text-align: center;
}

.why-avatars {
    display: flex;
    justify-content: center;
}

.why-avatars img,
.why-avatars span {
    width: 72px;
    height: 72px;
    margin-left: -14px;
    border: 3px solid var(--brand-green);
    border-radius: 50%;
    object-fit: cover;
}

.why-avatars img:first-child {
    margin-left: 0;
}

.why-avatars span {
    display: grid;
    place-items: center;
    background: var(--brand-lime);
    color: var(--brand-green);
    font-size: 26px;
}

.why-stat h3 {
    margin: 24px 0 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 400;
    line-height: 44px;
}

.why-stat p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 28px;
}

/* Items keep the template's 30px spacing; any small leftover height is shared out evenly. */
.why-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 26px;
    border-radius: 16px;
    background: var(--brand-lime);
}

.why-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.why-item-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.why-item-icon img {
    width: 24px;
    height: 28px;
}

.why-item-icon .bi {
    color: var(--brand-green);
    font-size: 22px;
}

.why-item h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

.why-item h4 a {
    color: var(--brand-green);
    text-decoration: none;
}

.why-item p {
    margin: 10px 0 0;
    color: rgba(26, 86, 50, 0.8);
    font-size: 18px;
    line-height: 26px;
}

/* Thin rule between the items and the checklist, as in the template. */
.why-list {
    margin: 0;
    padding: 30px 0 0;
    border-top: 1px solid rgba(26, 86, 50, 0.2);
    list-style: none;
}

.why-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--brand-green);
    font-size: 18px;
    line-height: 24px;
}

.why-list li + li {
    margin-top: 16px;
}

.why-list .bi {
    font-size: 24px;
}

/* ---------- Know your body's needs (template "Our Projects" layout) ---------- */
/* Same background as the section above, so it only needs bottom padding. */
.needs-section {
    padding: 0 0 100px;
    overflow: hidden;
    background: #f4f7f5;
}

.needs-section .section-subtitle,
.daily-section .section-subtitle {
    font-size: 18px;
    line-height: 18px;
}

.needs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 44px;
}

.needs-title {
    margin: 16px 0 0;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 400;
    line-height: 52px;
}

.needs-intro {
    max-width: 440px;
    margin: 0;
    color: rgba(26, 86, 50, 0.8);
    font-size: 18px;
    line-height: 28px;
}

/* The text box and an invisible spacer share one grid cell. The spacer (::before) gives the card its photo
   shape; if the text box is taller, the cell grows to fit it. The photo is laid over the whole card and
   doesn't affect its size. */
.needs-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr); /* never wider than the card, even when the cell grows taller */
    height: 100%; /* cards in one row match the tallest */
    overflow: hidden;
    border-radius: 12px;
}

.needs-card::before {
    content: "";
    grid-area: 1 / 1;
    aspect-ratio: 1 / 1;
}

.needs-card.is-wide::before {
    aspect-ratio: 570 / 370;
}

.needs-card img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 1s ease;
}

/* Shine sweep on hover, like .img-shine. */
.needs-card::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 200%;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.needs-card:hover::after {
    height: 250%;
    background: transparent;
    transition: all 600ms linear;
}

/* Sits at the bottom of the shared cell; the top margin leaves room for the arrow badge above it. */
.needs-box {
    position: relative;
    z-index: 2;
    grid-area: 1 / 1;
    align-self: end;
    margin: 50px 24px 24px;
    padding: 30px 20px 22px;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.needs-arrow {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border: 6px solid #fff;
    border-radius: 50%;
    background: var(--brand-lime);
    color: var(--brand-green);
    font-size: 20px;
    transform: translate(-50%, -60%);
}

.needs-arrow .bi {
    -webkit-text-stroke: 0.6px;
    transition: transform 0.4s ease;
}

.needs-box h3 {
    margin: 0;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    line-height: 28px;
}

/* A touch smaller in the four narrow cards so "Blood Sugar & Weight" stays on one line. */
.needs-card:not(.is-wide) h3 {
    font-size: 22px;
}

/* Text shows by default and folds away on hover; the 1fr -> 0fr row lets the box shrink smoothly to the title. */
.needs-more {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    transition: grid-template-rows 0.4s ease, opacity 0.3s ease;
}

.needs-more > div {
    overflow: hidden;
}

.needs-more p {
    margin: 12px 0 0;
    color: rgba(26, 86, 50, 0.8);
    font-size: 16px;
    line-height: 24px;
}

.needs-more .needs-note {
    padding-top: 12px;
    border-top: 1px solid rgba(26, 86, 50, 0.15);
    font-size: 15px;
    line-height: 22px;
}

.needs-note strong {
    color: var(--brand-green);
    font-weight: 600;
}

.needs-card:hover img {
    transform: scale(1.05);
}

.needs-card:hover .needs-arrow .bi {
    transform: rotate(360deg);
}

.needs-card:hover .needs-more {
    grid-template-rows: 0fr;
    opacity: 0;
}

/* The four narrow cards get tighter spacing so the opened box still fits under the photo's top edge. */
.needs-card:not(.is-wide) .needs-box {
    margin: 46px 16px 16px;
    padding: 28px 14px 16px;
}

.needs-card:not(.is-wide) .needs-more p {
    margin-top: 8px;
    font-size: 15px;
    line-height: 22px;
}

.needs-card:not(.is-wide) .needs-more .needs-note {
    padding-top: 8px;
    font-size: 14px;
    line-height: 20px;
}

/* Four across is narrowest here, so the photos get taller to make room for the opened text. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .needs-card:not(.is-wide)::before {
        aspect-ratio: 4 / 5;
    }
}

/* Touch screens can't hover, so a tap must not fold the text away. */
@media (hover: none) {
    .needs-card:hover .needs-more {
        grid-template-rows: 1fr;
        opacity: 1;
    }
}

/* ---------- How to include moringa in daily life (template "Testimonials" slider) ---------- */
/* understand-yourself.js rotates the tab list and switches panels; without it the first panel shows. */
.daily-section {
    padding: 100px 0;
    overflow: hidden;
    background: #fff;
}

.daily-nav {
    overflow: hidden;
}

.daily-nav-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.daily-tab {
    display: flex;
    flex-direction: column;
    flex: none;
    width: 100%;
    padding: 20px;
    border: 0;
    border-radius: 12px;
    background: #eef4ea;
    text-align: left;
    transition: background-color 0.4s ease;
}

.daily-tab-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.daily-tab-top img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.daily-tab-top .bi {
    color: var(--brand-green);
    font-size: 26px;
    transition: color 0.4s ease;
}

.daily-tab-title {
    margin-top: 16px;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 24px;
    transition: color 0.4s ease;
}

.daily-tab-sub {
    margin-top: 8px;
    color: rgba(26, 86, 50, 0.8);
    font-size: 16px;
    line-height: 20px;
    transition: color 0.4s ease;
}

.daily-tab.is-active {
    background: var(--brand-green);
}

.daily-tab.is-active .daily-tab-top .bi,
.daily-tab.is-active .daily-tab-title,
.daily-tab.is-active .daily-tab-sub {
    color: #fff;
}

.daily-tab:focus-visible {
    outline: 2px solid var(--brand-lime);
    outline-offset: 2px;
}

/* Every panel shares one grid cell, so the box keeps the height of the tallest panel. */
.daily-panels {
    display: grid;
}

.daily-panel {
    display: grid;
    grid-area: 1 / 1;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    visibility: hidden;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}

.daily-panel.is-active,
.daily-panels:not(.is-ready) .daily-panel:first-child {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.daily-panel-img img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 472px;
    border-radius: 12px;
    object-fit: cover;
}

.daily-panel-body {
    padding: 50px 30px 110px;
    border-radius: 12px;
    background: #eef4ea;
}

.daily-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.daily-panel-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-lime);
    color: var(--brand-green);
    font-size: 22px;
}

.daily-panel-tag {
    padding: 6px 14px;
    border: 1px solid rgba(26, 86, 50, 0.3);
    border-radius: 30px;
    color: var(--brand-green);
    font-size: 15px;
    line-height: 18px;
}

.daily-panel-body h3 {
    margin: 24px 0 0;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    line-height: 34px;
}

.daily-panel-body p {
    margin: 14px 0 0;
    color: rgba(26, 86, 50, 0.8);
    font-size: 18px;
    line-height: 28px;
}

.daily-points {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.daily-points li {
    display: flex;
    gap: 10px;
    color: var(--brand-green);
    font-size: 17px;
    line-height: 24px;
}

.daily-points li + li {
    margin-top: 12px;
}

.daily-points .bi {
    flex: none;
    font-size: 20px;
    line-height: 24px;
}

/* Routine: time of day on the left, what to take on the right. */
.daily-routine li {
    flex-direction: column;
    gap: 2px;
    padding-left: 14px;
    border-left: 3px solid var(--brand-lime);
    color: rgba(26, 86, 50, 0.8);
}

.daily-routine strong {
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-weight: 400;
}

/* Sit at the bottom of the text box, where the template has its click icon. */
.daily-section .col-lg-9 {
    position: relative;
}

.daily-arrows {
    position: absolute;
    bottom: 30px;
    left: calc(50% + 12px + 30px);
    display: flex;
    gap: 12px;
}

.daily-arrow {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--brand-green);
    border-radius: 50%;
    background: transparent;
    color: var(--brand-green);
    font-size: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.daily-arrow:hover,
.daily-arrow:focus-visible {
    background: var(--brand-green);
    color: #fff;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .daily-panel-body {
        padding: 30px 24px 100px;
    }

    .daily-arrows {
        left: calc(50% + 12px + 24px);
    }
}

/* Stacked: the tabs become a row you can swipe, above the panel. */
@media (max-width: 991.98px) {
    .daily-section {
        padding: 70px 0;
    }

    .daily-nav-track {
        flex-direction: row;
    }

    .daily-tab {
        width: 240px;
    }

    .daily-panel {
        grid-template-columns: 1fr;
    }

    .daily-panel-img img {
        min-height: 0;
        height: 320px;
    }

    .daily-arrows {
        left: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .daily-panel,
    .daily-nav-track {
        transition: none !important;
    }
}

/* ---------- Call to action (full-width split, no buttons) ---------- */
/* Left: photo collage to the screen edge. Right: lime panel. A spinning seal sits on the line between. */
.uy-cta {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: var(--brand-lime);
}

.uy-cta-media {
    position: relative;
    min-height: 660px;
    overflow: hidden;
}

.uy-cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uy-cta-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 36, 20, 0.15) 0%, rgba(10, 36, 20, 0.65) 100%);
}

.uy-cta-arch {
    position: absolute;
    top: 80px;
    left: 12%;
    z-index: 1;
    width: 300px;
    height: 420px;
    overflow: hidden;
    border: 8px solid #fff;
    border-radius: 160px 160px 16px 16px;
}

.uy-cta-circle {
    position: absolute;
    right: 16%;
    bottom: 70px;
    z-index: 2;
    width: 220px;
    height: 220px;
    overflow: hidden;
    border: 8px solid var(--brand-lime);
    border-radius: 50%;
}

.uy-cta-arch img,
.uy-cta-circle img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uy-cta-seal {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 180px;
    height: 180px;
    border: 6px solid var(--brand-lime);
    border-radius: 50%;
    background: var(--brand-green);
    transform: translate(-50%, -50%);
}

.uy-cta-seal svg {
    width: 100%;
    height: 100%;
    animation: uyCtaSpin 18s linear infinite;
}

.uy-cta-seal text {
    fill: var(--brand-lime);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 4px; /* fills the 465-unit circle path with the current words */
    text-transform: uppercase;
}

.uy-cta-seal-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-lime);
    color: var(--brand-green);
    font-size: 30px;
    transform: translate(-50%, -50%);
}

@keyframes uyCtaSpin {
    to { transform: rotate(360deg); }
}

.uy-cta-body {
    align-self: center;
    max-width: 760px;
    padding: 100px 8% 100px 140px;
}

.uy-cta .section-subtitle {
    font-size: 18px;
    line-height: 18px;
}

.uy-cta-title {
    margin: 18px 0 0;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 400;
    line-height: 1.2;
}

.uy-cta-text {
    margin: 20px 0 0;
    color: rgba(26, 86, 50, 0.85);
    font-size: 18px;
    line-height: 28px;
}

.uy-cta-ways {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.uy-cta-ways img {
    display: block;
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border: 4px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.uy-cta-ways li:hover img {
    transform: translateY(-6px);
}

.uy-cta-ways span {
    display: block;
    margin-top: 10px;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 22px;
}

.uy-cta-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 32px 0 0;
    padding: 10px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--brand-green);
    font-size: 16px;
    line-height: 22px;
}

.uy-cta-note .bi {
    font-size: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .uy-cta-seal svg {
        animation: none;
    }
}

@media (max-width: 1399.98px) {
    .uy-cta-arch {
        left: 8%;
        width: 260px;
        height: 370px;
    }

    .uy-cta-circle {
        right: 10%;
        width: 190px;
        height: 190px;
    }

    .uy-cta-body {
        padding-left: 120px;
    }

    .uy-cta-title {
        font-size: 44px;
    }
}

/* Stacked: photo on top, seal on the line between photo and panel. */
@media (max-width: 991.98px) {
    .uy-cta {
        grid-template-columns: 1fr;
    }

    .uy-cta-media {
        min-height: 0;
        height: 480px;
    }

    .uy-cta-seal {
        top: 480px;
        width: 150px;
        height: 150px;
    }

    .uy-cta-body {
        max-width: none;
        padding: 110px 24px 70px;
    }
}

@media (max-width: 575.98px) {
    .uy-cta-media {
        height: 400px;
    }

    .uy-cta-seal {
        top: 400px;
    }

    .uy-cta-arch {
        top: 50px;
        left: 6%;
        width: 180px;
        height: 260px;
        border-width: 6px;
    }

    .uy-cta-circle {
        right: 6%;
        bottom: 100px;
        width: 140px;
        height: 140px;
        border-width: 6px;
    }

    .uy-cta-body {
        padding: 100px 20px 60px;
    }

    .uy-cta-title {
        font-size: 34px;
        line-height: 44px;
    }

    .uy-cta-ways {
        gap: 10px;
    }

    .uy-cta-ways img {
        width: 64px;
        height: 64px;
        border-width: 3px;
    }

    .uy-cta-ways span {
        font-size: 15px;
    }
}

/* Side by side (desktop): the photo takes whatever height is left so its bottom meets the bottom
   of the right column, like the template, instead of the lime card stretching to fill a gap. */
@media (min-width: 1200px) {
    .why-main {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .why-main .section-subtitle {
        align-self: flex-start;
    }

    .why-thumb {
        flex: 1 1 auto;
        min-height: 300px;
    }

    .why-thumb img {
        position: absolute;
        inset: 0;
        height: 100%;
    }
}

@media (max-width: 1199.98px) {
    .why-side {
        flex-direction: row;
    }

    .why-stat,
    .why-card {
        flex: 1;
    }
}

@media (max-width: 991.98px) {
    .why-section {
        padding: 70px 0;
    }

    .why-thumb img {
        height: 340px;
    }

    .needs-section {
        padding-bottom: 70px;
    }

    .needs-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 767.98px) {
    .why-side {
        flex-direction: column;
    }

    .why-stat {
        padding: 40px 24px;
    }
}

@media (max-width: 575.98px) {
    .why-title,
    .needs-title {
        font-size: 32px;
        line-height: 44px;
    }

    .needs-card.is-wide::before {
        aspect-ratio: 1 / 1;
    }

    .why-thumb img {
        height: 240px;
    }
}
