/* Malmesbury Golf Club - Membership page (base / desktop) */

/* ============ HERO ============ */
.members-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(680px, 84vh);
    overflow: hidden;
    color: #fff;
}

.members-hero-image,
.members-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.members-hero-image {
    object-fit: cover;
    object-position: center 48%;
}

.members-hero-shade {
    background:
        linear-gradient(90deg, rgba(2, 20, 14, 0.88) 0%, rgba(2, 20, 14, 0.55) 55%, rgba(2, 20, 14, 0.22) 100%),
        linear-gradient(rgba(0, 0, 0, 0) 55%, rgba(2, 20, 14, 0.72) 100%);
}

.members-hero-content {
    position: relative;
    z-index: 2;
    padding: clamp(90px, 12vw, 160px) 0 clamp(80px, 10vw, 120px);
}

.members-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(50px, 6.2vw, 98px);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.members-hero-copy {
    max-width: 620px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 17px;
    line-height: 1.7;
}

/* ============ BENEFITS BAND ============ */
.benefits-band {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(24px, 4vw, 70px);
    padding: 36px clamp(24px, 7vw, 112px);
    background: var(--gold);
    color: #17241f;
}

.benefits-number {
    font-family: var(--font-display);
    font-size: 74px;
    line-height: 0.8;
}

.benefits-band p {
    max-width: 800px;
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
}

.benefits-band a {
    white-space: nowrap;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.45);
    font-size: 14px;
    font-weight: 800;
}

/* ============ CATEGORIES ============ */
.members-section {
    background: var(--forest-deep);
    color: #fff;
    padding: clamp(90px, 10vw, 150px) 0;
}

.members-section h2,
.join-section h2,
.members-cta h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(44px, 5vw, 78px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.03;
}

.members-side-copy {
    max-width: 440px;
    margin: 0 0 5px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 15px;
    line-height: 1.75;
}

.members-section .section-heading {
    margin-bottom: clamp(34px, 4vw, 58px);
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.membership-grid article {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 350px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease;
}

.membership-grid article:hover {
    background: rgba(255, 255, 255, 0.07);
}

.membership-grid article.featured-membership,
.membership-grid article.featured-membership:hover {
    background: var(--gold);
    color: #15231e;
}

.popular-tag {
    position: absolute;
    top: 22px;
    right: 22px;
    padding: 8px 10px;
    background: var(--forest);
    color: #fff;
    border-radius: 999px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 9px;
    font-weight: 800;
}

.member-name {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 13px;
    font-weight: 750;
}

.featured-membership .member-name {
    color: rgba(21, 35, 30, 0.65);
}

.membership-grid strong {
    margin-top: 27px;
    font-family: var(--font-display);
    font-size: 47px;
    font-weight: 400;
    letter-spacing: -0.04em;
}

.per-year {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
}

.featured-membership .per-year {
    color: rgba(21, 35, 30, 0.6);
}

.member-detail {
    margin: 28px 0 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.6;
}

.featured-membership .member-detail {
    color: rgba(21, 35, 30, 0.75);
}

.entry-fee {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
}

.featured-membership .entry-fee {
    color: rgba(21, 35, 30, 0.6);
}

.membership-grid article > a {
    align-self: flex-start;
    margin-top: 18px;
    padding: 12px 0 7px;
    border-bottom: 1px solid;
    color: inherit;
    font-size: 13px;
    font-weight: 800;
}

.membership-note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: 24px;
}

.membership-note p {
    max-width: 850px;
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    line-height: 1.65;
}

.membership-all {
    flex: none;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.membership-all:hover {
    background: rgba(255, 255, 255, 0.07);
}

/* ============ HOW TO JOIN ============ */
.join-section {
    padding-block: clamp(80px, 9vw, 140px);
}

.join-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 48px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.join-grid article {
    min-height: 280px;
    padding: 30px;
    background: #fff;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.join-grid span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
}

.join-grid h3 {
    margin: 44px 0 12px;
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 400;
}

.join-grid p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

/* ============ CTA ============ */
.members-cta {
    background: var(--gold);
    padding: clamp(70px, 8vw, 110px) 0;
}

.members-cta .eyebrow {
    color: rgba(20, 34, 29, 0.63);
}

.members-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.members-cta-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}


@media (max-width: 1024px) {
    .membership-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .join-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 980px) {
    .members-cta-inner,
    .membership-note {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .members-hero {
        min-height: 600px;
    }

    .members-hero h1 {
        font-size: clamp(44px, 13vw, 62px);
    }

    .members-hero-copy {
        font-size: 15px;
    }

    .benefits-band {
        grid-template-columns: auto 1fr;
        gap: 18px;
        padding: 26px 24px;
    }

    .benefits-number {
        font-size: 54px;
    }

    .benefits-band p {
        font-size: 13px;
    }

    .benefits-band a {
        grid-column: 2;
        justify-self: start;
    }

    .members-section h2,
    .join-section h2,
    .members-cta h2 {
        font-size: 42px;
    }

    .membership-grid,
    .join-grid {
        grid-template-columns: 1fr;
    }

    .membership-grid article {
        min-height: 310px;
    }

    .join-grid article {
        min-height: 230px;
    }
}
