/* Explain: Styling for various UI components like cards, buttons, and navigation elements. */
.site-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.55));
    backdrop-filter: blur(18px);
}

.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: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), 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(184, 137, 43, 0.4);
    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, 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;
}

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

.quiet-detail {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.7);
    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: 0.9rem;
    line-height: 1.75;
}

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

.service-card:hover {
    border-color: rgba(184, 137, 43, 0.6);
    box-shadow: 0 26px 80px rgba(26, 26, 26, 0.12);
    transform: translateY(-6px);
}

.service-icon,
.contact-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-size: 1.05rem;
}

.contact-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.95rem;
}

.advantage-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.7);
    padding: 1.25rem;
}

.advantage-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);
}

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

.testimonial-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.78);
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
}

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

.price-panel {
    border-radius: 2.2rem;
    padding: clamp(1.5rem, 3vw, 2rem);
}

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

.form-status.success {
    color: #3F7A4B;
}

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

.nav-overlay {
    display: none;
}

.nav-overlay.is-open {
    display: flex;
}

@media (min-width: 1024px) {
    .nav-overlay.is-open {
        display: none;
    }
}

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

    .arch-frame-large,
    .arch-frame-medium,
    .advantage-image-wrap {
        height: 510px;
        min-height: 0;
    }

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

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

    .advantage-image-wrap {
        border-radius: 999px 999px 2rem 2rem;
    }
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background:
        radial-gradient(circle at 10% 12%, rgba(201, 162, 75, 0.16), transparent 26rem),
        linear-gradient(180deg, var(--surface-color), var(--background-color));
}

.page-hero--media {
    min-height: clamp(30rem, 55vw, 42rem);
    border-bottom: none;
    background: var(--footer-bg);
}

.page-hero-media {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.page-hero-media-item {
    overflow: hidden;
}

.page-hero-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(17, 17, 17, 0.62) 0%, rgba(17, 17, 17, 0.38) 42%, rgba(17, 17, 17, 0.82) 100%),
        linear-gradient(90deg, rgba(17, 17, 17, 0.5), rgba(17, 17, 17, 0.1) 65%);
}

.page-hero--media .section-kicker {
    color: var(--logo-subtitle-color);
}

.page-hero--media .section-kicker::before {
    background: var(--button-color);
}

.page-hero--media h1 {
    color: #ffffff;
}

.page-hero--media .page-hero-lead {
    color: rgba(255, 255, 255, 0.84);
}

.page-hero--single {
    display: grid;
    min-height: 0;
    padding: 0;
    border-bottom: none;
    background: var(--footer-bg);
}

.page-hero--single .page-hero-media,
.page-hero--single .page-hero-scrim,
.page-hero--single > .page-hero-content {
    grid-area: 1 / 1;
}

.page-hero--single .page-hero-media {
    position: relative;
    inset: auto;
    display: block;
    align-self: start;
}

.page-hero--single .page-hero-media-item {
    display: block;
}

.page-hero--single .page-hero-media-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.page-hero--single .page-hero-scrim {
    position: relative;
    inset: auto;
}

.page-hero--single > .page-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 4rem) clamp(2.5rem, 7vw, 5rem);
}

.nav-link.is-active {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 0.45rem;
}

.explore-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.78);
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.explore-card:hover {
    border-color: rgba(184, 137, 43, 0.6);
    box-shadow: 0 26px 80px rgba(26, 26, 26, 0.12);
    transform: translateY(-6px);
}

.team-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.78);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.team-photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 999px 999px 1.4rem 1.4rem;
    background: var(--surface-color);
}

.team-photo img {
    transition: transform 500ms ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.04);
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--sage-soft);
    padding: 0.3rem 0.7rem;
    color: var(--sage-dark);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.price-accordion {
    display: block;
    overflow: hidden;
    border-radius: 2rem;
}

.price-accordion > summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    cursor: pointer;
    list-style: none;
    transition: background-color 300ms ease;
}

.price-accordion > summary::-webkit-details-marker {
    display: none;
}

.price-accordion > summary:hover {
    background: var(--sage-soft);
}

.price-accordion > summary:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}

.price-accordion-chevron {
    flex: 0 0 auto;
    transition: transform 300ms ease;
}

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

.price-accordion-body {
    padding: 0 1.35rem 1.5rem;
}

.service-detail-trigger {
    transition: color 300ms ease;
}

.service-detail-trigger:hover .service-detail-trigger-title {
    color: var(--accent-color);
}

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.service-modal.is-open {
    display: flex;
}

.service-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.74);
    backdrop-filter: blur(6px);
}

.service-modal-panel {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 64rem;
    max-height: calc(100dvh - 2rem);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    background: var(--background-color);
    box-shadow: 0 30px 90px rgba(17, 17, 17, 0.35);
    animation: service-modal-in 320ms ease;
}

@keyframes service-modal-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 3;
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-color);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background-color 250ms ease, color 250ms ease;
}

.service-modal-close:hover {
    background: var(--surface-color);
    color: var(--accent-color);
}

.service-modal-close:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.service-modal-media {
    position: relative;
    flex: 0 0 auto;
    height: 15rem;
    overflow: hidden;
    background: var(--surface-color);
}

.service-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 300ms ease;
}

.service-modal-media img.is-ready {
    opacity: 1;
}

.service-modal-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    color: var(--accent-color);
    font-size: 1.5rem;
}

.service-modal-spinner.is-hidden {
    display: none;
}

.service-modal-body {
    overflow-y: auto;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 768px) {
    .service-modal-panel {
        flex-direction: row;
    }

    .service-modal-media {
        width: 42%;
        height: auto;
        align-self: stretch;
    }

    .service-modal-body {
        width: 58%;
        max-height: calc(100dvh - 2rem);
    }
}

@media (max-width: 767px) {
    .service-modal {
        align-items: stretch;
        padding: 0;
    }

    .service-modal-panel {
        height: 100dvh;
        max-height: 100dvh;
        border: none;
        border-radius: 0;
    }

    .service-modal-media {
        height: 13rem;
    }

    .service-modal-body {
        flex: 1 1 auto;
        min-height: 0;
    }
}

.training-tab {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.78);
    padding: clamp(1.5rem, 3vw, 2rem);
    text-align: left;
    box-shadow: var(--shadow-soft);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
}

.training-tab:hover {
    border-color: rgba(184, 137, 43, 0.6);
    box-shadow: 0 26px 80px rgba(26, 26, 26, 0.12);
    transform: translateY(-4px);
}

.training-tab:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.training-tab.is-active {
    border-color: var(--accent-color);
    background: linear-gradient(145deg, rgba(201, 162, 75, 0.18), rgba(255, 255, 255, 0.9));
    box-shadow: 0 26px 80px rgba(184, 137, 43, 0.2);
}

.training-tab.is-active .service-icon {
    background: var(--terracotta-soft);
}