/* Explain: Styles for UI components including header, buttons, forms, and carousels. */
/* ---------- Header ---------- */
.site-header {
    z-index: 40;
}

/* Renders a dark (black) logo as crisp white on dark backgrounds */
.logo-on-dark {
    filter: brightness(0) invert(1);
}

/* Nudge the brand lockup slightly left in the header and footer */
.brand-shift-left {
    transform: translateX(-0.6rem);
}

@media (min-width: 640px) {
    .brand-shift-left {
        transform: translateX(-1cm);
    }
}

.header-topbar {
    background: var(--surface-dark);
    color: #C9C1B2;
}

.header-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #C9C1B2;
    transition: color 300ms ease;
}

.header-topbar-item i {
    color: var(--accent-color);
}

a.header-topbar-item:hover {
    color: #F3EDE2;
}

.header-topbar-divider {
    width: 1px;
    height: 0.9rem;
    background: rgba(255, 255, 255, 0.18);
}

.header-topbar-social {
    color: #C9C1B2;
    transition: color 300ms ease;
}

.header-topbar-social:hover {
    color: var(--accent-color);
}

.header-nav {
    background: rgba(251, 250, 247, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-color);
    transition: box-shadow 300ms ease;
}

/* Keep the brand lockup dead-center within the navigation band */
.header-nav nav {
    min-height: 5.5rem;
    align-items: center;
}

.header-nav nav > a:first-child {
    align-self: center;
    margin-block: 0;
}

.site-header.is-scrolled .header-nav {
    box-shadow: 0 18px 48px -28px rgba(28, 26, 23, 0.55);
}

.nav-link {
    position: relative;
    color: var(--text-color);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 300ms ease;
}

.nav-link::after {
    position: absolute;
    bottom: -0.4rem;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-color);
    content: "";
    transition: width 300ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.nav-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid var(--line-color);
    border-radius: 999px;
    color: var(--text-color);
    transition: border-color 300ms ease, color 300ms ease;
}

.nav-icon-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-overlay {
    background: var(--surface-dark);
}

.nav-overlay-close {
    border-color: rgba(255, 255, 255, 0.25);
    color: #F3EDE2;
}

.nav-overlay-close:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.nav-overlay-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #F3EDE2;
    font-family: var(--font-heading);
    font-size: 1.9rem;
    transition: color 300ms ease;
}

.nav-overlay-link:hover {
    color: var(--accent-color);
}

/* ---------- Buttons ---------- */
.btn-solid,
.btn-ghost,
.btn-gold,
.btn-ghost-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    padding: 0.85rem 2.1rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    transition: background 300ms ease, border-color 300ms ease, color 300ms ease;
}

.btn-solid {
    border: 1px solid var(--surface-dark);
    background: var(--surface-dark);
    color: #F6F2EA;
}

.btn-solid:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
}

.btn-ghost {
    border: 1px solid var(--line-color);
    background: transparent;
    color: var(--text-color);
}

.btn-ghost:hover {
    border-color: var(--surface-dark);
    background: var(--surface-dark);
    color: #F6F2EA;
}

.btn-gold {
    border: 1px solid var(--gold-color);
    background: var(--gold-color);
    color: #1C1A17;
}

.btn-gold:hover {
    border-color: #D8B674;
    background: #D8B674;
}

.btn-ghost-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #ffffff;
}

.btn-ghost-light:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #1C1A17;
}

/* ---------- Section heading ---------- */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--primary-color);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

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

.section-kicker.light {
    color: #E4D3B2;
}

/* ---------- Hero ---------- */
.hero-shell {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 92vh;
    padding-top: 9rem;
    padding-bottom: 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(96deg, rgba(18, 16, 13, 0.9) 0%, rgba(18, 16, 13, 0.66) 46%, rgba(18, 16, 13, 0.34) 100%);
}

.hero-title {
    color: #FBF8F2;
    font-family: var(--font-logo);
    font-weight: 500;
    font-size: clamp(1.7rem, 3.3vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: 0.005em;
}

.hero-sub {
    color: #D9D2C5;
    font-size: 1.05rem;
    line-height: 1.85;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #E9E2D6;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.hero-meta-item i {
    color: var(--accent-color);
}

/* ---------- Image frames + cards ---------- */
.arch-frame {
    position: relative;
    overflow: hidden;
    border-radius: 999px 999px 1.25rem 1.25rem;
    background: var(--surface-color);
}

.arch-frame-medium {
    height: 460px;
    max-width: 440px;
}

.card-min {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line-color);
    border-radius: 1.5rem;
    background: var(--background-color);
    padding: 1.75rem;
    transition: border-color 300ms ease;
}

.card-min:hover {
    border-color: var(--primary-color);
}

/* ---------- Numbered detail rows ---------- */
.detail-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 1.6rem 0;
    border-top: 1px solid var(--line-color);
}

.detail-row:last-child {
    border-bottom: 1px solid var(--line-color);
}

.detail-index {
    padding-top: 0.15rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

/* ---------- Experience band ---------- */
.experience-band {
    background: var(--surface-dark);
    color: #EDE7DC;
}

.experience-intro {
    color: #B7AF9F;
    font-size: 1rem;
    line-height: 1.85;
}

.exp-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 1.7rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.exp-row:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.exp-index {
    padding-top: 0.15rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.exp-title {
    color: #FBF8F2;
    font-size: 1.05rem;
    font-weight: 500;
}

.exp-desc {
    margin-top: 0.35rem;
    color: #B7AF9F;
    font-size: 0.9rem;
    line-height: 1.75;
}

/* ---------- Service menu ---------- */
.service-tabs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--line-color);
    scrollbar-width: none;
}

.service-tabs::-webkit-scrollbar {
    display: none;
}

.service-tab {
    flex: 0 0 auto;
    min-height: 3.25rem;
    padding: 0.95rem 1.5rem 1.1rem;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 300ms ease, border-color 300ms ease;
}

.service-tab:hover {
    color: var(--text-color);
}

.service-tab.is-active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.service-group-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 600;
}

.service-group-title:first-child {
    margin-top: 0;
}

.service-group-title::after {
    flex: 1;
    height: 1px;
    background: var(--line-color);
    content: "";
}

.service-item {
    display: flex;
    flex-direction: column;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line-color);
}

.service-item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
}

.service-item-title {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.4;
}

.service-item-price {
    flex: 0 0 auto;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.service-item-desc {
    margin-top: 0.7rem;
    max-width: 68ch;
    color: var(--text-muted);
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.85;
}

.service-item-link {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: opacity 300ms ease;
}

.service-item-link:hover {
    opacity: 0.7;
}

/* ---------- Nested (brand) tabs ---------- */
.nested-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.nested-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.6rem 1.3rem;
    border: 1px solid var(--line-color);
    border-radius: 999px;
    background: var(--background-color);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 300ms ease, border-color 300ms ease, background 300ms ease;
}

.nested-tab:hover {
    color: var(--text-color);
    border-color: var(--primary-color);
}

.nested-tab.is-active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
}

/* ---------- Gallery ---------- */
.gallery-tile {
    overflow: hidden;
    border-radius: 1.1rem;
    background: var(--surface-color);
}

.gallery-tile img {
    transition: transform 0.7s ease;
}

.gallery-tile:hover img {
    transform: scale(1.06);
}

/* ---------- Contact ---------- */
.contact-detail {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.contact-detail > i {
    margin-top: 0.2rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.contact-detail-label {
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.contact-detail-value {
    margin-top: 0.3rem;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-map {
    width: 100%;
    height: 260px;
    border: 1px solid var(--line-color);
    border-radius: 1.5rem;
}

/* ---------- Forms ---------- */
.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.field {
    width: 100%;
    border: 1px solid var(--line-color);
    border-radius: 0.9rem;
    background: transparent;
    padding: 0.95rem 1.1rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 300ms ease;
}

.field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.field::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-status.success {
    color: var(--primary-color);
}

.form-status.error {
    color: #9B4A3D;
}

/* ---------- Mobile booking bar ---------- */
.mobile-book-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--line-color);
    background: rgba(251, 250, 247, 0.94);
    padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(14px);
}

.booking-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    overflow-y: auto;
    background: rgba(18, 16, 13, 0.55);
    padding: 1rem;
}

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

.booking-overlay-panel {
    min-height: calc(100vh - 2rem);
    border-radius: 1.75rem;
    background: var(--background-color);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--surface-dark);
    color: #A89F8E;
}

.footer-heading {
    color: #F7F2E9;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.footer-link {
    color: #A89F8E;
    transition: color 300ms ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #C9C1B2;
    transition: background 300ms ease, border-color 300ms ease, color 300ms ease;
}

.footer-social:hover {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #1C1A17;
}

/* ---------- Floating connect widget ---------- */
.floating-connect {
    position: fixed;
    right: 1rem;
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    z-index: 44;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 300ms ease, transform 300ms ease, visibility 300ms ease;
}

.floating-connect.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.floating-connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: var(--surface-dark);
    color: #F7F2E9;
    box-shadow: 0 14px 32px -14px rgba(28, 26, 23, 0.7);
    transition: background 300ms ease, border-color 300ms ease, color 300ms ease, transform 300ms ease;
}

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

.floating-connect-btn-book {
    border-color: var(--gold-color);
    background: var(--gold-color);
    color: #1C1A17;
}

.floating-connect-btn-book:hover {
    border-color: #D8B674;
    background: #D8B674;
    color: #1C1A17;
}

@media (min-width: 768px) {
    .floating-connect {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}

/* ---------- FAQ ---------- */
.faq-item {
    border-top: 1px solid var(--line-color);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--line-color);
}

.faq-question {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4rem;
    padding: 1.4rem 0;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: left;
    transition: color 300ms ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-chevron {
    flex: 0 0 auto;
    color: var(--primary-color);
    font-size: 0.85rem;
    transition: transform 300ms ease;
}

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

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 350ms ease;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer > div {
    overflow: hidden;
}

.faq-answer-text {
    max-width: 68ch;
    padding-bottom: 1.6rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.85;
}

/* ---------- Dual price (Lacquer / Shellac) ---------- */
.service-item-prices {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.5rem 1.6rem;
}

.service-price-option {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
}

.service-price-label {
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ---------- Avenue Gift ---------- */
.gift-snow {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gift-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.35rem;
    border: 1px solid var(--line-color);
    border-radius: 0.9rem;
    background: var(--background-color);
    cursor: pointer;
    transition: border-color 300ms ease, background 300ms ease;
}

.gift-amount:hover {
    border-color: var(--primary-color);
}

.gift-amount:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.gift-amount-value {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 300ms ease;
}

.gift-amount:has(input:checked) .gift-amount-value {
    color: #ffffff;
}

.gift-custom-field {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--line-color);
    border-radius: 0.9rem;
    background: var(--background-color);
    transition: border-color 300ms ease;
}

.gift-custom-field:focus-within {
    border-color: var(--primary-color);
}

.gift-custom-symbol {
    display: inline-flex;
    align-items: center;
    padding: 0 0.4rem 0 1.1rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.gift-custom-input.field {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding-left: 0.35rem;
}

@media (max-width: 767px) {
    .arch-frame-medium {
        height: 360px;
        margin-right: auto;
        margin-left: auto;
    }

    .service-item-head {
        flex-direction: column;
        gap: 0.4rem;
    }

    .service-item-prices {
        justify-content: flex-start;
    }
}

/* ---------- Reviews carousel ---------- */
.reviews-swiper {
    overflow: hidden;
    padding-bottom: 0.35rem;
}

.reviews-swiper .swiper-slide {
    height: auto;
}

.reviews-swiper .swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.35;
}

.reviews-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* ---------- Gallery carousel ---------- */
.gallery-swiper {
    overflow: hidden;
}

.gallery-swiper .swiper-slide {
    height: auto;
}

.gallery-swiper .swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.35;
}

.gallery-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* ---------- Swipe hint ---------- */
.swipe-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.swipe-hint i {
    color: var(--gold-color);
    animation: swipe-nudge 2.4s ease-in-out infinite;
}

@keyframes swipe-nudge {
    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(0.35rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .swipe-hint i {
        animation: none;
    }
}