/* Layout: a simple one-page trattoria site taken from Bontà's own dining room.
   Butter-yellow walls, sage-green arched window for the hero photo
   and strips of the green quatrefoil floor tile. */
:root {
  --wall: #F3DFA4;        /* dining-room walls */
  --paper: #FFFCF4;
  --ink: #1D2B25;
  --muted: #56625B;
  --line: #E6D7AC;
  --green: #1F5A4C;       /* floor tiles and canopy */
  --green-deep: #153F35;
  --green-night: #0F2F28;
  --sage: #86A98F;        /* window frames */
  --terracotta: #8E4636;  /* the façade */
  --on-green: #FFFCF4;
  --on-green-muted: #CFDCD3;
  --open: #2E8B57;
  --open-on-green: #7DDB8E;
  --focus: #E8541C;
  --shadow: rgba(29, 43, 37, .4);

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 36px);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; margin: 0; }
p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
section[id] { scroll-margin-top: 80px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Vietnamese visitors: hide the page for the moment it takes to swap in Vietnamese */
.i18n-wait body { visibility: hidden; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green); color: var(--on-green);
  padding: .6em 1em; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Shared pieces ---------- */
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); }
.section__head { max-width: 38rem; display: grid; gap: .6rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head p:not(.kicker) { color: var(--muted); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); line-height: 1.05; letter-spacing: -.01em; color: var(--green-deep); }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: .9em 1.4em;
  border: 1.5px solid transparent; border-radius: 999px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn--green { background: var(--green); color: var(--on-green); }
.btn--green:hover { background: var(--green-deep); }
.btn--line { border-color: var(--green); color: var(--green); }
.btn--line:hover { background: rgba(31, 90, 76, .08); }
.btn--light { background: var(--paper); color: var(--green); }
.btn--light:hover { background: var(--wall); }
.btn--ghost { border-color: rgba(255, 252, 244, .5); color: var(--on-green); }
.btn--ghost:hover { border-color: var(--on-green); background: rgba(255, 252, 244, .08); }
.btn--small { font-size: .9rem; padding: .65em 1.1em; }

.status { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.is-open { color: var(--open); }

/* green cement-tile strip */
.tiles { display: block; width: 100%; height: 36px; }
.tile-bg { fill: var(--green); }
.tile-fg { fill: var(--paper); }

.zoom { display: block; cursor: zoom-in; overflow: hidden; }
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.zoom:hover img { transform: scale(1.04); }

/* ---------- Header: logo, language, call ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.logo { display: block; line-height: 0; flex: none; }
.logo img { width: auto; height: 50px; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.lang { display: none; }
.js .lang { display: inline-flex; padding: 3px; border: 1.5px solid var(--line); border-radius: 999px; }
.lang button {
  min-width: 40px; padding: .5em .65em;
  font-weight: 700; font-size: .78rem; line-height: 1; letter-spacing: .06em;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer;
}
.lang button:hover { color: var(--green); }
.lang button[aria-pressed="true"] { background: var(--green); color: var(--on-green); }
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .logo img { height: 42px; }
}

/* ---------- Hero ---------- */
.hero { background: radial-gradient(circle at 85% 15%, rgba(255, 252, 244, .55), transparent 55%), var(--wall); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(36px, 6vw, 84px);
}
.hero__copy { display: grid; gap: 20px; justify-items: start; min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.015em; color: var(--green-deep); }
.lede { max-width: 32rem; font-size: clamp(1.05rem, 1.5vw, 1.18rem); }
.info { display: grid; gap: 10px; font-weight: 500; }
.info li { display: flex; align-items: flex-start; gap: 10px; }
.info .icon { margin-top: .2em; color: var(--green); }
.info li > span { display: flex; flex-wrap: wrap; column-gap: 12px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
@media (max-width: 440px) { .cta { width: 100%; } .cta .btn { flex: 1 1 0; padding-inline: .8em; } }

.hero__photo { margin: 0; width: 100%; max-width: 400px; justify-self: center; }
.window {
  padding: 10px; background: var(--sage);
  border-radius: 999px 999px 10px 10px;
  box-shadow: 0 30px 60px -34px var(--shadow);
}
.window img { aspect-ratio: 3 / 4; border-radius: 999px 999px 3px 3px; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { max-width: 300px; }
}

/* ---------- Food ---------- */
.dishes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.dish { display: grid; gap: 6px; align-content: start; }
.dish__photo { aspect-ratio: 1 / 1; border-radius: 18px; margin-bottom: 10px; background: var(--wall); }
.dish h3 { font-size: 1.5rem; line-height: 1.15; color: var(--green-deep); }
.dish p { font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) { .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }
@media (max-width: 420px) { .dish h3 { font-size: 1.3rem; } .dish p { font-size: .9rem; } }

/* ---------- Made by hand ---------- */
.made { background: var(--green); color: var(--on-green); }
.made .kicker { color: var(--wall); }
.made h2 { color: var(--on-green); }
.made__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.made__list li { display: grid; gap: 8px; align-content: start; }
.made__photo { aspect-ratio: 4 / 3; border-radius: 18px; margin-bottom: 10px; }
.made h3 { font-size: 1.65rem; line-height: 1.15; }
.made p { color: var(--on-green-muted); }
@media (max-width: 760px) { .made__list { grid-template-columns: 1fr; } }

/* ---------- The restaurant ---------- */
.room { background: var(--paper); }
.room__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.room__photo { aspect-ratio: 4 / 3; border-radius: 18px; }
@media (max-width: 760px) {
  .room__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .room__photo:first-child { grid-column: span 2; }
}

/* ---------- The team ---------- */
.team { background: var(--wall); }
.team__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.team__photo { margin: 0; width: 100%; max-width: 360px; justify-self: center; }
.team__copy { display: grid; gap: 12px; max-width: 32rem; }
.team__copy p:not(.kicker) { font-size: 1.1rem; }
@media (max-width: 760px) {
  .team__grid { grid-template-columns: 1fr; }
  .team__photo { max-width: 280px; }
}

/* ---------- Visit ---------- */
.visit { background: var(--green-deep); color: var(--on-green); padding-block: clamp(56px, 8vw, 104px); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.visit__copy { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.visit h2 { color: var(--on-green); }
.details { display: grid; gap: 18px; }
.details dt { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-green-muted); }
.details dd { margin-top: 4px; font-size: 1.15rem; font-weight: 500; line-height: 1.45; }
.details .status { margin-top: 4px; font-size: .95rem; color: var(--on-green-muted); }
.details .status.is-open { color: var(--open-on-green); }
.phone { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; text-decoration: none; font-variant-numeric: lining-nums; }
.phone:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.visit__photo { border-radius: 999px 999px 18px 18px; border: 10px solid var(--sage); }
.visit__photo img { aspect-ratio: 1161 / 880; }
@media (max-width: 860px) {
  .visit__grid { grid-template-columns: 1fr; }
  .visit__photo { border-width: 8px; }
}

/* ---------- Footer ---------- */
.foot { background: var(--green-night); color: var(--on-green-muted); padding-block: 40px 36px; font-size: .92rem; }
.foot__inner { display: grid; gap: 10px; justify-items: start; }
.foot__logo { width: auto; height: 54px; margin-bottom: 6px; }
.foot__legal { font-size: .85rem; }

/* ---------- Photo viewer ---------- */
.lightbox {
  width: min(96vw, 1000px); max-height: 94vh;
  padding: 0; border: 0; border-radius: 18px;
  background: var(--green-night); color: var(--on-green);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 25, 21, .86); }
.lightbox__img { width: 100%; max-height: calc(94vh - 64px); object-fit: contain; background: var(--green-night); }
.lightbox__caption { padding: 16px 64px 18px 20px; font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.lightbox__close {
  position: absolute; right: 10px; bottom: 10px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255, 252, 244, .4); background: var(--green-night); color: var(--on-green); cursor: pointer;
}
.lightbox__close path { stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
