/* Tasty Bites - practice project
   Palette lives in :root so the whole look can change in one place. */
:root {
  --paper: #f6efe4;
  --paper-2: #efe5d3;
  --ink: #2a1d16;
  --muted: #7b6a5c;
  --clay: #b4472b;
  --clay-dark: #8f3520;
  --night: #1d1410;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); font-size: 0.92rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay); font-weight: 700; margin-bottom: 14px; }

/* ----- Navbar ----- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5%;
  color: #fff;
  transition: background 0.3s, color 0.3s, padding 0.3s;
}
.navbar.scrolled { background: var(--paper); color: var(--ink); padding: 12px 5%; box-shadow: 0 1px 0 rgba(42, 29, 22, 0.12); }
.logo { text-decoration: none; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; display: flex; flex-direction: column; line-height: 1; }
.logo small { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 5px; opacity: 0.8; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; font-size: 0.92rem; position: relative; }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { border: 1.5px solid currentColor; padding: 8px 18px; border-radius: 40px; transition: background 0.2s, color 0.2s; }
.nav-cta:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; color: inherit; }
.menu-toggle span { position: absolute; left: 8px; right: 8px; height: 2px; background: currentColor; transition: transform 0.25s; }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ----- Hero ----- */
.hero {
  min-height: 100vh; position: relative; display: flex; align-items: flex-end;
  padding: 0 5% 11vh; color: #fff;
  background: linear-gradient(180deg, rgba(20, 12, 8, 0.45), rgba(20, 12, 8, 0.78)), url('img/hero.jpg') center / cover;
}
.hero-content { max-width: 720px; animation: rise 0.9s ease both; }
.hero .eyebrow { color: #f0b9a4; }
.hero h1 { font-size: clamp(3rem, 9vw, 6.4rem); letter-spacing: -0.02em; }
.hero h1 em { font-weight: 400; }
.hero-text { max-width: 480px; margin: 22px 0 32px; font-size: 1.1rem; color: #eadfd2; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { position: absolute; right: 5%; bottom: 11vh; text-align: right; font-size: 0.85rem; letter-spacing: 0.06em; color: #eadfd2; border-right: 2px solid var(--clay); padding-right: 14px; animation: rise 0.9s 0.3s ease both; }
.hero-note strong { font-family: var(--serif); font-size: 1.3rem; color: #fff; letter-spacing: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.btn { display: inline-block; text-decoration: none; padding: 14px 28px; border-radius: 40px; font-weight: 700; font-size: 0.95rem; border: 1.5px solid transparent; cursor: pointer; font-family: var(--sans); transition: transform 0.2s, background 0.2s, color 0.2s; }
.btn:hover { transform: translateY(-3px); }
.btn-solid { background: var(--clay); color: #fff; }
.btn-solid:hover { background: var(--clay-dark); }
.btn-line { border-color: #fff; color: #fff; }
.btn-line:hover { background: #fff; color: var(--ink); }

/* ----- Sections ----- */
.section { padding: 110px 5%; max-width: 1200px; margin: 0 auto; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.story-photo { position: relative; transform: rotate(-2deg); }
.story-photo img { border: 10px solid #fff; box-shadow: 0 20px 40px rgba(42, 29, 22, 0.22); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.story-photo figcaption { position: absolute; bottom: -26px; right: 20px; background: var(--clay); color: #fff; font-family: var(--serif); font-style: italic; padding: 6px 16px; transform: rotate(2deg); }
.story-text h2 { margin-bottom: 22px; }
.story-text p { margin-bottom: 16px; color: #4d3d32; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--clay) !important; }

/* Menu: a typeset list, price pushed right by a dotted leader */
.menu { max-width: 1200px; }
.menu-head { margin-bottom: 44px; }
.menu-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; align-items: start; }
.menu-list { list-style: none; }
.menu-list li { padding: 18px 0; border-bottom: 1px solid rgba(42, 29, 22, 0.12); }
.dish-line { display: flex; align-items: baseline; gap: 10px; }
.dish-line h3 { font-size: 1.35rem; }
.leader { flex: 1; border-bottom: 2px dotted rgba(42, 29, 22, 0.3); transform: translateY(-4px); }
.price { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--clay); }
.menu-list p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; max-width: 460px; }
.sweet .dish-line h3::after { content: 'sweet'; font-family: var(--sans); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.14em; margin-left: 10px; border: 1px solid var(--clay); color: var(--clay); padding: 2px 8px; border-radius: 20px; vertical-align: middle; }
.menu-list .menu-foot { border: 0; font-size: 0.85rem; color: var(--muted); font-style: italic; }
.menu-photos { display: grid; gap: 22px; position: sticky; top: 100px; }
.menu-photos img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: 160px 160px 14px 14px; transition: transform 0.4s; }
.menu-photos img:nth-child(2) { border-radius: 14px 14px 160px 160px; }
.menu-photos img:hover { transform: scale(1.02); }

/* Quote band */
.quote-band { background: var(--night); color: #f3e9dc; padding: 90px 5%; text-align: center; }
.quote-band blockquote { max-width: 760px; margin: 0 auto; }
.quote-band p { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.3; }
.quote-band footer { margin-top: 22px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #c69a86; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 170px; gap: 14px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; transition: transform 0.4s, filter 0.4s; filter: saturate(0.95); }
.gallery-grid img:hover { transform: scale(1.03); filter: saturate(1.15); }
.g1 { grid-column: span 3; grid-row: span 2; }
.g2 { grid-column: span 3; }
.g3 { grid-column: span 3; }
.g4 { grid-column: span 3; }
.g5 { grid-column: span 3; }

/* Visit + booking */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 40px; align-items: start; }
.visit-card, .book-card { padding: 40px; border-radius: 18px; }
.visit-card { background: var(--paper-2); }
.visit-card h2, .book-card h2 { font-size: 2.2rem; margin-bottom: 14px; }
.hours { width: 100%; margin-top: 24px; border-collapse: collapse; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px solid rgba(42, 29, 22, 0.14); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-family: var(--serif); }
.today-row th, .today-row td { color: var(--clay); font-weight: 700; border: 0; }
.book-card { background: var(--ink); color: #f3e9dc; }
.book-card .muted { color: #c9b8a8; }
.book-card form { margin-top: 22px; display: grid; gap: 16px; }
.book-card label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; display: grid; gap: 6px; color: #c9b8a8; }
.book-card input { font: 1rem var(--sans); padding: 12px 14px; border-radius: 8px; border: 1.5px solid #4a3a30; background: #2b1f19; color: #fff; text-transform: none; letter-spacing: 0; }
.book-card input:focus { border-color: var(--clay); }
.book-card input:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.book-card input[aria-invalid='true'] { border-color: #ff9d85; }
.form-message { min-height: 1.4em; font-size: 0.92rem; }
.form-message.err { color: #ff9d85; }
.form-message.ok { color: #9be3a8; }

.footer { text-align: center; padding: 40px 5% 50px; font-size: 0.85rem; color: var(--muted); border-top: 1px solid rgba(42, 29, 22, 0.12); }
.footer .credit { margin-top: 8px; }
.footer a { color: var(--clay); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.story-photo.reveal.visible { transform: rotate(-2deg); }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .story, .menu-layout, .visit { grid-template-columns: 1fr; gap: 50px; }
  .menu-photos { grid-template-columns: 1fr 1fr; position: static; }
  .section { padding: 80px 6%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g1, .g2, .g3, .g4, .g5 { grid-column: span 1; grid-row: span 1; }
  .g1 { grid-column: span 2; grid-row: span 2; }
  .hero-note { display: none; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 6% 28px; background: var(--paper); color: var(--ink); box-shadow: 0 14px 24px rgba(0, 0, 0, 0.15); display: none; }
  .nav-links.open { display: flex; }
  .visit-card, .book-card { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
