/* ================================================
   SEA HORSE BEACH — MENU
   Mobile-First Stylesheet
   ================================================ */

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

:root {
  --deep:        #0d1b2a;
  --ocean:       #1b4f72;
  --teal:        #17768d;
  --sand:        #f5efe6;
  --sand-dark:   #ece5d8;
  --gold:        #c9a84c;
  --gold-light:  #e8d49e;
  --white:       #ffffff;
  --text:        #222222;
  --muted:       #777777;
  --border:      #e0d8cc;
  --card:        #ffffff;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(13,27,42,.07);
  --shadow-md: 0 4px 24px rgba(13,27,42,.11);

  --pad:  16px;
  --padl: 24px;

  --t: .2s ease;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--sand);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }

/* ── HERO (index) ─────────────────────────────── */
.hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(160deg, rgba(13,27,42,.85) 0%, rgba(27,79,114,.78) 55%, rgba(23,118,141,.70) 100%),
    url('bg-hero.jpg') center / cover no-repeat;
  overflow: hidden;
  padding-bottom: 52px;
}

.hero::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.05);
  top: -120px; right: -100px;
}
.hero::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.07);
  bottom: 40px; left: -70px;
}

.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 25%, rgba(255,255,255,.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 15%, rgba(255,255,255,.25) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 40%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,.15) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 70%, rgba(255,255,255,.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,.15) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 48px var(--pad) 0;
  color: var(--white);
}

.hero-logo {
  display: block;
  max-width: 230px;
  width: 60%;
  height: auto;
  margin: 0 auto 14px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--gold-light);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 6px;
}

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.hero-wave svg { display: block; width: 100%; height: 52px; }

/* ── HOME NAV ─────────────────────────────────── */
.home-nav {
  padding: 28px var(--pad) 60px;
  max-width: 560px;
  margin: 0 auto;
}

.section-lead {
  text-align: center;
  margin-bottom: 22px;
}
.section-lead h2 {
  font-size: 1.85rem;
  color: var(--deep);
  margin-bottom: 7px;
}
.section-lead p {
  font-size: 1.05rem;
  color: var(--muted);
  letter-spacing: .5px;
}

.scroll-hint {
  margin: 14px auto 0;
  width: 36px;
  height: 36px;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceDown 1.8s ease-in-out infinite;
}
.scroll-hint svg {
  width: 100%;
  height: 100%;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: .7; }
  50%      { transform: translateY(8px); opacity: 1; }
}

.nav-grid {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.nav-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border-radius: var(--r-md);
  padding: 20px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t);
  -webkit-tap-highlight-color: transparent;
}
.nav-card:active { transform: scale(.97); box-shadow: var(--shadow-md); }

.nav-card-icon {
  font-size: 2.1rem;
  width: 58px; height: 58px;
  background: var(--sand);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-card-content { flex: 1; min-width: 0; }
.nav-card-content h3 {
  font-size: 1.32rem;
  color: var(--deep);
  font-weight: 600;
  margin-bottom: 4px;
}
.nav-card-content p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.4;
}

.nav-card-arrow {
  color: var(--gold);
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

/* ── ALLERGEN WARNING (home) ─────────────────── */
.allergen-warning {
  margin-top: 22px;
  padding: 14px 16px;
  background: rgba(176, 86, 36, .07);
  border: 1px solid rgba(176, 86, 36, .22);
  border-radius: var(--r-md);
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.allergen-warning-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.4;
}
.allergen-warning-text {
  font-size: .96rem;
  color: #6b3819;
  line-height: 1.55;
  flex: 1;
}
.allergen-warning-text strong {
  color: #8a3a13;
  font-weight: 700;
  letter-spacing: .5px;
  margin-right: 4px;
  font-size: 1.04rem;
}
.allergen-warning-text .reg-note {
  display: block;
  margin-top: 8px;
  font-size: .86rem;
  font-style: italic;
  opacity: .8;
}

/* ── PAGE HEADER (inner pages) ────────────────── */
.page-header {
  position: sticky;
  top: 0; z-index: 100;
  background: var(--deep);
  padding: 10px var(--pad);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}

.back-btn {
  color: var(--gold-light);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  transition: background var(--t);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.back-btn:active { background: rgba(255,255,255,.1); }

.page-header-title {
  flex: 1;
  text-align: center;
}
.page-header-title .brand {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  display: block;
}
.page-header-title .section-name {
  font-size: 1.28rem;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  display: block;
}

.header-spacer { width: 72px; flex-shrink: 0; }

/* ── MENU CONTENT ─────────────────────────────── */
.menu-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 4px var(--pad) 80px;
}

/* Category */
.category { margin-top: 26px; }

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.category-header h2 {
  font-size: 1.05rem;
  color: var(--ocean);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.category-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
}

.category-note {
  font-size: .95rem;
  color: var(--muted);
  font-style: italic;
  margin: -6px 0 12px 4px;
}

/* ── ITEM CARD ────────────────────────────────── */
.item-card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 15px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.item-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
}
.item-card.frozen::before { background: #7ec8e3; }
.item-card.unavailable::before { background: #b0b0b0; }
.item-card.unavailable { opacity: .75; }
.item-card.unavailable .item-name { color: #888; }
.item-card.unavailable .item-price { text-decoration: line-through; color: #aaa; }
.unavailable-tag {
  font-size: .72rem;
  font-weight: 500;
  color: #a05525;
  font-style: italic;
  margin-left: 6px;
  white-space: nowrap;
  vertical-align: middle;
}

.item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.item-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--deep);
  line-height: 1.25;
  flex: 1;
}

.item-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.item-desc {
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 10px;
}

.item-note {
  font-size: .9rem;
  color: #4a9fb8;
  font-style: italic;
  margin-bottom: 9px;
}

/* ── ALLERGEN BADGES ──────────────────────────── */
.allergens {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .88rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 99px;
  letter-spacing: .2px;
}
.badge.glutine   { background: #fff3cc; color: #7a5c00; }
.badge.pesce     { background: #d6edf7; color: #0a4f6e; }
.badge.molluschi { background: #ede0f5; color: #5b1f8a; }
.badge.crostacei { background: #fde8d5; color: #8b3800; }
.badge.latte     { background: #dcf0e3; color: #1b5e35; }
.badge.uova      { background: #fef5d6; color: #6b4f00; }
.badge.nessuno   { background: #e4f5e9; color: #2e7d32; }

/* ── PIZZA CARD ───────────────────────────────── */
.pizza-card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 15px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.pizza-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #e05c2e;
}
.pizza-card.speciale::before {
  background: linear-gradient(to bottom, var(--gold), #c8853a);
}

.pizza-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--deep);
  line-height: 1.25;
  margin-bottom: 8px;
}
.pizza-ingredients {
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.55;
}
.pizza-extra {
  font-size: .98rem;
  color: var(--gold);
  margin-top: 7px;
  font-style: italic;
  font-weight: 500;
}
.pizza-allergens {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

/* ── COCKTAIL TIERS ───────────────────────────── */
.cocktail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cocktail-tier {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cocktail-tier::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.cocktail-tier.analcolico::before { background: #7ec8e3; }
.cocktail-tier.superpremium::before {
  background: linear-gradient(to right, var(--gold), #f0c040, var(--gold));
}

.tier-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.tier-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  color: var(--deep);
  font-weight: 600;
  margin-bottom: 6px;
}
.tier-price {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
}
.cocktail-tier.superpremium .tier-price { font-size: 2.1rem; }
.tier-sub {
  font-size: .9rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* ── BEVERAGE CARDS ───────────────────────────── */
.bev-card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bev-name {
  font-size: 1.2rem;
  color: var(--deep);
  font-family: 'Playfair Display', serif;
  flex: 1;
  line-height: 1.3;
}
.bev-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.bev-glass {
  font-size: .92rem;
  color: var(--muted);
  margin-left: 6px;
  white-space: nowrap;
}

/* Beer with sizes */
.beer-card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.beer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--deep);
  margin-bottom: 11px;
}
.beer-sizes { display: flex; gap: 8px; }
.beer-size {
  flex: 1;
  background: var(--sand);
  border-radius: var(--r-sm);
  padding: 10px 10px;
  text-align: center;
  border: 1px solid var(--border);
}
.beer-vol {
  font-size: .9rem;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.beer-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ocean);
}

/* Wine card */
.wine-card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 13px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.wine-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.wine-card.bianco .wine-dot { background: #d4b83a; }
.wine-card.rosato .wine-dot { background: #e08080; }
.wine-card.bollicine .wine-dot {
  background: linear-gradient(135deg, #f0c040, #c9a84c);
  box-shadow: 0 0 0 2px rgba(201,168,76,.25);
}
.wine-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  color: var(--deep);
  flex: 1;
  line-height: 1.3;
}
.wine-prices {
  text-align: right;
  flex-shrink: 0;
}
.wine-bottle-price {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.wine-glass-price {
  font-size: .92rem;
  color: var(--muted);
}

/* ── INFO BOX ─────────────────────────────────── */
.info-box {
  background: rgba(27, 79, 114, .07);
  border: 1px solid rgba(27, 79, 114, .18);
  border-radius: var(--r-md);
  padding: 15px 17px;
  margin: 18px 0 6px;
  font-size: 1.02rem;
  color: var(--ocean);
  line-height: 1.55;
}
.info-box strong { display: block; margin-bottom: 3px; font-weight: 600; }

/* ── ALLERGEN LEGEND ──────────────────────────── */
.legend-box {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin: 22px 0 6px;
  border: 1px solid var(--border);
}
.legend-box h3 {
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 12px;
}
.legend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px 10px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .96rem;
  color: var(--text);
}

/* ── FOOTER ───────────────────────────────────── */
.page-footer {
  text-align: center;
  padding: 28px var(--pad) 44px;
  color: var(--muted);
  font-size: 1rem;
}
.page-footer .footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.28rem;
  color: var(--deep);
  margin-bottom: 6px;
}
.footer-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 10px auto;
}

/* ── ANIMATIONS ───────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-card,
.item-card,
.pizza-card,
.cocktail-tier,
.bev-card,
.beer-card,
.wine-card {
  animation: fadeUp .3s ease both;
}

.nav-card:nth-child(1) { animation-delay: .04s; }
.nav-card:nth-child(2) { animation-delay: .08s; }
.nav-card:nth-child(3) { animation-delay: .12s; }
.nav-card:nth-child(4) { animation-delay: .16s; }
.nav-card:nth-child(5) { animation-delay: .20s; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (min-width: 480px) {
  .hero-title { font-size: 2.7rem; }
  .legend-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 640px) {
  .menu-page, .home-nav { padding-left: var(--padl); padding-right: var(--padl); }
}
