/* Home Eleven — static component CSS (no Tailwind rebuild required) */

/*
 * Tailwind utilities missing from output.css (standard spacing scale: 1 unit = 0.25rem)
 * Use these class names in blades when the compiled build does not include them.
 */
.pt-14 {
    padding-top: 3.5rem;
}
.pb-14 {
    padding-bottom: 3.5rem;
}
.py-14 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}
.pb-28 {
    padding-bottom: 7rem;
}

@media (min-width: 768px) {
    .md\:mb-8 {
        margin-bottom: 2rem;
    }
    .md\:mt-16 {
        margin-top: 4rem;
    }
    .md\:gap-8 {
        gap: 2rem;
    }
    .md\:pb-48 {
        padding-bottom: 12rem;
    }
    .md\:space-y-10 > :not([hidden]) ~ :not([hidden]) {
        --tw-space-y-reverse: 0;
        margin-top: calc(2.5rem * calc(1 - var(--tw-space-y-reverse)));
        margin-bottom: calc(2.5rem * var(--tw-space-y-reverse));
    }
}

@media (min-width: 1024px) {
    .lg\:mt-32 {
        margin-top: 8rem;
    }
}

/* Home page — consistent section spacing (Tailwind pt-4 → pt-14) */
.he11-home {
    padding-bottom: 1rem;
}

.he11-home > .he11-home-section {
    padding-top: 1rem;
}

.he11-home > .he11-home-section:last-child {
    padding-bottom: 1rem;
}

.he11-home > .he11-home-section--mission {
    padding-top: 0;
    padding-bottom: 0;
}

/* Mission — body below SVG hero overlaps curve on mobile */
.he11-mission-body {
    position: relative;
    z-index: 10;
}

@media (max-width: 767px) {
    .he11-mission-body {
        margin-top: -4rem;
    }

    .he11-hero-wave__footer {
        margin-top: 1.5rem;
    }
}

@media (min-width: 640px) {
    .he11-home > .he11-home-section {
        padding-top: 1.5rem;
    }

    .he11-home > .he11-home-section:last-child {
        padding-bottom: 1.5rem;
    }

    .he11-mission-body {
        margin-top: 0;
    }
}

@media (min-width: 768px) {
    .he11-home > .he11-home-section {
        padding-top: 2.5rem;
    }

    .he11-home > .he11-home-section:last-child {
        padding-bottom: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .he11-home > .he11-home-section {
        padding-top: 3.5rem;
    }

    .he11-home > .he11-home-section:last-child {
        padding-bottom: 3.5rem;
    }
}

/* Homepage hero — triple image gallery */
.he11-hero-section {
    overflow: visible;
    /* Clear fixed transparent header (logo + nav ~80px) */
    padding-top: 5.75rem;
}

.he11-hero-section .he11-hero-title {
    padding-top: 0.25rem;
}

.he11-hero-gallery {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 270px;
    margin: 1.5rem auto 0;
    padding: 0 1rem;
    z-index: 10;
    pointer-events: none;
    overflow: visible;
}

.he11-hero-gallery__card {
    position: absolute;
    top: 0;
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
}

.he11-hero-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Center — taller to reach the curve */
.he11-hero-gallery__card--center {
    left: 50%;
    width: 38%;
    aspect-ratio: 3 / 4.65;
    transform: translateX(-50%) translateY(1.75rem);
    transform-origin: center bottom;
    z-index: 30;
}

/* Sides — taller so rotated bottoms still reach the curve */
.he11-hero-gallery__card--left {
    left: 4%;
    width: 40%;
    aspect-ratio: 3 / 4.85;
    transform: rotate(-9deg) translateY(1.75rem);
    transform-origin: 50% 100%;
    z-index: 10;
}

.he11-hero-gallery__card--right {
    right: 4%;
    width: 40%;
    aspect-ratio: 3 / 4.85;
    transform: rotate(9deg) translateY(1.75rem);
    transform-origin: 50% 100%;
    z-index: 20;
}

/* Wave overlaps image bottoms */
.he11-hero-wave {
    position: relative;
    width: 100%;
    margin-top: -5rem;
    z-index: 20;
}

.he11-hero-wave__svg {
    display: block;
    width: 100%;
    height: 7.5rem;
}

.he11-hero-wave__body {
    width: 100%;
    margin-top: -1px;
    padding-bottom: 2.5rem;
}

.he11-hero-wave__footer {
    padding-bottom: 1rem;
}

@media (min-width: 640px) {
    .he11-hero-section {
        padding-top: 6.25rem;
    }

    .he11-hero-wave__body {
        padding-bottom: 3.5rem;
    }

    .he11-hero-wave__footer {
        padding-bottom: 1.25rem;
    }
}

@media (min-width: 768px) {
    .he11-hero-section {
        padding-top: 6.5rem;
    }

    .he11-hero-wave__body {
        padding-bottom: 5.5rem;
    }

    .he11-hero-wave__footer {
        padding-bottom: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .he11-hero-section {
        padding-top: 7.25rem;
    }

    .he11-hero-wave__body {
        padding-bottom: 7rem;
    }
}

@media (min-width: 640px) {
    .he11-hero-gallery {
        height: 430px;
    }

    .he11-hero-gallery__card {
        border-radius: 1rem 1rem 0 0;
    }

    .he11-hero-gallery__card--left {
        left: 10%;
        width: 42%;
        aspect-ratio: 3 / 4.9;
        transform: rotate(-9deg) translateY(2.25rem);
    }

    .he11-hero-gallery__card--center {
        width: 40%;
        aspect-ratio: 3 / 4.75;
        transform: translateX(-50%) translateY(2.25rem);
    }

    .he11-hero-gallery__card--right {
        right: 10%;
        width: 42%;
        aspect-ratio: 3 / 4.9;
        transform: rotate(9deg) translateY(2.25rem);
    }

    .he11-hero-wave {
        margin-top: -7.5rem;
    }

    .he11-hero-wave__svg {
        height: 11.25rem;
    }
}

@media (min-width: 768px) {
    .he11-hero-gallery {
        height: 510px;
        margin-top: 3rem;
    }

    .he11-hero-gallery__card {
        border-radius: 2rem 2rem 0 0;
    }

    .he11-hero-gallery__card--left {
        left: 12%;
        width: 36%;
        aspect-ratio: 3 / 4.75;
        transform: rotate(-9deg) translateY(2.75rem);
    }

    .he11-hero-gallery__card--center {
        width: 34%;
        aspect-ratio: 3 / 4.6;
        transform: translateX(-50%) translateY(2.75rem);
    }

    .he11-hero-gallery__card--right {
        right: 12%;
        width: 36%;
        aspect-ratio: 3 / 4.75;
        transform: rotate(9deg) translateY(2.75rem);
    }

    .he11-hero-wave {
        margin-top: -11.25rem;
    }

    .he11-hero-wave__svg {
        height: 17.5rem;
    }
}

/* Mid-range phones / small tablets */
@media (min-width: 480px) and (max-width: 639px) {
    .he11-hero-gallery {
        height: 340px;
    }

    .he11-hero-gallery__card--left,
    .he11-hero-gallery__card--right {
        width: 41%;
        aspect-ratio: 3 / 5;
        transform: rotate(-9deg) translateY(2rem);
    }

    .he11-hero-gallery__card--right {
        transform: rotate(9deg) translateY(2rem);
    }

    .he11-hero-gallery__card--center {
        width: 39%;
        aspect-ratio: 3 / 4.85;
        transform: translateX(-50%) translateY(2rem);
    }

    .he11-hero-wave {
        margin-top: -6rem;
    }
}

/* Contact CTA — donate promo + form */
.he11-contact-cta__promo {
    min-height: 34rem;
    padding: 2.5rem 2rem 2rem;
}

.he11-contact-cta__promo-bg {
    display: block;
}

.he11-contact-cta__promo-img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: auto;
    height: 72%;
    max-width: 92%;
    max-height: 88%;
    object-fit: contain;
    object-position: bottom right;
    mix-blend-mode: luminosity;
}

.he11-contact-cta__promo-content {
    max-width: 20rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.he11-contact-cta__promo-title {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.he11-contact-cta__promo-desc {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(224, 242, 254, 0.92);
}

.he11-contact-cta__promo-action {
    padding-top: 0.5rem;
}

.he11-contact-cta__donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    border-radius: 0.5rem;
    background-color: rgb(var(--color-secondary));
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.he11-contact-cta__donate-btn:hover {
    background-color: rgb(var(--color-secondary-dark));
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    color: #fff;
}

.he11-contact-cta__donate-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background-color: #fff;
    color: rgb(var(--color-secondary));
    flex-shrink: 0;
}

.he11-contact-cta__donate-btn-icon svg {
    width: 1rem;
    height: 1rem;
}

.he11-contact-cta__form-panel {
    min-height: 34rem;
    padding: 2.5rem 2rem;
}

.he11-contact-cta__form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main, #333333);
    margin-bottom: 1.5rem;
}

.he11-contact-cta__form-panel button[type="submit"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 9999px;
    background-color: rgb(var(--color-secondary));
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: background-color 0.2s ease;
}

.he11-contact-cta__form-panel button[type="submit"]:hover {
    background-color: rgb(var(--color-secondary-dark));
}

@media (min-width: 640px) {
    .he11-contact-cta__promo {
        min-height: 36rem;
        padding: 2.75rem 2.5rem 2.25rem;
    }

    .he11-contact-cta__promo-content {
        max-width: 22rem;
    }

    .he11-contact-cta__promo-title {
        font-size: 2rem;
    }

    .he11-contact-cta__form-panel {
        min-height: 36rem;
        padding: 2.75rem 2.5rem;
    }
}

@media (min-width: 1024px) {
    .he11-contact-cta__promo {
        min-height: 38rem;
        padding: 3rem 2.5rem 2.5rem;
    }

    .he11-contact-cta__promo-img {
        height: 78%;
        max-width: 88%;
    }

    .he11-contact-cta__form-panel {
        min-height: 38rem;
        padding: 3rem 2.5rem;
    }

    .he11-contact-cta__donate-btn {
        padding: 0.625rem 0.625rem 0.625rem 1.75rem;
        font-size: 0.9375rem;
    }

    .he11-contact-cta__donate-btn-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .he11-contact-cta__donate-btn-icon svg {
        width: 1.125rem;
        height: 1.125rem;
    }
}

/* Success stories — 3-column mosaic grid */
.he11-stories-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.he11-stories-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
}

.he11-stories-intro {
    padding-bottom: 0.25rem;
    flex-shrink: 0;
}

.he11-stories-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0;
    min-height: 220px;
    text-decoration: none;
}

.he11-stories-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.he11-stories-card:hover .he11-stories-card__img {
    transform: scale(1.05);
}

.he11-stories-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem 1.5rem;
    color: #fff;
    background: linear-gradient(
        to top,
        rgb(var(--color-primary) / 0.92) 0%,
        rgb(var(--color-primary) / 0.45) 38%,
        transparent 72%
    );
    transition: background 0.3s ease;
}

.he11-stories-card:hover .he11-stories-card__overlay {
    background: linear-gradient(
        to top,
        rgb(var(--color-primary) / 0.98) 0%,
        rgb(var(--color-primary) / 0.55) 45%,
        transparent 78%
    );
}

.he11-stories-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.25rem;
}

.he11-stories-card--featured .he11-stories-card__title {
    font-size: 1.5rem;
}

.he11-stories-card__subtitle {
    font-size: 0.875rem;
    line-height: 1.4;
    opacity: 0.92;
    margin: 0 0 0.75rem;
}

.he11-stories-card__cta {
    font-size: 0.875rem;
    font-weight: 700;
    color: rgb(var(--color-secondary));
    transition: transform 0.2s ease;
}

.he11-stories-card:hover .he11-stories-card__cta {
    transform: translateX(0.35rem);
}

@media (min-width: 768px) {
    .he11-stories-layout {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        align-items: stretch;
        min-height: 38rem;
    }

    .he11-stories-col--lead {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        height: 100%;
    }

    .he11-stories-col--lead .he11-stories-card {
        flex: 1 1 0;
        min-height: 0;
    }

    .he11-stories-col--stack {
        display: grid;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        height: 100%;
    }

    .he11-stories-col--stack .he11-stories-card {
        min-height: 0;
        height: 100%;
    }
}

@media (min-width: 1024px) {
    .he11-stories-layout {
        min-height: 42rem;
        gap: 0.875rem;
    }

    .he11-stories-col,
    .he11-stories-col--lead,
    .he11-stories-col--stack {
        gap: 0.875rem;
    }
}

/* Footer */
.he11-footer {
    background-color: rgb(var(--color-primary));
    color: #fff;
    padding: 4rem 1.5rem 2rem;
}

.he11-footer__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.he11-footer__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.he11-footer__left {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-self: start;
}

.he11-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.he11-footer__logo-link {
    display: inline-flex;
    align-items: center;
}

.he11-footer__logo {
    width: auto;
    height: 2.5rem;
    max-width: 100%;
    filter: brightness(0) invert(1);
}

.he11-footer__about {
    max-width: 26rem;
    font-size: 0.8125rem;
    line-height: 1.7;
    opacity: 0.85;
    margin: 0;
}

.he11-footer__col-title {
    margin: 0 0 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.55;
}

.he11-footer__link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.he11-footer__link,
.he11-footer__contact-value {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.he11-footer__link:hover,
.he11-footer__contact-value:hover {
    color: rgb(var(--color-secondary));
    opacity: 1;
}

.he11-footer__contact-value {
    margin: 0;
}

.he11-footer__divider {
    display: none;
}

.he11-footer__right {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    align-self: start;
    width: 100%;
}

.he11-footer__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.he11-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0.95;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.he11-footer__social-link:hover {
    color: rgb(var(--color-secondary));
    opacity: 1;
    transform: translateY(-1px);
}

.he11-footer__right-body {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.he11-footer__tagline {
    margin: 0 0 1.25rem;
    font-size: clamp(0.925rem, 1.6vw, 1.425rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.he11-footer__address {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.65;
    opacity: 0.72;
    max-width: 24rem;
}

.he11-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.6875rem;
    font-weight: 500;
    opacity: 0.72;
}

.he11-footer__copyright {
    line-height: 1.5;
}

.he11-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.he11-footer__legal-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.he11-footer__legal-link:hover {
    color: #fff;
    opacity: 1;
}

.he11-footer__legal-sep {
    opacity: 0.45;
}

@media (min-width: 768px) {
    .he11-footer__left {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
        grid-template-rows: auto auto;
        column-gap: 2.5rem;
        row-gap: 2rem;
        align-items: start;
    }

    .he11-footer__brand {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .he11-footer__info {
        grid-column: 2;
        grid-row: 1;
    }

    .he11-footer__causes {
        grid-column: 3;
        grid-row: 1;
    }

    .he11-footer__phone {
        grid-column: 2;
        grid-row: 2;
    }

    .he11-footer__email {
        grid-column: 3;
        grid-row: 2;
    }
}

@media (min-width: 1024px) {
    .he11-footer {
        padding-left: 0;
        padding-right: 0;
    }

    .he11-footer__main {
        grid-template-columns: minmax(0, 1.15fr) 1px minmax(0, 0.85fr);
        gap: 3.5rem;
        align-items: start;
    }

    .he11-footer__left {
        align-self: start;
    }

    .he11-footer__divider {
        display: block;
        width: 1px;
        background: rgba(255, 255, 255, 0.2);
        align-self: stretch;
        justify-self: stretch;
        height: auto;
        min-height: 0;
    }

    .he11-footer__right {
        align-self: start;
        justify-content: flex-start;
        padding-top: 0;
    }

    .he11-footer__social {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 2;
        justify-content: flex-end;
        width: auto;
        margin: 0;
    }

    .he11-footer__right-body {
        padding-top: 0;
        padding-right: 8rem;
    }

    .he11-footer__tagline {
        margin-top: 0;
    }

    .he11-footer__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .he11-footer__legal {
        margin-left: auto;
        flex-shrink: 0;
    }
}