/* Page-owned styles for Gatherings page */

/* Hero */
.gatherings-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-deep-graphite);
}

.gatherings-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gatherings-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: gatheringsHeroZoom 1.2s ease-out both;
}

@keyframes gatheringsHeroZoom {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1);
    }
}

.gatherings-hero__overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.15) 100%);
    padding: var(--space-8) 0;
}

.gatherings-hero__content {
    width: min(600px, 100%);
    padding-inline: var(--container-padding);
    margin-inline: auto;
    color: var(--color-chalk-white);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
}

.gatherings-hero__eyebrow {
    color: var(--color-graphite-light);
    margin-block-end: 0;
}

.gatherings-hero__title {
    color: var(--color-chalk-white);
    font-size: var(--text-display);
    line-height: var(--leading-display);
    max-width: 10ch;
    margin-block-end: 0;
}

.gatherings-hero__lead {
    color: var(--color-graphite-light);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    max-width: 40ch;
    margin-block-end: 0;
}

.gatherings-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-block-start: var(--space-2);
}

.gatherings-hero__cta {
    min-width: 200px;
}

/* Why Gather Here */
.why-gather {
    padding-block: var(--space-8) var(--space-7);
    background-color: var(--color-sand);
}

.why-gather__intro {
    max-width: 720px;
    margin-block-end: var(--space-6);
}

.why-gather__lead {
    max-width: 60ch;
}

.why-gather__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
}

.why-gather__item {
    background-color: var(--color-chalk-white);
    border: var(--border-default);
    border-radius: var(--radius-medium);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
}

.why-gather__icon {
    color: var(--color-eucalyptus-green);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-small);
    background-color: rgba(74, 107, 90, 0.08);
}

.why-gather__item h3 {
    margin-block-end: 0;
}

.why-gather__item p {
    max-width: 38ch;
    margin-block-end: 0;
}

/* Gathering Types */
.gathering-types {
    padding-block: var(--space-8) var(--space-7);
    background-color: var(--color-chalk-white);
}

.gathering-types__intro {
    max-width: 720px;
    margin-block-end: var(--space-6);
}

.gathering-types__lead {
    max-width: 60ch;
}

.gathering-types__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
}

.gathering-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-chalk-white);
    border: 1px solid var(--color-sand-dark);
    border-radius: var(--radius-medium);
    overflow: hidden;
    min-width: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gathering-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--color-shadow-soft);
}

.gathering-card__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-sand);
}

.gathering-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gathering-card:hover .gathering-card__image {
    transform: scale(1.02);
}

.gathering-card__body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex: 1;
}

.gathering-card__body h3 {
    margin-block-end: 0;
}

.gathering-card__body p {
    max-width: 38ch;
    margin-block-end: 0;
}

.gathering-card__link {
    margin-block-start: auto;
    font-weight: 500;
    text-decoration: none;
}

.gathering-card__link:hover {
    text-decoration: underline;
    text-decoration-color: var(--color-clay);
}

/* Spaces */
.spaces {
    padding-block: var(--space-8) var(--space-7);
    background-color: var(--color-sand);
}

.spaces__intro {
    max-width: 720px;
    margin-block-end: var(--space-6);
}

.spaces__lead {
    max-width: 60ch;
}

.spaces__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
    align-items: center;
    margin-block-end: var(--space-7);
}

.spaces__row:last-child {
    margin-block-end: 0;
}

.spaces__row--reverse .spaces__media {
    order: 1;
}

.spaces__row--reverse .spaces__content {
    order: 2;
}

.spaces__media {
    min-width: 0;
}

.spaces__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-none);
}

.spaces__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.spaces__content h3 {
    margin-block-end: 0;
}

.spaces__content p {
    max-width: 50ch;
    margin-block-end: 0;
}

.spaces__list {
    list-style: none;
    padding-inline-start: 0;
    margin-block-end: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.spaces__list li {
    position: relative;
    padding-inline-start: var(--space-4);
}

.spaces__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-clay);
}

/* Themed Details */
.themed-details {
    padding-block: var(--space-8) var(--space-7);
    background-color: var(--color-chalk-white);
}

.themed-details__intro {
    max-width: 720px;
    margin-block-end: var(--space-6);
}

.themed-details__lead {
    max-width: 60ch;
}

.themed-details__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
}

.themed-details__item {
    background-color: var(--color-sand);
    border: var(--border-default);
    border-radius: var(--radius-medium);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
}

.themed-details__icon {
    color: var(--color-clay);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-small);
    background-color: rgba(201, 123, 90, 0.1);
}

.themed-details__item h3 {
    margin-block-end: 0;
}

.themed-details__item p {
    max-width: 38ch;
    margin-block-end: 0;
}

/* Testimonials */
.testimonials {
    padding-block: var(--space-8) var(--space-7);
    background-color: var(--color-sand);
}

.testimonials__intro {
    max-width: 720px;
    margin-block-end: var(--space-6);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.testimonial-card {
    background-color: var(--color-chalk-white);
    border: var(--border-default);
    border-radius: var(--radius-medium);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
    margin-block-end: 0;
}

.testimonial-card blockquote {
    margin-block-end: 0;
    padding-inline-start: 0;
    border-inline-start: none;
    font-style: normal;
    color: var(--color-deep-graphite);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    max-width: 50ch;
}

.testimonial-card blockquote::before {
    content: "\201C";
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--color-clay);
    display: block;
    margin-block-end: var(--space-2);
}

.testimonial-card figcaption {
    margin-block-start: 0;
    font-weight: 500;
    color: var(--color-sand-dark);
}

/* Plan CTA */
.plan-cta {
    background-color: var(--color-eucalyptus-green);
    padding-block: var(--space-8);
    color: var(--color-chalk-white);
}

.plan-cta__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
}

.plan-cta__eyebrow {
    color: var(--color-graphite-light);
    margin-block-end: 0;
}

.plan-cta h2 {
    color: var(--color-chalk-white);
    margin-block-end: 0;
}

.plan-cta__text {
    color: var(--color-graphite-light);
    max-width: 50ch;
    margin-block-end: 0;
}

.plan-cta__text a {
    color: var(--color-chalk-white);
    text-decoration: underline;
    text-decoration-color: var(--color-clay);
}

.plan-cta__text a:hover {
    color: var(--color-clay);
    text-decoration-color: var(--color-clay);
}

.plan-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    margin-block-start: var(--space-2);
}

.plan-cta__btn {
    background-color: var(--color-chalk-white);
    color: var(--color-eucalyptus-green);
    min-width: 220px;
}

.plan-cta__btn:hover {
    background-color: var(--color-graphite-light);
    color: var(--color-eucalyptus-green);
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
    .why-gather__grid,
    .gathering-types__grid,
    .themed-details__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gathering-types__grid .gathering-card:last-child {
        grid-column: span 2;
    }

    .spaces__row {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .spaces__row--reverse .spaces__media {
        order: 0;
    }

    .spaces__row--reverse .spaces__content {
        order: 0;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .gatherings-hero {
        min-height: 60vh;
    }

    .gatherings-hero__overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 100%);
        padding: var(--space-6) 0;
    }

    .gatherings-hero__content {
        padding-inline: var(--container-padding);
        gap: var(--space-3);
    }

    .gatherings-hero__title {
        font-size: clamp(2rem, 8vw, 2.75rem);
        max-width: 100%;
    }

    .gatherings-hero__lead {
        max-width: 100%;
    }

    .gatherings-hero__actions {
        width: 100%;
    }

    .gatherings-hero__cta {
        width: 100%;
    }

    .why-gather,
    .gathering-types,
    .spaces,
    .themed-details,
    .testimonials,
    .plan-cta {
        padding-block: var(--space-6);
    }

    .why-gather__grid,
    .gathering-types__grid,
    .themed-details__grid,
    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .gathering-types__grid .gathering-card:last-child {
        grid-column: auto;
    }

    .spaces__row {
        gap: var(--space-4);
        margin-block-end: var(--space-6);
    }

    .spaces__image {
        aspect-ratio: 4 / 3;
    }

    .plan-cta__actions {
        width: 100%;
    }

    .plan-cta__btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gatherings-hero__image {
        animation: none;
    }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
