:root {
  --bg: #f6efe5;
  --bg-soft: #fffaf4;
  --surface: #fffdf9;
  --surface-strong: #f8e7d2;
  --text: #2a1d17;
  --muted: #6f625b;
  --brand: #9f342f;
  --brand-deep: #76211d;
  --accent: #d7853d;
  --line: rgba(42, 29, 23, 0.12);
  --shadow: 0 18px 45px rgba(87, 42, 24, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(215, 133, 61, 0.18), transparent 30%),
    linear-gradient(180deg, #fff8f0 0%, var(--bg) 35%, #f3eadc 100%);
  color: var(--text);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(100%, calc(var(--container) + 32px));
  margin: 0 auto;
  padding: 16px 16px 120px;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(255, 250, 244, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(80, 50, 35, 0.08);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.brand-mark,
.logo-script {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 4vw, 2.7rem);
  line-height: 0.95;
}

.brand-sub,
.logo-line {
  color: var(--brand);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar-whatsapp,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.topbar-whatsapp,
.button-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 24px rgba(159, 52, 47, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.topbar-whatsapp:hover,
.button:hover {
  transform: translateY(-1px);
}

.section {
  margin-top: 28px;
}

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy,
.hero-card,
.menu-category,
.about-copy,
.contact-card,
.social-card,
.cart-panel {
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(125, 92, 68, 0.12);
  box-shadow: var(--shadow);
}

.hero-copy {
  width: 100%;
  max-width: none;
  padding: 22px;
  border-radius: var(--radius-xl);
}

.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(159, 52, 47, 0.08);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about-copy h2,
.cart-header h2 {
  margin: 10px 0 10px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero p,
.section-heading p,
.about-copy p,
.contact-card p,
.social-card span {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.hero-highlights {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  position: relative;
  padding-left: 20px;
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-visual {
  display: grid;
  gap: 18px;
}

.hero-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.logo-card {
  padding: 26px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(248, 231, 210, 0.96)),
    var(--surface);
}

.logo-lockup {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.mural-card {
  position: relative;
  min-height: 320px;
}

.mural-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mural-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  background: rgba(42, 29, 23, 0.74);
  color: #fff7f0;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.trust-strip {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.trust-strip article {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 244, 0.72);
  border: 1px solid var(--line);
}

.trust-strip span {
  color: var(--muted);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 18px;
}

.compact h2 {
  font-size: clamp(1.9rem, 6vw, 3.1rem);
}

.menu-groups {
  display: grid;
  gap: 20px;
}

.menu-category {
  padding: 18px;
  border-radius: var(--radius-xl);
}

.menu-category h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.menu-category p {
  margin: 0 0 18px;
  color: var(--muted);
}

.menu-list {
  display: grid;
  gap: 14px;
}

.menu-carousel-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.menu-carousel-viewport {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.menu-list-carousel {
  display: flex;
  gap: 14px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.menu-list-carousel::-webkit-scrollbar {
  display: none;
}

.menu-list-carousel .menu-item {
  flex: 0 0 calc((100% - 28px) / 3);
  min-width: 0;
  height: 100%;
  scroll-snap-align: start;
}

.menu-carousel-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(159, 52, 47, 0.2);
}

.menu-item {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid rgba(125, 92, 68, 0.1);
}

.menu-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.menu-item-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.menu-item-gallery::-webkit-scrollbar {
  display: none;
}

.menu-item-gallery img {
  scroll-snap-align: start;
}

.menu-item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.menu-item h4 {
  margin: 0;
  font-size: 1.08rem;
}

.price-tag {
  white-space: nowrap;
  color: var(--brand);
  font-weight: 900;
}

.menu-item p {
  margin: 0;
  color: var(--muted);
}

.menu-item button,
.quantity-button,
.floating-cart {
  cursor: pointer;
  border: 0;
}

.menu-item button {
  width: 100%;
}

.about-accordion {
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(125, 92, 68, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-accordion-summary {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
}

.about-accordion-summary::-webkit-details-marker {
  display: none;
}

.about-accordion-summary h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.about-accordion[open] .about-accordion-summary {
  padding-bottom: 0;
}

.about-section,
.location-section {
  display: grid;
  gap: 18px;
}

.about-image {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.about-copy {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.about-copy h2 {
  display: none;
}

.contact-grid,
.social-grid {
  display: grid;
  gap: 14px;
}

.contact-card,
.social-card {
  padding: 20px;
  border-radius: var(--radius-lg);
}

.contact-card.accent {
  background: linear-gradient(180deg, rgba(159, 52, 47, 0.98), rgba(118, 33, 29, 0.98));
  color: #fff;
}

.contact-card.accent p {
  color: rgba(255, 247, 240, 0.88);
}

.full {
  width: 100%;
}

.social-card {
  display: grid;
  gap: 10px;
}

.social-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(159, 52, 47, 0.08);
}

.social-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--brand);
}

.map-wrap {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
}

.cart-panel {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.96);
  backdrop-filter: blur(18px);
}

.cart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.cart-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cart-header h2 {
  font-size: 1.45rem;
  margin: 4px 0;
}

.cart-count,
.empty-cart {
  color: var(--muted);
}

.cart-items {
  display: grid;
  gap: 10px;
  min-height: 32px;
  margin-top: 4px;
  overflow: visible;
}

.empty-cart {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.3;
}

.cart-panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cart-panel::-webkit-scrollbar {
  display: none;
}

.cart-close {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(159, 52, 47, 0.1);
  color: var(--brand-deep);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.cart-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(125, 92, 68, 0.12);
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-item h4,
.cart-item p {
  margin: 0;
}

.cart-item p {
  color: var(--muted);
  font-size: 0.88rem;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quantity-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--brand-deep);
  font-weight: 900;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 4px;
  font-size: 0.98rem;
}

.cart-total-breakdown {
  display: grid;
  gap: 2px;
  margin: 8px 0 4px;
}

.cart-total-row-strong {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed rgba(125, 92, 68, 0.24);
  font-weight: 800;
}

.cart-note {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.cart-note.is-error,
.field-hint.is-error {
  color: var(--brand-deep);
}

.cart-note.is-success,
.field-hint.is-success {
  color: #2f6b35;
}

.order-form {
  display: grid;
  gap: 6px;
}

.order-form h3 {
  margin: 0;
  font-size: 0.95rem;
}

.order-form label {
  display: grid;
  gap: 4px;
  font-weight: 700;
  font-size: 0.92rem;
}

.address-field {
  position: relative;
}

.order-form .full-width-field {
  grid-column: 1 / -1;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(125, 92, 68, 0.2);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

.order-form textarea {
  min-height: 74px;
  resize: vertical;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: 2px solid rgba(159, 52, 47, 0.16);
  border-color: rgba(159, 52, 47, 0.45);
}

.field-hint {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.address-suggestions[hidden] {
  display: none;
}

.address-suggestions {
  display: grid;
  gap: 6px;
  max-height: 220px;
  margin-top: 6px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(125, 92, 68, 0.16);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 18px 30px rgba(87, 42, 24, 0.09);
}

.address-suggestion {
  padding: 10px 12px;
  border: 1px solid rgba(125, 92, 68, 0.12);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.address-suggestion:hover,
.address-suggestion:focus-visible {
  background: rgba(159, 52, 47, 0.06);
  border-color: rgba(159, 52, 47, 0.24);
  outline: none;
}

.address-suggestion strong,
.address-suggestion span {
  display: block;
}

.address-suggestion span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.floating-cart {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--brand-deep);
  color: #fff;
  box-shadow: 0 16px 28px rgba(118, 33, 29, 0.28);
}

.cart-drawer-backdrop[hidden] {
  display: none;
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 24;
  border: 0;
  background: rgba(42, 29, 23, 0.18);
  backdrop-filter: blur(10px);
}

.selection-modal[hidden] {
  display: none;
}

.selection-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  padding: 16px 0;
}

.selection-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 29, 23, 0.45);
}

.selection-dialog {
  position: relative;
  width: min(100% - 24px, 420px);
  max-height: calc(100vh - 32px);
  margin: 0 auto;
  padding: 16px;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  background: rgba(255, 252, 247, 0.98);
  box-shadow: var(--shadow);
}

.selection-form {
  display: grid;
  gap: 8px;
}

.selection-form h3,
.selection-form p {
  margin: 0;
}

.selection-copy {
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.92rem;
}

.selection-form label {
  display: grid;
  gap: 4px;
  font-weight: 700;
}

.selection-proteins {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(159, 52, 47, 0.06);
}

.selection-proteins[hidden] {
  display: none;
}

.selection-form select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(125, 92, 68, 0.2);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

.selection-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 767px) {
  .page-shell {
    padding: 12px 12px 32px;
  }

  .topbar {
    top: 8px;
    padding: 12px 14px;
    border-radius: 24px;
  }

  .brand-mark {
    font-size: 1.3rem;
  }

  .brand-sub {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .topbar-whatsapp,
  .button {
    min-height: 44px;
    padding: 10px 14px;
  }

  .hero-copy,
  .menu-category,
  .contact-card,
  .social-card,
  .cart-panel {
    border-radius: 20px;
  }

  .hero-copy {
    padding: 18px;
  }

  .hero h1 {
    font-size: clamp(2rem, 13vw, 3rem);
    line-height: 0.94;
  }

  .hero p {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-highlights li {
    font-size: 0.9rem;
  }

  .menu-carousel-shell {
    grid-template-columns: 1fr;
  }

  .menu-carousel-viewport {
    overflow: visible;
  }

  .menu-list-carousel {
    gap: 12px;
    padding-bottom: 4px;
    overflow-x: auto;
  }

  .menu-list-carousel .menu-item {
    flex: 0 0 84%;
  }

  .menu-carousel-button {
    display: none;
  }

  .cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(88vw, 360px);
    margin: 0;
    max-height: 100vh;
    overflow: auto;
    border-radius: 24px 0 0 24px;
    transform: translateX(100%);
    transition: transform 220ms ease;
    z-index: 25;
  }

  .cart-panel.is-open {
    transform: translateX(0);
  }

  .cart-close {
    display: inline-grid;
    place-items: center;
  }

  .floating-cart {
    display: inline-flex;
    right: 12px;
    bottom: 12px;
    padding: 12px 16px;
  }

  .floating-cart.is-hidden {
    display: none;
  }
}

@media (min-width: 768px) {
  .page-shell {
    padding: 20px 20px 40px;
  }

  .about-section {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .trust-strip,
  .contact-grid,
  .social-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .location-section {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .location-section .section-heading,
  .location-section .map-wrap {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1080px) {
  .page-shell {
    padding-right: 398px;
  }

  .menu-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cart-panel {
    top: 20px;
    right: max(20px, calc((100vw - var(--container)) / 2 + 20px));
    left: auto;
    bottom: 20px;
    width: 344px;
    max-height: calc(100vh - 40px);
    overflow: auto;
  }

  .order-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .order-form h3,
  .order-form label:last-of-type,
  .order-form button {
    grid-column: 1 / -1;
  }
}
