/* El Sabor de Mama
   Warm burgundy-on-cream look inspired by the printed menu.
   Mobile-first and accessible. */

:root {
  --wine: #6E242C;
  --wine-dark: #431116;
  --wine-mid: #8A333D;
  --wine-soft: #A85A62;
  --rose-edge: #8E4A52;
  --cream: #F8F1E3;
  --cream-deep: #EDE1CC;
  --paper: #FFFBF4;
  --ink: #3A1518;
  --muted: #6B3C40;
  --gold: #C6A15A;
  --gold-deep: #9A7430;
  --focus: #6E242C;
  --shadow: 0 10px 30px rgba(67, 17, 22, 0.12);
  --header-h: 62px;
  --tabs-h: 50px;
  --font-display: "Cinzel", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-logo: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script: "Great Vibes", "Segoe Script", "Apple Chancery", cursive;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --radius: 14px;
  --content: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -10%, #f3d9c4 0%, transparent 55%),
    linear-gradient(180deg, #f3e4d0 0%, var(--cream) 180px);
  background-color: var(--cream);
  line-height: 1.5;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--wine);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--wine-dark); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--wine-dark);
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 241, 227, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2cfc3;
}

.header-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: var(--header-h);
}

.wordmark {
  text-decoration: none;
  color: var(--wine);
  line-height: 1;
  flex: 0 0 auto;
}

.wordmark:hover { color: var(--wine-dark); }

.wordmark-el {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-align: center;
}

.wordmark-sabor {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  text-align: center;
}

.wordmark-mama {
  display: block;
  font-family: var(--font-logo);
  font-weight: 600;
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  margin-top: 0.1rem;
}

.header-nav {
  display: none;
  gap: 1.1rem;
  margin-left: 0.4rem;
}

.header-nav a {
  text-decoration: none;
  color: var(--wine);
  font-size: 0.92rem;
  font-weight: 600;
}

.header-nav a:hover { text-decoration: underline; }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-toggle {
  display: inline-flex;
  border: 1.5px solid var(--wine);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--wine);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.32rem 0.62rem;
  cursor: pointer;
  min-width: 2.4rem;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--wine);
  color: var(--cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.62rem 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid var(--wine);
  cursor: pointer;
  background: var(--wine);
  color: var(--cream);
}

.btn:hover { background: var(--wine-dark); color: var(--cream); border-color: var(--wine-dark); }

.btn-secondary {
  background: transparent;
  color: var(--wine);
}

.btn-secondary:hover {
  background: var(--wine);
  color: var(--cream);
}

.btn-ghost {
  background: var(--paper);
  color: var(--wine);
}

.btn-ghost:hover {
  background: var(--wine);
  color: var(--cream);
}

.btn-sm { padding: 0.42rem 0.8rem; font-size: 0.85rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0 1rem 2.2rem;
}

.papel {
  height: 54px;
  margin: 0 -1rem 1.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='54' viewBox='0 0 200 54'%3E%3Cpath d='M4 0h36v28l-8 10-10-8-10 10-8-12z' fill='%236E242C'/%3E%3Cpath d='M12 8h8v6h-8z' fill='%23F8F1E3'/%3E%3Cpath d='M20 18l6 6-6 4-6-4z' fill='%23C6A15A'/%3E%3Cpath d='M46 0h40v26c-6 4-10 14-20 20-10-6-14-16-20-20z' fill='%238A333D'/%3E%3Ccircle cx='66' cy='16' r='5' fill='none' stroke='%23F8F1E3' stroke-width='2'/%3E%3Cpath d='M60 16h12M66 10v12' stroke='%23F8F1E3' stroke-width='1.5'/%3E%3Cpath d='M92 0h36v30l-9 12-9-9-9 11-9-14z' fill='%23431116'/%3E%3Cpath d='M104 8c4 3 8 3 12 0-3 6-9 8-12 0z' fill='%23C6A15A'/%3E%3Cpath d='M134 0h40v27c-7 5-13 14-20 21-7-7-13-16-20-21z' fill='%236E242C'/%3E%3Cpath d='M146 10h16l-8 14z' fill='%23F8F1E3'/%3E%3Cpath d='M178 0h18v24l-9 12-9-12z' fill='%239A7430'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 54px;
}

.hero-card {
  max-width: var(--content);
  margin: 0 auto;
  background: var(--paper);
  border: 14px solid var(--rose-edge);
  border-radius: 6px;
  box-shadow: var(--shadow);
  position: relative;
  padding: 1.6rem 1.1rem 1.5rem;
  text-align: center;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(110, 36, 44, 0.18);
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 16px;
  height: 16px;
  background: linear-gradient(145deg, #ead08a, var(--gold-deep));
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(90, 60, 10, 0.25);
}

.corner-tl { top: -8px; left: -8px; }
.corner-tr { top: -8px; right: -8px; }
.corner-bl { bottom: -8px; left: -8px; }
.corner-br { bottom: -8px; right: -8px; }

.hero-ornament {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
  color: var(--wine);
  pointer-events: none;
}

.hero-ornament svg { width: 74px; height: auto; }

@media (min-width: 700px) {
  .hero-ornament {
    position: absolute;
    top: 1.6rem;
    left: 1.2rem;
    right: 1.2rem;
    margin: 0;
    z-index: 1;
  }
  .hero-ornament svg { width: 130px; }
}

.logo-el {
  font-family: var(--font-logo);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  letter-spacing: 0.2em;
  color: var(--wine);
  margin: 0;
  text-transform: none;
  font-weight: 600;
}

.logo-sabor {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 4.4rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: var(--wine);
  margin: 0.05rem 0;
}

.logo-mama {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: clamp(1.7rem, 5.5vw, 2.7rem);
  color: var(--wine);
  margin: 0;
  text-transform: none;
  letter-spacing: 0.02em;
  font-style: italic;
}

.tagline-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.45rem 0 0.85rem;
  color: var(--wine);
}

.tagline-wrap .rule {
  width: 36px;
  height: 1px;
  background: var(--wine);
  opacity: 0.7;
}

.tagline {
  font-family: var(--font-script);
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  color: var(--wine);
  line-height: 1;
  font-weight: 400;
}

.hero-lede {
  max-width: 36rem;
  margin: 0 auto 1.15rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

/* Category tabs */
.menu-tabs-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(248, 241, 227, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid #ead9c8;
  border-bottom: 1px solid #ead9c8;
}

.menu-tabs {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.45rem 1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.menu-tabs a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.menu-tabs a:hover { background: var(--cream-deep); }

.menu-tabs a[aria-current="true"] {
  background: var(--wine);
  color: var(--cream);
  border-color: var(--wine);
}

/* Main / folio */
.page {
  max-width: var(--content);
  margin: 0 auto;
  padding: 1.2rem 1rem 3rem;
}

.folio {
  background: var(--paper);
  border: 12px solid var(--rose-edge);
  border-radius: 6px;
  box-shadow: var(--shadow);
  position: relative;
  padding: 1.4rem 1.15rem 1.8rem;
}

.folio::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(110, 36, 44, 0.16);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}

.folio > * {
  position: relative;
  z-index: 1;
}

.talavera {
  height: 28px;
  margin: 0.3rem 0 1.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cpath d='M14 4 L28 14 L14 24 L0 14 Z' fill='none' stroke='%236E242C' stroke-width='1.6'/%3E%3Cpath d='M18 14 L28 7 L38 14 L28 21 Z' fill='%236E242C' opacity='0.9'/%3E%3Cpath d='M42 4 L56 14 L42 24 L28 14 Z' fill='none' stroke='%236E242C' stroke-width='1.6'/%3E%3Ccircle cx='28' cy='14' r='2' fill='%23C6A15A'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 22px;
  opacity: 0.9;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3.4vw, 1.55rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 1rem;
  text-align: center;
}

.section-title .flourish {
  width: 42px;
  height: 18px;
  flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 36' fill='%236E242C'%3E%3Cpath d='M2 18h18M64 18h18' stroke='%236E242C' stroke-width='1.6'/%3E%3Cpath d='M42 7c3 5 3 8 0 11-3-3-3-6 0-11Z'/%3E%3Cpath d='M42 29c3-5 3-8 0-11-3 3-3 6 0 11Z'/%3E%3Cpath d='M31 18c5-3 8-3 11 0-3 3-6 3-11 0Z'/%3E%3Cpath d='M53 18c-5-3-8-3-11 0 3 3 6 3 11 0Z'/%3E%3Ccircle cx='42' cy='18' r='2.2'/%3E%3Ccircle cx='42' cy='12.5' r='0.8'/%3E%3Ccircle cx='47.5' cy='18' r='0.8'/%3E%3Ccircle cx='42' cy='23.5' r='0.8'/%3E%3Ccircle cx='36.5' cy='18' r='0.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.menu-block {
  scroll-margin-top: calc(var(--header-h) + var(--tabs-h) + 14px);
  padding: 0.3rem 0 0.8rem;
}

.menu-block + .menu-block {
  margin-top: 0.6rem;
  padding-top: 1.1rem;
}

.menu-spread {
  display: grid;
  gap: 1.4rem;
}

.item-list { display: grid; gap: 0.85rem; }

.item {
  break-inside: avoid;
}

.item-top {
  display: grid;
  grid-template-columns: auto minmax(12px, 1fr) auto;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--wine);
}

.item-name {
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0;
}

.item-dots {
  border-bottom: 1px dotted rgba(110, 36, 44, 0.4);
  min-width: 12px;
  transform: translateY(-0.28em);
}

.item-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.item-desc {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.item-desc .proteins {
  margin-top: 1.2rem;
  padding: 0.9rem 0.7rem 0.3rem;
  border-top: 1px solid rgba(110, 36, 44, 0.15);
}

.protein-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
}

.protein-list li {
  background: var(--cream);
  border: 1px solid #e0c8b8;
  color: var(--wine);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.protein-list small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.compact-list {
  display: grid;
  gap: 0.35rem 1.4rem;
}

.compact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: baseline;
  color: var(--wine);
}

.compact-item .name { font-weight: 600; }
.compact-item .price { font-weight: 700; font-variant-numeric: tabular-nums; }
.compact-item .flavors {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: -0.15rem;
}

.drink-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 0.7rem;
}

/* Hours & location */
.info-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 0.4rem;
}

.info-card {
  background: var(--cream);
  border: 1px solid #e4cfc0;
  border-radius: 10px;
  padding: 1rem 1rem 1.05rem;
}

.info-card h3 {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--wine);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.hours-call {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--wine);
  font-size: 1.05rem;
  font-weight: 600;
}

.hours-call:hover { color: var(--wine-dark); }

.hours-phone {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.item-price-ask {
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.info-grid,
.info-card,
.map-embed {
  max-width: 100%;
  min-width: 0;
}

.info-card {
  overflow: hidden;
}

.map-embed {
  margin-top: 0.7rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e4cfc0;
  background: var(--cream-deep);
  aspect-ratio: 16 / 10;
  min-height: 200px;
  width: 100%;
}

.map-embed iframe {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
  display: block;
}

.address-block, .phone-block {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.neighborhood {
  margin: -0.15rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

/* Footer */
.site-footer {
  background: var(--wine-dark);
  color: #f3e6d8;
  text-align: center;
  padding: 1.6rem 1rem 2.2rem;
}

.site-footer a { color: #f8f1e3; }

.site-footer .name {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.site-footer p { margin: 0.25rem 0; color: #e8d2c6; font-size: 0.92rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 640px) {
  .header-nav { display: flex; }
  .hero-card, .folio { padding-left: 1.8rem; padding-right: 1.8rem; border-width: 16px; }
  .compact-list.cols-2 { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .menu-spread.cols-2 { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
  .item-list.cols-2 { grid-template-columns: 1fr 1fr; gap: 0.9rem 2rem; }
  .hero-card { padding-top: 2rem; padding-bottom: 1.8rem; }
  .hero-ornament svg { width: 120px; }
}


@media (max-width: 639px) {
  .section-title {
    flex-direction: column;
    gap: 0.2rem;
    letter-spacing: 0.1em;
  }
  .tagline-wrap {
    flex-direction: column;
    gap: 0.15rem;
  }
  .tagline-wrap .rule { width: 52px; }
  .tagline { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
