/* Explain: Styles for visual components like site header, cards, and forms. */
.site-header {
    background: linear-gradient(180deg, rgba(251, 246, 241, 0.92), rgba(243, 229, 221, 0.6));
    backdrop-filter: blur(18px);
}

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

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

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

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(156, 74, 55, 0.4);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft), 0 0 0 0.55rem rgba(255, 255, 255, 0.7), 0 0 0 0.68rem rgba(156, 74, 55, 0.26);
}

.arch-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}


.arch-frame-large {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    border-radius: 2rem;
}

.arch-frame-large img {
    object-position: 50% 50%;
}

.arch-frame-medium {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.arch-frame-medium img {
    object-fit: contain;
}

.floating-note {
    position: absolute;
    right: -1.5rem;
    bottom: 4rem;
    display: flex;
    max-width: 250px;
    align-items: center;
    gap: 0.85rem;
    border-radius: 999px;
    padding: 1rem 1.2rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.story-card {
    position: absolute;
    right: 0;
    bottom: 2.5rem;
    max-width: 290px;
    border-radius: 2rem;
    padding: 1.5rem;
}

.quiet-detail,
.amenity-row,
.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.58);
    padding: 1.25rem;
}

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

.quiet-detail p {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
    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: rgba(156, 74, 55, 0.62);
    box-shadow: 0 26px 80px rgba(31, 46, 35, 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(--accent-color);
    box-shadow: 0 0 0 0.45rem var(--terracotta-soft);
}

.amenity-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    box-shadow: var(--shadow-soft), 0 0 0 0.55rem rgba(255, 255, 255, 0.7), 0 0 0 0.68rem rgba(156, 74, 55, 0.26);
}

.amenity-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50% 50%;
}

.booking-form {
    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.88rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status.success {
    color: #4A6B53;
}

.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: rgba(250, 249, 246, 0.86);
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

.mode-option {
    display: flex;
    width: 100%;
    min-height: 4.5rem;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.6);
    color: var(--text-color);
    text-align: left;
    transition: border-color 300ms ease, background-color 300ms ease, box-shadow 300ms ease;
}

.mode-option i {
    margin-top: 0.25rem;
    color: var(--accent-color);
    font-size: 1.15rem;
}

.mode-option-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mode-option-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.mode-option-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
}

.mode-option:hover {
    border-color: rgba(156, 74, 55, 0.55);
}

.mode-option.is-active {
    border-color: var(--primary-color);
    background: rgba(227, 182, 163, 0.32);
    box-shadow: var(--shadow-soft);
}

.booking-days {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.booking-day {
    flex: 0 0 auto;
    min-height: 2.9rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.6);
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 300ms ease, background-color 300ms ease, color 300ms ease;
}

.booking-day:hover {
    border-color: rgba(156, 74, 55, 0.55);
}

.booking-day.is-active {
    border-color: transparent;
    background: var(--primary-color);
    color: #ffffff;
}

.booking-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    gap: 0.6rem;
}

.booking-slot {
    min-height: 2.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: rgba(250, 249, 246, 0.6);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    transition: border-color 300ms ease, background-color 300ms ease, color 300ms ease;
}

.booking-slot:hover {
    border-color: rgba(156, 74, 55, 0.55);
    background: var(--secondary-color);
}

.booking-slot.is-active {
    border-color: transparent;
    background: var(--primary-color);
    color: #ffffff;
}

.booking-summary {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(227, 182, 163, 0.22);
    padding: 1.25rem 1.5rem;
}

.booking-confirm {
    border: 1px solid var(--glass-border);
    border-radius: 1.8rem;
    background: rgba(250, 249, 246, 0.6);
    padding: clamp(1.6rem, 4vw, 2.4rem);
}

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

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

    .arch-frame-medium {
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 300px);
    }

    .amenity-image-wrap {
        aspect-ratio: 1 / 1;
        border-radius: 50%;
    }

    .floating-note,
    .story-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -2.5rem auto 0;
    }
}
