/* ============================================================
   VAMOS CAFE — shared styles
   Palette sampled directly from the physical menu, the cup print,
   and the tile seating — not a generic template palette.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600;700&family=Caveat:wght@600;700&family=Vazirmatn:wght@400;500;600;700&display=swap');

:root{
  /* --- brand colors, sampled from real assets --- */
  --maroon-950: #3A0A0F;   /* to-go cup wrap background */
  --maroon-800: #591019;
  --maroon-600: #7A1420;   /* VAMOS logotype red */
  --maroon-500: #8C1B27;

  --gold-600: #C98A3A;
  --gold-500: #D69C41;     /* menu parchment, deep corner */
  --gold-300: #EAC174;     /* menu parchment, light */
  --gold-100: #F6E7C4;
  --page-gold: #DBA550;    /* the physical menu's actual page background, sampled */

  --sand-50:  #DBA550;     /* page background — matches the printed menu */
  --cream:    #F1E8D2;     /* card background, from menu boxes */

  --ink-900:  #2A1B12;     /* body text */
  --ink-700:  #4A2E1F;
  --brown-600:#6B3B2C;     /* heading brown, sampled from menu */

  --clay-500: #C67C2F;     /* orange accent, sampled from menu */
  --tile-blue:#7C93A3;     /* dusty blue, sampled from tiles */

  --radius-s: 6px;
  --radius-m: 14px;
  --shadow-soft: 0 12px 28px rgba(58, 10, 15, 0.16);

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-script: 'Caveat', cursive;
  --font-fa: 'Vazirmatn', 'Work Sans', sans-serif;
}

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

html{ scroll-behavior: smooth; }

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

/* Scroll-reveal: content rises gently into place as it enters view.
   JS toggles .is-visible; if JS never runs, the fallback below still
   shows everything after a short delay so content is never stuck hidden. */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible{ opacity: 1; transform: none; }
.reveal-d1{ transition-delay: 0.08s; }
.reveal-d2{ transition-delay: 0.16s; }
.reveal-d3{ transition-delay: 0.24s; }
.reveal-d4{ transition-delay: 0.32s; }

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

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

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

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

.container{
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------------- Nav ---------------- */
.site-nav{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(30,7,10,0.5);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-nav .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-100);
  letter-spacing: 0.02em;
}
.brand-mark{
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.35s ease;
}
.brand-mark img{ width: 100%; height: 100%; object-fit: contain; }
.brand:hover .brand-mark{ transform: rotate(-8deg) scale(1.08); }

.nav-links{
  display: flex;
  gap: 1.8rem;
  font-size: 0.98rem;
}
.nav-links a{
  color: var(--gold-100);
  opacity: 0.85;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.25s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{
  opacity: 1;
  border-bottom-color: var(--clay-500);
}
.nav-link-events{
  background: linear-gradient(135deg, #C6295A, #E8834F);
  color: #fff !important;
  opacity: 1 !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 999px;
  border-bottom: none !important;
  font-weight: 700;
  box-shadow: 0 0 0 0 rgba(232,131,79,0.55);
  animation: navEventsPulse 2.6s ease-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-link-events:hover{
  transform: translateY(-2px) scale(1.04);
  animation-play-state: paused;
}
.nav-link-events[aria-current="page"]{
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7);
}
@keyframes navEventsPulse{
  0%{ box-shadow: 0 0 0 0 rgba(232,131,79,0.5); }
  70%{ box-shadow: 0 0 0 8px rgba(232,131,79,0); }
  100%{ box-shadow: 0 0 0 0 rgba(232,131,79,0); }
}
@media (prefers-reduced-motion: reduce){
  .nav-link-events{ animation: none; }
}
.nav-toggle{
  display: none;
  background: none;
  border: 0;
  color: var(--gold-100);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 720px){
  .nav-links{
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--maroon-950);
    flex-direction: column;
    padding: 0.5rem 1.25rem 1.5rem;
    gap: 0.2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a{ padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle{ display: block; }
}

/* ---------------- Buttons ---------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--clay-500); color: var(--gold-100); }
.btn-primary:hover{ background: #B26A22; }
.btn-ghost{ background: transparent; border-color: rgba(246,231,196,0.55); color: var(--gold-100); }
.btn-ghost:hover{ background: rgba(246,231,196,0.12); }
.btn-dark{ background: var(--maroon-600); color: var(--gold-100); }
.btn-dark:hover{ background: var(--maroon-800); }
.btn-events{
  background: linear-gradient(135deg, #C6295A, #E8834F);
  color: #fff;
}
.btn-events:hover{ background: linear-gradient(135deg, #B01F4D, #D6753F); }
.btn-ghost-dark{
  background: transparent;
  border-color: rgba(58,10,15,0.35);
  color: var(--maroon-600);
}
.btn-ghost-dark:hover{ background: rgba(58,10,15,0.06); }
.btn-sm{ padding: 0.6rem 1.1rem; font-size: 0.92rem; }

/* ---------------- Hero (index) ---------------- */
.hero{
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  color: var(--gold-100);
  background-color: var(--maroon-950);
  background-image:
    linear-gradient(180deg, rgba(42,10,14,0.25) 0%, rgba(42,10,14,0.55) 55%, rgba(24,6,8,0.96) 100%),
    url('../assets/painting.jpg');
  background-size: cover;
  background-position: center 30%;
}
.hero-inner{
  padding-block: 3rem 3.5rem;
  max-width: 640px;
}
.hero-inner > *{
  opacity: 0;
  animation: heroRise 0.8s ease forwards;
}
.hero-inner > *:nth-child(1){ animation-delay: 0.05s; }
.hero-inner > *:nth-child(2){ animation-delay: 0.13s; }
.hero-inner > *:nth-child(3){ animation-delay: 0.21s; }
.hero-inner > *:nth-child(4){ animation-delay: 0.29s; }
.hero-inner > *:nth-child(5){ animation-delay: 0.37s; }
@keyframes heroRise{
  from{ opacity: 0; transform: translateY(18px); }
  to{ opacity: 1; transform: translateY(0); }
}
.hero-mark{
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--gold-100);
  display: grid;
  place-items: center;
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow-soft);
}
.hero-mark img{ width: 88%; }
.hero-eyebrow-word{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: 0.01em;
  line-height: 0.95;
  color: var(--gold-100);
}
.hero-sub{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin: 0.5rem 0 1.4rem;
}
.hero-slogan{
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--gold-300);
  margin: 0 0 1rem;
  transform: rotate(-1.5deg);
}
.hero p.hero-copy{
  font-size: 1.08rem;
  color: rgba(246,231,196,0.9);
  max-width: 46ch;
  margin: 0 0 2rem;
}
.hero-ctas{ display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------------- Tile divider ---------------- */
.event-teaser{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  text-align: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #C6295A, #E8834F);
  color: #fff;
  font-size: 1rem;
}
.event-teaser-emoji{ font-size: 1.3rem; animation: bannerBob 3.5s ease-in-out infinite; }
.event-teaser-cta{
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.event-teaser:hover .event-teaser-cta{ text-decoration-thickness: 2px; }
@media (max-width: 560px){
  .event-teaser{ font-size: 0.92rem; padding: 0.9rem 1.2rem; }
}
.tile-divider{
  height: 54px;
  background-image: url('../assets/tile-pattern.jpg');
  background-size: 220px auto;
  background-repeat: repeat;
  border-top: 3px solid var(--maroon-600);
  border-bottom: 3px solid var(--maroon-600);
}

/* ---------------- Sections ---------------- */
section{ padding: 5rem 0; }
.section-tight{ padding: 3.2rem 0; }
.section-head{
  max-width: 56ch;
  margin-bottom: 2.6rem;
}
.section-head h2{
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--maroon-600);
  margin: 0 0 0.6rem;
}
.section-head p{
  font-size: 1.05rem;
  color: var(--ink-700);
  margin: 0;
}

.about-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-grid img{
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.notes{
  display: grid;
  gap: 1.3rem;
  margin-top: 1.6rem;
}
.note{ display: flex; gap: 0.9rem; }
.note .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clay-500);
  margin-top: 0.55rem;
  flex: none;
}
.note h3{ margin: 0 0 0.2rem; font-family: var(--font-display); font-size: 1.1rem; color: var(--brown-600); }
.note p{ margin: 0; color: var(--ink-700); }

@media (max-width: 820px){
  .about-grid{ grid-template-columns: 1fr; }
}

/* ---------------- Gallery strip ---------------- */
.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item{
  border-radius: var(--radius-s);
  overflow: hidden;
  height: 320px;
}
.gallery-item img{
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img{ transform: scale(1.08); }
@media (max-width: 720px){
  .gallery{ grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child{ grid-column: 1 / -1; height: 320px; }
}

/* ---------------- CTA band ---------------- */
.cta-band{
  background: var(--maroon-950);
  color: var(--gold-100);
  text-align: center;
}
.cta-band h2{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0 0 0.6rem;
}
.cta-band p{ color: var(--gold-300); margin: 0 0 1.6rem; }

/* ---------------- Footer ---------------- */
footer.site-footer{
  background: var(--maroon-950);
  color: rgba(246,231,196,0.75);
  padding: 2.6rem 0 2rem;
  font-size: 0.94rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}
.footer-grid .brand{ color: var(--gold-100); }
.footer-links{ display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-fine{ opacity: 0.6; font-size: 0.85rem; }

/* ============================================================
   MENU PAGE
   ============================================================ */
.menu-hero{
  padding: 2.8rem 0 1.6rem;
  text-align: center;
}
.menu-hero .container > *{
  opacity: 0;
  animation: heroRise 0.7s ease forwards;
}
.menu-hero .container > *:nth-child(1){ animation-delay: 0.05s; }
.menu-hero .container > *:nth-child(2){ animation-delay: 0.15s; }
.menu-hero .container > *:nth-child(3){ animation-delay: 0.25s; }
.menu-hero .wordmark-vamos{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--maroon-600);
  line-height: 1;
}
.menu-hero .wordmark-rule{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  letter-spacing: 0.4em;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--brown-600);
}
.menu-hero .wordmark-rule .line{
  width: 56px;
  height: 1px;
  background: var(--maroon-600);
  position: relative;
}
.menu-hero .wordmark-rule .line::after{
  content: "";
  position: absolute;
  top: -2.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--maroon-600);
}
.menu-hero .wordmark-rule .line.left::after{ right: -3px; }
.menu-hero .wordmark-rule .line.right::after{ left: -3px; }
.menu-hero .hero-slogan{ margin: 1rem auto 0; color: var(--maroon-500); }

.menu-toplevel{
  position: sticky;
  top: 68px;
  z-index: 35;
  background: var(--maroon-800);
  display: flex;
  justify-content: center;
  gap: 0;
  will-change: transform;
  transform: translateZ(0);
}
.menu-toplevel button{
  flex: 1;
  max-width: 260px;
  padding: 0.95rem 1rem;
  background: transparent;
  border: 0;
  color: rgba(246,231,196,0.75);
  font-family: var(--font-display);
  font-size: 1.05rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.menu-toplevel button[aria-selected="true"]{
  color: var(--gold-100);
  border-bottom-color: var(--clay-500);
  background: rgba(255,255,255,0.05);
}

.menu-subnav{
  position: sticky;
  top: 122px;
  z-index: 30;
  background: var(--gold-100);
  border-bottom: 1px solid var(--gold-500);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  will-change: transform;
  transform: translateZ(0);
}
.menu-subnav-inner{
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
}
.menu-subnav a{
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown-600);
  border: 1.5px solid var(--gold-500);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.menu-subnav a:hover{ transform: translateY(-1px); background: rgba(122,20,32,0.08); }
.menu-subnav a.active{ background: var(--maroon-600); color: var(--gold-100); border-color: var(--maroon-600); }

.menu-panel{ display: none; position: relative; }
.menu-panel.active{ display: block; animation: panelFade 0.4s ease; }
@keyframes panelFade{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

.menu-note{
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-700);
  padding: 1.1rem 1.25rem 0;
  max-width: 60ch;
  margin: 0 auto;
}

.category-grid{
  max-width: 720px;
  margin-inline: auto;
}
.category{
  background: var(--cream);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  padding: 1.9rem 1.9rem 0.6rem;
  margin: 0 0 1.8rem;
  break-inside: avoid;
  scroll-margin-top: 184px;
  transition: transform 0.4s ease, box-shadow 0.3s ease, opacity 0.6s ease;
}
.category:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(58, 10, 15, 0.2);
}
.category.reveal.is-visible:hover{ transform: translateY(-3px); }
.category:first-child{ margin-top: 2.6rem; }
.category-head{
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}
.category-head .cat-icon{
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(2px);
}
.category-head h2{
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--maroon-600);
  margin: 0;
  white-space: nowrap;
}
.category-head .rule{
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold-500) 0 6px, transparent 6px 12px);
}

.item-list{ display: grid; gap: 0.05rem; }
.item{
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.85rem 0.6rem;
  margin: 0 -0.6rem;
  border-bottom: 1px dashed rgba(107,59,44,0.22);
  border-radius: 8px;
  transition: background 0.2s ease;
}
.item:hover{ background: rgba(122,20,32,0.06); }
.item-name{
  font-weight: 600;
  color: var(--ink-900);
  white-space: nowrap;
}
.item-leader{
  flex: 1;
  border-bottom: 1px dotted rgba(107,59,44,0.55);
  transform: translateY(-4px);
}
.item-price{
  font-weight: 700;
  color: var(--maroon-600);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.item-price small{ font-weight: 500; color: var(--ink-700); font-size: 0.72em; }

/* Food items: name / dual price / description (fa) */
.food-item{
  padding: 1rem 0.6rem;
  margin: 0 -0.6rem;
  border-bottom: 1px dashed rgba(107,59,44,0.22);
  border-radius: 8px;
  transition: background 0.2s ease;
}
.food-item:hover{ background: rgba(122,20,32,0.06); }
.food-item-top{
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.food-item-top .item-name{ font-family: var(--font-display); font-size: 1.05rem; white-space: normal; }
.price-pair{ display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; }
.price-pair .p-line{ font-weight: 700; color: var(--maroon-600); white-space: nowrap; }
.price-pair .p-line small{ font-weight: 500; color: var(--ink-700); font-size: 0.72em; }
.food-desc{
  direction: rtl;
  font-family: var(--font-fa);
  color: var(--ink-700);
  font-size: 0.98rem;
  margin-top: 0.35rem;
  line-height: 1.9;
}

.today-note{
  text-align: center;
  margin: 2.2rem 0 3.5rem;
  color: var(--ink-700);
  font-style: italic;
}

/* Small faded emoji scattered through the menu background — a light,
   playful nod to coffee/food/Spanish vibe rather than literal photos.
   Wide screens only, positioned outside the card column so they never
   sit under the price list. */
.bg-emoji{
  position: absolute;
  font-size: 2.4rem;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  filter: grayscale(15%);
  animation: emojiFloat 7s ease-in-out infinite;
}
@keyframes emojiFloat{
  0%, 100%{ translate: 0 0; }
  50%{ translate: 0 -12px; }
}
.e-1, .e-5, .e-9, .e-13{ animation-duration: 6.5s; }
.e-2, .e-6, .e-10{ animation-duration: 8s; animation-delay: -1.5s; }
.e-3, .e-7, .e-11{ animation-duration: 7.5s; animation-delay: -3s; }
.e-4, .e-8, .e-12{ animation-duration: 9s; animation-delay: -4.5s; }
@media (max-width: 1460px){
  .bg-emoji{ display: none; }
}
.e-1{ top: 6%;  left: 34px;  font-size: 2.1rem; rotate: -8deg; }
.e-2{ top: 16%; right: 40px; font-size: 2.6rem; rotate: 6deg; }
.e-3{ top: 28%; left: 46px;  font-size: 2rem;   rotate: 5deg; }
.e-4{ top: 40%; right: 30px; font-size: 2.3rem; rotate: -5deg; }
.e-5{ top: 52%; left: 32px;  font-size: 2.4rem; rotate: 7deg; }
.e-6{ top: 64%; right: 44px; font-size: 2.1rem; rotate: -6deg; }
.e-7{ top: 76%; left: 40px;  font-size: 2.2rem; rotate: 4deg; }
.e-8{ top: 88%; right: 34px; font-size: 2.5rem; rotate: -4deg; }
.e-9{  top: 10%; left: 38px;  font-size: 2.3rem; rotate: -6deg; }
.e-10{ top: 34%; right: 36px; font-size: 2.1rem; rotate: 6deg; }
.e-11{ top: 58%; left: 34px;  font-size: 2.5rem; rotate: 5deg; }
.e-12{ top: 78%; right: 40px; font-size: 2.2rem; rotate: -5deg; }
.e-13{ top: 94%; left: 44px;  font-size: 2rem;   rotate: 7deg; }

/* ============================================================
   LOCATION PAGE
   ============================================================ */
.loc-hero{
  padding: 3.2rem 0 1.8rem;
  text-align: center;
}
.loc-hero-card{
  display: inline-block;
  background: rgba(251,244,230,0.9);
  border-radius: var(--radius-m);
  padding: 1.8rem 3rem;
  box-shadow: var(--shadow-soft);
}
.loc-hero h1{ font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); margin: 0.2rem 0 0.5rem; color: var(--maroon-600); }
.loc-hero p{ color: var(--ink-700); margin: 0; font-size: 1.1rem; }

body.page-location{
  background-color: var(--page-gold);
  background-image: url('../assets/tile-pattern.jpg');
  background-size: 300px auto;
  background-repeat: repeat;
}

.loc-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.map-embed{
  width: 100%;
  height: 500px;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  contain: strict;
}
.map-embed iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 640px){
  .map-embed{ height: 360px; }
}
.map-placeholder{
  height: 420px;
  border-radius: var(--radius-m);
  background: var(--cream);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
.map-placeholder .card{
  background: rgba(251,244,230,0.94);
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-s);
  max-width: 320px;
}
.map-placeholder h3{ font-family: var(--font-display); color: var(--maroon-600); margin: 0 0 0.4rem; }
.map-placeholder p{ margin: 0; color: var(--ink-700); font-size: 0.94rem; }

.info-card{
  background: var(--cream);
  border-radius: var(--radius-m);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}
.info-card-wide{
  max-width: 620px;
  margin: 0 auto;
}
.info-row{ display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid rgba(107,59,44,0.15); }
.info-row:last-child{ border-bottom: 0; }
.info-row .label{ font-family: var(--font-display); color: var(--brown-600); min-width: 92px; font-size: 0.95rem; }
.info-row .value{ color: var(--ink-900); }
.info-row .value a{ text-decoration: underline; text-decoration-color: var(--clay-500); text-underline-offset: 3px; }

.hours-table{ width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.hours-table td{ padding: 0.35rem 0; font-size: 0.95rem; }
.hours-table td:last-child{ text-align: right; font-weight: 600; }

.placeholder-flag{
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--maroon-600);
  background: var(--gold-300);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
}

@media (max-width: 820px){
  .loc-grid{ grid-template-columns: 1fr; }
}

/* ============================================================
   EVENTS PAGE
   ============================================================ */
.events-hero{
  position: relative;
  overflow: hidden;
  padding-top: 4.6rem !important;
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(232,131,79,0.32), transparent 70%),
    radial-gradient(ellipse 50% 45% at 12% 100%, rgba(198,41,90,0.28), transparent 65%),
    radial-gradient(ellipse 50% 45% at 88% 100%, rgba(122,20,32,0.3), transparent 65%),
    linear-gradient(180deg, rgba(42,8,16,0.88) 0%, rgba(58,10,15,0.93) 100%),
    url('../assets/sign-night.jpg');
  background-size: auto, auto, auto, auto, cover;
  background-position: center, center, center, center, center 30%;
}
.events-hero::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background-image: radial-gradient(circle, #F6E7C4 45%, transparent 46%);
  background-size: 26px 5px;
  background-position: center;
  opacity: 0.75;
  z-index: 2;
}
.events-hero .wordmark-vamos{
  color: #F9EFD8;
  text-shadow: 0 0 18px rgba(232,131,79,0.65), 0 0 40px rgba(198,41,90,0.4);
}
.events-hero .wordmark-rule{ color: var(--gold-300); }
.events-hero .wordmark-rule .line{ background: var(--gold-500); }
.events-hero .wordmark-rule .line::after{ background: var(--gold-500); }
.events-hero .hero-slogan{ color: #F4B199; }
.events-hero .container{ position: relative; z-index: 1; }

.disco-hang{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.disco-string{
  width: 2px;
  height: 34px;
  background: linear-gradient(rgba(246,231,196,0.6), rgba(246,231,196,0.15));
}
.disco-ball-big{
  font-size: 2.6rem;
  animation: discoSpin 5s linear infinite, discoDrop 3.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}
@keyframes discoDrop{
  0%, 100%{ translate: 0 0; }
  50%{ translate: 0 5px; }
}
.disco-glow{
  position: absolute;
  top: 60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246,231,196,0.28), transparent 70%);
  z-index: -1;
}

.ev-bg-emoji{
  position: absolute;
  font-size: 2rem;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}
@media (max-width: 900px){
  .ev-bg-emoji{ display: none; }
}
.ev-e1{ top: 14%; left: 8%;  font-size: 1.6rem; animation: emojiFloat 5s ease-in-out infinite; }
.ev-e2{ top: 60%; left: 4%;  font-size: 1.6rem; rotate: 8deg; }
.ev-e3{ top: 18%; right: 6%; font-size: 1.8rem; rotate: 10deg; }
.ev-e4{ top: 60%; right: 5%; font-size: 2.1rem; rotate: -8deg; }
.ev-e5{ top: 32%; right: 18%; font-size: 1.5rem; rotate: 14deg; }
@keyframes discoSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

.events-wrap{ padding: 1rem 0 4rem; }

.event-section{ padding: 0; margin-top: 2.4rem; }
.event-section:first-child{ margin-top: 0; }
.event-section-head{
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}
.event-section-head h2{
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--maroon-600);
  margin: 0;
}
.live-dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2FA84F;
  box-shadow: 0 0 0 0 rgba(47,168,79,0.6);
  animation: livePulse 1.8s ease-out infinite;
  flex: none;
}
@keyframes livePulse{
  0%{ box-shadow: 0 0 0 0 rgba(47,168,79,0.55); }
  70%{ box-shadow: 0 0 0 10px rgba(47,168,79,0); }
  100%{ box-shadow: 0 0 0 0 rgba(47,168,79,0); }
}

.event-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}
.event-empty{
  color: var(--ink-700);
  font-style: italic;
  background: var(--cream);
  border-radius: var(--radius-m);
  padding: 1.6rem;
  text-align: center;
}

/* ---- Card ---- */
.event-card{
  --ev-grad-1: #C6295A;
  --ev-grad-2: #E8834F;
  background: var(--cream);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.4s ease;
}
.event-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(58,10,15,0.22);
}
.event-card.is-expired{
  filter: grayscale(70%) opacity(0.82);
}
.event-card.is-expired:hover{ transform: none; }

.event-banner{
  position: relative;
  height: 130px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ev-grad-1), var(--ev-grad-2));
  overflow: hidden;
}
.event-banner-emoji{
  font-size: 3rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
  animation: bannerBob 3.5s ease-in-out infinite;
}
@keyframes bannerBob{
  0%, 100%{ transform: translateY(0) rotate(-4deg); }
  50%{ transform: translateY(-8px) rotate(4deg); }
}
.confetti{
  position: absolute;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  animation: confettiTwinkle 2.4s ease-in-out infinite;
}
.confetti.c1{ top: 18%; left: 14%; animation-delay: 0s; }
.confetti.c2{ top: 65%; left: 22%; font-size: 0.6rem; animation-delay: 0.5s; }
.confetti.c3{ top: 25%; right: 16%; animation-delay: 1s; }
.confetti.c4{ top: 68%; right: 24%; font-size: 0.6rem; animation-delay: 1.6s; }
.confetti.c5{ top: 78%; left: 44%; font-size: 0.55rem; animation-delay: 0.9s; }
@keyframes confettiTwinkle{
  0%, 100%{ opacity: 0.25; transform: scale(0.85); }
  50%{ opacity: 1; transform: scale(1.15); }
}
.disco-ball{
  position: absolute;
  bottom: 10%;
  left: 20%;
  font-size: 1.4rem;
  opacity: 0.9;
  animation: discoSpin 5s linear infinite, discoBob 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
@keyframes discoBob{
  0%, 100%{ translate: 0 0; }
  50%{ translate: 0 -6px; }
}

.event-status-badge{
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--ink-900);
}
.badge-live{ background: #2FA84F; color: #fff; }
.badge-upcoming{ background: rgba(255,255,255,0.92); color: var(--maroon-600); }
.badge-expired{
  width: 86px;
  height: 86px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  color: var(--maroon-600);
  rotate: -10deg;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
  opacity: 0.92;
}

.event-body{ padding: 1.6rem 1.7rem 1.8rem; }
.event-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--maroon-600);
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.event-when{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--ev-grad-1), var(--ev-grad-2));
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-size: 0.98rem;
  margin: 0 0 1.1rem;
  box-shadow: 0 6px 14px rgba(198,41,90,0.28);
}
.event-when-icon{ font-size: 1.05rem; }
.event-desc{
  color: var(--ink-700);
  margin: 0 0 1.1rem;
  line-height: 1.65;
}
.event-offers{
  background: rgba(198,41,90,0.06);
  border-left: 3px solid var(--ev-grad-1, var(--clay-500));
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}
.event-offers h4{
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--maroon-600);
}
.event-offers ul{ margin: 0; padding-left: 1.1rem; color: var(--ink-700); font-size: 0.94rem; }
.event-offers li{ margin-bottom: 0.2rem; }

.event-countdown-wrap:empty{ display: none; }
.event-countdown{
  display: inline-block;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--ev-grad-1), var(--ev-grad-2));
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  animation: countdownPulse 2.2s ease-in-out infinite;
}
@keyframes countdownPulse{
  0%, 100%{ transform: scale(1); }
  50%{ transform: scale(1.04); }
}

.event-grid-history .event-card{ opacity: 0.95; }

.event-actions{
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

@media (prefers-reduced-motion: reduce){
  .live-dot, .event-banner-emoji, .confetti, .event-countdown{ animation: none !important; }
}

/* ---- Guest List modal ---- */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(20,4,6,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}
.modal-overlay[hidden]{ display: none; }
.modal-box{
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-m);
  padding: 2rem 1.8rem 1.8rem;
  max-width: 420px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.modal-box h3{
  font-family: var(--font-display);
  color: var(--maroon-600);
  margin: 0 0 0.3rem;
  font-size: 1.3rem;
  padding-right: 1.5rem;
}
.modal-count{ color: var(--ink-700); font-size: 0.92rem; margin: 0 0 1.1rem; }
.modal-close{
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--brown-600);
  cursor: pointer;
  padding: 0.2rem;
}
.guest-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}
.guest-list li{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px dashed rgba(107,59,44,0.2);
  color: var(--ink-900);
  font-weight: 600;
}
.guest-list li:last-child{ border-bottom: 0; }
.guest-name{ flex: 1; }

/* ---- RSVP form ---- */
.rsvp-section{ padding: 1.2rem 0 4rem; }
.rsvp-form{
  background: var(--cream);
  border-radius: var(--radius-m);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
.rsvp-honeypot{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.rsvp-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.rsvp-field{ margin-bottom: 1.1rem; }
.rsvp-field label{
  display: block;
  font-weight: 700;
  color: var(--brown-600);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.rsvp-optional{ font-weight: 400; opacity: 0.7; font-size: 0.85rem; }
.rsvp-field input{
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(107,59,44,0.3);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink-900);
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.rsvp-field input:focus{
  outline: none;
  border-color: var(--clay-500);
}
.rsvp-required{ color: var(--maroon-600); }
.rsvp-input-error{ border-color: var(--maroon-600) !important; background: rgba(198,41,90,0.04); }
.rsvp-hint{ margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--ink-700); opacity: 0.8; }

.rsvp-dob-row{ display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 0.6rem; }
.rsvp-dob-row select{
  width: 100%;
  padding: 0.75rem 0.6rem;
  border: 1.5px solid rgba(107,59,44,0.3);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink-900);
  box-sizing: border-box;
}
.rsvp-dob-row select:focus{ outline: none; border-color: var(--clay-500); }
.rsvp-fa-select{ font-family: var(--font-fa) !important; font-size: 1rem; }

.gender-toggle{ display: flex; gap: 0.6rem; flex-wrap: wrap; }
.gender-btn{
  flex: 1;
  min-width: 100px;
  padding: 0.75rem 0.8rem;
  border: 1.5px solid rgba(107,59,44,0.3);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-900);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.gender-btn.is-selected{
  border-color: var(--ev-grad-1, #C6295A);
  background: rgba(198,41,90,0.08);
  color: var(--maroon-600);
}
@media (max-width: 460px){
  .gender-btn{ min-width: 45%; }
}

.char-toggle-btn{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid rgba(107,59,44,0.3);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-900);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.char-toggle-btn:hover{ border-color: var(--ev-grad-1, #C6295A); }
.char-toggle-btn .rsvp-optional{ font-weight: 400; }
.char-toggle-arrow{
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--brown-600);
  transition: transform 0.25s ease;
}
.char-toggle-btn.is-open .char-toggle-arrow{ transform: rotate(90deg); }

.char-builder{
  background: #fff;
  border: 1.5px solid rgba(107,59,44,0.25);
  border-radius: 12px;
  padding: 1.2rem;
  margin-top: 0.8rem;
}
.char-preview-box{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 0 auto 1.2rem;
}
.char-preview{
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FBF0DC, #F1E1C0);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 3px rgba(198,41,90,0.12);
}
.char-preview svg{ width: 100%; height: 100%; }
.char-shuffle{
  border: 1.5px solid rgba(107,59,44,0.3);
  background: var(--cream);
  color: var(--brown-600);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.char-shuffle:hover{ border-color: var(--ev-grad-1, #C6295A); transform: translateY(-1px); }

.char-group-label{
  margin: 1.3rem 0 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(107,59,44,0.2);
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--maroon-600);
}
.char-builder > .char-group-label:first-of-type{ margin-top: 0; padding-top: 0; border-top: 0; }
.char-pick-group{ margin-bottom: 0.9rem; }
.char-pick-label{
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brown-600);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.char-options{ display: flex; gap: 0.5rem; flex-wrap: wrap; }
.char-opt-btn{
  width: 44px;
  height: 44px;
  padding: 3px;
  border: 1.5px solid rgba(107,59,44,0.25);
  border-radius: 9px;
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  overflow: hidden;
}
.char-opt-btn:hover{ transform: translateY(-1px); }
.char-opt-btn.is-selected{
  border-color: var(--ev-grad-1, #C6295A);
  box-shadow: 0 0 0 2px rgba(198,41,90,0.18);
}
.char-opt-btn svg{ display: block; width: 100%; height: 100%; }
.char-swatch-btn{ border-radius: 50%; padding: 0; }
@media (max-width: 560px){
  .char-preview{ width: 110px; height: 110px; }
}

.guest-char{
  display: inline-block;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--cream);
  overflow: hidden;
}
.guest-char svg{ width: 100%; height: 100%; }

.rsvp-submit{ width: 100%; justify-content: center; margin-top: 0.4rem; font-size: 1.05rem; }
.rsvp-message{
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}
.rsvp-message-ok{ color: #1F7A38; }
.rsvp-message-warn{ color: #9A4B0F; }
.rsvp-message-error{
  color: var(--maroon-600);
  background: rgba(198,41,90,0.08);
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
}

.invite-card{
  margin-top: 1.3rem;
  background: var(--cream);
  border-radius: var(--radius-m);
  padding: 1.8rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid;
  border-image: linear-gradient(90deg, #C6295A, #E8834F) 1;
  animation: heroRise 0.6s ease forwards;
}
.invite-card h3{
  font-family: var(--font-display);
  color: var(--maroon-600);
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
}
.invite-card > p{ margin: 0 0 1.2rem; color: var(--ink-700); }
.invite-canvas-wrap{
  display: flex;
  justify-content: center;
  margin-bottom: 1.3rem;
}
.invite-canvas-wrap canvas{
  max-width: 100%;
  height: auto;
  width: 280px;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}
.invite-actions{
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 560px){
  .rsvp-row{ grid-template-columns: 1fr; gap: 0; }
  .rsvp-dob-row{ grid-template-columns: 1fr; gap: 0.5rem; }
}
