/* ==========================================================================
   Homepage sections below the hero
   Markup: index.php. Two brand shapes run through the page:
   - Leaf frame (.leaf): two opposite corners deeply rounded, two crisp.
   - Cabra pattern: /files/images/pattern-cabra-{green,gold}.svg, a tile of
     seedling, timber, bee and solar motifs, faded out from a section corner.
   ========================================================================== */

.home-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.home-h2 {
    font-family: "Means", Georgia, serif;
    font-weight: 300;
    font-size: clamp(34px, 3.8vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.015em;
    color: #12291a;
    text-wrap: balance;
}

/* --- Brand shape: the leaf frame --- */

.leaf {
    --leaf-big: clamp(56px, 9vw, 128px);
    --leaf-small: 8px;
    display: block;
    overflow: hidden;
    border-radius: var(--leaf-big) var(--leaf-small) var(--leaf-big) var(--leaf-small);
    isolation: isolate;
}

.leaf-mirror {
    border-radius: var(--leaf-small) var(--leaf-big) var(--leaf-small) var(--leaf-big);
}

/* --- Partners strip: names separated by small gold leaves --- */

.skeleton-partners {
    background: #ffffff;
    border-top: 0;
    border-bottom: 1px solid rgba(18, 41, 26, 0.08);
    padding: 34px 24px;
}

.partners-logos-row {
    gap: 14px 22px;
}

.partner-name {
    font-family: "Means", Georgia, serif;
    font-weight: 300;
    font-size: 19px;
    color: #4b6352;
    letter-spacing: 0;
}

.partner-sep {
    font-size: 0;
    width: 8px;
    height: 8px;
    background: #ebb042;
    border-radius: 6px 1px 6px 1px;
    display: inline-block;
}

/* --- Offerings: statement + staggered leaf-framed columns --- */

.home-offerings {
    position: relative;
    padding: 140px 0 120px;
    background: #ffffff;
    overflow: hidden;
}

/* Cabra pattern, fading out from the top right */
.home-offerings::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 760px;
    background: url("/files/images/pattern-cabra-green.svg") 0 0 / 320px repeat;
    opacity: 0.32;
    -webkit-mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 70%);
    transform: translate3d(0, var(--pattern-drift, 0px), 0);
    pointer-events: none;
}

.home-offerings-intro {
    position: relative;
    transform: translate3d(0, var(--intro-shift, 0px), 0);
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 64px;
    align-items: end;
    margin-bottom: 96px;
}

.home-statement {
    font-family: "Means", Georgia, serif;
    font-weight: 300;
    font-size: clamp(22px, 2.2vw, 31px);
    line-height: 1.35;
    letter-spacing: -0.005em;
    color: #2f4a37;
    max-width: 30em;
}

/* Two columns that travel in opposite directions while the section scrolls.
   The script sets --col-a / --col-b on the grid and --img-shift on each photo;
   all default to 0, so without JS (or with reduced motion) it is a still,
   staggered spread. Extra top/bottom room keeps the travel inside the section. */
.home-offerings-grid {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 88px;
    padding: 40px 0 220px;
}

.offerings-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 120px;
    will-change: transform;
}

.offerings-col-a {
    transform: translate3d(0, var(--col-a, 0px), 0);
}

/* Right column starts lower, so the spread reads as staggered */
.offerings-col-b {
    margin-top: 180px;
    transform: translate3d(0, var(--col-b, 0px), 0);
}

.offering-media {
    aspect-ratio: 5 / 4;
    margin-bottom: 30px;
    background: #e8eee6;
}

.offering-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Oversized so the photo can slide inside its leaf frame */
    scale: 1.42;
    translate: 0 var(--img-shift, 0px);
    transition: scale 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.offering:hover .offering-media img {
    scale: 1.48;
}

.offering-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Means", Georgia, serif;
    font-weight: 300;
    font-size: clamp(25px, 2.2vw, 31px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #12291a;
    margin-bottom: 14px;
}

.offering-title .icon {
    width: 24px;
    height: 24px;
    color: #4f7a52;
}

.offering-desc {
    font-size: 16px;
    line-height: 1.65;
    color: #4b6352;
    max-width: 34em;
    margin-bottom: 20px;
}

.offering-tags {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.offering-tags li {
    font-size: 13px;
    font-weight: 500;
    color: #2f4a37;
    padding: 6px 12px;
    border: 1px solid rgba(18, 41, 26, 0.14);
    border-radius: 10px 2px 10px 2px; /* tiny leaf */
}

.offering-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #12291a;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1.5px solid #ebb042;
}

.offering-link .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.offering-link:hover .icon {
    transform: translateX(4px);
}

/* --- Why Cabra: dark canopy over gold growth rings --- */

.home-why {
    position: relative;
    background: #12291a;
    color: #f1f5ec;
    padding: 140px 0;
    overflow: hidden;
    isolation: isolate;
}

.home-why::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/files/images/pattern-cabra-gold.svg") 40px 40px / 320px repeat;
    opacity: 0.34;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at bottom left, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 80% at bottom left, #000 0%, transparent 75%);
    z-index: -1;
    pointer-events: none;
}

.home-why-inner {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 88px;
    align-items: start;
}

.home-why-intro {
    position: sticky;
    top: 130px;
}

.home-why .home-h2 {
    color: #f1f5ec;
    margin-bottom: 22px;
}

.home-why-lead {
    font-size: 17px;
    line-height: 1.65;
    color: #b9cbb9;
    max-width: 26em;
}

.home-why-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 56px;
}

.why-item {
    padding: 36px 0 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.why-badge {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border: 1px solid rgba(235, 176, 66, 0.45);
    border-radius: 22px 4px 22px 4px; /* leaf */
    color: #ebb042;
}

.why-badge .icon {
    width: 24px;
    height: 24px;
}

.why-item-title {
    font-family: "Means", Georgia, serif;
    font-weight: 300;
    font-size: 25px;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 12px;
}

.why-item-desc {
    font-size: 15.5px;
    line-height: 1.65;
    color: #b9cbb9;
}

/* --- Testimonials: one featured voice --- */

.home-voices {
    position: relative;
    background: #f3f6f1;
    padding: 130px 0;
    overflow: hidden;
}

.home-voices::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    background: url("/files/images/pattern-cabra-green.svg") 120px 60px / 320px repeat;
    opacity: 0.3;
    -webkit-mask-image: radial-gradient(ellipse at right center, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse at right center, #000 0%, transparent 72%);
    pointer-events: none;
}

.home-voices-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 88px;
    align-items: start;
}

.voices-stage {
    display: grid;
}

/* All quotes share one grid cell so switching never changes the height */
.voice {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.5s;
}

.voice.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
}

.voice-quote {
    margin: 0 0 36px;
    font-family: "Means", Georgia, serif;
    font-weight: 300;
    font-size: clamp(24px, 2.5vw, 36px);
    line-height: 1.32;
    letter-spacing: -0.01em;
    color: #12291a;
    text-wrap: pretty;
}

.voice-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.voice-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: #12291a;
    color: #ebb042;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 22px 4px 22px 4px; /* leaf */
}

.voice-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #12291a;
}

.voice-role {
    display: block;
    font-size: 14px;
    color: #4b6352;
}

.voices-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(18, 41, 26, 0.12);
}

.voices-btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(18, 41, 26, 0.2);
    border-radius: 9999px;
    background: transparent;
    color: #12291a;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.voices-btn:hover {
    background: #12291a;
    border-color: #12291a;
    color: #ffffff;
}

.voices-btn .icon {
    width: 18px;
    height: 18px;
}

.voices-count {
    font-size: 14px;
    color: #4b6352;
    font-variant-numeric: tabular-nums;
}

/* --- FAQ: ruled list instead of boxes --- */

.faq-ruled {
    background: #ffffff;
    padding: 130px 24px;
}

.faq-ruled .faq-layout {
    max-width: 1240px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 88px;
}

.faq-ruled .section-title {
    font-size: clamp(34px, 3.8vw, 56px);
    line-height: 1.04;
    margin-bottom: 20px;
}

.faq-ruled .faq-accordion-list {
    gap: 0;
    border-bottom: 1px solid rgba(18, 41, 26, 0.12);
}

.faq-ruled .faq-item,
.faq-ruled .faq-item.active {
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(18, 41, 26, 0.12);
    border-radius: 0;
    box-shadow: none;
}

.faq-ruled .faq-question {
    padding: 26px 0;
    font-family: "Means", Georgia, serif;
    font-weight: 300;
    font-size: 21px;
    line-height: 1.3;
    color: #12291a;
}

.faq-ruled .faq-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(18, 41, 26, 0.18);
    border-radius: 14px 3px 14px 3px; /* leaf */
    font-family: "Graphik", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #12291a;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.faq-ruled .faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: #ebb042;
    border-color: #ebb042;
}

.faq-ruled .faq-answer {
    padding: 0;
}

.faq-ruled .faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: #4b6352;
    max-width: 42em;
}

/* --- Responsive --- */

@media (max-width: 990px) {
    .home-offerings,
    .home-why,
    .home-voices,
    .faq-ruled {
        padding-top: 96px;
        padding-bottom: 96px;
    }
    .home-offerings-intro,
    .home-why-inner,
    .home-voices-inner,
    .faq-ruled .faq-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .home-offerings-intro {
        margin-bottom: 64px;
    }
    .home-why-intro,
    .faq-ruled .faq-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    /* One column in reading order: the column wrappers step aside */
    .home-offerings-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 72px;
        padding: 0;
    }
    .offerings-col {
        display: contents;
    }
    .offering {
        order: var(--order);
    }
    .home-why-list {
        grid-template-columns: 1fr;
    }
    .home-offerings::before,
    .home-voices::before {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .home-wrap {
        padding: 0 16px;
    }
    .faq-ruled {
        padding-left: 16px;
        padding-right: 16px;
    }
    .faq-ruled .faq-question {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .offering-media img,
    .voice,
    .voice.is-active {
        transition: none;
    }
}
