/* ============ Ode — website (builds on the menu's app.css) ============ */

/* top bar: menu link next to the language switch */
.topbar-right { display: flex; align-items: center; gap: 8px; }
.top-link {
  display: grid; place-items: center; height: 40px; padding: 0 16px; border-radius: 99px;
  background: rgb(14 12 10 / .5); border: 1px solid var(--line-2); font-size: 14px; font-weight: 700;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .2s, scale .2s;
}
.top-link:active { scale: .95; }
.topbar.solid .top-link { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (hover: hover) { .top-link:hover { background: var(--surface-2); } }

/* hero buttons */
.hero-ctas {
  position: absolute; left: 0; right: 0; bottom: max(28px, env(safe-area-inset-bottom));
  display: flex; justify-content: center; gap: 10px; padding: 0 var(--gutter);
  opacity: 0; animation: rise .9s var(--ease-out) 1.3s forwards;
}
@supports (animation-timeline: scroll()) {
  .hero-ctas { animation: rise .9s var(--ease-out) 1.3s both, heroFade linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 55svh; }
}
.btn-solid, .btn-glass, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 99px; font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: scale .2s var(--ease), background .2s, border-color .2s, filter .2s;
}
.btn-solid svg, .btn-outline svg { width: 19px; height: 19px; }
.btn-solid:active, .btn-glass:active, .btn-outline:active { scale: .96; }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-glass { background: rgb(14 12 10 / .45); border: 1px solid rgb(243 236 226 / .35); color: var(--text); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-outline { border: 1px solid var(--line-2); color: var(--text); }
@media (hover: hover) {
  .btn-solid:hover { filter: brightness(.92); }
  .btn-glass:hover, .btn-outline:hover { border-color: var(--accent); }
}
.site .hero-content { padding-bottom: 104px; }

/* ---------- rhythm ---------- */
:root { --block: 112px; --gap: 40px; }
@media (min-width: 900px) { :root { --block: 180px; --gap: 96px; } }
.block { padding: var(--block) 0 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 900px) { .wrap { padding: 0 48px; } }

.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
html[lang="ka"] .eyebrow { font-size: 14px; letter-spacing: .02em; }
.block h2 { margin: 0 0 22px; font: 400 46px/1.04 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
html[lang="ka"] .block h2 { font: 500 29px/1.35 'Noto Serif Georgian', var(--serif); letter-spacing: 0; }
.block p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 31em; text-wrap: pretty; }
@media (min-width: 900px) {
  .block h2 { font-size: 66px; margin-bottom: 28px; }
  html[lang="ka"] .block h2 { font-size: 40px; }
  .block p { font-size: 17px; }
}
.ph { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* scroll reveal: photos unveil upward, text rises */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.ph.reveal { opacity: 1; transform: none; clip-path: inset(12% 0 0 0 round var(--radius)); transition: clip-path 1.3s var(--ease-out); }
.ph.reveal img { transform: scale(1.1); transition: transform 1.8s var(--ease-out); }
.ph.reveal.in { clip-path: inset(0 0 0 0 round var(--radius)); }
.ph.reveal.in img { transform: none; }

/* ---------- website header: keep the pianist (bottom right of the photo) in view ---------- */
/* (layout + the corner card itself are shared, in app.css: .hero.corner / .hero-corner) */
/* lighter bottom shading than the menu's header, so the piano corner isn't darkened away */
.site .hero-media::after {
  background:
    linear-gradient(to bottom, rgb(14 12 10 / .72) 0%, rgb(14 12 10 / .38) 34%, rgb(14 12 10 / .05) 56%, transparent 70%, rgb(14 12 10 / .55) 92%, var(--bg) 100%);
}
.site .hero-media img { object-position: 100% 50%; filter: saturate(.9) brightness(.8); } /* phones: crop to the right side, where she sits */

@media (min-width: 900px) {
  /* wide screens show the whole street: logo bottom-left, pianist bottom-right */
  .site .hero-content { padding: 0 48px 120px; }
  .site .hero-media img { object-position: 60% 62%; }
  .site .hero-media::after {
    background:
      linear-gradient(to right, rgb(14 12 10 / .6) 0%, rgb(14 12 10 / .2) 40%, transparent 60%),
      linear-gradient(to bottom, rgb(14 12 10 / .55) 0%, transparent 25%, transparent 78%, rgb(14 12 10 / .6) 94%, var(--bg) 100%);
  }
}

/* ---------- about ---------- */
.about-grid { display: grid; gap: 56px; }
.lead { color: var(--text) !important; font: 400 27px/1.4 var(--serif) !important; letter-spacing: -.005em; max-width: 24em !important; }
html[lang="ka"] .lead { font: 400 18.5px/1.85 'Noto Serif Georgian', var(--serif) !important; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.facts li { height: 38px; display: grid; place-items: center; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13.5px; font-weight: 600; }
.about-photo { aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--gap); }
  .lead { font-size: 36px !important; }
  html[lang="ka"] .lead { font-size: 23px !important; }
  .about-photo { aspect-ratio: 4 / 5.2; }
}

/* ---------- flavors ---------- */
.flavors .head { display: grid; justify-items: start; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 6px 0; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--accent); }
.link-arrow svg { width: 18px; height: 18px; color: var(--accent); transition: transform .3s var(--ease); }
.link-arrow:active svg { transform: translateX(4px); }
@media (hover: hover) { .link-arrow:hover svg { transform: translateX(4px); } }
.dishes { margin: 48px 0 0 !important; padding: 0 var(--gutter) 4px !important; gap: 14px !important; grid-auto-columns: 74% !important; }
@media (min-width: 720px) { .dishes { grid-auto-columns: minmax(260px, 28%) !important; gap: 22px !important; } }
@media (min-width: 900px) { .dishes { margin-top: 64px !important; padding-left: max(48px, calc((100vw - 1180px) / 2 + 48px)) !important; scroll-padding-inline: max(48px, calc((100vw - 1180px) / 2 + 48px)); } }
.dishes .feature { display: block; }

/* ---------- location ---------- */
.location { display: grid; gap: 48px; }
.location .wide { margin: 0; width: 100%; height: min(120vw, 78svh); overflow: hidden; }
.location .wide img { width: 100%; height: 100%; object-fit: cover; }
.location .wide.reveal { opacity: 1; transform: none; clip-path: inset(10% 0 0 0); transition: clip-path 1.3s var(--ease-out); }
.location .wide.reveal img { transform: scale(1.1); transition: transform 1.8s var(--ease-out); }
.location .wide.reveal.in { clip-path: inset(0); }
.location .wide.reveal.in img { transform: none; }
.loc-text { padding: 0 var(--gutter); }
.info { display: grid; gap: 20px; margin: 36px 0 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.info div { display: grid; gap: 4px; }
.info dt { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
html[lang="ka"] .info dt { font-size: 13px; letter-spacing: 0; }
.info dd { margin: 0; color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.5; }
.info a { border-bottom: 1px solid var(--line-2); }
@media (min-width: 900px) {
  .location { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--gap); max-width: 1180px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
  .location .wide { border-radius: var(--radius); height: auto; aspect-ratio: 4 / 5; }
  .location .wide.reveal { clip-path: inset(10% 0 0 0 round var(--radius)); }
  .location .wide.reveal.in { clip-path: inset(0 round var(--radius)); }
  .loc-text { padding: 0; }
}

/* ---------- gallery: swipeable row on phones, four across on desktop ---------- */
.gallery-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery-row::-webkit-scrollbar { display: none; }
.gallery .eyebrow { margin-bottom: 30px; }
@media (min-width: 900px) { .gallery .eyebrow { margin-bottom: 44px; } }
.gallery-row .ph { aspect-ratio: 3 / 4; scroll-snap-align: start; }
.gallery-row .ph:nth-child(2) { transition-delay: .08s; }
.gallery-row .ph:nth-child(3) { transition-delay: .16s; }
.gallery-row .ph:nth-child(4) { transition-delay: .24s; }
.gallery-progress { height: 2px; margin: 26px var(--gutter) 0; border-radius: 2px; background: var(--line); overflow: hidden; }
.gallery-progress span { display: block; height: 100%; width: 25%; border-radius: inherit; background: var(--accent); transition: width .2s linear; }
@media (min-width: 900px) {
  .gallery-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 24px; overflow: visible; max-width: 1180px; margin: 0 auto; padding: 0 48px; }
  .gallery-row .ph:nth-child(even) { margin-top: 56px; } /* gentle stagger */
  .gallery-progress { display: none; }
}

/* ---------- reservations ---------- */
.reserve { padding-bottom: 120px; }
.reserve-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin: 0 var(--gutter); padding: 56px 24px 44px; border-radius: 28px;
  background: radial-gradient(110% 70% at 50% 0%, rgb(232 176 113 / .14), transparent 65%), var(--bg-2);
  border: 1px solid var(--line-2);
}
@media (min-width: 900px) { .reserve-card { max-width: 760px; margin: 0 auto; padding: 80px 48px 64px; } }
.reserve-logo { width: 84px; height: auto; margin-bottom: 28px; opacity: .9; }
.reserve-card h2 { margin-bottom: 10px; }
.reserve-phone { font: 400 42px/1.1 var(--serif); color: var(--accent); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .reserve-phone { font-size: 56px; } }
.reserve-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 420px; margin-top: 36px; }
.reserve-actions a { padding: 0 12px; }
.reserve-hours { margin-top: 22px !important; color: var(--faint) !important; font-size: 14px !important; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .ph.reveal, .location .wide.reveal { opacity: 1; transform: none; clip-path: none; }
  .ph.reveal img, .location .wide.reveal img { transform: none; }
}
