/* ─── Kapulco Front Page Styles (Hero & Menu Cards Grid) ───── */

.hero {
  position: relative;
  height: 700px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #1c2326;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
  max-width: 800px;
}

.hero-logo {
  margin-bottom: 0.25rem;
}
.hero-logo img {
  width: 300px;
  height: 375px;
  max-height: 50vh;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.hero-tagline-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 0.5rem;
}
.hero-tagline-wrapper::before,
.hero-tagline-wrapper::after {
  content: '';
  width: 64px;
  height: 1px;
  background-color: rgba(254, 230, 133, 0.4);
}
.hero-tagline {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(254, 230, 133, 0.9);
  white-space: nowrap;
}

.hero-sub {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.6;
  color: #fffbeb;
  max-width: 620px;
  margin: 1rem auto 1.5rem;
}

.hero-scroll-text {
  font-family: Optima, "Segoe UI", Candara, sans-serif;
  font-size: 24px;
  letter-spacing: 0.15em;
  color: rgba(254, 230, 133, 0.6);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-cta {
  display: inline-block;
  padding: 10px 32px;
  background-color: #3e4c52;
  color: #fffbeb;
  text-decoration: none;
  font-family: Optima, "Segoe UI", Candara, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(254, 230, 133, 0.4);
  border-radius: 4px;
  transition: background-color 0.25s, transform 0.2s, border-color 0.25s;
}
.hero-cta:hover {
  background-color: #4b5d65;
  border-color: #fee685;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .hero {
    height: auto;
    min-height: 640px;
    padding: 4rem 1rem 3rem;
  }
  .hero-logo img {
    width: 220px;
    height: 275px;
  }
  .hero-tagline {
    font-size: 14px;
  }
  .hero-tagline-wrapper::before,
  .hero-tagline-wrapper::after {
    width: 32px;
  }
  .hero-sub {
    font-size: 17px;
  }
  .hero-scroll-text {
    font-size: 18px;
  }
}

/* ─── LA CARTE SECTION ──────────────────────────────────────── */
.carte-section {
  background-color: #376066;
  padding: 80px 16px 100px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.section-divider::before,
.section-divider::after {
  content: '';
  width: 96px;
  height: 1px;
  background-color: rgba(254, 230, 133, 0.4);
}
.section-divider-diamond {
  color: rgba(254, 230, 133, 0.6);
  font-size: 16px;
  line-height: 1;
}

.carte-title {
  font-family: Optima, "Segoe UI", Candara, sans-serif;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 2.4px;
  text-align: center;
  color: #fffbeb;
  margin-bottom: 1rem;
}

.carte-subtitle {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
  color: rgba(254, 243, 198, 0.9);
  max-width: 580px;
  margin: 0 auto 64px;
}

@media (max-width: 767px) {
  .carte-title {
    font-size: 36px;
    letter-spacing: 1.8px;
  }
  .carte-subtitle {
    font-size: 14.5px;
    margin-bottom: 40px;
  }
}

/* ─── MENU GRID (4 cols desktop, 2 cols phone) ─────────────── */
.menu-grid-container {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 16px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
@media (max-width: 767px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* ─── ACCESSIBLE CLICKABLE CARD ─────────────────────────────── */
.menu-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  text-decoration: none;
  display: block;
  color: #fffbeb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.menu-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1c2326;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.menu-card:hover .menu-card-bg {
  transform: scale(1.05);
}

.menu-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

.menu-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 24px 20px;
}

@media (max-width: 767px) {
  .menu-card-content {
    padding: 16px 12px;
  }
}

.menu-card-title {
  font-family: Optima, "Segoe UI", Candara, sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #fffbeb;
  line-height: 1.25;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .menu-card-title {
    font-size: 19px;
  }
}

.menu-card-rule {
  width: 48px;
  height: 1px;
  background-color: #fee685;
  margin: 10px 0;
}

.menu-card-desc {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(254, 243, 198, 0.9);
  line-height: 1.45;
  margin-bottom: 18px;
}

@media (max-width: 767px) {
  .menu-card-desc {
    font-size: 12.5px;
    margin-bottom: 12px;
    line-height: 1.35;
  }
}

.menu-card-btn {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 20px;
  background-color: rgba(187, 77, 0, 0.85);
  border-bottom: 2px solid rgba(254, 154, 0, 0.5);
  border-radius: 4px;
  color: #fffbeb;
  font-family: Optima, "Segoe UI", Candara, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.2s, transform 0.2s;
}

.menu-card:hover .menu-card-btn {
  background-color: rgba(205, 85, 0, 1);
}

@media (max-width: 767px) {
  .menu-card-btn {
    padding: 5px 14px;
    font-size: 11.5px;
  }
}
