/* Mobile-first styles. Colours come from js/config.js (set as CSS variables by main.js). */

:root {
  color-scheme: only light; /* never let the browser darken the page */
  --primary: #0f766e;
  --on-primary: #ffffff;
  --accent: #f59e0b;
  --bg: #fffaf3;
  --text: #1f2937;
  /* replaced by the fonts in config.js */
  --body-font: system-ui;
  --heading-font: var(--body-font);

  --muted: color-mix(in srgb, var(--text) 68%, var(--bg));
  --line: color-mix(in srgb, var(--text) 14%, transparent);
  --alt: color-mix(in srgb, var(--primary) 7%, var(--bg));
  --surface: color-mix(in srgb, var(--bg) 60%, #ffffff);
  --radius: 16px;
  --header-h: 64px;
  --wa-green: #25d366;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font), system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3,
.brand {
  font-family: var(--heading-font), Georgia, "Times New Roman", serif;
  font-weight: 700;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; }

a { color: var(--primary); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

[hidden] { display: none !important; }

.container { width: min(100% - 32px, 1100px); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--primary); color: var(--on-primary);
  padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-ghost { border-color: #fff; color: #fff; background: rgb(255 255 255 / .1); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; min-height: 44px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); position: relative; }

.brand {
  margin-right: auto; font-weight: 800; font-size: 1.1rem;
  color: var(--primary); text-decoration: none; line-height: 1.2;
}
.brand img { max-height: 44px; width: auto; }

.lang-switch {
  min-height: 40px; min-width: 48px; padding: 0 12px;
  border: 2px solid var(--primary); border-radius: 999px;
  background: transparent; color: var(--primary);
  font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer;
}

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle-bar { display: block; height: 2px; background: var(--text); border-radius: 2px; }

.site-nav {
  display: none;
  position: absolute; top: 100%; left: -16px; right: -16px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgb(0 0 0 / .08);
}
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.site-nav a {
  display: block; padding: 12px 32px;
  color: var(--text); text-decoration: none; font-weight: 600;
}
.site-nav a:hover { color: var(--primary); }

@media (min-width: 1024px) {
  .brand { margin-right: 0; }
  .site-nav a { white-space: nowrap; }
  .nav-toggle { display: none; }
  .site-nav {
    display: block; position: static; margin-left: auto;
    background: none; border: 0; box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 4px; padding: 0; }
  .site-nav a { padding: 8px 12px; }
  .lang-switch { margin-left: 8px; }
}

/* ---------- Hero ---------- */

section { scroll-margin-top: var(--header-h); }

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: end;
  min-height: min(88svh, 760px);
  color: #fff;
  background: var(--primary);
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(0 0 0 / .78), rgb(0 0 0 / .2) 75%);
}
.hero-content { padding-block: 96px 56px; }
.hero-tagline {
  margin: 0 0 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  font-size: .85rem; color: color-mix(in srgb, var(--accent) 70%, #fff);
}
.hero h1 {
  font-size: clamp(2.25rem, 9vw, 4.5rem);
  letter-spacing: -.02em; max-width: 16ch;
}
.hero-sub { font-size: clamp(1.05rem, 2.6vw, 1.3rem); max-width: 42ch; margin: 0 0 28px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.status.hero-status { margin: 24px 0 0; background: rgb(0 0 0 / .4); padding: 6px 14px; border-radius: 999px; }

/* Open / closed badge */
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 16px; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.status.is-open::before { background: #22c55e; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 10vw, 96px); }
.section-alt { background: var(--alt); }
.section h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); letter-spacing: -.01em; }
.section-intro { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
.small-note { color: var(--muted); font-size: .9rem; }
.prose p { margin: 0 0 16px; max-width: 60ch; }

/* About */
.about-grid { display: grid; gap: 32px; align-items: center; }
.about-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
}

/* Services / menu */
.services-grid { display: grid; gap: 20px; }
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
}
.menu-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px;
}
.menu-card h3 { font-size: 1.25rem; color: var(--primary); margin-bottom: 4px; }
.menu-card ul { list-style: none; margin: 0; padding: 0; }
.menu-card li { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.menu-card li:last-child { border-bottom: 0; }
.menu-row { display: flex; align-items: baseline; gap: 12px; }
.menu-name { font-weight: 700; }
.menu-price { margin-left: auto; font-weight: 800; color: var(--primary); white-space: nowrap; }
.menu-desc { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.menu-tag {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--accent); color: #1f2937; font-size: .72rem; font-weight: 800;
  vertical-align: middle; white-space: nowrap;
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.gallery-item {
  padding: 0; border: 0; background: var(--alt); cursor: zoom-in;
  border-radius: 12px; overflow: hidden;
}
.gallery-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .3s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.lightbox {
  padding: 0; border: 0; background: transparent;
  max-width: min(96vw, 1100px); max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgb(0 0 0 / .88); }
.lightbox img { max-height: 85vh; width: auto; margin: auto; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: -12px; right: -4px;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #fff; color: #111; font-size: 1.75rem; line-height: 1; cursor: pointer;
}

/* Reviews */
.reviews-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1.1rem; }
.review blockquote { margin: 8px 0 16px; }
.review figcaption { font-weight: 700; }
.review-source { color: var(--muted); font-weight: 400; font-size: .9rem; }

/* Hours & location */
.location-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .location-grid { grid-template-columns: 1fr 1.3fr; gap: 48px; } }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th,
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: top; }
.hours-table td { text-align: right; white-space: pre-line; }
.hours-table .is-today th,
.hours-table .is-today td { font-weight: 800; color: var(--primary); }
.address { font-weight: 600; }
.map {
  width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; background: var(--alt);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* Contact */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }
.contact-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%; margin-bottom: 16px; padding: 12px;
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--text) 25%, transparent); border-radius: 10px;
}
.contact-form textarea { resize: vertical; }
.contact-form .small-note { margin: 12px 0 0; }

/* Footer */
.site-footer {
  background: var(--text); color: var(--bg);
  padding: 32px 0 104px; text-align: center; font-size: .9rem;
}
.site-footer p { margin: 0; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; z-index: 50;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa-green); color: #fff;
  box-shadow: 0 6px 20px rgb(0 0 0 / .25);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.07); }

.noscript { padding: 24px 16px; text-align: center; font-weight: 700; }
