/* ============================================================
   CAFE BATAVIA — Modern UI Overlay
   Enhances the existing design with glassmorphism, animations,
   refined typography, and premium micro-interactions.
   ============================================================ */

/* ---------- IMPORTS & VARIABLES ---------- */
:root {
  --cb-gold:        #c9a84c;
  --cb-gold-light:  #e8c97a;
  --cb-gold-dark:   #9a7630;
  --cb-dark:        #1a100a;
  --cb-brown:       #3c2415;
  --cb-cream:       #f5f0e8;
  --cb-green:       #2d663e;
  --cb-glass-bg:    rgba(10, 6, 3, 0.55);
  --cb-glass-border:rgba(201, 168, 76, 0.25);
  --cb-blur:        blur(18px) saturate(160%);
  --cb-transition:  all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  --playfair:       'Playfair Display', 'Garamond Premr Pro', Georgia, serif;
  --inter:          'Inter', 'Garamond Premr Pro', sans-serif;
}

/* ---------- SMOOTH SCROLLING ---------- */
html { scroll-behavior: smooth; }

/* ---------- GLOBAL TYPOGRAPHY REFINEMENTS ---------- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--playfair);
  letter-spacing: 0.02em;
}

p, li, td, th, a {
  font-family: var(--inter);
}

/* ---------- LOADING SCREEN ---------- */
.page-loading {
  background: linear-gradient(135deg, #0d0803 0%, #1f1209 40%, #2d1e0e 100%) !important;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-loading .loader {
  position: relative;
}

.page-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- TOP NAVBAR — Glassmorphism ---------- */
.navbar.fixed-top {
  background: var(--cb-glass-bg) !important;
  backdrop-filter: var(--cb-blur);
  -webkit-backdrop-filter: var(--cb-blur);
  border-bottom: 1px solid var(--cb-glass-border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.45);
  transition: var(--cb-transition);
}

.navbar.fixed-top:hover {
  background: rgba(10, 6, 3, 0.72) !important;
}

/* ---------- NAVIGATION LINKS ---------- */
.navmenu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  align-items: center;
}

.navmenu li a {
  font-family: var(--inter) !important;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80) !important;
  padding: 0.55rem 1rem;
  position: relative;
  display: inline-block;
  transition: var(--cb-transition);
  text-decoration: none !important;
}

.navmenu li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cb-gold), transparent);
  transition: transform 0.35s ease;
}

.navmenu li a:hover {
  color: var(--cb-gold-light) !important;
  text-shadow: 0 0 20px rgba(201,168,76,0.4);
}

.navmenu li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Social icon links in nav */
.navbaricon li a {
  color: rgba(255,255,255,0.70) !important;
  font-size: 1.1rem;
  padding: 0.5rem 0.65rem;
  transition: var(--cb-transition);
  display: inline-block;
}

.navbaricon li a:hover {
  color: var(--cb-gold-light) !important;
  transform: translateY(-2px);
  text-shadow: 0 0 16px rgba(201,168,76,0.5);
}

/* ---------- HERO SECTION ---------- */
#section0 .intro h1 {
  font-family: var(--playfair) !important;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-style: italic;
  font-weight: 400;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.65), 0 0 80px rgba(201,168,76,0.15);
  letter-spacing: 0.04em;
  line-height: 1.25;
  animation: heroReveal 1.8s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.3s;
}

#section0 .intro h1 span {
  background: linear-gradient(135deg, #fff 0%, #e8c97a 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmerText 4s linear infinite;
  animation-delay: 1.5s;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(40px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes shimmerText {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Hero background overlay enhancement */
#section0.bg-image.bg-opacity-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45) 0%,
    rgba(10,6,3,0.35) 50%,
    rgba(0,0,0,0.70) 100%
  );
  z-index: 0;
  pointer-events: none;
}

#section0 .intro {
  position: relative;
  z-index: 1;
}

/* ---------- SLIDE SECTIONS — Story, etc. ---------- */
/* Light tint behind text */
.wrp-intro {
  position: relative;
}

/* Pull quote styling */
.slide h4.font-italic {
  font-family: var(--playfair) !important;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.6;
  color: var(--cb-brown);
  position: relative;
  padding-left: 1.5rem;
}

.slide h4.font-italic::before {
  content: '\201C';
  position: absolute;
  left: -0.1rem;
  top: -0.3rem;
  font-size: 3.5em;
  line-height: 1;
  color: var(--cb-gold);
  opacity: 0.5;
  font-family: var(--playfair);
}

/* Section heading — SLIDE */
.h3.font-italic,
div.h3.font-italic {
  font-family: var(--playfair) !important;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: 0.03em;
  color: var(--cb-brown);
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
}

.h3.font-italic::after,
div.h3.font-italic::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--cb-gold), transparent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.slide:hover .h3.font-italic::after,
.slide:hover div.h3.font-italic::after {
  width: 80px;
}

/* ---------- MENU SECTION IMAGES ---------- */
.slide .img-fluid.w-100 {
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(60, 36, 21, 0.22), 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow 0.5s ease;
}

.slide .img-fluid.w-100:hover {
  transform: scale(1.025);
  box-shadow: 0 20px 60px rgba(60, 36, 21, 0.32), 0 4px 16px rgba(0,0,0,0.16);
}

/* ---------- CHEF / MIXOLOGIST PORTRAIT ---------- */
.slide .img-fluid.float-md-right {
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(201,168,76,0.25),
    0 0 0 8px rgba(201,168,76,0.10),
    0 16px 48px rgba(60, 36, 21, 0.30);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  filter: sepia(8%) contrast(1.05);
}

.slide:hover .img-fluid.float-md-right {
  box-shadow:
    0 0 0 4px rgba(201,168,76,0.55),
    0 0 0 10px rgba(201,168,76,0.18),
    0 20px 60px rgba(60, 36, 21, 0.40);
  transform: scale(1.03);
}

/* ---------- MOMENTS GALLERY ---------- */
.moments-carausel .embed-responsive-image {
  transition: transform 0.55s ease;
}

.moments-carausel .embed-responsive:hover .embed-responsive-image {
  transform: scale(1.05);
}

.img-popup i.fas.fa-search-plus {
  transition: var(--cb-transition);
  color: rgba(255,255,255,0.8);
}

.img-popup:hover i.fas.fa-search-plus {
  color: var(--cb-gold-light);
  transform: scale(1.2);
  text-shadow: 0 0 16px rgba(201,168,76,0.6);
}

/* ---------- BOTTOM NAVBAR — Awards / Reviews ---------- */
.navbar.fixed-bottom {
  background: var(--cb-glass-bg) !important;
  backdrop-filter: var(--cb-blur);
  -webkit-backdrop-filter: var(--cb-blur);
  border-top: 1px solid var(--cb-glass-border);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.35);
}

/* Award stars badge — gold glow */
.fis-badge-star::before {
  color: var(--cb-gold) !important;
  filter: drop-shadow(0 0 4px rgba(201,168,76,0.5));
}

.navbar.fixed-bottom h5 {
  font-family: var(--playfair) !important;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--cb-gold-light);
  margin-bottom: 0.35rem;
}

/* Review quotes */
.tripadvisor-carausel span {
  font-family: var(--inter) !important;
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
}

/* Tripadvisor icon */
.fis-tripadvisor {
  color: var(--cb-gold-light) !important;
  transition: var(--cb-transition);
}

.fis-tripadvisor:hover {
  color: #fff !important;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.6));
}

/* ---------- REACH US / CONTACT SECTION ---------- */
#section4 h4 {
  font-family: var(--playfair) !important;
  font-size: 1.5rem;
  color: var(--cb-brown);
}

#section4 h5 {
  font-family: var(--playfair) !important;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--cb-brown);
}

/* Reservation table */
#section4 table td {
  font-family: var(--inter) !important;
  font-size: 0.9rem;
  padding: 0.2rem 0.5rem;
}

/* WhatsApp & Instagram icons in contact */
.fa-whatsapp,
.fa-instagram {
  transition: var(--cb-transition);
}

a:hover .fa-whatsapp { color: #25d366 !important; transform: scale(1.2); }
a:hover .fa-instagram { color: #e1306c !important; transform: scale(1.2); }

/* Locate us link */
.text-underline {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-color: var(--cb-gold) !important;
  transition: var(--cb-transition);
}

.text-underline:hover {
  text-decoration-color: var(--cb-brown) !important;
  color: var(--cb-brown) !important;
}

/* Map get-here gif */
a.img-popup img[src*="get-here"] {
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(60,36,21,0.20);
  transition: box-shadow 0.3s ease;
}

a.img-popup:hover img[src*="get-here"] {
  box-shadow: 0 16px 48px rgba(60,36,21,0.35);
}

/* ---------- FULLPAGE NAV DOTS ---------- */
#fp-nav ul li a span,
.fp-slidesNav ul li a span {
  background: var(--cb-gold) !important;
  opacity: 0.5;
}

#fp-nav ul li a.active span,
#fp-nav ul li:hover a span,
.fp-slidesNav ul li a.active span,
.fp-slidesNav ul li:hover a span {
  background: var(--cb-gold) !important;
  opacity: 1;
  box-shadow: 0 0 8px rgba(201,168,76,0.6);
}

/* ---------- FULLPAGE SLIDE NAV (section title pills) ---------- */
.fp-tooltip {
  font-family: var(--inter) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.08em !important;
  color: var(--cb-gold-light) !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* ---------- SLIDE ARROWS ---------- */
.slick-arrow {
  opacity: 0.6;
  transition: opacity 0.25s ease;
}
.slick-arrow:hover { opacity: 1; }

.slick-arrow > .fa,
.slick-arrow > .fas {
  color: var(--cb-gold) !important;
}

/* ---------- BRAND LOGO REFINEMENTS ---------- */
.brand-logo img,
.brand-logo-xs img {
  transition: var(--cb-transition);
  filter: brightness(1);
}

.brand-logo:hover img,
.brand-logo-xs:hover img {
  filter: brightness(1.15) drop-shadow(0 0 12px rgba(201,168,76,0.4));
  transform: scale(1.03);
}

/* ---------- PAGE ANIMATION TWEAKS ---------- */
.fp-slide.active .wrp-intro > .row > .col,
.fp-slide.active .wrp-intro > .row > [class^="col-"] {
  animation-duration: 0.85s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 6px;
  background: var(--cb-dark);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cb-gold-dark), var(--cb-gold));
  border-radius: 3px;
}

/* ---------- SELECTION ---------- */
::selection {
  background: rgba(201, 168, 76, 0.35);
  color: var(--cb-dark);
}

/* ---------- MOBILE ADJUSTMENTS ---------- */
@media (max-width: 767px) {
  .navmenu li a {
    font-size: 0.78rem;
    padding: 0.45rem 0.7rem;
  }

  #section0 .intro h1 {
    font-size: clamp(1.5rem, 6vw, 2.4rem);
    padding: 0 1.5rem;
  }

  .h3.font-italic,
  div.h3.font-italic {
    font-size: 1.3rem;
  }

  .slide .img-fluid.float-md-right {
    border-radius: 12px !important;
  }
}

/* ---------- AWARDS TABLE GOLD ACCENTS ---------- */
.slide h4:not(.font-italic) {
  font-family: var(--playfair) !important;
  font-size: 1.5rem;
  color: var(--cb-brown);
}

/* Gold medal highlights */
.slide p.pl-3 {
  border-left: 2px solid rgba(201,168,76,0.4);
  margin-left: 0.5rem;
  padding-left: 0.75rem !important;
}

/* ---------- EXTERNAL LINKS — FEATURED ON ---------- */
.slide table a.text-reset.text-underline {
  opacity: 0.75;
  font-size: 0.85rem;
}

.slide table a.text-reset.text-underline:hover {
  opacity: 1;
  color: var(--cb-green) !important;
}

/* ---------- RATING STARS ---------- */
.fa-star,
.fa-star-half {
  color: var(--cb-gold) !important;
}
