/* ===================================================
   Restaurant Athen Sonthofen — Shared Stylesheet
   Mediterranean / Warm & Rustic
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

:root {
  --terracotta:   #C1440E;
  --terracotta-light: #D4683A;
  --sand:         #F2E8D9;
  --sand-dark:    #E8D9C2;
  --olive:        #6B7C3A;
  --olive-dark:   #4A5628;
  --cream:        #FAF6EF;
  --ink:          #2C2416;
  --ink-light:    #5C4F3A;
  --gold:         #C9A84C;
  --gold-light:   #E8CB7A;
  --white:        #FFFCF7;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', sans-serif;
  --font-accent:  'Playfair Display', Georgia, serif;

  --shadow-sm:    0 2px 8px rgba(44,36,22,0.10);
  --shadow-md:    0 6px 24px rgba(44,36,22,0.15);
  --shadow-lg:    0 16px 48px rgba(44,36,22,0.20);

  --radius:       4px;
  --max-width:    1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ---- TEXTURE OVERLAY ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ===== NAVIGATION ===== */
.site-nav {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span { color: var(--sand); font-weight: 300; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--sand);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { background: var(--terracotta); color: var(--white); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sand);
  border-radius: 2px;
  transition: transform 0.3s;
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0.75rem; font-size: 0.9rem; }
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--ink);
  background-image: linear-gradient(160deg, #3d2d17 0%, var(--ink) 60%);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold), var(--terracotta));
}

.page-header .ornament {
  color: var(--gold);
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.page-header p {
  color: var(--sand-dark);
  font-size: 1rem;
  margin-top: 0.6rem;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  max-width: 200px;
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink-light);
  font-style: italic;
  margin-bottom: 1rem;
  margin-top: -0.5rem;
}

/* ===== MENU CATEGORY TABS ===== */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--sand-dark);
  padding-bottom: 1rem;
}

.menu-tab {
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  border-radius: 24px;
  padding: 0.45rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.menu-tab:hover { background: var(--sand-dark); color: var(--ink); }
.menu-tab.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* ===== MENU SECTION ===== */
.menu-section { display: none; animation: fadeIn 0.3s ease; }
.menu-section.visible { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.menu-note {
  background: var(--sand);
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1.1rem;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ===== MENU ITEMS ===== */
.menu-items { display: flex; flex-direction: column; gap: 0; }

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--sand-dark);
  align-items: baseline;
}

.menu-item:last-child { border-bottom: none; }

.menu-item:hover { background: rgba(242,232,217,0.4); margin: 0 -0.75rem; padding-left: 0.75rem; padding-right: 0.75rem; border-radius: var(--radius); }

.item-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.item-number {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  margin-right: 0.4rem;
  font-family: var(--font-body);
}

.item-desc {
  font-size: 0.88rem;
  color: var(--ink-light);
  margin-top: 0.25rem;
  line-height: 1.5;
  font-family: var(--font-body);
}

.item-allergens {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
}

.item-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--terracotta);
  white-space: nowrap;
  text-align: right;
}

/* subsection within menu */
.menu-subsection-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--olive-dark);
  margin: 1.8rem 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px dashed var(--sand-dark);
  font-style: italic;
}

/* ===== MODIFIERS BOX ===== */
.modifiers-box {
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-top: 2rem;
}

.modifiers-box h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.modifiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.4rem 1.5rem;
}

.modifier-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink-light);
  padding: 0.3rem 0;
  border-bottom: 1px dotted var(--sand-dark);
}

.modifier-price { font-weight: 700; color: var(--terracotta); }

/* ===== ALLERGEN TABLE ===== */
.allergen-section {
  margin-top: 3rem;
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.allergen-section h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.allergen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--ink-light);
}

.allergen-item { display: flex; gap: 0.5rem; }
.allergen-num { font-weight: 700; color: var(--terracotta); min-width: 1.2rem; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  border: 1px solid var(--sand-dark);
}

/* ===== INFO GRID ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.info-card p, .info-card address {
  font-size: 0.95rem;
  color: var(--ink-light);
  line-height: 1.8;
  font-style: normal;
}

.info-card strong { color: var(--ink); }

/* ===== DIVIDER ===== */
.divider {
  text-align: center;
  margin: 2.5rem 0;
  color: var(--gold);
  font-size: 1.4rem;
  letter-spacing: 0.6em;
  opacity: 0.6;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: var(--sand-dark);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.875rem;
  line-height: 2;
  position: relative;
  z-index: 1;
}

.site-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold), var(--terracotta));
  margin-bottom: 2rem;
}

.site-footer a { color: var(--gold-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.25rem;
}

/* ===== PRICE NOTE ===== */
.price-note {
  font-size: 0.8rem;
  color: var(--ink-light);
  text-align: right;
  margin-top: 1rem;
  font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .main-content { padding: 2rem 1rem 3rem; }
  .menu-item { gap: 0.5rem; }
  .item-name { font-size: 1rem; }
  .card { padding: 1.25rem; }
}
