/* index.css - Homepage specific styles with variable-width infiniCards support */

/* Book-style body paragraphs inside info cards */
.empty-infocard p {
    text-indent: 4ch;
    text-align: justify;
    margin: 0 0 var(--spacing-md) 0;
}

.empty-infocard p:last-child {
    margin-bottom: 0;
}

/* Greeting section — front-and-center hero filling the first screen below the
   sticky header, instead of the old min-height:20vh (inherited from the base
   `section` rule) that left the slogan cramped at the top of the page. */
#greet {
    min-height: calc(100dvh - var(--header-height-large));
    gap: var(--spacing-xl);
    text-wrap-mode: wrap;
    word-spacing: var(--spacing-sm);
    text-align: center;
    padding-bottom: var(--spacing-3xl);
}

#greet h1 {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    color: var(--c-light-gold);
}

/* The sitewide focus ring is --c-green-aqua, which matches this section's own
   backdrop (body's background-color) almost exactly — invisible there. Gold
   is the high-contrast choice against this specific dark background. */
#greet a:focus-visible,
#greet ex-nav-button:focus-visible {
    outline-color: var(--c-gold) !important;
}

/* CTA row — real buttons instead of plain text links, so they read as actions
   (menu pages + reservations) rather than another line of body text. */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.hero-cta-btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    border: 1.5px solid color-mix(in srgb, var(--c-light-gold) 55%, transparent);
    border-radius: var(--border-radius);
    color: var(--c-light-gold);
    font-size: var(--css-large);
    font-weight: var(--font-weight-bold);
    letter-spacing: calc(1px * var(--spacing-scale));
    text-transform: uppercase;
    transition: border-color var(--animation-duration-fast) ease-out,
                background-color var(--animation-duration-fast) ease-out,
                color var(--animation-duration-fast) ease-out;
}

.hero-cta-btn:hover {
    border-color: var(--c-gold);
    background-color: color-mix(in srgb, var(--c-gold) 12%, transparent);
    color: var(--c-gold);
}

/* Reservations is a booking action, not a menu variant — set apart as the
   filled/primary button among the three outline menu links. */
.hero-cta-btn--primary {
    background-color: var(--c-gold);
    border-color: var(--c-gold);
    color: var(--c-green-aqua);
}

.hero-cta-btn--primary:hover {
    background-color: color-mix(in srgb, var(--c-gold) 85%, white);
    border-color: color-mix(in srgb, var(--c-gold) 85%, white);
    color: var(--c-green-aqua);
}

/* Location Map Container */
.location-map-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background-color: color-mix(in srgb, var(--c-gold) 90%, transparent);
    border-radius: var(--border-radius);
    overflow: hidden;
    padding: var(--spacing-sm);
    box-sizing: border-box;
}

.location-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 4px;
}

/* Info Cards - portrait/playing-card proportions, controls below */
ex-infcard-holder {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: clamp(350px, 75vmin, 650px);
    position: relative;
    background-color: color-mix(in srgb, var(--c-gold) 90%, transparent);
    border-radius: var(--border-radius);
    /* No overflow:hidden here on purpose — .scroll-container below clips the
       sliding cards on its own, and the holder needs to stay open so the
       nav-arrow/dot buttons' focus rings aren't cut off at its edge. */
}

ex-infcard-holder .scroll-container {
    display: flex;
    gap: 0rem;
    flex: 1;
    min-height: 0;
    align-items: stretch;
    user-select: none;
    will-change: transform;
    overflow: hidden;
}

ex-infcard {
    width: auto;
    flex-shrink: 0;
    height: 100%;
    box-sizing: border-box;
    padding: var(--spacing-sm);
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    pointer-events: none;
    overflow: hidden;
}

.image-without-header,
.image-with-header {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.image-with-header > div:first-child {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: var(--spacing-sm) var(--spacing-xs);
    font-size: var(--font-size-sm);
    line-height: 1.3;
    text-align: center;
    background: color-mix(in srgb, var(--c-gold) 90%, transparent);
    border-radius: 0 0 4px 4px;
}

ex-infcard ex-line:first-child,
ex-infcard ex-line:last-child {
    margin: 0 var(--spacing-sm) !important;
}

ex-infcard img {
    height: 100%;
    width: auto;
    align-self: center;
    border-radius: 4px;
    object-fit: cover;
}

/* Controls bar - sits below the scroll area */
.nav-arrow {
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--animation-duration-normal);
    user-select: none;
    outline: none;
    font-size: 0;
    z-index: 20;
}

.nav-arrow::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 2px solid color-mix(in srgb, var(--c-green-aqua) 56%, transparent);
    border-right: 2px solid color-mix(in srgb, var(--c-green-aqua) 56%, transparent);
    transition: all var(--animation-duration-normal);
}

.nav-arrow-left {
    left: 0;
}

.nav-arrow-left::before {
    transform: rotate(-135deg);
}

.nav-arrow-right {
    right: 0;
}

.nav-arrow-right::before {
    transform: rotate(45deg);
}

.nav-arrow:hover::before {
    border-color: var(--c-green-normal);
    transform: scale(1.2) rotate(-135deg);
}

.nav-arrow-right:hover::before {
    transform: scale(1.2) rotate(45deg);
}

.nav-arrow:active::before {
    transform: scale(0.9) rotate(-135deg);
}

.nav-arrow-right:active::before {
    transform: scale(0.9) rotate(45deg);
}

/* Dots Navigation - dedicated bar below cards */
.dots-container {
    flex-shrink: 0;
    width: 100%;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 0;
    position: relative;
}

/* .dot is the tap target (kept at the WCAG 24x24 minimum); the visible dot
   itself stays its original smaller size via ::before so the dense dot rows
   don't look bigger, only easier to hit. */
.dot {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
}

.dot::before {
    content: '';
    display: block;
    width: clamp(10px, calc(12px * var(--spacing-scale)), 14px);
    height: clamp(10px, calc(12px * var(--spacing-scale)), 14px);
    border-radius: 50%;
    border: 1.5px solid color-mix(in srgb, var(--c-green-aqua) 64%, transparent);
    background: color-mix(in srgb, var(--c-green-aqua) 29%, transparent);
    transition: all var(--animation-duration-slow);
}

.dot:hover::before {
    background: var(--c-green-aqua);
    border-color: color-mix(in srgb, var(--c-green-aqua) 78%, transparent);
    transform: scale(1.2);
}

.dot.active::before {
    background: color-mix(in srgb, var(--c-green-normal) 80%, transparent);
    border-color: var(--c-green-normal);
    transform: scale(1.3);
}

.dot:active::before {
    transform: scale(0.9);
}

/* Tablet / small desktop */
@media only screen and (max-width: 768px) {
    section {
        margin-top: var(--spacing-lg);
        margin-bottom: var(--spacing-xs);
    }

    section + section {
        margin-top: var(--spacing-xl);
    }

    #greet {
        gap: var(--spacing-lg);
        word-spacing: var(--spacing-xs);
    }

    #greet h1 {
        font-size: calc(var(--font-size-h1) * 0.8);
        margin-bottom: var(--spacing-xl);
    }

    .hero-cta-btn {
        font-size: var(--css-x-large);
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    .empty-infocard {
        padding: var(--padding-normal);
    }

    [class^="art-deco-"] {
        padding: var(--spacing-md) 0;
    }
}

/* Small phones */
@media only screen and (max-width: 480px) {
    section {
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-xs);
    }

    section + section {
        margin-top: var(--spacing-lg);
    }

    #greet {
        word-spacing: 0;
        gap: var(--spacing-md);
    }

    #greet h1 {
        font-size: calc(var(--font-size-h1) * 0.65);
        margin-bottom: var(--spacing-lg);
    }

    .hero-cta-btn {
        font-size: var(--css-large);
        padding: var(--spacing-xs) var(--spacing-md);
    }

    [class^="art-deco-"] {
        padding: var(--spacing-sm) 0;
    }

    .art-deco-diamond .deco-center {
        width: calc(35px * var(--spacing-scale));
        height: calc(35px * var(--spacing-scale));
    }

    .art-deco-fan .deco-center {
        width: calc(40px * var(--spacing-scale));
        height: calc(20px * var(--spacing-scale));
    }

    .art-deco-chevron .deco-spacer {
        width: calc(22px * var(--spacing-scale));
    }

    .art-deco-chevron::before {
        width: calc(10px * var(--spacing-scale));
        height: calc(10px * var(--spacing-scale));
    }
}

/* Landscape phones - prevent greet from being too tall */
@media only screen and (max-height: 500px) {
    #greet {
        min-height: 100vh;
    }
}

/* ============================================
   ART DECO SECTION DIVIDERS (home-only variants)
   ============================================ */

/* Variant B: Circle divider */
.art-deco-chevron {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
    position: relative;
}

.art-deco-chevron::before {
    content: '';
    position: absolute;
    width: calc(14px * var(--spacing-scale));
    height: calc(14px * var(--spacing-scale));
    border: calc(1.5px * var(--spacing-scale)) solid var(--c-gold);
    border-radius: 50%;
    z-index: 1;
}

.art-deco-chevron .deco-line-left,
.art-deco-chevron .deco-line-right {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-gold));
}

.art-deco-chevron .deco-line-right {
    background: linear-gradient(90deg, var(--c-gold), transparent);
}

.art-deco-chevron .deco-spacer {
    width: calc(30px * var(--spacing-scale));
    flex-shrink: 0;
}

/* Variant C: Triple-line divider */
.art-deco-triple {
    width: 80%;
    margin: var(--spacing-xl) auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(4px * var(--spacing-scale));
    padding: var(--spacing-lg) 0;
}

.art-deco-triple .deco-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--c-gold) 20%, var(--c-gold) 80%, transparent 100%);
    opacity: 0.5;
}

.art-deco-triple .deco-line:nth-child(2) {
    width: 60%;
    height: calc(2px * var(--spacing-scale));
    opacity: 0.8;
}

/* Variant D: Fan/sunburst accent */
.art-deco-fan {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
}

.art-deco-fan::before,
.art-deco-fan::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
}

.art-deco-fan .deco-center {
    width: calc(60px * var(--spacing-scale));
    height: calc(30px * var(--spacing-scale));
    position: relative;
    margin: 0 var(--spacing-md);
    flex-shrink: 0;
    overflow: hidden;
}

.art-deco-fan .deco-center::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(60px * var(--spacing-scale));
    height: calc(60px * var(--spacing-scale));
    border: calc(1.5px * var(--spacing-scale)) solid var(--c-gold);
    border-radius: 50%;
    opacity: 0.6;
}

.art-deco-fan .deco-center::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(36px * var(--spacing-scale));
    height: calc(36px * var(--spacing-scale));
    border: calc(1px * var(--spacing-scale)) solid var(--c-gold);
    border-radius: 50%;
    opacity: 0.4;
}