/* ============================================================
   BAR EMILIA — Design System v2.0
   Style: Nature Distilled / Editorial Minimalism
   Typography: Lora (display) + DM Sans (body)
   ============================================================ */

:root {
  /* Color tokens */
  --bg:          #F8F5F0;
  --bg-alt:      #FFFFFF;
  --text:        #1C1713;
  --text-muted:  #6B5F52;
  --gold:        #A97130;
  --gold-dark:   #8C5D22;
  --gold-light:  #EDE3D4;
  --border:      #DDD4C4;
  --border-mid:  #C5BAA8;

  /* Typography */
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing scale (8px base) */
  --s-1:   0.5rem;
  --s-2:   1rem;
  --s-3:   1.5rem;
  --s-4:   2rem;
  --s-5:   2.5rem;
  --s-6:   3rem;
  --s-8:   4rem;
  --s-10:  5rem;
  --s-12:  6rem;
  --s-16:  8rem;

  /* Effects */
  --radius:    6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(28, 23, 19, 0.07);
  --shadow-md: 0 4px 20px rgba(28, 23, 19, 0.09);

  /* Motion */
  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
  --fast:  150ms;
  --mid:   250ms;
  --slow:  400ms;

  /* Z-index scale */
  --z-nav:  100;
  --z-menu: 200;
}

/* ============================================================
   RESET
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}

ul { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--text);
  font-weight: 600;
}

h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.1875rem; }
h4 { font-size: 1rem; }

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--s-3);
}

.section { padding: var(--s-12) 0; }

/* ============================================================
   SECTION TITLE
   ============================================================ */

.section-title {
  text-align: center;
  margin-bottom: var(--s-8);
  font-style: italic;
}

.section-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 1.5px;
  background: var(--gold);
  margin: var(--s-2) auto 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: 0.9375rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  min-height: 48px;
  transition:
    background var(--fast) var(--ease),
    color var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-mid);
}

.btn-outline:hover {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

/* ============================================================
   HEADER & NAV
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(248, 245, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 1.5px solid var(--border);
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--s-5);
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition:
    color var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}

.nav-links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-cta { display: none; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
}

.hamburger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hamburger .bar {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--mid) var(--ease);
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 68px;
  left: 0;
  width: 100%;
  background: var(--bg);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
  gap: var(--s-3);
  z-index: var(--z-nav);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: var(--s-16) 0 var(--s-12);
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-info { margin-bottom: var(--s-3); }

.status-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: var(--gold-light);
  color: var(--gold-dark);
}

.status-badge.open {
  background: #E6F2EC;
  color: #276749;
}

.status-badge.closed {
  background: #FAE9E9;
  color: #9B2C2C;
}

.hero-title {
  margin-bottom: var(--s-3);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto var(--s-6);
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
}

.hero-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition:
    color var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}

.hero-link-secondary:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ============================================================
   FEATURES
   ============================================================ */

.features {
  padding: var(--s-8) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4) var(--s-4);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   MENU HIGHLIGHTS
   ============================================================ */

.menu-highlights { background: var(--bg); }

.menu-previews {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}

.category-preview {
  background: var(--bg-alt);
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.category-title {
  font-size: 1.3125rem;
  font-style: italic;
  color: var(--gold);
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--border);
}

.menu-item-preview {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-2);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.item-name {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
}

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

.see-more-menu {
  text-align: center;
  margin-top: var(--s-8);
}

/* ============================================================
   RECOMMENDED
   ============================================================ */

.recommended { background: var(--bg-alt); }

.recommended-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
}

.recommended-card {
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: default;
  transition:
    border-color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}

.recommended-card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 12px rgba(169, 113, 48, 0.08);
}

.recommended-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.recommended-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   PHOTO GALLERY
   ============================================================ */

.gallery {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--border);
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 7;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--slow) var(--ease);
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(28, 23, 19, 0.65));
  color: #fff;
  padding: 3rem var(--s-2) 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about {
  background: var(--gold-light);
  text-align: center;
}

.about p {
  font-size: 1.0625rem;
  max-width: 640px;
  margin: 0 auto var(--s-3);
  color: var(--text);
  line-height: 1.8;
}

.about p:last-child { margin-bottom: 0; }

/* ============================================================
   CATERING
   ============================================================ */

.catering {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.catering-intro {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto var(--s-8);
}

.catering-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  max-width: 800px;
  margin: 0 auto;
}

.catering-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-4);
  text-align: center;
}

.catering-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin: 0 auto var(--s-3);
  width: 44px;
  height: 44px;
}

.catering-icon svg {
  width: 28px;
  height: 28px;
}

.catering-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--s-1);
}

.catering-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.catering-note {
  text-align: center;
  margin-top: var(--s-8);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact { background: var(--bg); }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
}

.contact-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  margin-bottom: var(--s-2);
}

.contact-intro {
  color: var(--text-muted);
  margin-bottom: var(--s-5);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
}

.contact-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-text strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  font-family: var(--font-sans);
}

.contact-text a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
  transition: color var(--fast) var(--ease);
}

.contact-text a:hover { color: var(--gold-dark); }

.contact-actions { margin-top: var(--s-5); }

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--s-12) 0 var(--s-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  margin-bottom: var(--s-8);
}

.footer-about h3 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: var(--s-2);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.75;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--s-3);
}

.footer-links ul li + li { margin-top: var(--s-1); }

.footer-links a {
  font-size: 0.9rem;
  transition: color var(--fast) var(--ease);
}

.footer-links a:hover { color: var(--gold); }

.footer-contact p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--s-1);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   MENU PAGE
   ============================================================ */

.menu-page-header {
  background: var(--gold-light);
  padding: var(--s-8) 0;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
  margin: var(--s-2) auto 0;
  font-weight: 300;
}

.menu-delivery-note {
  margin-top: var(--s-3);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.menu-delivery-note strong {
  color: var(--gold);
  font-weight: 600;
}

.menu-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  margin-top: var(--s-6);
}

.menu-category { scroll-margin-top: 120px; }

.menu-category-title {
  font-size: 1.875rem;
  font-style: italic;
  color: var(--gold);
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--border);
}

.full-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-2);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.item-details { flex: 1; }

.full-item-name {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}

.full-item-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.full-item-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

.categories-nav {
  display: flex;
  gap: var(--s-1);
  overflow-x: auto;
  padding: var(--s-2) 0;
  scrollbar-width: none;
  position: sticky;
  top: 68px;
  background: var(--bg-alt);
  z-index: 90;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-4);
}

.categories-nav::-webkit-scrollbar { display: none; }

.category-tab {
  padding: 0.4375rem 1.125rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  min-height: 36px;
  transition:
    background var(--fast) var(--ease),
    color var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}

.category-tab:hover,
.category-tab.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.category-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

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

/* ============================================================
   RESPONSIVE — DESKTOP
   ============================================================ */

@media (min-width: 768px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .features-grid { grid-template-columns: repeat(4, 1fr); }

  .menu-previews { grid-template-columns: repeat(2, 1fr); }

  .recommended-grid { grid-template-columns: repeat(3, 1fr); }

  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

  .hamburger { display: none; }

  .nav-links { display: flex; }

  .nav-cta { display: block; }

  .menu-wrapper {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s-12);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .gallery-item--wide {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
}
