/* ============================================================
   LE CRISTAL — brand components
   Loaded last in includes/head.php so it wins the cascade. Colours/type
   come from assets/css/themes/cristal.css (data-theme="cristal") — this
   file only adds markup that base.css/components.css don't already style:
   the utility/mode bar, header monogram + icon links, the mobile drawer
   (this header's real markup, not components.css's generic .mobile-nav),
   the mobile bottom tab bar, homepage sections and the la-carte page head.
   ============================================================ */

/* ── Buttons (storefront chrome — header/homepage CTAs) ─────────────── */
.btn-cdc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    padding: .8rem 1.5rem;
    border: 1px solid var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .74rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s;
}
.btn-cdc--primary {
    background: var(--clr-primary);
    color: var(--clr-text-on-primary);
}
.btn-cdc--primary:hover {
    background: var(--clr-primary-dk);
    border-color: var(--clr-primary-dk);
    transform: translateY(-2px);
    color: var(--clr-text-on-primary);
}
.btn-cdc--outline {
    background: transparent;
    color: var(--clr-primary);
}
.btn-cdc--outline:hover {
    background: var(--clr-primary);
    color: var(--clr-text-on-primary);
}
.cdc-header-order {
    min-height: 40px;
    padding: .55rem 1.15rem;
}

/* ── Utility bar (mode switch strip above the header) ───────────────── */
.cdc-utility {
    background: var(--clr-primary-dk);
    color: var(--clr-primary-lt);
    font-size: .78rem;
}
.cdc-utility__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: .55rem clamp(1rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cdc-utility__back {
    text-decoration: none;
    color: inherit;
    opacity: .85;
}
.cdc-utility__back:hover { opacity: 1; }
.cdc-mode-toggle {
    display: flex;
    gap: .4rem;
}
.cdc-mode-toggle button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);
    color: inherit;
    padding: .35rem .9rem;
    font-family: var(--font-body);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.cdc-mode-toggle button.active,
.cdc-mode-toggle button:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: var(--clr-primary-dk);
}

/* ── Header extras (monogram + plain icon links; the rest is
   components.css's .site-header / .cart-btn, token-coloured) ───────── */
.site-header__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: 1px solid var(--clr-primary);
    border-radius: 50%;
    color: var(--clr-primary);
    font-family: var(--font-heading);
    font-size: .85rem;
}
/* header.php composes the cart link as .header-icon-link.cart-btn — a
   plain icon with a small overlaid badge, not components.css's solid
   pill .cart-btn. This normalises both header icons to match. */
.header-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-header-text);
    text-decoration: none;
    position: relative;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.header-icon-link.cart-btn:hover { background: transparent; }
.header-icon-link .cart-btn__count,
.cart-btn__count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--clr-primary);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}
/* ── Mobile drawer (header.php's real markup: #mobile-drawer with a
   separate #mobile-drawer-overlay — components.css's .mobile-nav expects
   a different structure, so it doesn't apply here) ──────────────────── */
.mobile-nav {
    /* Reset components.css's .mobile-nav{inset:0} first — otherwise its
       left:0/bottom:0 stay in effect alongside our right:0 + width, the
       box becomes over-constrained, and the browser drops `right` and
       anchors the drawer to the left edge instead (it never slides
       off-screen, just sits half-visible). */
    inset: auto;
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: min(340px, 86vw);
    background: var(--clr-surface);
    z-index: 101;
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .15);
}
.mobile-nav.is-active { transform: translateX(0); }
.mobile-nav__overlay {
    position: fixed; inset: 0;
    background: rgba(30, 17, 17, .55);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: .25s;
}
.mobile-nav__overlay.is-active { opacity: 1; visibility: visible; }
.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--clr-border);
    font-family: var(--font-heading);
    font-size: 1.15rem;
}
.mobile-nav__close {
    background: var(--clr-primary-lt);
    border: 0;
    border-radius: 50%;
    width: 36px; height: 36px;
    cursor: pointer;
}
.mobile-nav__content {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1;
}
.mobile-order-mode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--clr-primary-lt);
    border: 0;
    padding: .9rem 1rem;
    margin-bottom: .75rem;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
}
.mobile-order-mode span {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 600;
    color: var(--clr-primary);
}
.mobile-order-mode small { color: var(--clr-text-muted); text-decoration: underline; }
.nav-item-link {
    padding: .85rem 0;
    border-bottom: 1px solid var(--clr-border);
    text-decoration: none;
    color: var(--clr-text);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .82rem;
}
.nav-item-link.active { color: var(--clr-primary); }
.mobile-nav__footer {
    padding: 1.25rem 1.5rem 1.75rem;
    border-top: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.btn-mobile-auth {
    text-align: center;
    padding: .8rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .76rem;
    font-weight: 600;
}
.btn-mobile-auth.primary { background: var(--clr-primary); color: #fff; }
.btn-mobile-auth.secondary { border: 1px solid var(--clr-border); color: var(--clr-text); }
.privacy-link {
    text-align: center;
    color: var(--clr-text-muted);
    font-size: .72rem;
    text-decoration: underline;
}

/* ── Footer extras (components.css already styles .site-footer /
   __desc / __heading / __links / __bottom / __social with tokens) ──── */
.site-footer__top {
    /* footer.php renders brand + 2 link columns (3 children), not the 4
       tracks components.css's default grid assumes */
    grid-template-columns: 1.4fr .8fr .8fr;
}
.site-footer__eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .68rem;
    color: var(--clr-accent);
    margin: 0 0 .75rem;
}
.site-footer__credit a { color: var(--clr-accent); }

/* ── Mobile bottom tab bar ───────────────────────────────────────────── */
.footerMenu {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 39;
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    display: none;
    justify-content: space-around;
    padding: .5rem 0 calc(.5rem + env(safe-area-inset-bottom));
}
.footerMenu a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    text-decoration: none;
    color: var(--clr-text-muted);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.footerMenu a svg {
    width: 22px; height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.footerMenu a.active { color: var(--clr-primary); }
.footerMenu .cart-btn__count {
    position: absolute;
    top: -4px;
    right: 10px;
}
@media (max-width: 768px) {
    .footerMenu { display: flex; }
    body { padding-bottom: 64px; }
}

/* ============================================================
   Homepage sections (index.php)
   ============================================================ */
.eyebrow {
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .7rem;
    font-weight: 600;
    color: var(--clr-accent);
}
.eyebrow--dark { color: var(--clr-primary); }

.text-link {
    display: inline-flex;
    gap: .6rem;
    align-items: center;
    border: 0;
    border-bottom: 1px solid currentColor;
    padding: .2rem 0;
    background: transparent;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--clr-primary);
}
.text-link--light { color: #fff; }

.lc-hero {
    min-height: 640px;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}
.lc-hero__bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 55%;
}
.lc-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(18,43,34,.88) 0%, rgba(18,43,34,.5) 48%, rgba(18,43,34,.2) 100%),
                linear-gradient(0deg, rgba(18,43,34,.4), transparent 45%);
}
.lc-hero__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 4rem clamp(1.25rem, 6vw, 5rem);
}
.lc-hero__content h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.05;
    margin-bottom: 1.2rem;
}
.lc-hero__content h1 em { font-style: normal; color: var(--clr-accent); }
.lc-hero__copy {
    max-width: 520px;
    font-size: 1.05rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 2rem;
}
.lc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.75rem;
}
.lc-hero__note {
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    bottom: 2rem;
    z-index: 2;
    text-align: right;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.lc-hero__note span { display: block; opacity: .7; }
.lc-hero__note strong { display: block; font-size: .95rem; }
.lc-status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.1rem;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.lc-status span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #8fbf7f;
}
.lc-status.is-closed span { background: #d98c6b; }

.lc-intro {
    padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 6vw, 5rem);
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}
.lc-intro-copy { color: var(--clr-text-muted); padding-top: 1.5rem; }
.lc-intro-copy > p { font-size: 1.05rem; margin-bottom: 1.5rem; }
.lc-feature-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 3.5rem;
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}
.lc-feature-strip article { padding: 2rem 2.5rem 2rem 0; }
.lc-feature-strip article + article { border-left: 1px solid var(--clr-border); padding-left: 2.5rem; }
.lc-feature-strip span { font-family: var(--font-heading); color: var(--clr-primary); font-size: 1.1rem; }
.lc-feature-strip h3 { font-size: 1.4rem; margin: .4rem 0; }
.lc-feature-strip p { color: var(--clr-text-muted); margin: 0; }

.lc-signature {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    background: var(--clr-primary-lt);
    min-height: 520px;
}
/* Height (not just min-height) so Swiper's height:100% slides resolve to a
   real pixel value at init — with only min-height, Swiper mismeasures and
   the fade effect breaks (each slide gets an absurd computed width). */
.lc-signature-image { position: relative; height: 520px; overflow: hidden; }
.lc-signature-image img { width: 100%; height: 100%; object-fit: cover; }
.lc-signature-image .swiper-wrapper,
.lc-signature-image .swiper-slide { height: 100%; }
.lc-signature-image .swiper-slide {
    position: relative;
    display: block;
}
.lc-signature-slide-label {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 2;
    background: rgba(30, 26, 23, .55);
    color: #fff;
    padding: .4rem .9rem;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.lc-signature-image .swiper-pagination-bullet {
    background: #fff;
    opacity: .55;
}
.lc-signature-image .swiper-pagination-bullet-active {
    background: var(--clr-accent);
    opacity: 1;
}
.lc-signature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(3rem, 6vw, 6rem);
}
.lc-signature-copy p:not(.eyebrow) { color: var(--clr-text-muted); max-width: 480px; margin-bottom: 2rem; }

.lc-gallery-section {
    background: var(--clr-primary-dk);
    color: #fff;
    padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 6vw, 5rem);
}
.lc-gallery-heading { max-width: 640px; margin: 0 auto 3rem; text-align: left; }
.lc-gallery-heading > p:last-child { color: rgba(255,255,255,.65); }
.lc-gallery {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 230px;
    gap: 1rem;
}
.lc-gallery figure { margin: 0; overflow: hidden; }
.lc-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lc-gallery figure:hover img { transform: scale(1.04); }
.lc-gallery .lc-tall { grid-row: span 2; }
.lc-gallery .lc-wide { grid-column: span 2; }

.lc-visit {
    padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 6vw, 5rem);
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: end;
}
.lc-visit-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.lc-visit-details h3 {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--clr-primary);
    font-family: var(--font-body);
    font-weight: 600;
}
.lc-visit-details p { color: var(--clr-text-muted); font-size: .9rem; margin: 0 0 .4rem; }
.lc-visit-details a { text-decoration: underline; text-underline-offset: 3px; color: var(--clr-text); }
.lc-visit-button { grid-column: 2; margin-top: 1rem; width: max-content; }

/* ============================================================
   La Carte / menu listing page (lacarte.php)
   ============================================================ */
.reference-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}
.menu-page-head {
    background: var(--clr-primary-lt);
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.menu-page-head h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin: .3rem 0 .9rem; }
.menu-page-head p { color: var(--clr-text-muted); max-width: 560px; margin-bottom: 1.5rem; }

.menu-page-nav {
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    position: sticky;
    top: 64px;
    z-index: 20;
}
.cdc-cat-strip {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    scrollbar-width: none;
}
.cdc-cat-strip::-webkit-scrollbar { display: none; }
.ki-nav-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 0 0 auto;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
    padding: .5rem .9rem .5rem .5rem;
    text-decoration: none;
    color: var(--clr-text);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.ki-nav-item.active, .ki-nav-item:hover {
    border-color: var(--clr-primary);
    background: var(--clr-primary-lt);
}
.ki-nav-img, .ki-nav-emoji {
    width: 34px; height: 34px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-primary-lt);
    font-size: 1rem;
    flex-shrink: 0;
}
.ki-nav-name {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}
.ki-nav-count {
    display: block;
    font-size: .68rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lc-intro, .lc-signature, .lc-visit { grid-template-columns: 1fr; }
    .lc-signature-image { height: 320px; }
    .lc-feature-strip { grid-template-columns: 1fr; margin-top: 2rem; }
    .lc-feature-strip article, .lc-feature-strip article + article {
        border-left: 0; padding: 1.5rem 0;
    }
    .lc-feature-strip article + article { border-top: 1px solid var(--clr-border); }
    .lc-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
    .lc-gallery .lc-wide { grid-column: span 1; }
    .lc-visit-details { grid-template-columns: repeat(2, 1fr); }
    .lc-visit-button { grid-column: 1; }
    .site-footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
    .lc-hero__actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .lc-hero__note { display: none; }
    .lc-gallery { grid-template-columns: 1fr 1fr; }
}

/* Le Cristal menu and basket: the homepage's paper, wine and editorial type. */
.lc-menu-page .menu-page-head{background:#f5efe5;padding:clamp(3rem,7vw,7rem) 0;border-bottom:1px solid var(--clr-border)}
.lc-menu-page .menu-page-head h1{font-family:var(--font-heading);font-size:clamp(2.7rem,5.2vw,5.4rem);font-weight:400;line-height:1.05;max-width:950px}
.lc-menu-page .menu-page-head .reference-wrap>span{color:var(--clr-primary);font-size:.7rem;text-transform:uppercase;letter-spacing:.22em}
.lc-menu-page .menu-page-nav{background:var(--clr-surface);border-bottom:1px solid var(--clr-border)}
.lc-menu-page .menu-category-section{padding:3rem 0}
.lc-menu-page .menu-image-col img{border-radius:0;height:380px}
.lc-menu-page .menu-item{padding:1.5rem .75rem;border-radius:0;border-bottom:1px solid var(--clr-border)}
.lc-menu-page .menu-item:hover{background:var(--clr-primary-lt)}
.lc-menu-page .item-name{font-family:var(--font-heading);font-size:1.5rem;white-space:normal;overflow-wrap:anywhere}
.lc-menu-page .item-price{font-family:var(--font-heading);font-size:1.3rem;font-weight:400;color:var(--clr-primary)}
.lc-menu-page .item-desc{color:var(--clr-text-muted);font-size:.9rem;line-height:1.6}
.lc-menu-page .add-indicator{border-color:var(--clr-primary);color:var(--clr-primary)}
.lc-menu-page .ki-nav-item{border-radius:0}
.cdc-cart-page .cart-shell{padding-top:clamp(2rem,5vw,5rem)}
.cdc-cart-page .cart-page-head{justify-content:flex-start;border-bottom:1px solid var(--clr-border);padding-bottom:2rem}
.cdc-cart-page .cart-page-head h1{font-size:clamp(2.7rem,5.2vw,5.4rem);line-height:1.05;font-weight:400}
.cdc-cart-page .cart-summary{background:var(--clr-primary-lt);border:1px solid var(--clr-border);border-radius:0;box-shadow:none}
.cdc-cart-page .cart-summary-head{font-family:var(--font-heading);font-size:2rem;font-weight:400;color:var(--clr-primary)}
.cdc-cart-page .cart-item{background:var(--clr-surface);border-radius:0;border-bottom:1px solid var(--clr-border);box-shadow:none}
.cdc-cart-page .ci-name{font-family:var(--font-heading);font-size:1.6rem;font-weight:400;color:var(--clr-text);overflow-wrap:anywhere}
.cdc-cart-page .ci-img,.cdc-cart-page .ci-img-ph{border-radius:0;background:var(--clr-primary-lt)}
.cdc-cart-page .ci-price,.cdc-cart-page .cs-row.total{color:var(--clr-primary)}
.cdc-cart-page .checkout-btn,.cdc-cart-page .coupon-btn,.cdc-cart-page .cart-empty .btn-primary{background:var(--clr-primary);color:white;border:1px solid var(--clr-primary);border-radius:0;font-size:.75rem;text-transform:uppercase;letter-spacing:.12em;min-height:48px}
.cdc-cart-page .checkout-btn:hover,.cdc-cart-page .coupon-btn:hover{background:var(--clr-primary-dk)}
.cdc-cart-page .coupon-input,.cdc-cart-page .qty-control{border:1px solid var(--clr-border);border-radius:0;background:var(--clr-surface)}
.cdc-cart-page .bottom-sheet,.lc-menu-page .bottom-sheet{background:var(--clr-surface);color:var(--clr-text)}
.cdc-cart-page .sheet-footer button{background:var(--clr-primary);border-radius:0}
@media(max-width:767px){.lc-menu-page .item-name{font-size:1.25rem}.cdc-cart-page .cart-summary{padding:1.5rem}.cdc-cart-page .cart-page-head{flex-wrap:wrap}.cdc-cart-page .ci-name{font-size:1.3rem}}

