/* Almira's Mediterranean Grill — Lebanese look
   Palette: Lebanese red (logo), cedar green, brass gold, limestone cream */
:root {
  --ink: #1a1714;
  --ink-2: #24201b;
  --red: #b8141a;
  --red-dark: #8f0f14;
  --cedar: #136b3c;
  --cedar-dark: #0d4f2c;
  --gold: #d9a441;
  --gold-light: #f0c66b;
  --stone: #f4ecdc;
  --paper: #fffaf0;
  --text: #2a241d;
  --muted: #6b6052;
  --line: #e3d5b8;
  --head: "Jost", "Helvetica Neue", Arial, sans-serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --header-h: 118px;

  /* geometric star lattice */
  --lattice-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c9a24a' stroke-opacity='.28' stroke-width='1.2'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Cpath d='M0 32h15M49 32h15M32 0v15M32 49v15'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Crect x='-12' y='-12' width='24' height='24' transform='rotate(45 0 0)'/%3E%3Crect x='52' y='-12' width='24' height='24' transform='rotate(45 64 0)'/%3E%3Crect x='-12' y='52' width='24' height='24' transform='rotate(45 0 64)'/%3E%3Crect x='52' y='52' width='24' height='24' transform='rotate(45 64 64)'/%3E%3C/g%3E%3C/svg%3E");
  --lattice-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.2'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Cpath d='M0 32h15M49 32h15M32 0v15M32 49v15'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Crect x='-12' y='-12' width='24' height='24' transform='rotate(45 0 0)'/%3E%3Crect x='52' y='-12' width='24' height='24' transform='rotate(45 64 0)'/%3E%3Crect x='-12' y='52' width='24' height='24' transform='rotate(45 0 64)'/%3E%3Crect x='52' y='52' width='24' height='24' transform='rotate(45 64 64)'/%3E%3C/g%3E%3C/svg%3E");
  /* zellige-style tile strip */
  --tiles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Crect width='56' height='28' fill='%23f4ecdc'/%3E%3Cpath d='M28 3l11 11-11 11-11-11z' fill='%23b8141a'/%3E%3Cpath d='M28 9l5 5-5 5-5-5z' fill='%23f4ecdc'/%3E%3Cpath d='M0 3l11 11L0 25zM56 3L45 14l11 11z' fill='%23136b3c'/%3E%3Cpath d='M0 1h56M0 27h56' stroke='%23c9a24a' stroke-width='2'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--stone); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.6rem); }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.tile-band { height: 28px; background: var(--tiles) repeat-x center / auto 28px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; text-decoration: none; padding: .8em 1.5em; border-radius: 4px; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--red); color: #fff; }
.btn-gold:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-dark { background: var(--cedar); color: #fff; }
.btn-dark:hover { background: var(--cedar-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { color: var(--red); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink) var(--lattice-dark); border-bottom: 3px solid var(--gold); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand img { height: 98px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 14px; text-decoration: none; color: #eee4d2; font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.nav a:hover, .nav a.active { color: var(--gold-light); }
.header-cta { margin-left: 12px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: #eee4d2; margin: 6px 0; transition: transform .2s, opacity .2s; }

/* Hero — full-width photo */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; min-height: min(78vh, 720px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0 0 0 30%; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; opacity: 0; transition: opacity 1.4s ease; }
.hero-bg img.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 30%, rgba(20, 17, 14, .55) 40%, rgba(20, 17, 14, 0) 58%); }
.hero-grid { position: relative; z-index: 1; padding: 64px 0 72px; }
.hero-copy { max-width: 560px; }
.hero-where { color: #e6d9bf; font-weight: 700; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4rem); color: #fff; margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0, 0, 0, .45); }
.hero h1 span { color: var(--gold-light); }
.lead { font-size: 1.12rem; color: #e2d8c6; max-width: 30em; margin-bottom: 26px; }
.today { margin: 22px 0 0; color: #cfc4b0; font-size: .95rem; }
.today b { color: #fff; }
.today .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3fae55; margin-right: 8px; vertical-align: 1px; }
.today.closed .dot { background: #e0403f; }

/* First-time picks */
.picks { padding: 56px 0; background: var(--stone) var(--lattice-light); }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ql { position: relative; display: flex; align-items: flex-end; gap: 12px; min-height: 260px; padding: 22px 24px; border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none; background: var(--ink); border-bottom: 4px solid var(--gold); }
.ql img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ql::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(20, 17, 14, .9) 0%, rgba(20, 17, 14, .35) 55%, rgba(20, 17, 14, .05) 100%); }
.ql-text, .ql-arrow { position: relative; z-index: 2; }
.ql-text { flex: 1; }
.ql-text b { display: block; font-family: var(--head); font-weight: 600; font-size: 1.8rem; line-height: 1.1; }
.ql-text small { display: block; color: rgba(255, 255, 255, .82); font-size: .95rem; margin-top: 4px; }
.ql-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 1.2rem; font-weight: 700; transition: transform .25s ease; }
.ql-order { border-bottom-color: var(--red); }
.ql-order .ql-arrow { background: var(--red); color: #fff; }
.ql:hover img { transform: scale(1.05); }
.ql:hover .ql-arrow { transform: translateX(4px); }
.ql:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Menu */
.menu { background: var(--paper); padding: 64px 0; }
.menu-page h1 { font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem); }
.menu-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 2px solid var(--line); margin: 8px 0 18px; }
.tab { font: 700 1.04rem var(--sans); letter-spacing: .02em; padding: 10px 0; margin-bottom: -2px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--ink); cursor: pointer; }
.tab:hover { color: var(--red); }
.tab[aria-selected="true"], .tab.active { color: var(--red); border-bottom-color: var(--red); }
a.tab { text-decoration: none; white-space: nowrap; }
.cat-nav { position: sticky; top: calc(var(--header-h) + 3px); z-index: 40; background: var(--paper); margin: 8px 0 0; padding-top: 6px; }
.menu-cat { scroll-margin-top: calc(var(--header-h) + 72px); padding-top: 36px; }
.menu-cat + .menu-cat { margin-top: 20px; border-top: 1px solid var(--line); }
.menu-cat h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 6px; }
.menu-cat h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 10px; background: var(--gold); }
.menu-cat .menu-note { margin: 4px 0 18px; }
.menu-cat h2 + .menu-list { margin-top: 18px; }
.menu-note { color: var(--text); font-size: 1.05rem; max-width: 52em; margin-bottom: 18px; }
.menu-note:empty { display: none; }
.menu-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.item h3 { font-size: 1.12rem; margin: 0; padding: 14px 16px 6px; flex: 1; }
.item .price { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0 16px 16px; font-size: .9rem; color: var(--muted); }
.item .price b { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; color: var(--red); }
.veg-dot { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--cedar); color: #fff; font-size: .62rem; font-weight: 900; margin-left: 6px; vertical-align: 2px; }
.legend { color: var(--text); font-size: .95rem; margin: 24px 0 6px; }
.legend .veg-dot { margin: 0 2px 0 0; }

/* Reviews */
.reviews { padding: 64px 0; }
.review-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.review { margin: 0; border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; }
.review .stars { color: var(--gold); letter-spacing: 2px; }
.review cite { display: block; font-style: normal; font-weight: 700; margin-top: 8px; }

/* About */
.story { padding: 80px 0; background: var(--stone) var(--lattice-light); }
.story-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.arch-frame { width: 100%; max-width: 440px; aspect-ratio: 4 / 5; object-fit: cover; margin-inline: auto; border-radius: 999px 999px 6px 6px; box-shadow: 0 0 0 8px var(--stone), 0 0 0 10px var(--gold); }
.story p { color: var(--ink); font-size: 1.2rem; line-height: 1.7; max-width: 32em; }

/* Catering */
.catering { background: var(--cedar) var(--lattice-dark); color: #eef3ec; padding: 80px 0; }
.catering h2 { color: #fff; }
.catering p { color: #d5e3d7; max-width: 34em; }
.catering-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.catering img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 6px solid var(--stone); }
.catering .btn-dark { background: var(--gold); color: var(--ink); }
.catering .btn-dark:hover { background: var(--gold-light); }
.catering .btn-outline { border-color: #eef3ec; color: #eef3ec; }
.catering .btn-outline:hover { background: #eef3ec; color: var(--cedar-dark); }

/* Visit */
.visit { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--paper); }
.map-side { position: relative; min-height: 460px; background: #e6decb; }
.map-side iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hours-side { padding: 56px clamp(20px, 4vw, 56px); }
.addr { font-size: 1.1rem; }
.addr a { color: var(--red); font-weight: 700; text-decoration: none; }
.svc { color: var(--muted); }
.open-status { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.open-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #3fae55; }
.open-status.closed .dot { background: var(--red); }
.hours { width: 100%; max-width: 380px; border-collapse: collapse; margin: 10px 0 24px; }
.hours td { padding: 5px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: 700; color: var(--red); }

/* Footer */
.site-footer { background: var(--ink) var(--lattice-dark); color: #cfc5b3; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0 28px; }
.f-logo { width: 260px; }
.site-footer h3 { font-size: 1.1rem; color: var(--gold-light); margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0 20px; font-size: .85rem; color: #8f8676; }

.mobile-bar { display: none; }

/* Responsive */
@media (max-width: 960px) {
  :root { --header-h: 90px; }
  .brand img { height: 72px; }
  .burger { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .nav { position: fixed; inset: calc(var(--header-h) + 3px) 0 auto 0; background: var(--ink); transform: translateY(-130%); transition: transform .25s ease; margin: 0; }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; padding: 8px 16px 18px; }
  .nav a { padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-bg { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .hero::after { background: linear-gradient(0deg, rgba(20, 17, 14, 1) 0%, rgba(20, 17, 14, 0) 48%); bottom: auto; height: calc(100vw * .625 + 2px); }
  .hero-grid { padding: 0 0 40px; margin-top: -36px; }
  .story-grid, .catering-grid, .visit { grid-template-columns: 1fr; gap: 36px; }
  .menu-list { grid-template-columns: repeat(3, 1fr); }
  .quick-links { grid-template-columns: 1fr; gap: 14px; }
  .ql { min-height: 170px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-logo { grid-column: 1 / -1; }
  .map-side { min-height: 320px; }
  .mobile-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 2px solid var(--gold); }
  .mobile-bar .btn { flex: 1; }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  .mobile-bar { transition: transform .25s ease; }
  body { padding-bottom: 68px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px; gap: 22px; scrollbar-width: none; }
  .tab { flex: none; }
  .menu-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .item h3 { font-size: 1rem; padding: 10px 10px 4px; }
  .item .price { padding: 0 10px 12px; font-size: .82rem; gap: 2px 8px; }
  .item .price b { font-size: 1rem; }
  /* About on phones: full-width photo fading into a dark panel */
  .story { padding: 0 0 44px; background: var(--ink); }
  .story-grid { gap: 0; }
  .arch-frame { max-width: none; width: calc(100% + 32px); margin: 0 -16px; aspect-ratio: 4 / 3; border-radius: 0; box-shadow: none;
    -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
  .story-grid > div { position: relative; margin-top: -48px; text-align: center; }
  .story h2 { color: #fff; font-size: 2rem; margin-bottom: 14px; }
  .story h2::after { content: ""; display: block; width: 56px; height: 3px; margin: 14px auto 0; background: var(--gold); }
  .story p { color: rgba(255, 255, 255, .82); font-size: 1rem; margin-inline: auto; }
}

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