/* ─── Arya Beach Club — Public Menu CSS ─────────────────────────────────────── */

:root {
  --sand:      #faf8f4;
  --sand-dark: #f0ebe2;
  --gold:      #c8a96e;
  --gold-dark: #8a7355;
  --ink:       #1a1a1a;
  --ink-soft:  #444;
  --muted:     #888;
  --white:     #ffffff;
  --radius:    12px;
  --font-serif: 'Gascogne', Georgia, serif;
  --font-sans:  'Courier Prime', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--sand);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ─── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--sand);
  border-bottom: 1px solid rgba(200,169,110,0.25);
  position: relative;
  z-index: 100;
}

.site-header.sticky {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(250,248,244,0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.logo { height: 36px; width: auto; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--ink);
}

.header-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--gold-dark);
  letter-spacing: .04em;
}

.back-btn {
  font-size: .8rem;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: .04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.lang-switch a { transition: color .2s; }
.lang-switch a:hover,
.lang-switch a.active { color: var(--gold-dark); }
.lang-switch span { color: var(--gold); opacity: .5; }

.layout-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(200,169,110,.3);
  border-radius: 6px;
  overflow: hidden;
}
.layout-btn {
  background: none;
  border: none;
  padding: .3rem .4rem;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: background .15s, color .15s;
}
.layout-btn.active {
  background: var(--gold);
  color: var(--white);
}

/* Category nav pills */
.cat-nav {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .6rem 1.25rem;
  scrollbar-width: none;
  max-width: 800px;
  margin: 0 auto;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border: 1px solid rgba(200,169,110,.4);
  border-radius: 50px;
  color: var(--gold-dark);
  background: transparent;
  transition: all .2s;
  white-space: nowrap;
}
.cat-pill:hover,
.cat-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* ─── Home page ──────────────────────────────────────────────────────────────── */
.home-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero-text {
  text-align: center;
  padding: 2.5rem 0 2rem;
}

.hero-sub {
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: .02em;
  line-height: 1.1;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

@media (min-width: 480px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}

.menu-card {
  display: block;
  background: var(--white);
  border: 1px solid rgba(200,169,110,.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.menu-card-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-height: 130px;
}

.menu-type-badge {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

.menu-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

.menu-card-desc {
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.menu-card-cta {
  margin-top: auto;
  font-size: .75rem;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: .04em;
}

/* ─── Menu page ──────────────────────────────────────────────────────────────── */
.menu-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 5rem;
}

.menu-section {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.section-header { margin-bottom: 1.25rem; }

.section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .02em;
}

.section-desc {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .3rem;
  font-style: italic;
}

/* ─── Items — shared ─────────────────────────────────────────────────────────── */
.items-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.menu-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(200,169,110,.15);
  overflow: hidden;
  transition: box-shadow .2s;
}
.menu-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }

.item-body {
  padding: .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
}

.item-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  flex: 1;
}

.item-pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.price {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
}

.price-original {
  font-size: .8rem;
  color: var(--muted);
  text-decoration: line-through;
}

.price-discount {
  font-size: .95rem;
  font-weight: 600;
  color: #c0392b;
}

.item-allergens-text {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .1rem;
  line-height: 1.4;
}

/* ─── List layout (default) ──────────────────────────────────────────────────── */
.layout-list .menu-item {
  display: flex;
  flex-direction: row;
}

.layout-list .item-photo-wrap {
  flex-shrink: 0;
  width: 100px;
}

@media (min-width: 480px) {
  .layout-list .item-photo-wrap { width: 120px; }
}

.layout-list .item-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.layout-list .item-body { flex: 1; }

/* ─── Card layout ────────────────────────────────────────────────────────────── */
.layout-card .items-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .layout-card .items-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .layout-card .items-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.layout-card .menu-item {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
}

.layout-card .item-photo-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.layout-card .item-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}

.layout-card .menu-item:hover .item-photo {
  transform: scale(1.03);
}

.layout-card .item-body {
  flex: 1;
  padding: .85rem 1rem;
}

.layout-card .item-name {
  font-size: 1rem;
}

/* Allergen legend */
.allergen-legend {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid rgba(200,169,110,.15);
}

.legend-title {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .75rem;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .3rem .75rem;
}

.legend-item {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  font-size: .72rem;
  color: var(--ink-soft);
}

.legend-num {
  font-weight: 700;
  color: var(--gold-dark);
  min-width: 16px;
  flex-shrink: 0;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: .75rem;
  color: var(--muted);
  border-top: 1px solid rgba(200,169,110,.2);
  line-height: 2;
}

.site-footer a { color: var(--gold-dark); }

.footer-links { margin-top: .75rem; }

.pdf-link {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 3rem;
  font-style: italic;
}
