/* ==========================================================================
   La Cabaña — design tokens
   ========================================================================== */

:root {
  /* color */
  --adobe:        #7A2E1F;
  --adobe-deep:   #552014;
  --adobe-tint:   #93412C;
  --marigold:     #E8963A;
  --marigold-hi:  #F4B057;
  --masa:         #FBF1E1;
  --masa-deep:    #F1E1C4;
  --nopal:        #47632F;
  --nopal-deep:   #344B21;
  --ink:          #2A1E17;
  --ink-soft:     #6B594B;
  --paper:        #FFFCF6;

  /* papel picado accent set — used only in the scallop/banner motif */
  --pp-pink:   #D2597A;
  --pp-teal:   #2E8C82;
  --pp-gold:   var(--marigold);
  --pp-green:  var(--nopal);

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-hand: "Caveat", cursive;

  /* layout */
  --max-w: 1180px;
  --gap: clamp(1.25rem, 2vw, 2rem);
  --radius: 6px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--masa);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--adobe-deep);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
  margin-bottom: 0.75em;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

section { position: relative; }

.section-pad { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.bg-masa   { background: var(--masa); }
.bg-paper  { background: var(--paper); }
.bg-adobe  { background: var(--adobe); color: var(--masa); }
.bg-adobe h1, .bg-adobe h2, .bg-adobe h3 { color: var(--paper); }
.bg-adobe .lede { color: #E9CFC2; }
.bg-nopal  { background: var(--nopal); color: var(--masa); }
.bg-nopal h1, .bg-nopal h2, .bg-nopal h3 { color: var(--paper); }

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--marigold);
  color: var(--ink);
  box-shadow: 0 2px 0 var(--adobe-deep);
}
.btn-primary:hover { background: var(--marigold-hi); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(0,0,0,0.06); }
.bg-adobe .btn-outline:hover, .bg-nopal .btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-ghost {
  background: transparent;
  color: inherit;
  padding: 0.6em 0.2em;
  border-bottom: 2px solid var(--marigold);
  border-radius: 0;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid rgba(42,30,23,0.1);
}

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

.wordmark {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--adobe-deep);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark span { color: var(--marigold); }

.wordmark-logo { display: inline-flex; align-items: center; }
.wordmark-logo img { height: 54px; width: auto; display: block; }

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.3em 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--marigold);
  color: var(--adobe-deep);
}

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: none;
  padding: 0.5em;
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--paper);
  border-bottom: 1px solid rgba(42,30,23,0.1);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 1em clamp(1.25rem, 4vw, 2.5rem);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-top: 1px solid rgba(42,30,23,0.08);
}
@media (min-width: 900px) { .mobile-menu { display: none !important; } }

/* ==========================================================================
   Papel picado scallop divider — signature motif
   ========================================================================== */

.scallop {
  --scallop-size: 26px;
  height: var(--scallop-size);
  width: 100%;
  margin-top: calc(-1 * var(--scallop-size));
  position: relative;
  z-index: 5;
  background: var(--adobe);
  -webkit-mask-image: radial-gradient(circle at var(--scallop-size) 0, transparent calc(var(--scallop-size) - 1px), black var(--scallop-size));
  mask-image: radial-gradient(circle at var(--scallop-size) 0, transparent calc(var(--scallop-size) - 1px), black var(--scallop-size));
  -webkit-mask-size: calc(var(--scallop-size) * 2) 100%;
  mask-size: calc(var(--scallop-size) * 2) 100%;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}
.scallop-marigold { background: var(--marigold); }
.scallop-masa { background: var(--masa); }
.scallop-nopal { background: var(--nopal); }
.scallop-paper { background: var(--paper); }
.scallop-flip { transform: rotate(180deg); }

.pp-banner {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow: hidden;
  padding: 0.4rem 0;
}
.pp-flag {
  width: 30px;
  height: 22px;
  border-radius: 3px 3px 0 0;
  position: relative;
  flex: 0 0 auto;
}
.pp-flag::before, .pp-flag::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  top: 7px;
}
.pp-flag::before { left: 6px; }
.pp-flag::after { right: 6px; }
.pp-flag:nth-child(4n+1) { background: var(--pp-pink); }
.pp-flag:nth-child(4n+2) { background: var(--pp-teal); }
.pp-flag:nth-child(4n+3) { background: var(--pp-gold); }
.pp-flag:nth-child(4n+4) { background: var(--pp-green); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: linear-gradient(150deg, var(--adobe) 0%, var(--adobe-deep) 100%);
  color: var(--masa);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}

.hero h1 { color: var(--paper); }
.hero .lede { color: #EBD3C6; font-size: 1.2rem; margin-bottom: 1.75rem; }

.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 2.25rem;
  flex-wrap: wrap;
}
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--marigold-hi);
  line-height: 1;
}
.hero-stat span {
  font-size: 0.82rem;
  color: #DDBBA9;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.55);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Right-column stack: logo box on top, photo filling the rest.
   aspect-ratio matches the old .hero-media box so the hero's outer
   height doesn't change. */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  aspect-ratio: 4 / 5;
}
.hero-visual .hero-media {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 0;
}

/* Logo mark — used standalone on inner-page heroes and stacked above
   the photo on the homepage hero. Fixed aspect-ratio keeps it the same
   footprint in both places; logo sits directly on the hero background
   (no card), so it relies on the PNG's transparent background. */
.hero-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 2;
}
.hero-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */

.page-hero {
  background: linear-gradient(150deg, var(--adobe) 0%, var(--adobe-deep) 100%);
  color: var(--masa);
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 3.5rem);
}
.page-hero h1 { color: var(--paper); margin-bottom: 0.4em; }
.page-hero .lede { color: #EBD3C6; }

.page-hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .page-hero .container { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(42,30,23,0.08);
}
.feature-card h3 { margin-bottom: 0.4em; }
.feature-card p { color: var(--ink-soft); margin: 0; }
.feature-card .icon { font-size: 1.8rem; margin-bottom: 0.75rem; display: block; }

.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--masa-deep);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 0.4s ease; }
.photo-card:hover img { transform: scale(1.045); }

/* ==========================================================================
   Menu
   ========================================================================== */

.menu-category {
  padding: 2.75rem 0;
  border-bottom: 1px dashed rgba(42,30,23,0.18);
}
.menu-category:last-child { border-bottom: none; }

.menu-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.menu-category-head h2 { margin-bottom: 0; }
.menu-category-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 62ch;
  margin-bottom: 1.75rem;
}

.menu-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 700px) { .menu-featured { grid-template-columns: repeat(3, 1fr); } }

.menu-featured-item { border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid rgba(42,30,23,0.08); }
.menu-featured-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.menu-featured-item .cap { padding: 0.9rem 1.1rem 1.1rem; }
.menu-featured-item h4 { margin: 0 0 0.25em; font-family: var(--font-display); font-size: 1.15rem; color: var(--adobe-deep); }
.menu-featured-item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

.menu-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem 2.5rem;
}
@media (min-width: 760px) { .menu-list { grid-template-columns: 1fr 1fr; } }

.menu-item { padding-bottom: 0.9rem; border-bottom: 1px solid rgba(42,30,23,0.08); }
.menu-item.has-photo { display: flex; gap: 0.75rem; align-items: flex-start; }
.menu-item-photo { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.menu-item-body { flex: 1; min-width: 0; }
.menu-item h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  color: var(--ink);
}
.menu-item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.menu-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25em;
}
.menu-item-head .price {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--adobe-deep);
  white-space: nowrap;
}

.menu-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  padding: 1.25rem 0 0.5rem;
}
.menu-jump a {
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--adobe-deep);
  background: var(--masa-deep);
  padding: 0.45em 0.9em;
  border-radius: 999px;
}
.menu-jump a:hover { background: var(--marigold); color: var(--ink); }

/* ==========================================================================
   Weekly specials board
   ========================================================================== */

.specials-board {
  background: var(--nopal-deep);
  border-radius: 10px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  box-shadow: inset 0 0 0 10px rgba(0,0,0,0.12);
}
@media (min-width: 700px) { .specials-board { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .specials-board { grid-template-columns: repeat(4, 1fr); } }

.specials-day {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 1.25rem 1.25rem 1.5rem;
  min-height: 148px;
}
.specials-day .day-name {
  font-family: var(--font-hand);
  font-size: 1.9rem;
  color: var(--marigold-hi);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.specials-day .day-body {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--masa);
}
.specials-day.is-active {
  background: rgba(232,150,58,0.14);
  border-style: solid;
  border-color: var(--marigold);
}
.specials-day.is-empty .day-body {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(251,241,225,0.45);
  font-weight: 700;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(42,30,23,0.08);
}
.testimonial .stars { color: var(--marigold); letter-spacing: 0.1em; margin-bottom: 0.6rem; }
.testimonial p { color: var(--ink); font-size: 1.02rem; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--ink-soft); font-size: 0.88rem; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-grid { display: grid; gap: 1.25rem; max-width: 640px; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.4em;
  color: var(--ink);
}

input, textarea {
  width: 100%;
  font: inherit;
  padding: 0.8em 0.9em;
  border: 1.5px solid rgba(42,30,23,0.22);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
input:focus, textarea:focus { border-color: var(--marigold); }
textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.85rem; color: var(--ink-soft); }

.form-status {
  display: none;
  padding: 0.9em 1.1em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
}
.form-status.is-visible { display: block; }
.form-status.success { background: #E4EEDB; color: var(--nopal-deep); }
.form-status.error { background: #F6DCD6; color: #7A2E1F; }

/* ==========================================================================
   Info strip / footer
   ========================================================================== */

.info-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 760px) { .info-strip { grid-template-columns: repeat(3, 1fr); } }
.info-strip h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--marigold-hi);
  margin-bottom: 0.6em;
}
.info-strip p { margin: 0 0 0.3em; color: #E9CFC2; }
.info-strip a { color: var(--masa); text-decoration: underline; text-decoration-color: rgba(251,241,225,0.4); }

.site-footer { background: var(--adobe-deep); color: var(--masa); }
.site-footer .container { padding-top: clamp(2.5rem, 6vw, 3.5rem); padding-bottom: 2rem; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(251,241,225,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #C9A896;
}
.footer-bottom a { color: #C9A896; }

.social-row { display: flex; gap: 0.85rem; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(251,241,225,0.1);
  color: var(--masa);
  text-decoration: none;
  transition: background 0.15s ease;
}
.social-row a:hover { background: var(--marigold); color: var(--ink); }
.social-row svg { width: 18px; height: 18px; }

/* ==========================================================================
   Misc utility
   ========================================================================== */

.stack { display: flex; flex-direction: column; gap: 0.5rem; }
.mt-lg { margin-top: clamp(2rem, 5vw, 3rem); }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.order-online-btn {
  background: var(--marigold);
  color: var(--ink);
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(42,30,23,0.12);
}
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ==========================================================================
   Gallery + lightbox
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery-grid img { aspect-ratio: 1/1; object-fit: cover; width: 100%; transition: transform 0.35s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,12,8,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 900px); max-height: 86vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--masa);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}
