/* ==========================================================================
   Layout variants. Loaded after main.css. Each section carries a
   data-layout attribute (see inc/layouts.php); the first variant of every
   section is the default and needs no rules here. Colours, radii, shadows
   and type all come from the brand tokens, so any layout works with any kit.
   ========================================================================== */

.hero-media { display: none; margin: 0; }

/* ---------- Section headings (body class titles-*) ---------- */
.titles-left .section-title,
.titles-left .hours-note { text-align: left; }
.titles-left .section-title::after { margin-left: 0; }

.titles-plain .section-title::after { display: none; }

.titles-ruled .section-title { display: flex; align-items: center; gap: 24px; }
.titles-ruled .section-title::before,
.titles-ruled .section-title::after {
    content: '';
    display: block;
    flex: 1;
    width: auto;
    height: 1px;
    margin: 0;
    background: rgba(var(--gold-rgb), 0.55);
}

/* ---------- Header (desktop only; the mobile menu is shared) ---------- */
@media (min-width: 769px) {
    .site-header[data-layout="centered"] .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas: "nav brand actions";
        column-gap: 24px;
    }
    .site-header[data-layout="centered"] .primary-nav { grid-area: nav; justify-self: start; }
    .site-header[data-layout="centered"] .site-branding { grid-area: brand; justify-self: center; }
    .site-header[data-layout="centered"] .header-buttons { grid-area: actions; justify-self: end; }

    .site-header[data-layout="stacked"] .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas: ". brand actions" "nav nav nav";
        height: auto;
        padding-top: 14px;
        row-gap: 10px;
    }
    .site-header[data-layout="stacked"] .site-branding { grid-area: brand; justify-self: center; height: auto; }
    .site-header[data-layout="stacked"] .header-buttons { grid-area: actions; justify-self: end; }
    .site-header[data-layout="stacked"] .primary-nav {
        grid-area: nav;
        border-top: 1px solid color-mix(in srgb, var(--header-text) 18%, transparent);
    }
    .site-header[data-layout="stacked"] .primary-nav .nav-menu { justify-content: center; padding: 12px 0 14px; }

    .site-header[data-layout="compact"] .header-inner { justify-content: flex-start; }
    .site-header[data-layout="compact"] .primary-nav { margin-left: auto; }
    .site-header[data-layout="compact"] .header-buttons { margin-left: 28px; }
}

/* ---------- Hero ---------- */
.hero[data-layout="overlay-left"] .hero-overlay {
    background:
        linear-gradient(to right, rgba(var(--overlay-rgb), 0.82) 0%, rgba(var(--overlay-rgb), 0.5) 55%, rgba(var(--overlay-rgb), 0.1) 100%),
        var(--beep-hero-overlay-gradient);
}

.hero:is([data-layout="overlay-left"], [data-layout^="split"]) { text-align: left; }
.hero:is([data-layout="overlay-left"], [data-layout^="split"]) .hero-desc { margin-left: 0; margin-right: 0; }
.hero:is([data-layout="overlay-left"], [data-layout^="split"]) .hero-actions { align-items: flex-start; }
.hero:is([data-layout="overlay-left"], [data-layout^="split"]) .hero-cta-secondary,
.hero:is([data-layout="overlay-left"], [data-layout^="split"]) .hero-info,
.hero:is([data-layout="overlay-left"], [data-layout^="split"]) .hero-app-links { justify-content: flex-start; }

.hero[data-layout="overlay-left"] .hero-content { max-width: 1200px; }
.hero[data-layout="overlay-left"] .hero-content > * { max-width: 640px; }

.hero[data-layout^="split"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    background-image: none !important;
    background-color: var(--header-bg);
}
.hero[data-layout^="split"] .hero-overlay { display: none; }
.hero[data-layout^="split"] .hero-content { align-self: center; max-width: none; padding: 64px clamp(24px, 5vw, 80px); }
.hero[data-layout^="split"] .hero-media { display: block; position: relative; min-height: 360px; }
.hero[data-layout="split-left"] .hero-media { order: -1; }

.hero[data-layout="stacked"] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    background-image: none !important;
    background-color: var(--header-bg);
}
.hero[data-layout="stacked"] .hero-overlay { display: none; }
.hero[data-layout="stacked"] .hero-media { display: block; position: relative; order: -1; height: clamp(240px, 42vh, 460px); }
.hero[data-layout="stacked"] .hero-content { margin: 0 auto; padding: 56px 20px 64px; }

.hero[data-layout^="split"] .hero-media img,
.hero[data-layout="stacked"] .hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* On a solid panel there is no photo to protect, so the text shadows go. */
.hero:is([data-layout^="split"], [data-layout="stacked"]) :is(.hero-title, .hero-desc, .hero-eyebrow, .hero-info-item, .hero-app-label) { text-shadow: none; }

@media (max-width: 768px) {
    .hero[data-layout^="split"] { grid-template-columns: 1fr; }
    .hero[data-layout^="split"] .hero-media { order: -1; min-height: 240px; }
    .hero[data-layout^="split"] .hero-content { padding: 40px 20px 48px; }
    .hero[data-layout="overlay-left"] .hero-content { padding: 40px 20px; }
}

/* ---------- About ---------- */
.about-section[data-layout="photo-left"] .about-image { order: -1; }

.about-section:is([data-layout="photo-top"], [data-layout="photo-bottom"]) .about-grid { grid-template-columns: 1fr; gap: 40px; }
.about-section[data-layout="photo-top"] .about-image { order: -1; }
.about-section:is([data-layout="photo-top"], [data-layout="photo-bottom"]) .about-text { max-width: 760px; margin: 0 auto; }
.about-section:is([data-layout="photo-top"], [data-layout="photo-bottom"]) .about-image img { aspect-ratio: 21 / 9; height: auto; object-fit: cover; }

/* ---------- Menu highlights ---------- */
.highlights[data-layout="overlay"] .highlight-card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; padding: 0; }
.highlights[data-layout="overlay"] .highlight-card:not(.highlight-card--text) .highlight-img { position: absolute; inset: 0; }
.highlights[data-layout="overlay"] .highlight-card:not(.highlight-card--text) .highlight-img img { height: 100%; }
.highlights[data-layout="overlay"] .highlight-card:not(.highlight-card--text) .highlight-info {
    position: relative;
    z-index: 1;
    padding: 72px 22px 22px;
    text-align: left;
    background: linear-gradient(to top, rgba(var(--overlay-rgb), 0.94) 25%, rgba(var(--overlay-rgb), 0));
}
.highlights[data-layout="overlay"] .highlight-card:not(.highlight-card--text) .highlight-info h3 { color: #fff; }
.highlights[data-layout="overlay"] .highlight-card:not(.highlight-card--text) .highlight-info p { color: rgba(255, 255, 255, 0.9); }
.highlights[data-layout="overlay"] .highlight-card--text { min-height: 0; justify-content: flex-start; }
.highlights[data-layout="overlay"] .highlight-card--text .highlight-info { padding: 22px; }

.highlights[data-layout="horizontal"] .highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.highlights[data-layout="horizontal"] .highlight-card { display: grid; grid-template-columns: 40% minmax(0, 1fr); padding-bottom: 0; text-align: left; }
.highlights[data-layout="horizontal"] .highlight-img,
.highlights[data-layout="horizontal"] .highlight-img img { height: 100%; }
.highlights[data-layout="horizontal"] .highlight-img img { min-height: 210px; }
.highlights[data-layout="horizontal"] .highlight-info { align-self: center; padding: 24px; text-align: left; }
.highlights[data-layout="horizontal"] .highlight-card--text { grid-template-columns: 1fr; }
.highlights[data-layout="horizontal"] .highlight-card--text .highlight-badge { position: static; display: inline-block; margin: 20px 0 0 24px; }

.highlights[data-layout="menu-board"] .highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; row-gap: 0; }
.highlights[data-layout="menu-board"] .highlight-card {
    display: block;
    padding: 26px 0;
    overflow: visible;
    text-align: left;
    background: none;
    border: 0;
    border-bottom: 1px dashed rgba(var(--text-rgb), 0.3);
    border-radius: 0;
    box-shadow: none;
    transform: none;
}
.highlights[data-layout="menu-board"] .highlight-card:hover { transform: none; box-shadow: none; border-color: var(--accent-ink); }
.highlights[data-layout="menu-board"] .highlight-img { display: none; }
.highlights[data-layout="menu-board"] .highlight-badge { position: static; display: inline-block; margin-bottom: 8px; }
.highlights[data-layout="menu-board"] .highlight-info { text-align: left; padding: 0; }
.highlights[data-layout="menu-board"] .highlight-info h3 { font-size: 1.5rem; }
.highlights[data-layout="menu-board"] .highlight-info .btn {
    padding: 0;
    background: none;
    box-shadow: none;
    color: var(--accent-ink);
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.highlights[data-layout="menu-board"] .highlight-info .btn:hover { transform: none; color: var(--headline); }

@media (max-width: 900px) {
    .highlights[data-layout="horizontal"] .highlights-grid,
    .highlights[data-layout="menu-board"] .highlights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .highlights[data-layout="horizontal"] .highlight-card { grid-template-columns: 1fr; }
}

/* ---------- Opening hours ---------- */
.hours-row .hours-day { white-space: nowrap; }
.hours-row { gap: 16px; justify-content: space-between; }
.hours-row.is-today .hours-day { color: var(--accent-ink); }
.hours-row.is-today .hours-day::after {
    content: 'Today';
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-ui);
    background: var(--gold);
    color: var(--on-accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: 2px;
}

@media (min-width: 900px) {
    .opening-hours[data-layout="split"] .container {
        display: grid;
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        grid-template-rows: auto auto;
        grid-template-areas: "title panel" "note panel";
        column-gap: 72px;
        align-content: center;
    }
    .opening-hours[data-layout="split"] .section-title { grid-area: title; align-self: end; text-align: left; margin-bottom: 16px; }
    .opening-hours[data-layout="split"] .section-title::after { margin-left: 0; }
    .opening-hours[data-layout="split"] .hours-note { grid-area: note; align-self: start; margin: 0; text-align: left; }
    .opening-hours[data-layout="split"] .hours-wrapper { grid-area: panel; }
    .opening-hours[data-layout="split"] .hours-grid-single { grid-template-columns: 1fr; justify-content: stretch; }
}

.opening-hours[data-layout="week"] .hours-grid-single { grid-template-columns: 1fr; }
.opening-hours[data-layout="week"] .hours-column {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}
.opening-hours[data-layout="week"] .hours-column-header { display: none; }
.opening-hours[data-layout="week"] .hours-row {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 10px;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid rgba(var(--text-rgb), 0.14);
    border-radius: var(--radius-card);
}
.opening-hours[data-layout="week"] .hours-time { font-size: 0.9rem; }
.opening-hours[data-layout="week"] .hours-row.is-today { border-color: var(--gold); box-shadow: var(--card-shadow); }
@media (max-width: 1000px) {
    .opening-hours[data-layout="week"] .hours-column { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
.opening-hours[data-layout="week"] .hours-row.is-today .hours-day::after { display: block; margin: 8px auto 0; width: max-content; }

/* ---------- Gallery ---------- */
.gallery-preview[data-layout="masonry"] .gallery-grid { display: block; columns: 3 240px; column-gap: 15px; }
.gallery-preview[data-layout="masonry"] .gallery-item { margin-bottom: 15px; break-inside: avoid; }
.gallery-preview[data-layout="masonry"] .gallery-item img { height: auto; object-fit: cover; }
.gallery-preview[data-layout="masonry"] .gallery-item:nth-child(3n + 1) img { aspect-ratio: 3 / 4; }
.gallery-preview[data-layout="masonry"] .gallery-item:nth-child(3n + 2) img { aspect-ratio: 4 / 3; }
.gallery-preview[data-layout="masonry"] .gallery-item:nth-child(3n) img { aspect-ratio: 1 / 1; }

.gallery-preview[data-layout="mosaic"] .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 210px;
    grid-auto-flow: dense;
}
.gallery-preview[data-layout="mosaic"] .gallery-item,
.gallery-preview[data-layout="mosaic"] .gallery-link,
.gallery-preview[data-layout="mosaic"] .gallery-item img { height: 100%; }
.gallery-preview[data-layout="mosaic"] .gallery-item:nth-child(8n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery-preview[data-layout="mosaic"] .gallery-item:nth-child(8n) { grid-column: span 2; }
@media (max-width: 768px) {
    .gallery-preview[data-layout="mosaic"] .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
    .gallery-preview[data-layout="masonry"] .gallery-grid { columns: 2 150px; }
}

.gallery-preview[data-layout="strip"] .gallery-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--gold) transparent;
}
.gallery-preview[data-layout="strip"] .gallery-item { flex: 0 0 min(78vw, 380px); scroll-snap-align: start; }
.gallery-preview[data-layout="strip"] .gallery-item img { height: 300px; }

/* ---------- Testimonials ---------- */
.testimonials[data-layout="quotes"] .testimonials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
@media (max-width: 900px) {
    .testimonials[data-layout="quotes"] .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .testimonials[data-layout="quotes"] .testimonials-grid { grid-template-columns: 1fr; }
}
.testimonials[data-layout="quotes"] .testimonial-card {
    padding: 24px 0 0;
    text-align: left;
    background: none;
    border: 0;
    border-top: 1px solid rgba(var(--text-rgb), 0.28);
    border-radius: 0;
    box-shadow: none;
}
.testimonials[data-layout="quotes"] .testimonial-card:hover { transform: none; }
.testimonials[data-layout="quotes"] .testimonial-card::before {
    content: '\201C';
    display: block;
    margin-bottom: 4px;
    color: var(--accent-ink);
    font-family: var(--font-heading);
    font-size: 3.4rem;
    line-height: 1;
}
.testimonials[data-layout="quotes"] .testimonial-text { font-family: var(--font-heading); font-size: 1.2rem; font-style: normal; font-weight: 400; }

.testimonials[data-layout="featured"] .testimonials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.testimonials[data-layout="featured"] .testimonial-card:first-child { grid-column: 1 / -1; padding: 48px clamp(24px, 8vw, 120px); }
.testimonials[data-layout="featured"] .testimonial-card:first-child .testimonial-text {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
}
@media (max-width: 900px) {
    .testimonials[data-layout="featured"] .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .testimonials[data-layout="featured"] .testimonials-grid { grid-template-columns: 1fr; }
}

.testimonials[data-layout="scroller"] .testimonials-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--gold) transparent;
}
.testimonials[data-layout="scroller"] .testimonial-card { flex: 0 0 min(84vw, 340px); scroll-snap-align: start; text-align: left; }

/* ---------- Find us ---------- */
.location[data-layout="split-reverse"] .location-map { order: -1; }

.location[data-layout="stacked"] .location-grid { grid-template-columns: 1fr; gap: 32px; }
.location[data-layout="stacked"] .location-map { order: -1; }
.location[data-layout="stacked"] .location-map iframe { height: 380px; }
.location[data-layout="stacked"] .location-info { justify-content: center; }
.location[data-layout="stacked"] .location-info-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.location[data-layout="stacked"] .location-buttons { justify-content: center; }

@media (min-width: 769px) {
    .location[data-layout="overlay-card"] .location-grid { position: relative; display: block; }
    .location[data-layout="overlay-card"] .location-map iframe { height: 480px; }
    .location[data-layout="overlay-card"] .location-info {
        position: absolute;
        bottom: 28px;
        left: clamp(16px, 4vw, 48px);
        z-index: 2;
        width: min(380px, calc(100% - 32px));
        padding: 28px;
        background: var(--card-bg);
        border: 1px solid rgba(var(--text-rgb), 0.14);
        border-radius: var(--radius-card);
        box-shadow: var(--card-shadow);
    }
}

/* ---------- Footer ---------- */
.site-footer:is([data-layout="centered"], [data-layout="minimal"]) :is(.footer-links, .footer-legal, .footer-extra) .footer-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.site-footer[data-layout="centered"] .footer-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.site-footer[data-layout="centered"] .footer-brand { display: flex; flex-direction: column; align-items: center; padding-right: 0; }
.site-footer[data-layout="centered"] :is(.footer-menu, .legal-menu) { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.site-footer[data-layout="centered"] :is(.footer-menu, .legal-menu) li { margin: 0; }
.site-footer[data-layout="centered"] .footer-social { justify-content: center; }
.site-footer[data-layout="centered"] .footer-extra { display: flex; flex-direction: column; align-items: center; }
.site-footer[data-layout="centered"] .payment-list { justify-content: center; }

@media (min-width: 900px) {
    .site-footer[data-layout="minimal"] .footer-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        grid-template-areas: "brand links" "brand legal";
        align-items: center;
        gap: 12px 56px;
    }
    .site-footer[data-layout="minimal"] .footer-brand { grid-area: brand; }
    .site-footer[data-layout="minimal"] .footer-links { grid-area: links; align-self: end; }
    .site-footer[data-layout="minimal"] .footer-legal { grid-area: legal; align-self: start; }
    .site-footer[data-layout="minimal"] .footer-extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
    .site-footer[data-layout="minimal"] .footer-extra .hygiene-badge { margin-bottom: 0; max-height: 64px; }
    .site-footer[data-layout="minimal"] .footer-extra .payment-label { margin: 0; }
    .site-footer[data-layout="minimal"] :is(.footer-menu, .legal-menu) { justify-content: flex-end; }
}
.site-footer[data-layout="minimal"] .footer-brand { padding-right: 0; }
.site-footer[data-layout="minimal"] .footer-brand img { max-height: 64px; }
.site-footer[data-layout="minimal"] :is(.footer-menu, .legal-menu) { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer[data-layout="minimal"] :is(.footer-menu, .legal-menu) li { margin: 0; }

/* ---------- Find us: centred on phones, whatever the desktop layout ---------- */
@media (max-width: 768px) {
    .location .location-info { justify-content: center; }
    .location .location-info-inner { text-align: center; }
    .location .location-buttons { justify-content: center; flex-wrap: wrap; }
    .location .icon-line { justify-content: center; }
    .location .icon-line span { text-align: left; }
}
