/* ============================================
   CAFE RAICES DE GUATEMALA — style.css
   Shared styles for index.html + index-es.html
   ============================================ */

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

:root {
  --cream:     #F5EFE0;
  --brown:     #3E2B1F;
  --brown-mid: #6B4226;
  --terra:     #B5522A;
  --terra-lt:  #D4703E;
  --sage:      #5C7A5A;
  --sage-lt:   #8FAE8C;
  --sand:      #C9A97A;
  --sand-lt:   #E8D5B0;
  --ink:       #1E1208;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background-color: var(--cream);
  color: var(--brown);
  overflow-x: hidden;
}

/* ── LANGUAGE MODAL ── */
#lang-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 18, 8, 0.72);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lang-overlay.hidden { display: none; }

.lang-modal {
  background: var(--cream);
  border-radius: 6px;
  padding: 3rem 3.5rem;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 24px 60px rgba(30,18,8,0.35);
}

.lang-modal-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.lang-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--brown);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.lang-modal-sub {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--brown-mid);
  margin-bottom: 2rem;
}

.lang-btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.lang-btn {
  flex: 1;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--sand);
  border-radius: 3px;
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--brown);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.lang-btn:hover {
  background: var(--brown);
  color: var(--cream);
  border-color: var(--brown);
}

.lang-btn-flag { font-size: 1.6rem; }
.lang-btn-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.5rem;
  background: rgba(245,239,224,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-lt);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--brown);
  text-decoration: none;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--terra); }

.nav-lang-switch {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  text-decoration: none;
  border: 1px solid var(--terra);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-lang-switch:hover {
  background: var(--terra);
  color: var(--cream);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 72px;
}

.hero-left {
  background: var(--brown);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem 5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-left::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--terra);
  opacity: 0.12;
}

.hero-left::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--sand);
  opacity: 0.1;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--terra-lt);
}

.hero-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--sand-lt);
  line-height: 1.8;
  max-width: 360px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--terra);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s;
  align-self: flex-start;
}

.hero-cta:hover { background: var(--terra-lt); }

.hero-right {
  background: var(--sand-lt);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--sand-lt) 0%, var(--sand) 100%);
  gap: 0.75rem;
}

.placeholder-icon { width: 64px; height: 64px; opacity: 0.35; }

.placeholder-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown-mid);
  opacity: 0.5;
}

/* ── POP-UP BANNER ── */
.popup-banner {
  background: var(--terra);
  color: var(--cream);
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.popup-banner-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
}

.popup-banner-info {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
}

.popup-banner-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(245,239,224,0.4);
  padding: 0.4rem 1rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
}

.popup-banner-link:hover { background: rgba(245,239,224,0.15); }

/* ── SECTIONS SHARED ── */
section { padding: 6rem 5rem; }

.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--brown);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-body {
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--brown-mid);
  max-width: 580px;
}

/* ── ABOUT ── */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  background: var(--cream);
}

.about-img {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--sand-lt), var(--sand));
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.about-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--brown) 0%, transparent 100%);
  opacity: 0.15;
}

.about-accent {
  display: inline-block;
  width: 40px;
  height: 3px;
  background: var(--terra);
  margin-bottom: 1rem;
}

/* ── MENU ── */
#menu {
  background: var(--brown);
  color: var(--cream);
}

#menu .section-title { color: var(--cream); }
#menu .section-eyebrow { color: var(--sand); }
#menu .section-body { color: var(--sand-lt); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.menu-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 1.75rem;
  transition: background 0.2s;
}

.menu-card:hover { background: rgba(255,255,255,0.09); }

.menu-card-category {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra-lt);
  margin-bottom: 1.25rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.menu-item:last-child { border-bottom: none; }
.menu-item-name { font-size: 0.9rem; font-weight: 400; color: var(--cream); }

.menu-item-desc {
  font-size: 0.75rem;
  color: var(--sand);
  font-weight: 300;
  margin-top: 0.2rem;
}

.menu-item-price {
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  color: var(--sand);
  white-space: nowrap;
  margin-left: 1rem;
}

/* ── SCHEDULE ── */
#schedule { background: var(--sand-lt); }

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.schedule-card {
  background: var(--cream);
  border-radius: 4px;
  padding: 1.75rem;
  border-left: 3px solid var(--terra);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.schedule-date {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--brown);
}

.schedule-time {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--terra);
}

.schedule-location { font-size: 0.9rem; color: var(--brown-mid); font-weight: 300; }

.schedule-map-link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  text-decoration: none;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}

.schedule-map-link:hover { color: var(--sage-lt); }

.schedule-note {
  margin-top: 2rem;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--brown-mid);
  font-style: italic;
}

/* ── CONTACT ── */
#contact {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown-mid);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.75rem 1rem;
  border: 1px solid var(--sand);
  border-radius: 2px;
  background: var(--cream);
  color: var(--brown);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--terra); }

.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit {
  margin-top: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--brown);
  color: var(--cream);
  border: none;
  border-radius: 2px;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.form-submit:hover { background: var(--terra); }

.contact-info { padding-top: 3rem; }

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 2rem;
}

.contact-info-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
}

.contact-info-value {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--brown-mid);
  line-height: 1.6;
}

.contact-info-value a { color: var(--brown-mid); text-decoration: none; }
.contact-info-value a:hover { color: var(--terra); }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: var(--sand-lt);
  padding: 3rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--cream);
}

.footer-tagline { font-size: 0.78rem; font-weight: 300; color: var(--sand); margin-top: 0.3rem; }

.footer-social { display: flex; gap: 1.5rem; }

.footer-social a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--terra-lt); }
.footer-copy { font-size: 0.72rem; font-weight: 300; color: var(--sand); opacity: 0.5; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow  { animation: fadeUp 0.6s ease both 0.1s; }
.hero-title    { animation: fadeUp 0.6s ease both 0.25s; }
.hero-sub      { animation: fadeUp 0.6s ease both 0.4s; }
.hero-cta      { animation: fadeUp 0.6s ease both 0.55s; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── FLOATING LANGUAGE BUTTON (mobile only) ── */
#lang-fab {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: var(--brown);
  color: var(--cream);
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1.1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(30,18,8,0.25);
  transition: background 0.2s, transform 0.2s;
  align-items: center;
  gap: 0.4rem;
}

#lang-fab:hover {
  background: var(--terra);
  transform: translateY(-2px);
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  #hero { grid-template-columns: 1fr; }
  .hero-left { padding: 4rem 1.75rem; }
  .hero-right { min-height: 260px; }
  #about, #contact { grid-template-columns: 1fr; gap: 2rem; }
  .about-img { aspect-ratio: 16/9; }
  section { padding: 4rem 1.75rem; }
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .menu-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; padding: 2.5rem 1.75rem; }
  .popup-banner { flex-direction: column; gap: 0.75rem; text-align: center; }
  .lang-modal { padding: 2rem 1.5rem; }
  #lang-fab { display: flex; }
}