/* Explain: Styles for reusable UI elements like cards, forms, navigation, and FAQ. */
.site-header {
    background: rgba(253, 246, 249, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(58, 53, 80, 0.06);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.6;
}

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

.glass-panel {
    border: 1px solid var(--glass-border);
    background: #FFFFFF;
    box-shadow: var(--shadow-soft);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
    border-radius: 1.5rem;
}

.arch-frame-large {
    height: min(74vh, 720px);
    min-height: 500px;
}

.arch-frame-medium {
    height: 620px;
    max-width: 500px;
}

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

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

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

.class-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 360px;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
    border-top: 4px solid transparent;
}

.class-card:hover {
    border-top-color: var(--accent-color);
    box-shadow: 0 20px 60px rgba(58, 53, 80, 0.1);
    transform: translateY(-6px);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.85rem;
    background: var(--surface-color);
    color: var(--primary-color);
    font-size: 1.4rem;
}

.card-title {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.card-text {
    flex: 1;
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    font-weight: 500;
}

.card-action {
    align-self: flex-start;
    margin-top: 1.25rem;
    color: var(--highlight-color);
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 300ms ease, transform 300ms ease;
}

.card-action:hover {
    color: var(--primary-color);
    transform: translateX(-0.25rem);
}

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

.amenity-dot {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(58, 53, 80, 0.06);
    color: var(--primary-color);
    font-size: 1rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--primary-color);
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: 700;
}

.form-status.success {
    color: #198754;
}

.form-status.error {
    color: var(--highlight-color);
}

.mobile-book-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.96);
    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(58, 53, 80, 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(58, 53, 80, 0.3);
}

@media (max-width: 767px) {
    .arch-frame-large,
    .arch-frame-medium {
        height: 400px;
        min-height: 0;
    }

    .arch-frame-large {
        margin-right: auto;
        margin-left: auto;
        width: 100%;
    }
}

.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: var(--surface-color);
    overflow: hidden;
    transition: box-shadow 300ms ease, border-color 300ms ease;
}

.faq-item[open] {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}

.faq-summary {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    min-height: 3.5rem;
    padding: 1.4rem 1.5rem;
    cursor: pointer;
    list-style: none;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.85rem;
    background: rgba(58, 53, 80, 0.06);
    color: var(--primary-color);
    font-size: 1rem;
    transition: background 300ms ease, color 300ms ease;
}

.faq-item[open] .faq-icon {
    background: var(--primary-color);
    color: var(--accent-color);
}

.faq-question {
    flex: 1;
}

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

.faq-summary:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--highlight-color);
    transition: transform 300ms ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.7rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.9;
}

.form-group {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.1rem 1.4rem;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: rgba(238, 233, 251, 0.5);
}

.form-group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.form-group-title i {
    color: var(--highlight-color);
}

.req-mark {
    color: var(--highlight-color);
    font-weight: 700;
}

.field-error {
    display: block;
    margin-top: 0.35rem;
    color: var(--highlight-color);
    font-size: 0.75rem;
    font-weight: 700;
}

.input-error,
input.input-error,
select.input-error,
textarea.input-error {
    border-color: var(--highlight-color) !important;
    box-shadow: 0 0 0 1px var(--highlight-color);
}

.form-success {
    margin-top: 1.25rem;
    padding: 1.6rem 1.25rem;
    border: 1px solid rgba(25, 135, 84, 0.25);
    border-radius: 1rem;
    background: rgba(25, 135, 84, 0.06);
    text-align: center;
}

.form-success .success-icon {
    color: #198754;
    font-size: 2.6rem;
    line-height: 1;
}

.form-success .success-title {
    margin-top: 0.6rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
}

.form-success .success-number-label {
    margin-top: 0.9rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.form-success .success-number {
    margin-top: 0.15rem;
    color: var(--primary-color);
    direction: ltr;
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.form-success .success-note {
    margin-top: 0.7rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.2rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--surface-color);
}

.lang-option {
    min-height: 2.25rem;
    padding: 0.35rem 0.85rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    line-height: 1.5;
    font-weight: 700;
    cursor: pointer;
    transition: background 250ms ease, color 250ms ease;
}

.lang-option.is-active {
    background: var(--primary-color);
    color: #ffffff;
}

.optional-toggle {
    display: flex;
    width: 100%;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px dashed var(--glass-border);
    border-radius: 0.85rem;
    background: var(--surface-color);
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 300ms ease, border-color 300ms ease;
}

.optional-toggle:hover {
    border-color: var(--primary-color);
    background: rgba(248, 249, 250, 0.9);
}

.optional-toggle .optional-icon {
    transition: transform 300ms ease;
}

.optional-toggle[aria-expanded="true"] .optional-icon {
    transform: rotate(180deg);
}

.fieldset-note {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

/* قوائم التنقل المنسدلة في الترويسة:
   تُفتح بالنقر أو اللمس، وتُغلق بالنقر خارجها أو بمفتاح Escape */
.site-header [data-nav-dropdown].dropdown-open > .dropdown-content {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.site-header [data-nav-dropdown] > button .fa-chevron-down {
    transition: transform 300ms ease;
}

.site-header [data-nav-dropdown] > button[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}