/* Home page only. Shared parts live in tokens.css, base.css and layout.css. */

/* One calm page-load reveal: elements rise in order (CSS only, off for reduced motion) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s ease both; }
.rise-1 { animation-delay: .05s; } .rise-2 { animation-delay: .15s; }
.rise-3 { animation-delay: .25s; } .rise-4 { animation-delay: .35s; }

main { font-size: var(--fs-page); } /* Home body text: a little larger than in the menu */
/* Hero: full first screen with the shopfront photo, a dark shade and the text on top */
.hero { position: relative; display: grid; align-items: end; width: 100%; min-height: min(72vh, 44rem); min-height: min(72svh, 44rem); padding: calc(var(--header-h) + 2rem) 0 var(--space-5); overflow: hidden; color: #fff; background: var(--graphite); }
/* On very wide screens the sharp photo stops at 90rem; the same photo, blurred, fills the sides so nothing looks cut off */
.hero-bg { position: absolute; top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; animation: kenburns 14s ease-out both; }
/* the next photo fades in over the old one */
.hero-bg { transition: opacity 1.4s ease; }
.hero-bg--next { opacity: 0; }
.hero-bg--next.is-in { opacity: 1; }
/* one flat dark layer so the white text is easy to read (no gradient) */
.hero-shade { position: absolute; inset: 0; background: rgba(21, 21, 21, 0.5); }
.hero-inner { position: relative; }
.hero a { color: #fff; }
.hero h1 { margin-bottom: 0.25rem; font-size: var(--step-3); text-transform: uppercase; letter-spacing: 0.01em; }
.hero-tagline { margin-bottom: var(--space-3); font-size: var(--step-1); font-weight: 600; color: #f0f0f0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0; }
@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }

/* Section heads with a link on the right */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-4); }
.text-link { font-weight: 800; }

/* Our story */
.story-grid { display: grid; gap: var(--space-4); }
.story-copy { font-size: var(--fs-page); line-height: 1.6; max-width: 38rem; }
.checker-large { --sq: 28px; width: 100%; max-width: 20rem; height: calc(var(--sq) * 4); margin-top: var(--space-3);
  background: repeating-conic-gradient(var(--red) 0 25%, transparent 0 50%) 0 0 / calc(var(--sq) * 2) calc(var(--sq) * 2); }
@media (min-width: 56rem) { .story-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }

/* Signature dishes: rounded cards with a photo, name, price and one line */
.dishes { display: flex; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0.25rem 0 var(--space-1); }
.dishes::-webkit-scrollbar { display: none; }
.carousel-bar { display: flex; justify-content: flex-end; margin: var(--space-2) 0; }
.carousel-nav { display: flex; gap: var(--space-1); }
.carousel-btn { min-height: 2.75rem; min-width: 2.75rem; padding: 0.4rem 1rem; }
.dish { flex: 0 0 min(20rem, 82%); scroll-snap-align: start; overflow: hidden; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .3s ease, box-shadow .3s ease; }
.dish:hover { border-color: var(--graphite); box-shadow: 0 10px 30px rgba(21, 21, 21, .08); }
.dish-photo { aspect-ratio: 4 / 3; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.dish:hover .dish-photo img { transform: scale(1.06); }
.dish-body { padding: var(--space-2) var(--space-3) var(--space-3); }
.dish-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.dish h3 { margin: 0 0 0.35rem; }
.dish-price { margin: 0; text-align: right; font-weight: 800; white-space: nowrap; color: var(--red-text); }
.dish-price small { font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.dish p { color: var(--muted); margin: 0; }
.dish-top p.dish-price { color: var(--red-text); }
@media (min-width: 56rem) { .dish { flex-basis: calc((100% - 2 * var(--space-3)) / 3); scroll-snap-align: none; } .dish:nth-child(3n+1) { scroll-snap-align: start; } }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.dishes:focus-visible { outline: 3px solid var(--graphite); outline-offset: 2px; }
.dish p:not(.dish-price) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dish-price .price { display: block; }
.dish-price .price-line { display: block; }

/* Reviews (filled by script; empty list takes no space) */
.reviews-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin: var(--space-2) 0; }
.rating-summary { display: flex; align-items: center; gap: var(--space-2); margin: 0; text-decoration: none; color: inherit; }
.rating-summary:hover .rating-total { color: var(--graphite); text-decoration: underline; }
.rating-summary:focus-visible { outline: 3px solid var(--graphite); outline-offset: 4px; border-radius: var(--radius); }
.rating-summary:empty { display: none; }
.rating-num { font-size: 3.25rem; font-weight: 800; line-height: 1; color: var(--red-text); }
.rating-side { display: grid; gap: 0.2rem; }
.rating-side .review-stars { font-size: 1.35rem; }
.rating-total { color: var(--muted); font-size: var(--step--1); }
.reviews-nav { display: flex; justify-content: flex-end; gap: var(--space-1); margin: 0 0 0 auto; }
.reviews-btn { min-height: 2.75rem; min-width: 2.75rem; padding: 0.4rem 1rem; }
.reviews-list { list-style: none; margin: 0; padding: 0.25rem 0; display: flex; gap: var(--space-2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.review { flex: 0 0 min(22rem, 85%); scroll-snap-align: start; padding: var(--space-3); background: var(--paper); border-radius: var(--radius-lg); }
.review:focus-visible { outline: 3px solid var(--graphite); outline-offset: 2px; }
.review-top { margin: 0 0 var(--space-1); }
.review-stars { color: var(--red-text); letter-spacing: 0.1em; }
.review-text { margin: 0 0 var(--space-1); line-height: 1.55; }
.review-by { margin: 0; font-size: var(--step--1); color: var(--muted); }
.reviews-list:empty { display: none; }
.reviews .section-head { margin-bottom: 0; }


/* Latest posts */
.posts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 48rem) { .posts-list { grid-template-columns: repeat(3, 1fr); } }

/* Visit us */
.visit-title { color: var(--red-text); }
.visit-grid { display: grid; gap: var(--space-4); }
.map-slot { min-height: 18rem; display: grid; align-content: center; justify-items: start; gap: var(--space-2); padding: var(--space-4); background: var(--paper); border-top: 6px solid var(--red); border-radius: var(--radius-lg); }
.hours { margin: 0 0 var(--space-2); }
.hours div { display: flex; justify-content: space-between; max-width: 22rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 700; } .hours dd { margin: 0; }
.fhr { display: block; width: min(100%, 22rem); margin-top: var(--space-3); border-radius: 14px; transition: transform .3s ease, box-shadow .3s ease; }
.fhr:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21, 21, 21, .15); }
.fhr img { display: block; width: 100%; height: auto; border-radius: 14px; }
@media (min-width: 56rem) { .visit-grid { grid-template-columns: 1.2fr 1fr; align-items: center; } }

/* Scroll reveal (js/reveal.js adds .is-visible). Without JavaScript everything is simply visible. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }

/* Catering and events */
.catering { background: var(--graphite); color: var(--cream); }
.catering h2 { color: var(--red); margin-top: 0; line-height: 1.15; }
.catering p:first-child { margin-top: 0; }
.catering p { max-width: 36rem; }
.catering .btn { border-color: var(--cream); color: var(--cream); }
.catering .btn:hover { background: var(--cream); color: var(--graphite); }
.catering-grid { display: grid; gap: var(--space-3); align-items: start; }
@media (min-width: 56rem) { .catering-grid { grid-template-columns: 1fr 1.2fr; } }

/* Google Map: placeholder first, the live map after cookies are accepted */
.map-note { margin: 0; color: var(--muted); font-size: var(--step--1); }
.map-actions { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0; }
.map-slot--live { padding: 0; border-top: 0; min-height: 22rem; overflow: hidden; }
.map-frame { display: block; width: 100%; height: 100%; min-height: 22rem; border: 0; }
