/* ============================================================
   ELIA GREEK TAVERN — Modern Mediterranean hospitality brand
   Ivory / limestone / olive / deep aegean / muted terracotta
   ============================================================ */

:root {
  --ivory: #F6F1E7;
  --cream: #FBF7EE;
  --limestone: #E9E1D0;
  --sand: #D9CDB6;
  --olive: #667052;
  --olive-deep: #4C543C;
  --aegean: #14344B;
  --terracotta: #A85B3F;
  --charcoal: #22201C;
  --ink-soft: #4A463E;
  --radius: 8px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --shadow-soft: 0 10px 30px rgba(34, 32, 28, 0.10);
  --shadow-lift: 0 18px 45px rgba(34, 32, 28, 0.16);
  --ease: cubic-bezier(0.25, 0.6, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 16px; }

::selection { background: var(--olive); color: var(--cream); }

/* ---------- Typography ---------- */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--charcoal);
}
.display {
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 0.95;
}
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
p { max-width: 62ch; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
  margin-bottom: 1.2rem;
}
.eyebrow--olive { color: var(--olive-deep); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- Layout ---------- */
.wrap { width: min(1240px, 92%); margin-inline: auto; }
.wrap--narrow { width: min(860px, 92%); margin-inline: auto; }
section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head.center { text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.btn--solid { background: var(--aegean); color: var(--cream); }
.btn--solid:hover { background: #0D2434; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--olive { background: var(--olive); color: var(--cream); }
.btn--olive:hover { background: var(--olive-deep); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--outline { border-color: currentColor; color: var(--charcoal); background: transparent; }
.btn--outline:hover { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); transform: translateY(-2px); }
.btn--ghost-light { border-color: rgba(251, 247, 238, 0.7); color: var(--cream); background: transparent; }
.btn--ghost-light:hover { background: var(--cream); color: var(--charcoal); transform: translateY(-2px); }
.btn--small { padding: 0.7rem 1.4rem; font-size: 0.72rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 1.4rem 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header.scrolled {
  background: rgba(251, 247, 238, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(34,32,28,0.08), 0 10px 30px rgba(34,32,28,0.06);
  padding: 0.8rem 0;
}
.logo { flex-shrink: 1; min-width: 0; overflow: hidden; }
.logo a {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  letter-spacing: 0.04em;
  color: var(--cream);
  transition: color 0.35s var(--ease);
  white-space: nowrap;
}
.logo a span { display: block; font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--sand); transition: color 0.35s var(--ease); }
.site-header.scrolled .logo a { color: var(--charcoal); }
.site-header.scrolled .logo a span { color: var(--olive-deep); }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a.nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.35s var(--ease);
}
.main-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.main-nav a.nav-link:hover::after { transform: scaleX(1); }
.site-header.scrolled .main-nav a.nav-link { color: var(--charcoal); }
.nav-cta { display: flex; align-items: center; gap: 0.8rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 130;
  position: relative;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--cream);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), background 0.35s var(--ease);
}
.site-header.scrolled .hamburger span { background: var(--charcoal); }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.site-header.scrolled .hamburger.open span { background: var(--charcoal); }
.hamburger.open span { background: var(--charcoal); }

/* Mobile menu panel */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 110;
  padding: 7rem 8% 3rem;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.8rem);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--limestone);
  color: var(--charcoal);
}
.mobile-menu .mobile-ctas { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; flex-shrink: 0; }
  .mobile-menu { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 25, 30, 0.35) 0%, rgba(20, 25, 30, 0.12) 45%, rgba(20, 25, 30, 0.62) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(4rem, 9vh, 7rem);
  color: var(--cream);
}
.hero-content .eyebrow { color: var(--sand); }
.hero h1 {
  color: var(--cream);
  font-size: clamp(3.6rem, 10vw, 8.5rem);
  line-height: 0.92;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--sand);
}
.hero-sub {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--limestone);
}
.hero-ctas { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Editorial / Experience section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-soft); width: 100%; }
.split-media .media-caption {
  position: absolute;
  left: -1.2rem; bottom: -1.2rem;
  background: var(--olive);
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
}
.split-body p + p { margin-top: 1rem; }
.split-body .btn { margin-top: 2rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-media .media-caption { left: 1rem; bottom: 1rem; }
}

/* ---------- Dishes ---------- */
.dishes { background: var(--cream); }
.dish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}
.dish-card { position: relative; }
.dish-card figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 4.6;
}
.dish-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.dish-card:hover img { transform: scale(1.05); }
.dish-meta { padding: 1.1rem 0.3rem 0; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.dish-meta h3 { font-size: 1.25rem; }
.dish-price { font-family: var(--serif); font-size: 1.1rem; color: var(--terracotta); }
.dish-card figure.dish-card--wide { aspect-ratio: 4 / 2.7; }
.dish-desc { padding: 0.2rem 0.3rem 0; font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 980px) { .dish-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dish-grid { grid-template-columns: 1fr; } }

/* ---------- Day to Night tabs ---------- */
.daynight { background: var(--charcoal); }
.daynight h2, .daynight h3 { color: var(--cream); }
.daynight .lede { color: var(--sand); }
.dn-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2.5rem 0; }
.dn-tab {
  padding: 0.8rem 1.8rem;
  border: 1px solid rgba(217, 205, 182, 0.35);
  border-radius: var(--radius);
  background: transparent;
  color: var(--sand);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
}
.dn-tab:hover { border-color: var(--sand); color: var(--cream); }
.dn-tab.active { background: var(--cream); color: var(--charcoal); border-color: var(--cream); }
.dn-panel { display: none; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.dn-panel.active { display: grid; animation: fadeUp 0.6s var(--ease); }
.dn-panel figure { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.35); aspect-ratio: 4/3; }
.dn-panel img { width: 100%; height: 100%; object-fit: cover; }
.dn-copy p { color: var(--sand); margin-top: 1rem; }
.dn-copy .eyebrow { color: var(--terracotta); }
.dn-time { font-family: var(--serif); font-style: italic; color: var(--sand); margin-top: 1.4rem; font-size: 1rem; }
@media (max-width: 860px) { .dn-panel { grid-template-columns: 1fr; } }

/* ---------- Reservation band ---------- */
.reserve-band { background: var(--aegean); color: var(--cream); text-align: center; }
.reserve-band h2 { color: var(--cream); }
.reserve-band p { margin: 1.2rem auto 2.4rem; color: var(--limestone); }

/* ---------- Events teaser ---------- */
.events-teaser { background: var(--ivory); }

/* ---------- Social ---------- */
.social { background: var(--cream); }

/* ---------- Location ---------- */
.location { background: var(--ivory); }
.location-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.hours-table { width: 100%; margin-top: 1.5rem; border-collapse: collapse; }
.hours-table td { padding: 0.7rem 0; border-bottom: 1px solid var(--limestone); font-size: 0.95rem; }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }
.hours-table td:first-child { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); filter: saturate(0.85); }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }
.location-details { margin-top: 1.4rem; font-size: 0.95rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: 0.4rem; }
.location-details a { color: var(--aegean); font-weight: 600; }
@media (max-width: 860px) { .location-grid { grid-template-columns: 1fr; } }

/* ---------- Menu page ---------- */
.menu-hero { padding-top: clamp(9rem, 16vh, 12rem); padding-bottom: 3rem; background: var(--ivory); }
.menu-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2.5rem 0 3.5rem; position: sticky; top: 72px; z-index: 40; background: rgba(246, 241, 231, 0.95); backdrop-filter: blur(8px); padding: 0.8rem 0; }
.menu-tab {
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--sand);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
}
.menu-tab:hover { border-color: var(--olive); color: var(--olive-deep); }
.menu-tab.active { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.menu-panel { display: none; }
.menu-panel.active { display: block; animation: fadeUp 0.5s var(--ease); }
.menu-category { margin-bottom: 4rem; }
.menu-category > h2 { margin-bottom: 0.5rem; }
.menu-category .cat-note { color: var(--ink-soft); font-style: italic; margin-bottom: 2rem; }
.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 3.5rem; }
@media (max-width: 760px) { .menu-list { grid-template-columns: 1fr; } }
.menu-item { border-bottom: 1px solid var(--limestone); padding-bottom: 1.2rem; }
.menu-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.menu-item-head h3 { font-size: 1.2rem; }
.menu-item .menu-price { font-family: var(--serif); font-size: 1.05rem; color: var(--terracotta); white-space: nowrap; }
.menu-item p { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.35rem; max-width: none; }
.menu-beverages { background: var(--charcoal); color: var(--cream); }
.menu-beverages h2, .menu-beverages h3 { color: var(--cream); }
.bev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; margin-top: 2.5rem; }
.bev-grid ul { display: flex; flex-direction: column; gap: 0.5rem; }
.bev-grid li { color: var(--sand); font-size: 0.95rem; padding-left: 1.1rem; position: relative; }
.bev-grid li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--terracotta); }
@media (max-width: 760px) { .bev-grid { grid-template-columns: 1fr; } }
.dietary-note { text-align: center; color: var(--ink-soft); font-size: 0.85rem; margin-top: 3rem; }

/* ---------- Forms ---------- */
.form-section { background: var(--cream); }
.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  background: var(--ivory);
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: var(--radius);
  border: 1px solid var(--limestone);
  box-shadow: var(--shadow-soft);
}
.inquiry-form .full { grid-column: 1 / -1; }
.inquiry-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--charcoal);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(102, 112, 82, 0.15);
}
.inquiry-form button { grid-column: 1 / -1; justify-content: center; }
#formStatus { grid-column: 1 / -1; }
#formStatus p { max-width: none; }
@media (max-width: 640px) { .inquiry-form { grid-template-columns: 1fr; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(11rem, 20vh, 15rem) 0 clamp(4rem, 8vw, 6.5rem);
  background: var(--aegean);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 32, 0.45), rgba(10, 22, 32, 0.75));
  z-index: 1;
}
.page-hero .page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero .page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: var(--cream); font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 0.98; }
.page-hero .eyebrow { color: var(--sand); }
.page-hero .lede { color: var(--limestone); margin-top: 1.2rem; }

/* ---------- Gallery page ---------- */
.gallery-page-lead { padding-bottom: 0; }
.gallery-page-main { padding-top: 3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--sand); padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand .logo a { color: var(--cream); }
.footer-brand .logo a span { color: var(--sand); }
.footer-brand p { font-size: 0.9rem; margin-top: 1rem; color: var(--sand); max-width: 30ch; }
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.92rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--cream); }
.footer-col address { font-style: normal; font-size: 0.92rem; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(217, 205, 182, 0.15);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.footer-bottom p { max-width: none; }
.footer-bottom a { opacity: 0.5; font-weight: 300; color: inherit; text-decoration: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { justify-content: center; text-align: center; } }

/* ---------- Sticky mobile reserve CTA ---------- */
.mobile-reserve {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  padding: 0.8rem 4% calc(0.8rem + env(safe-area-inset-bottom));
  background: rgba(251, 247, 238, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 -8px 30px rgba(34, 32, 28, 0.12);
}
.mobile-reserve .btn { width: 100%; justify-content: center; }
@media (max-width: 1080px) {
  .mobile-reserve { display: block; }
  body { padding-bottom: 76px; }
  .site-footer { padding-bottom: 5.5rem; }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.text-olive { color: var(--olive-deep); }
.text-terra { color: var(--terracotta); }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.section-alt { background: var(--limestone); }
