/* Explain: Component styles for reusable elements like cards and forms. */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-dark);
}

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

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--secondary-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

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

.arch-frame-medium {
    height: 620px;
    max-width: 450px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.quiet-detail,
.amenity-row,
.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: var(--surface-color);
    padding: 1.25rem;
}

.quiet-detail span {
    display: inline-flex;
    margin-bottom: 0.9rem;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

.quiet-detail p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.class-card {
    min-height: 360px;
    border-radius: 2.2rem;
    padding: 2rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.class-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 26px 80px rgba(18, 60, 105, 0.11);
    transform: translateY(-6px);
}

.amenity-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.amenity-dot {
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: var(--secondary-color);
}

.amenity-image-wrap {
    height: 660px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 3rem 999px 999px 3rem;
    box-shadow: var(--shadow-soft);
}

.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-heading);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status.success { color: var(--primary-color); }
.form-status.error { color: #9B4A3D; }

.mobile-book-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    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(15, 30, 48, 0.6);
    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(15, 30, 48, 0.4);
}

/* Diagonal cut for Founder Photo */
.clip-diagonal {
    clip-path: polygon(3.5rem 0, 100% 0, 100% calc(100% - 3.5rem), calc(100% - 3.5rem) 100%, 0 100%, 0 3.5rem);
}

.service-marquee-section {
    display: flex;
    align-items: center;
    min-height: clamp(9.5rem, 14vw, 13rem);
}

.service-marquee {
    width: 100%;
    overflow: hidden;
    contain: layout paint;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.service-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    animation: service-marquee-scroll 32s linear infinite;
}

.service-marquee:hover .service-marquee-track {
    animation-play-state: paused;
}

.service-marquee-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    white-space: nowrap;
}

.service-marquee-item {
    display: inline-flex;
    align-items: center;
    padding-inline: clamp(1.8rem, 3vw, 3.1rem);
    color: var(--header-text);
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.8vw, 3.6rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1;
    transition: color 260ms ease;
}

.service-marquee-item:hover {
    color: var(--secondary-color);
}

.service-marquee-separator {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    line-height: 1;
}

@keyframes service-marquee-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-33.333%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-marquee-track {
        animation-duration: 1ms;
        animation-iteration-count: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 1023px) {
    .service-marquee-section {
        min-height: 10.5rem;
        padding-top: 3.75rem;
        padding-bottom: 3.75rem;
    }

    .service-marquee-track {
        animation-duration: 42s;
    }

    .service-marquee-item {
        padding-inline: 1.8rem;
        font-size: clamp(1.45rem, 4.8vw, 2.35rem);
        letter-spacing: -0.025em;
    }

    .service-marquee-separator {
        font-size: 1.05rem;
    }
}

@media (max-width: 767px) {
    .section-kicker::before { width: 1.6rem; }
    .arch-frame-large, .arch-frame-medium, .amenity-image-wrap {
        height: 510px;
        min-height: 0;
    }
    .arch-frame-large {
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 450px);
    }
    .amenity-image-wrap {
        border-radius: 999px 999px 2rem 2rem;
    }
}
