/* ============================================================
   FONT-FACE
============================================================ */
@font-face {
  font-display: swap;
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200;
  src: url("../fonts/oswald-v57-latin-200.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/oswald-v57-latin-regular.woff2") format("woff2");
}

/* ============================================================
   GLOBAL
============================================================ */
html,
body {
  background-color: #fff8f3;
  padding: 0;
  margin: 0;
  font-size: 18px;
  font-family: Georgia, "Times New Roman", serif;
  color: #2b2b2b;
  line-height: 1.6;
}

.button {
  background-color: #ff6600;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  font-family: "Oswald", sans-serif;
}
.button:hover {
  background-color: #e65c00;
  transform: translateY(-2px);
}

/* ============================================================
   HERO / MAIN HEADINGS
============================================================ */
section.main {
  font-family: "Oswald", sans-serif;
  text-align: center;
  padding: 3rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

section.main h1,
section.main h2 {
  font-size: 2.5rem;
  font-weight: 200;
  margin: 1rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.welcome {
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.5rem;
}

.sai {
  font-family: "Oswald";
  font-weight: 200;
  font-size: 6rem;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  margin: 1rem 0;
  text-align: center;
}

.provisions {
  font-family: "Oswald";
  font-weight: 200;
  font-size: 3rem;
  letter-spacing: 0.3rem;
  margin-top: 0.5rem;
  text-align: center;
}

/* ============================================================
   OFFERINGS SECTION (IMAGE + TEXT)
============================================================ */
section.offerings {
  display: flex;
  background-color: #eaeaea;
  max-width: 1200px;
  margin: 0 auto 20px;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

section.offerings > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

section.offerings img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section.offerings .offeringsText {
  padding: 2.5rem;
  text-align: left;
}

section.offerings h3 {
  font-family: "Oswald";
  font-size: 2.3rem;
  font-weight: 200;
  margin-bottom: 1rem;
}

section.offerings p {
  font-size: 1.1rem;
  color: #555;
}

@media (max-width: 950px) {
  section.offerings {
    flex-direction: column;
  }
}

/* ============================================================
   MENU NAVIGATION BUTTONS
============================================================ */
section.menuNavigation {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.menuButtons {
  display: flex;
  flex-wrap: nowrap; /* ✅ NUNCA SE ROMPE LA LÍNEA */
  gap: 20px;
  width: 100%;
  justify-content: center;
}

.menuButtons .button {
  min-width: 180px; /* asegura tamaño uniforme */
  padding: 0.8rem 1.8rem;
  font-size: 1.15rem;
  font-weight: 600;
  background-color: #ff6600;
  text-align: center;
}

.menuButtons .button:hover {
  background-color: #e65c00;
}

/* Mobile (solo aquí queremos que se apilen) */
@media (max-width: 950px) {
  .menuButtons {
    flex-wrap: wrap; /* en móvil sí pueden apilarse */
    flex-direction: column;
    gap: 15px;
  }
  .menuButtons .button {
    width: 100%;
  }
}

/* ============================================================
   MENUS WRAPPER
============================================================ */
.menusWrapper {
  display: grid;
  gap: 25px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

@media (min-width: 950px) {
  .menusWrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   SUBCATEGORY CARD STYLE
============================================================ */
.subCategory,
.coffeeMenu,
.wineMenu {
  background-color: #fdf8f3;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.subCategory h3,
.coffeeMenu h3,
.wineMenu h3 {
  font-family: "Oswald";
  font-size: 2rem;
  font-weight: 200;
  text-align: center;
  margin-bottom: 15px;
}

/* ============================================================
   PRODUCT ELEMENTS
============================================================ */
.productsWrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Product title */
.productsWrapper h4 {
  margin: 0;
  font-family: "Oswald";
  font-size: 1.3rem;
  font-weight: 300;
  text-align: center;
}

/* Product text (ingredients, description) */
.productsWrapper div,
.productsWrapper p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}

/* ============================================================
   COFFEE MENU EXTRA
============================================================ */
.coffeeMenu .productsWrapper.coffee {
  width: 75%;
  margin: 0 auto;
}

.coffeeOptions {
  margin: 5px 0;
  text-align: center;
}

.coffeeSizeWrapper p {
  margin: 0;
}

/* ============================================================
   RESPONSIVE FORCE-CENTER WHEN ONE ITEM
============================================================ */
.menusWrapper.single,
.menusWrapper:has(> .subCategory:only-child),
.menusWrapper:has(> .coffeeMenu:only-child),
.menusWrapper:has(> .wineMenu:only-child) {
  display: flex !important;
  justify-content: center;
}

/* ============================================================
   MAP FIXES
============================================================ */
#locationMap img {
  object-fit: contain !important;
  height: auto !important;
}

/* ============================================================
   LOADER
============================================================ */
.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  font-family: "Oswald";
}

.loader-ring {
  width: 80px;
  height: 80px;
  position: relative;
}

.loader-ring div {
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 6px solid #ff6600;
  border-color: #ff6600 transparent transparent transparent;
  border-radius: 50%;
  position: absolute;
  animation: spin 1.2s infinite linear;
}

.loader-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.loader-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.loader-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-text {
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: 200;
  text-transform: uppercase;
}

/* Dark mode loader */
.dark-loader .loader-ring div {
  border-color: #fff8f3 transparent transparent transparent;
}
.dark-loader .loader-text {
  color: #fff8f3;
}
