/* Indigo Resto – komponendid, mida Tailwindi utiliitidega korduvalt kirjutada ei tasu */
:root { --indigo: #1F2A6B; --indigo-900: #141B3C; --saffron: #E8892B; --saffron-600: #C96F14; --cream: #FBF6EE; --sand: #F3E9DA; --ink: #141B3C; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
.hero-kollaaz { height: min(560px, 120vw); }
[id] { scroll-margin-top: 96px; }  /* ankrud ei jää kleepuva päise alla */
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }

.site-header.is-scrolled { border-color: var(--sand); box-shadow: 0 6px 20px -16px rgba(20,27,60,.5); }

.nav-link { white-space: nowrap; position: relative; padding: .55rem .9rem; border-radius: .75rem; font-weight: 500; color: var(--ink); transition: color .2s, background .2s; }
.nav-link:hover { color: var(--indigo); background: var(--sand); }
.nav-link.is-active { color: var(--indigo); font-weight: 600; }
.nav-link.is-active::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .2rem; height: 2px; background: var(--saffron); border-radius: 2px; }

.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 .6rem; border-radius: 999px; font-size: .85rem; font-weight: 700; letter-spacing: .06em; color: var(--indigo); border: 1.5px solid rgba(31,42,107,.25); transition: background .2s, color .2s, border-color .2s; }
.lang-switch:hover { background: var(--indigo); color: #fff; border-color: var(--indigo); }

.btn-primary, .btn-outline, .btn-dark, .btn-ghost-light, .btn-ghost-dark {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .65rem 1.2rem;
  border-radius: 999px; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn-lg { min-height: 52px; padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-primary { background: var(--saffron); color: #fff; box-shadow: 0 8px 20px -10px rgba(201,111,20,.8); }
.btn-primary:hover { background: var(--saffron-600); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--indigo); color: var(--indigo); background: transparent; }
.btn-outline:hover { background: var(--indigo); color: #fff; }
.btn-dark { background: var(--indigo-900); color: #fff; }
.btn-dark:hover { background: var(--indigo); }
.btn-ghost-light { border: 2px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--indigo); }
.btn-ghost-dark { border: 2px solid var(--indigo-900); color: var(--indigo-900); }
.btn-ghost-dark:hover { background: var(--indigo-900); color: #fff; }
.btn-link { display: inline-block; font-weight: 600; color: var(--indigo); text-decoration: underline; text-decoration-color: var(--saffron); text-underline-offset: 5px; text-decoration-thickness: 2px; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--saffron-600); }
.section-title { margin-top: .6rem; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.12; color: var(--indigo); }
.footer-h { margin-bottom: 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff; }

.ph-tag { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--saffron-600); background: #FCEBD7; padding: .2rem .5rem; border-radius: 999px; }

/* Teadeteriba (haldusest) */
.teade { background: var(--indigo-900); color: #fff; }
.teade p { margin: 0; }

/* "Täna avatud" */
.open-status.is-open .dot { background: #2F9E5B; box-shadow: 0 0 0 4px rgba(47,158,91,.18); }
.open-status.is-closed .dot { background: #B3261E; }

/* KKK */
.faq { background: #fff; border-radius: 1rem; padding: 1.1rem 1.4rem; box-shadow: 0 1px 2px rgba(20,27,60,.05); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--indigo); }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 999px; background: #FCEBD7; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: var(--saffron-600); border-radius: 2px; transition: transform .25s; }
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon::after { transform: rotate(0); }

/* Menüü */
.chips { scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: .5rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 500; background: #fff; color: var(--ink); border: 1px solid var(--sand); white-space: nowrap; transition: background .2s, color .2s; }
.chip:hover { border-color: var(--saffron); }
.chip.is-active { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.filter { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .4rem .95rem; border-radius: 999px; font-size: .9rem; font-weight: 500; border: 1.5px solid var(--sand); background: #fff; }
.filter.is-on { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.dish .dots { flex: 1; border-bottom: 2px dotted rgba(31,42,107,.2); transform: translateY(-4px); min-width: 1rem; }
.dish.is-hidden { display: none; }
.price-pill { display: inline-flex; gap: .4rem; align-items: baseline; padding: .25rem .65rem; border-radius: 999px; background: var(--sand); font-size: .82rem; }
.price-pill dt { color: rgba(20,27,60,.7); }
.price-pill dd { font-weight: 700; color: var(--indigo); }
.tag { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.tag-veg { background: #E3F2E8; color: #22603A; }
.tag-mild { background: #F3E9DA; color: #7A5418; }
.tag-hot { background: #FDE3D6; color: #A3361A; }
.tag-xhot { background: #F9D2CF; color: #8E1C15; }

/* Vorm */
.field { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--indigo); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1.5px solid #E4D9C7; border-radius: .85rem; background: var(--cream); font-weight: 400; color: var(--ink); font-size: 1rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(232,137,43,.18); background: #fff; }
.field .is-invalid, .field input[aria-invalid="true"] { border-color: #B3261E; }

/* Galerii lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(10,14,32); color: #fff; }
.lightbox::backdrop { background: rgba(10,14,32,.9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 1rem; }
.lightbox figcaption { margin-top: .8rem; font-size: .95rem; color: rgba(255,255,255,.8); }
.lb-close, .lb-prev, .lb-next { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; line-height: 1; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--saffron); }
.lb-close { top: 16px; right: 16px; font-size: 1.2rem; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Tagasi üles */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--saffron); color: #fff; box-shadow: 0 10px 24px -10px rgba(20,27,60,.55);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s; }
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { background: var(--saffron-600); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Mobiili kleepuv tegevusriba */
@media (max-width: 639px) { .to-top { bottom: 18px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Päringuvormi lõksuväli: inimesele nähtamatu, robot täidab selle */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Kategooriapilt, kus roog on alumises osas */
.pilt-all { object-position: center 85%; }

/* Küpsisebänner (js/google.js) – ainult siis, kui Google tag on seatud */
.nousolek { position: fixed; z-index: 90; left: 1rem; right: 1rem; bottom: 1rem; max-width: 30rem; margin-left: auto; padding: 1.1rem 1.2rem; border-radius: 1.25rem; background: #fff; color: var(--ink); border: 1px solid var(--sand); box-shadow: 0 18px 40px -18px rgba(20,27,60,.45); font-size: .92rem; line-height: 1.5; }
.nousolek[hidden] { display: none; }
.nousolek-pealkiri { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 1.1rem; color: var(--indigo); }
.nousolek-tekst { margin-top: .35rem; color: rgba(20,27,60,.8); }
.nousolek-tekst a { color: var(--indigo); font-weight: 600; text-decoration: underline; text-decoration-color: var(--saffron); text-underline-offset: 3px; }
.nousolek-nupud { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .9rem; }
.nousolek-nupp { min-height: 44px; padding: .55rem 1rem; border-radius: 999px; font-weight: 600; border: 2px solid var(--indigo); color: var(--indigo); background: #fff; transition: background .2s, color .2s; }
.nousolek-nupp:hover { background: var(--indigo); color: #fff; }
