/* ============================================
   Ay! Jalisco Mexican Restaurant
   Warm & Friendly — Burgundy + Blush
   ============================================ */

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

:root {
  --burgundy: #7B2D3B;
  --burgundy-dark: #5A1F2A;
  --burgundy-deeper: #4A1520;
  --blush: #FDECEA;
  --blush-light: #FFF5F3;
  --blush-mid: #F9D5CF;
  --cream: #FFFDFB;
  --warm-white: #FEFAF8;
  --text-dark: #2D1518;
  --text-body: #4A2530;
  --text-muted: #7A5560;
  --text-light: #FDECEA;
  --shadow-sm: 0 2px 8px rgba(123, 45, 59, 0.08);
  --shadow-md: 0 4px 20px rgba(123, 45, 59, 0.12);
  --shadow-lg: 0 8px 40px rgba(123, 45, 59, 0.16);
  --shadow-xl: 0 16px 60px rgba(123, 45, 59, 0.20);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.2;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: var(--blush);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  color: var(--text-dark);
}

.text-accent {
  color: var(--burgundy);
  font-style: italic;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.text-center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--text-light);
  border-color: var(--burgundy);
}

.btn-primary:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-outline-light:hover {
  background: var(--text-light);
  color: var(--burgundy);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.btn-outline-dark:hover {
  background: var(--burgundy);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-light {
  background: var(--blush-light);
  color: var(--burgundy);
  border-color: var(--blush-light);
}

.btn-light:hover {
  background: var(--blush);
  border-color: var(--blush);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 253, 251, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(123, 45, 59, 0.08);
  transition: all var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--burgundy);
}

.logo-text-light {
  color: var(--text-light);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-body);
  padding: 8px 16px;
  border-radius: 50px;
  transition: all var(--transition);
}

.main-nav a:hover {
  color: var(--burgundy);
  background: var(--blush);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--burgundy);
  position: relative;
  transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--burgundy);
  transition: all var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-menu-btn[aria-expanded="true"] .hamburger {
  background: transparent;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--burgundy);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}

.mobile-menu-close:hover {
  background: var(--blush);
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.mobile-nav-link:hover {
  color: var(--burgundy);
  background: var(--blush);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--burgundy-deeper);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(74, 21, 32, 0.88) 0%,
    rgba(123, 45, 59, 0.82) 50%,
    rgba(90, 31, 42, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(253, 236, 234, 0.15);
  border: 1px solid rgba(253, 236, 234, 0.3);
  color: var(--blush-light);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 10px 24px;
  border-radius: 50px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero-badge svg {
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--text-light);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-accent {
  color: var(--blush-mid);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(253, 236, 234, 0.85);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blush-light);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(253, 236, 234, 0.7);
  font-weight: 600;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(253, 236, 234, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--text-light);
  opacity: 0.6;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(8px); }
  60% { transform: translateX(-50%) translateY(4px); }
}

/* --- About --- */
.about {
  padding: 100px 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-img-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: -40px;
  right: -30px;
  width: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--cream);
}

.about-img-secondary img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  top: -20px;
  right: 40px;
  background: var(--burgundy);
  color: var(--text-light);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  font-size: 1rem;
  z-index: 2;
}

.about-content {
  padding: 20px 0;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--blush);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.about-feature p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- Menu --- */
.menu {
  padding: 100px 0;
  background: var(--blush-light);
}

.menu-categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 40px 0 48px;
}

.menu-cat-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--blush-mid);
  background: var(--cream);
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition);
}

.menu-cat-btn:hover,
.menu-cat-btn.active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--text-light);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.menu-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.menu-card-img {
  height: 220px;
  overflow: hidden;
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-img img {
  transform: scale(1.08);
}

.menu-card-body {
  padding: 24px;
}

.menu-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.menu-card-top h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.menu-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  background: var(--blush);
  padding: 4px 12px;
  border-radius: 50px;
}

.menu-card-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.menu-note {
  padding: 40px;
  background: var(--cream);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.menu-note p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* --- Gallery --- */
.gallery {
  padding: 100px 0;
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 16px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74, 21, 32, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.gallery-item--large {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery-item--tall {
  grid-column: span 1;
  grid-row: span 2;
}

/* --- Visit --- */
.visit {
  padding: 100px 0;
  background: var(--blush-light);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.visit-info {
  padding: 20px 0;
}

.visit-intro {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 36px;
  line-height: 1.8;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 36px;
}

.visit-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.detail-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--blush);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.visit-detail h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.visit-detail p,
.visit-detail a {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.visit-detail a:hover {
  color: var(--burgundy);
  text-decoration: underline;
}

.visit-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.visit-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 450px;
}

/* --- CTA Banner --- */
.cta-banner {
  padding: 100px 0;
  background: var(--burgundy-deeper);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 160, 176, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(253, 236, 234, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-light);
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1.1rem;
  color: rgba(253, 236, 234, 0.8);
  margin-bottom: 36px;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
  background: var(--burgundy-deeper);
  color: var(--text-light);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: rgba(253, 236, 234, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blush-light);
  margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact li,
.footer-contact a {
  font-size: 0.9rem;
  color: rgba(253, 236, 234, 0.7);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--blush-light);
}

.footer-bottom {
  border-top: 1px solid rgba(253, 236, 234, 0.15);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(253, 236, 234, 0.5);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-grid {
    gap: 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 220px);
  }

  .gallery-item--tall {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-stats {
    gap: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-images {
    max-width: 500px;
    margin: 0 auto;
  }

  .about-img-secondary {
    right: -10px;
    bottom: -20px;
    width: 160px;
  }

  .about-badge {
    top: -16px;
    right: 20px;
    font-size: 0.9rem;
    padding: 16px 20px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 200px);
  }

  .gallery-item--large {
    grid-column: span 2;
  }

  .visit-grid {
    grid-template-columns: 1fr;
  }

  .visit-map {
    min-height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-content {
    padding: 100px 16px 60px;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 8px 16px;
  }

  .menu-categories {
    gap: 8px;
  }

  .menu-cat-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item,
  .gallery-item--large,
  .gallery-item--tall {
    grid-column: span 1;
    grid-row: span 1;
    height: 220px;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  .visit-cta {
    flex-direction: column;
  }

  .visit-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
