/* ============================================
   El Amanecer Bar & Restaurant — Custom Styles
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
  background: #e8707d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c22035;
}

/* ---------- Selection ---------- */
::selection {
  background: #f9d3d7;
  color: #5a101e;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: linear-gradient(135deg, #c22035 0%, #a61a30 100%);
  box-shadow: 0 4px 15px rgba(194, 32, 53, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #dc4055 0%, #c22035 100%);
  box-shadow: 0 8px 25px rgba(194, 32, 53, 0.4);
}

.btn-secondary {
  background: #fff;
}

/* ---------- Hero Blobs ---------- */
.hero-blob {
  animation: blob-float 8s ease-in-out infinite;
}
.hero-blob-1 {
  background: radial-gradient(circle, #f2a5af, #f9d3d7);
  animation-delay: 0s;
}
.hero-blob-2 {
  background: radial-gradient(circle, #f6b1af, #fad3d2);
  animation-delay: -3s;
}
.hero-blob-3 {
  animation-delay: -5s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -30px) scale(1.05); }
  50% { transform: translate(-10px, 20px) scale(0.95); }
  75% { transform: translate(15px, 10px) scale(1.02); }
}

/* ---------- Nav ---------- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c22035;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

/* ---------- Header scrolled state ---------- */
#site-header.scrolled {
  background: rgba(254, 253, 251, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(194, 32, 53, 0.08);
}

/* ---------- Mobile Menu ---------- */
.menu-icon-open,
.menu-icon-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.menu-icon-close {
  display: none;
}
body.menu-open .menu-icon-open {
  display: none;
}
body.menu-open .menu-icon-close {
  display: flex;
}

#mobile-menu {
  transition: opacity 0.3s ease, pointer-events 0.3s ease;
}
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-nav-link {
  position: relative;
}

/* ---------- Feature Cards ---------- */
.feature-card {
  transition: transform 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
}

/* ---------- Menu Tabs ---------- */
.menu-tab {
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Montserrat', system-ui, sans-serif;
  cursor: pointer;
  border: 2px solid transparent;
  background: transparent;
  color: #a61a30;
  transition: all 0.3s ease;
}
.menu-tab:hover {
  border-color: #f2a5af;
  background: #fdf0f1;
}
.menu-tab.active {
  background: #c22035;
  color: #fefdfb;
  border-color: #c22035;
  box-shadow: 0 4px 12px rgba(194, 32, 53, 0.3);
}

/* ---------- Menu Items ---------- */
.menu-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid #f9d3d7;
}
.menu-item:last-child {
  border-bottom: none;
}
.menu-item h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ---------- Gallery ---------- */
.gallery-item {
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}
.gallery-item:hover {
  box-shadow: 0 12px 40px rgba(194, 32, 53, 0.2);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #a61a30;
}

/* ---------- Scroll Reveal ---------- */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 767px) {
  #hero h1 {
    font-size: 2.75rem;
    line-height: 1.05;
  }

  .hero-blob-1 {
    width: 300px;
    height: 300px;
  }
  .hero-blob-2 {
    width: 250px;
    height: 250px;
  }

  .floating-card {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #hero h1 {
    font-size: 4rem;
  }
}

/* ---------- Focus Styles ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #c22035;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Print ---------- */
@media print {
  #site-header,
  .back-to-top,
  .hero-blob {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
