/* Explain: Styles for UI components like buttons, cards, and header elements. */
.site-header {
    background: linear-gradient(180deg, rgba(247, 245, 236, 0.94), rgba(247, 245, 236, 0.62));
    backdrop-filter: blur(18px);
}

/* Logo-ring accent running along the bottom edge of the fixed header */
.site-header::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: var(--brand-gradient);
    content: "";
    opacity: 0.9;
    pointer-events: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.35rem;
    background: #ffffff;
    padding: 0.5rem 0.9rem;
    box-shadow: 0 16px 38px rgba(20, 41, 75, 0.12);
    transition: box-shadow 300ms ease, transform 300ms ease;
}

.brand-mark:hover {
    box-shadow: 0 18px 42px rgba(20, 41, 75, 0.14);
    transform: translateY(-1px);
}

.brand-mark img {
    display: block;
    height: 4.4rem;
    width: auto;
    max-width: 16rem;
    object-fit: contain;
}

@media (min-width: 640px) {
    .brand-mark img {
        height: 6.2rem;
        max-width: 22rem;
    }
}

@media (min-width: 1024px) {
    .brand-mark img {
        height: 7rem;
        max-width: 26rem;
    }
}

/* Header lockup: the logo with the club-management line beneath it */
.brand-mark--feature {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
}

.brand-mark__sub {
    display: none;
    color: var(--logo-subtitle-color);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    line-height: 1;
    text-transform: uppercase;
}

@media (min-width: 640px) {
    .brand-mark__sub {
        display: block;
    }
}

.brand-mark--lg img {
    height: 2.2rem;
}

@media (min-width: 640px) {
    .brand-mark--lg img {
        height: 3rem;
    }
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 3px;
    border-radius: 999px;
    background: var(--brand-gradient);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(20, 41, 75, 0.18);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    height: min(74vh, 700px);
    min-height: 500px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.floating-note {
    position: absolute;
    right: -1rem;
    bottom: 4rem;
    display: flex;
    max-width: 260px;
    align-items: center;
    gap: 0.85rem;
    border-radius: 1.6rem;
    padding: 1rem 1.2rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.5;
}

.feature-card,
.role-card,
.step-card,
.quote-card {
    border-radius: 2.2rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.feature-card:hover,
.role-card:hover,
.step-card:hover,
.quote-card:hover {
    border-color: rgba(15, 127, 118, 0.45);
    box-shadow: 0 26px 70px rgba(20, 41, 75, 0.12);
    transform: translateY(-6px);
}

.feature-icon {
    display: inline-flex;
    width: 3.2rem;
    height: 3.2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    box-shadow: inset 0 0 0 1.5px rgba(23, 179, 190, 0.38);
    font-size: 1.05rem;
}

.step-number {
    display: inline-block;
    background: var(--brand-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1;
}

.quote-stars {
    display: inline-flex;
    gap: 0.25rem;
    color: var(--accent-warm);
    font-size: 0.75rem;
}

.amenity-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 1.25rem;
}

.amenity-dot {
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 0 0.45rem var(--sage-soft);
}

.message-panel {
    border-radius: 2.4rem;
    padding: clamp(1.4rem, 4vw, 1.9rem);
}

.chip {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    border-radius: 999px;
    background: var(--sage-soft);
    padding: 0.4rem 0.75rem;
    color: var(--sage-dark);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bubble {
    max-width: 88%;
    border-radius: 1.4rem;
    padding: 0.85rem 1.1rem;
    font-size: 0.86rem;
    line-height: 1.6;
}

.bubble-out {
    margin-left: auto;
    border-bottom-right-radius: 0.4rem;
    background: var(--primary-color);
    color: #ffffff;
}

.bubble-in {
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-muted);
}

.poll-card {
    margin-top: 1.35rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 1.1rem;
}

.poll-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5.5rem 1.75rem;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.7rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.poll-track {
    display: block;
    height: 0.4rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--sage-soft);
}

.poll-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--accent-color);
}

.booking-form,
.booking-overlay-panel {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status {
    min-height: 1.25rem;
}

.form-status.success {
    color: #0F7F76;
}

.form-status.error {
    color: #A6402F;
}

.mobile-book-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(247, 245, 236, 0.92);
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

.booking-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    overflow-y: auto;
    background: rgba(20, 41, 75, 0.35);
    padding: 1rem;
}

.booking-overlay.is-open {
    display: block;
}

.booking-overlay-panel {
    min-height: calc(100vh - 2rem);
    background: var(--background-color);
    box-shadow: 0 30px 90px rgba(20, 41, 75, 0.24);
}

.btn-brand {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--primary-color);
    padding: 0.85rem 2rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: center;
    box-shadow: var(--shadow-button);
    transition: background-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.btn-brand:hover {
    background: var(--accent-color);
    box-shadow: 0 18px 40px rgba(15, 127, 118, 0.28);
    transform: translateY(-2px);
}

.btn-brand[disabled] {
    cursor: progress;
    opacity: 0.65;
    transform: none;
}

.btn-brand--sm {
    min-height: 2.6rem;
    padding: 0.55rem 1.5rem;
    font-size: 0.84rem;
}

.btn-outline {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    padding: 0.85rem 2rem;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    transition: border-color 300ms ease, color 300ms ease, background-color 300ms ease, transform 300ms ease;
}

.btn-outline:hover {
    border-color: var(--accent-color);
    background: #ffffff;
    color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-brand:focus-visible,
.btn-outline:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.app-shot-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 6 / 13;
    border: 1px solid var(--border-color);
    border-radius: 1.8rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large {
        min-height: 0;
        height: 470px;
        width: min(100%, 420px);
        margin-right: auto;
        margin-left: auto;
    }

    .floating-note {
        position: relative;
        right: auto;
        bottom: auto;
        max-width: 300px;
        margin: -2.2rem auto 0;
    }

    .bubble {
        max-width: 94%;
    }

    .poll-option {
        grid-template-columns: minmax(0, 1fr) 4rem 1.5rem;
        gap: 0.5rem;
    }

    .app-badge img {
        width: 3.1rem;
        height: 3.1rem;
        border-radius: 1.1rem;
    }

    .app-badge--float {
        left: 0.85rem;
        bottom: 0.85rem;
    }
}

/* Square app icon taken from the brand logo */
.app-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.6rem;
    background: #ffffff;
    padding: 0.3rem;
    box-shadow: 0 18px 44px rgba(10, 43, 78, 0.22);
}

.app-badge img {
    display: block;
    width: 4rem;
    height: 4rem;
    border-radius: 1.35rem;
    object-fit: cover;
}

.app-badge--float {
    position: absolute;
    left: -0.75rem;
    bottom: 5.5rem;
    z-index: 2;
}

.app-badge--inline img {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1.1rem;
}

/* Legal / privacy policy cards */
.policy-card {
    border-radius: 2rem;
    padding: clamp(1.4rem, 3.5vw, 2.25rem);
}

.policy-num {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    box-shadow: inset 0 0 0 1.5px rgba(23, 179, 190, 0.32);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
}

.policy-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.policy-list li {
    position: relative;
    padding-left: 1.35rem;
}

.policy-list li::before {
    position: absolute;
    top: 0.85rem;
    left: 0;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: var(--accent-color);
    content: "";
}