/* =============================================================
   Atarazana — Premium Enhancement Styles (staging upgrade)
   Includes: Preloader, Scroll Animations, Font Consistency,
             WhatsApp CTA, Hero Animation, Stat Counters,
             Slideshow Overlay Text, Micro-interactions
   ============================================================= */

/* ───────────────────────────────────────────
   1. PRELOADER
─────────────────────────────────────────── */
#at-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#at-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.at-preloader-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #b49383;
  letter-spacing: 0.15em;
  margin-bottom: 30px;
  opacity: 0;
  animation: at-logo-in 0.8s ease 0.2s forwards;
}

.at-preloader-line {
  width: 60px;
  height: 1px;
  background: rgba(180, 147, 131, 0.3);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.at-preloader-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #b49383;
  animation: at-line-sweep 1.2s ease 0.4s infinite;
}

.at-preloader-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  opacity: 0;
  animation: at-logo-in 0.8s ease 0.5s forwards;
}

@keyframes at-logo-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes at-line-sweep {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* ───────────────────────────────────────────
   2. SCROLL-REVEAL ANIMATIONS
─────────────────────────────────────────── */
.at-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.at-reveal.at-reveal--left {
  transform: translateX(-36px);
}

.at-reveal.at-reveal--right {
  transform: translateX(36px);
}

.at-reveal.at-reveal--scale {
  transform: scale(0.96) translateY(20px);
}

.at-reveal.visible {
  opacity: 1;
  transform: none;
}

/* Staggered children */
.at-stagger .at-reveal:nth-child(1) { transition-delay: 0s; }
.at-stagger .at-reveal:nth-child(2) { transition-delay: 0.12s; }
.at-stagger .at-reveal:nth-child(3) { transition-delay: 0.24s; }
.at-stagger .at-reveal:nth-child(4) { transition-delay: 0.36s; }
.at-stagger .at-reveal:nth-child(5) { transition-delay: 0.48s; }
.at-stagger .at-reveal:nth-child(6) { transition-delay: 0.60s; }

/* ───────────────────────────────────────────
   3. FONT CONSISTENCY — Global baseline
─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.page_subtitle,
.section_subtitle,
.themenu_col_title,
.themenu_title,
.sig_title h1,
.sig_subtitle,
.home_subtitle,
.intro_subtitle,
.intro_title h2,
.dish_title {
  font-family: 'Cormorant Garamond', serif !important;
}

body, p, li, a, input, textarea, select, button,
.main_nav ul li a,
.dish_contents p,
.intro_text p,
.sig_name {
  font-family: 'Montserrat', sans-serif !important;
}

/* Override legacy PT Sans Narrow */
.page_subtitle { letter-spacing: 0.08em; }

/* ───────────────────────────────────────────
   4. IMAGE HOVER POLISH
─────────────────────────────────────────── */
.intro_image img,
.sig_image img,
.special-visitors-image img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s ease;
  will-change: transform;
}

.intro_image img:hover,
.sig_image img:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

/* ───────────────────────────────────────────
   5. CTA BUTTON MICRO-INTERACTION
─────────────────────────────────────────── */
.button a,
.dish_order a,
.desktop-reservation-btn {
  position: relative;
  overflow: hidden;
}

.button a::after,
.dish_order a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.button a:hover::after,
.dish_order a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ───────────────────────────────────────────
   6. SECTION DIVIDERS — subtle ornamental
─────────────────────────────────────────── */
.at-ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin: 12px 0 20px;
  color: #b49383;
  font-size: 1.1rem;
  letter-spacing: 0.4em;
}

.at-ornament::before,
.at-ornament::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, #b49383);
}

.at-ornament::after {
  background: linear-gradient(to left, transparent, #b49383);
}

/* ───────────────────────────────────────────
   7. WHATSAPP FLOATING CTA BUTTON
─────────────────────────────────────────── */
.at-whatsapp-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 18px 12px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  animation: at-wha-pulse 3s ease-in-out infinite;
}

.at-whatsapp-cta:hover {
  background: #1ebe5d;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
  color: #fff !important;
  text-decoration: none !important;
}

.at-whatsapp-cta svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@keyframes at-wha-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.70); }
}

/* Mobile: icon only */
@media (max-width: 576px) {
  .at-whatsapp-cta .at-wha-label {
    display: none;
  }
  .at-whatsapp-cta {
    padding: 14px;
    border-radius: 50%;
  }
}

/* ───────────────────────────────────────────
   8. HERO ENTRANCE ANIMATION
─────────────────────────────────────────── */
.home_content .home_subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: at-hero-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.home_content .home_title {
  opacity: 0;
  transform: translateY(24px);
  animation: at-hero-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}

.home_content .home_text {
  opacity: 0;
  transform: translateY(18px);
  animation: at-hero-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}

.home_content .home_buttons {
  opacity: 0;
  transform: translateY(14px);
  animation: at-hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.35s forwards;
}

@keyframes at-hero-in {
  from { opacity: 0; transform: translateY(var(--from-y, 20px)); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero title shimmer on hover */
.home_title h1 {
  display: inline-block;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #e8d5c8 40%,
    #ffffff 60%,
    #b49383 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-position 0.6s ease;
}

.home_title h1:hover {
  background-position: right center;
}

/* ───────────────────────────────────────────
   9. FOOD SLIDESHOW TEXT OVERLAY
─────────────────────────────────────────── */
.food_slideshow_content {
  pointer-events: none;
}

.at-slideshow-badge {
  pointer-events: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 40px 24px;
  border: 1px solid rgba(180, 147, 131, 0.5);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
  max-width: 480px;
}

.at-slideshow-badge .at-sb-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #b49383;
}

.at-slideshow-badge .at-sb-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.at-slideshow-badge .at-sb-cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b49383;
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 147, 131, 0.4);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
  pointer-events: auto;
}

.at-slideshow-badge .at-sb-cta:hover {
  color: #fff;
  border-color: #fff;
}

/* ───────────────────────────────────────────
   10. ANIMATED STAT COUNTERS SECTION
─────────────────────────────────────────── */
.at-stats-section {
  background: #111;
  padding: 64px 0 60px;
  border-top: 1px solid rgba(180, 147, 131, 0.12);
  border-bottom: 1px solid rgba(180, 147, 131, 0.12);
}

.at-stat-item {
  text-align: center;
  padding: 20px 10px;
}

.at-stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.6rem;
  font-weight: 700;
  color: #b49383;
  line-height: 1;
  display: block;
}

.at-stat-suffix {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: rgba(180, 147, 131, 0.7);
}

.at-stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 10px;
  display: block;
}

.at-stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(180, 147, 131, 0.35), transparent);
  margin: auto;
}

@media (max-width: 768px) {
  .at-stat-number { font-size: 2.8rem; }
  .at-stat-divider { display: none; }
}

/* ───────────────────────────────────────────
   11. NAV LINK HOVER UNDERLINE EFFECT
─────────────────────────────────────────── */
.main_nav ul li a {
  position: relative;
}

.main_nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #b49383;
  transition: width 0.3s ease;
}

.main_nav ul li a:hover::after {
  width: 100%;
}
