/* Malmesbury Golf Club - Rates page */

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

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

.rates-hero-image {
    object-fit: cover;
    object-position: center 55%;
}

.rates-hero-shade {
    background:
        linear-gradient(90deg, rgba(2, 20, 14, 0.86) 0%, rgba(2, 20, 14, 0.52) 55%, rgba(2, 20, 14, 0.2) 100%),
        linear-gradient(rgba(0, 0, 0, 0) 55%, rgba(2, 20, 14, 0.7) 100%);
}

.rates-hero-content {
    position: relative;
    z-index: 2;
    padding: clamp(90px, 12vw, 150px) 0 clamp(140px, 16vh, 180px);
}

.rates-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(52px, 6.6vw, 104px);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

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

.rates-hero-facts {
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(4, 30, 22, 0.52);
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.rates-hero-facts div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 106px;
    padding: 18px clamp(20px, 4vw, 64px);
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.rates-hero-facts div:last-child {
    border-right: 0;
}

.rates-hero-facts strong {
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 400;
}

.rates-hero-facts span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.62);
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 11px;
}

/* ============ RATE TABLES ============ */
.rates-page {
    padding-block: clamp(80px, 9vw, 140px);
}

.rates-page h2,
.rates-notes h2,
.rates-cta h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(42px, 4.6vw, 72px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.rate-toggle {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.rate-toggle button {
    min-height: 42px;
    padding: 8px 16px;
    background: none;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.rate-toggle button.active {
    background: var(--forest);
    color: #fff;
}

.tariff-note {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 38px;
    padding: 14px 18px;
    background: #efe9d8;
    color: #5d645f;
    font-size: 12px;
}

.tariff-note span {
    color: var(--forest);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 850;
}

.rate-period {
    margin: 40px 0 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 13px;
    font-weight: 750;
}

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

.rate-grid article {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    padding: 28px;
    background: #fff;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.rate-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.rate-grid span {
    color: #819087;
    font-size: 12px;
}

.rates-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: 34px;
}

.rates-footer p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ============ NOTES / FAQ ============ */
/* Green band: the tariff block above it is cream, so this section carries
   the forest background rather than sitting cream-on-cream. */
.rates-notes {
    background: var(--forest);
    color: #fff;
    padding-block: clamp(80px, 9vw, 140px);
}

.rates-notes-layout {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    gap: clamp(50px, 8vw, 120px);
}

.faq-list {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.faq-list details {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.faq-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    font-size: 15px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary span {
    color: var(--gold);
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.2s ease;
}

.faq-list details[open] summary span {
    transform: rotate(45deg);
}

.faq-list details p {
    max-width: 800px;
    margin: -4px 0 25px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
    line-height: 1.7;
}

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

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

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

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

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
    .rates-hero-facts {
        grid-template-columns: repeat(2, 1fr);
    }


    .rates-notes-layout {
        grid-template-columns: 1fr;
    }

    .rates-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .rates-hero-content {
        padding-bottom: 200px;
    }

    .rates-hero h1 {
        font-size: clamp(46px, 14vw, 66px);
    }

    .rates-hero-facts div {
        min-height: 82px;
        padding: 13px 24px;
    }

    .rates-hero-facts strong {
        font-size: 22px;
    }

    .rates-hero-facts span {
        font-size: 9px;
    }

    .rates-page h2,
    .rates-notes h2,
    .rates-cta h2 {
        font-size: 40px;
    }

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

    .rate-grid article {
        min-height: 156px;
        padding: 20px;
    }

    .rate-grid strong {
        font-size: 34px;
    }

    .tariff-note {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        line-height: 1.5;
    }

    .rates-footer {
        flex-direction: column;
        align-items: flex-start;
    }


}
