/* ============================================
   Spazio Nalukettu — site styles
   (SIPO component overrides at the bottom)
   ============================================ */

:root {
  --ink: #161a17;
  --forest: #13261c;
  --forest-2: #1a3326;
  --ivory: #f6f1e7;
  --stone: #e9e1d1;
  --brass: #b89553;
  --brass-light: #d6bb85;
  --text: #2b2f2c;
  --muted: #6f726c;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --strip-height: 0px;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--strip-height) + 80px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }

.container { width: min(1200px, 100% - 64px); margin-inline: auto; }
.container.narrow { width: min(860px, 100% - 48px); }
.muted { color: var(--muted); }
.center { text-align: center; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--forest);
}
.display.light { color: var(--ivory); }
.kicker {
  font-size: .74rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 18px;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 1.15em 2.2em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-solid { background: var(--brass); color: #fff; border-color: var(--brass); }
.btn-solid:hover { background: #a38244; border-color: #a38244; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--forest); }
.btn-line { padding: .95em 1.6em; border-color: currentColor; }
.btn-line:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn-dark { background: var(--forest); color: var(--ivory); }
.btn-dark:hover { background: var(--brass); }
.btn-outline-dark { border-color: var(--forest); color: var(--forest); }
.btn-outline-dark:hover { background: var(--forest); color: var(--ivory); }

.link {
  font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid currentColor;
  transition: color .3s;
}
.link:hover { color: var(--brass); }

/* ---------- Header ---------- */
.header {
  position: fixed; left: 0; right: 0; top: var(--strip-height); z-index: 1000;
  color: #fff;
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s;
}
.header-inner {
  width: min(1320px, 100% - 64px);
  margin-inline: auto;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: height .4s var(--ease);
}
.header.is-solid, body.page-inner .header { background: var(--ivory); color: var(--forest); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.header.is-solid .header-inner { height: 72px; }

.nav { display: flex; align-items: center; gap: 38px; font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.nav-right { justify-content: flex-end; }
.nav a:not(.btn) { position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor;
  transition: right .35s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { right: 0; }

.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-top { font-size: .64rem; font-weight: 500; letter-spacing: .5em; text-transform: uppercase; margin-bottom: 6px; padding-left: .5em; }
.logo-main { font-family: var(--serif); font-size: 2rem; font-weight: 500; font-style: italic; }

.burger { display: none; width: 40px; height: 40px; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; justify-self: end; }
.burger span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 7px auto; transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 990;
  background: var(--forest); color: var(--ivory);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px;
  font-family: var(--serif); font-size: 2.2rem;
}
.drawer[hidden] { display: none; }
.drawer .btn { font-size: .78rem; margin-top: 18px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  height: 100vh; min-height: 640px; max-height: 980px;
  display: grid; place-items: center;
  color: #fff; text-align: center; overflow: hidden;
  background: var(--forest);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%;
  filter: brightness(.5) contrast(1.08) saturate(.9);
  transform: scale(1.06);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.45) 100%); }
.hero-inner { position: relative; z-index: 1; padding: calc(var(--strip-height) + 40px) 24px 0; }
.hero-place, .hero-sub { font-size: .8rem; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; }
.hero-place { margin-bottom: 28px; color: var(--brass-light); }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.1rem, 8.5vw, 7.2rem); line-height: .98; letter-spacing: -.015em;
  margin-bottom: 30px;
}
.hero-sub { opacity: .85; margin-bottom: 44px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 36px; left: 50%; z-index: 1; width: 1px; height: 64px; background: rgba(255,255,255,.3); overflow: hidden; }
.hero-scroll span { position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: #fff; animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { to { top: 100%; } }

/* ---------- Inner page header ---------- */
.page-head {
  background: var(--forest); color: var(--ivory); text-align: center;
  padding: calc(var(--strip-height) + 72px + 90px) 0 90px;
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/pasta.jpg") center / cover; opacity: .12; filter: grayscale(.4);
}
.page-head > * { position: relative; }
.page-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; margin-bottom: 18px; }
.page-head p { color: #b9bbb1; max-width: 36em; margin: 0 auto; }

/* ---------- About (home) ---------- */
.about { padding: 140px 0 130px; }
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 100px; align-items: center; }
.about .display { font-size: clamp(2rem, 3.3vw, 2.8rem); line-height: 1.18; margin-bottom: 44px; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; color: var(--muted); }
.about-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 52px 0 0; padding-top: 34px; border-top: 1px solid rgba(19,38,28,.15);
}
.about-facts div + div { padding-left: 28px; border-left: 1px solid rgba(19,38,28,.15); }
.about-facts dt { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--brass); margin-bottom: 10px; }
.about-facts dd { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--muted); max-width: 13em; }
.about-img { margin: 0; position: relative; }
.about-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.about-img::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; border: 1px solid var(--brass); z-index: -1; }

/* ---------- Featured dishes (home, from get_menu) ---------- */
.featured { background: var(--forest); color: #d9d6cc; padding: 130px 0 120px; }
.featured-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 56px; }
.featured-head p { color: #a9ab9f; margin: 14px 0 0; max-width: 32em; }
.featured-head .link { color: #fff; }
.dish-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 96px; }
.dish { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.dish-top { display: flex; align-items: baseline; gap: 16px; }
.dish-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: #fff; line-height: 1.2; }
.dish-line { flex: 1; border-bottom: 1px dotted rgba(255,255,255,.18); transform: translateY(-5px); }
.dish-price { font-size: .95rem; color: var(--brass-light); letter-spacing: .04em; white-space: nowrap; }
.dish-desc { margin: 6px 0 0; font-size: .92rem; color: #9fa297; }
.placeholder-line { height: 14px; background: rgba(255,255,255,.06); margin: 30px 0; }

/* ---------- Specials (home, from get_menu) ---------- */
.specials { display: grid; grid-template-columns: 1fr 1fr; background: var(--stone); }
.specials-img { position: relative; min-height: 640px; overflow: hidden; }
.specials-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.specials-text { padding: 110px clamp(32px, 7vw, 110px); align-self: center; max-width: 700px; }
.special-block + .special-block { margin-top: 64px; }
.special-block .display { margin-bottom: 18px; font-size: clamp(2rem, 3.2vw, 2.8rem); }
.special-block .lead { font-family: var(--serif); font-size: 1.4rem; line-height: 1.4; color: var(--forest); }
.price-list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid rgba(19,38,28,.18); }
.price-list li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid rgba(19,38,28,.18); color: var(--forest); font-weight: 400; }
.price-list li span:last-child { white-space: nowrap; }
.price-list small { display: block; font-size: .8rem; color: var(--muted); font-weight: 300; }
.specials-text .actions { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Reviews ---------- */
.reviews { padding: 130px 0; text-align: center; }
.quote-wrap { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(10px); visibility: hidden; transition: opacity .7s var(--ease), transform .7s var(--ease), visibility .7s; }
.quote.is-active { opacity: 1; transform: none; visibility: visible; }
.quote p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; color: var(--forest); margin-bottom: 28px; }
.quote p::before { content: "“"; }
.quote p::after { content: "”"; }
.quote cite { font-style: normal; font-size: .76rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.quote-nav { display: flex; justify-content: center; gap: 12px; margin: 46px 0 38px; }
.quote-nav button { width: 28px; height: 2px; padding: 0; border: 0; cursor: pointer; background: rgba(19,38,28,.18); }
.quote-nav button.is-active { background: var(--forest); }
.reviews .link { color: var(--muted); font-size: .7rem; }

/* ---------- Order band ---------- */
.order-band { background: var(--forest-2); color: var(--ivory); padding: 90px 0; text-align: center; }
.order-band .display { margin-bottom: 16px; }
.order-band p { color: #b9bbb1; margin-bottom: 34px; }
.order-band .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Menu page (app.js renders into these) ---------- */
.menu-page { background: var(--forest); color: #d9d6cc; padding: 0 0 120px; min-height: 60vh; }
.menu-tabs-wrap {
  position: sticky; top: calc(var(--strip-height) + 72px); z-index: 50;
  background: var(--forest); border-bottom: 1px solid rgba(255,255,255,.1);
}
#api-menu-tabs {
  display: flex; gap: 36px; overflow-x: auto; scrollbar-width: none;
  width: min(1200px, 100% - 64px); margin: 0 auto; padding-top: 26px;
}
#api-menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  flex: none; font: inherit; font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  background: none; border: 0; color: #8f9388; cursor: pointer; padding: 0 0 20px; position: relative; white-space: nowrap;
  transition: color .3s;
}
.menu-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--brass-light); transform: scaleX(0); transition: transform .4s var(--ease); }
.menu-tab:hover, .menu-tab.active { color: #fff; }
.menu-tab.active::after { transform: scaleX(1); }

.menu-body { width: min(1200px, 100% - 64px); margin: 0 auto; padding-top: 64px; }
#menu-loading { text-align: center; color: #8f9388; padding: 60px 0; letter-spacing: .2em; text-transform: uppercase; font-size: .76rem; }
#api-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 80px; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.menu-card { display: flex; gap: 22px; align-items: flex-start; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.menu-card-img { flex: none; width: 92px; height: 92px; overflow: hidden; }
.menu-card-img img { width: 100%; height: 100%; object-fit: cover; }
.menu-card-img:not(:has(img)) { display: none !important; }   /* no photo → clean text row (beats the inline style) */
.menu-card-body { flex: 1; display: grid; grid-template-columns: 1fr auto; column-gap: 20px; }
.menu-card-body h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: #fff; line-height: 1.2; grid-column: 1; }
.menu-card-body p { grid-column: 1 / -1; margin: 6px 0 0; font-size: .92rem; color: #9fa297; }
.menu-card-body p:empty { display: none; }
.menu-card-footer { display: contents; }
.menu-card-footer .price { grid-column: 2; grid-row: 1; color: var(--brass-light); font-size: .98rem; letter-spacing: .04em; align-self: baseline; }
.menu-card-footer .order-link {
  grid-column: 1 / -1; justify-self: start; margin-top: 10px;
  font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #8f9388;
  border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 2px; transition: color .3s, border-color .3s;
}
.menu-card-footer .order-link:hover { color: var(--brass-light); border-color: var(--brass-light); }
.menu-note { width: min(1200px, 100% - 64px); margin: 56px auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: .82rem; color: #8f9388; }
.menu-note .link { color: #fff; }

/* ---------- Contact page ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; background: #fff; }
.contact-info { padding: 100px clamp(32px, 6vw, 96px); }
.contact-block { padding: 28px 0; border-top: 1px solid rgba(19,38,28,.12); }
.contact-block:first-child { border-top: 0; padding-top: 0; }
.contact-block h2 {
  font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 14px;
}
.contact-address { font-family: var(--serif); font-size: 1.7rem; line-height: 1.3; color: var(--forest); margin-bottom: 14px; }
.contact-phone { font-family: var(--serif); font-size: 2rem; color: var(--forest); }
.contact-block .link { color: var(--forest); }
.contact-block .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.contact-map { min-height: 720px; background: var(--stone); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.85) contrast(1.05); }

/* hours rows rendered by uiManager into #contact-hours-table */
.hours-table { max-width: 420px; }
.hours-row { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; border-bottom: 1px solid rgba(19,38,28,.08); font-size: .98rem; }
.hours-row .time { text-align: right; }
.hours-row .closed-day { color: var(--muted); }
.hours-row.today { color: var(--forest); font-weight: 500; }
.hours-row.today .day::after { content: "Today"; margin-left: 10px; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #9a9c95; font-size: .92rem; padding: 90px 0 34px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 48px; align-items: start; }
.footer h4 { margin: 0 0 18px; font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-light); }
.footer a:hover { color: var(--brass-light); }
.logo-footer { color: var(--ivory); align-items: flex-start; margin-bottom: 22px; }
.logo-footer .logo-top { padding-left: 0; }
.footer-phone { color: var(--ivory); font-size: 1.05rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* hours list rendered by uiManager into #footer-hours */
.footer-hours { list-style: none; margin: 0; padding: 0; }
.footer-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.footer-hours li.today { color: var(--ivory); }
.footer-hours .closed-day { opacity: .55; }
.footer-base {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  margin-top: 70px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}
.footer-base a { color: #c9c6bb; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================
   SIPO injected components (status strip etc.)
   ============================================ */
.status-strip {
  background: var(--ink) !important;
  color: #e9e5da;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 9px 0;
}
.status-strip.open { background: #1d3a29 !important; }
.status-strip.closed { background: #2a1d1a !important; }
.status-strip .container { width: min(1200px, 100% - 40px); }
.status-strip-inner { text-align: center; }
.status-strip .countdown-timer { color: var(--brass-light); font-variant-numeric: tabular-nums; }
.sipo-modal { background: var(--forest); border-radius: 0; font-family: var(--sans); }
.sipo-modal-title { font-family: var(--serif); font-weight: 500; font-size: 2rem; }
.offer-modal { border: 1px solid var(--brass); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 26px; }
  .about-grid { grid-template-columns: 1fr; gap: 80px; }
  .about-img { max-width: 520px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .burger { display: block; grid-column: 3; }
  .header-inner { grid-template-columns: 40px 1fr 40px; width: calc(100% - 40px); }
  .logo { grid-column: 2; }
  .logo-main { font-size: 1.65rem; }
  body.drawer-open .header { background: transparent; color: var(--ivory); box-shadow: none; transition: none; }

  .container, .menu-body, .menu-note, #api-menu-tabs { width: calc(100% - 40px); }
  .about { padding: 96px 0; }
  .about-cols { grid-template-columns: 1fr; gap: 0; }
  .about-facts { grid-template-columns: 1fr; gap: 22px; }
  .about-facts div + div { padding-left: 0; border-left: 0; padding-top: 22px; border-top: 1px solid rgba(19,38,28,.15); }
  .about-img::before { inset: 18px -12px -18px 18px; }
  .featured { padding: 96px 0; }
  .dish-grid, #api-menu-grid { grid-template-columns: 1fr; }
  .specials, .contact { grid-template-columns: 1fr; }
  .specials-img { min-height: 380px; }
  .specials-text { padding: 80px 20px; }
  .reviews { padding: 96px 0; }
  .contact-info { padding: 70px 20px; }
  .contact-map { min-height: 360px; }
  .menu-tabs-wrap { top: calc(var(--strip-height) + 72px); }
  #api-menu-tabs { gap: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-base { flex-direction: column; }
  .page-head { padding-bottom: 70px; }
  .status-strip { letter-spacing: .08em; font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.buffet-desc { color: var(--muted); font-size: .95rem; line-height: 1.75; margin: 0; }

/* ---------- Floating "Order online" button (all pages) ---------- */
.floating-order {
  position: fixed; right: 28px; bottom: 28px; z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  background: var(--brass); color: #fff;
  font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: background .3s var(--ease), transform .4s var(--ease), opacity .4s var(--ease);
}
.floating-order svg { width: 18px; height: 18px; }
.floating-order:hover { background: #a38244; }
.page-home .floating-order:not(.is-visible) { opacity: 0; transform: translateY(16px); pointer-events: none; }
body.drawer-open .floating-order { display: none; }
@media (max-width: 600px) {
  .floating-order { left: 16px; right: 16px; bottom: 16px; justify-content: center; }
  .footer { padding-bottom: 96px; }
}
