/* ===== Josephine Baker Café — Custom Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --cream: #FAF7F2;
  --beige: #F0EAE0;
  --warm-brown: #6B4F3A;
  --dark-brown: #3D2B1F;
  --navy: #1E3A5F;
  --navy-light: #2A4D73;
  --blush: #F2D5D0;
  --blush-dark: #E8B4AC;
  --sage: #A8B5A0;
  --gold: #C9A96E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream);
  color: var(--dark-brown);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
}

/* --- Preloader --- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-text {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 600;
  color: var(--navy);
  opacity: 0; animation: preloaderFade 1.8s ease forwards;
}
.preloader-text span { color: var(--gold); }
@keyframes preloaderFade {
  0% { opacity: 0; transform: translateY(20px); }
  40% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 2rem;
  transition: all 0.4s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 0.7rem 2rem;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--navy); text-decoration: none;
  transition: color 0.3s;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--dark-brown);
  font-size: 0.9rem; font-weight: 500;
  position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }

.lang-toggle {
  background: var(--navy); color: #fff;
  border: none; padding: 0.4rem 1rem;
  border-radius: 20px; font-size: 0.8rem;
  cursor: pointer; font-weight: 600;
  transition: all 0.3s;
}
.lang-toggle:hover { background: var(--navy-light); transform: scale(1.05); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; z-index: 200; background: none; border: none; padding: 4px;
}
.hamburger span {
  width: 26px; height: 2px; background: var(--dark-brown);
  transition: all 0.3s ease; border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(250, 247, 242, 0.98);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; visibility: hidden;
  transition: all 0.4s ease;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; text-decoration: none;
  color: var(--dark-brown); transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--navy); }

/* --- Hero --- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('images/hero.jpg') center/cover no-repeat;
  transform: scale(1.1);
  transition: transform 8s ease;
}
.hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(30, 58, 95, 0.45) 0%,
    rgba(61, 43, 31, 0.55) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  padding: 2rem; max-width: 700px;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700; line-height: 1.1;
  margin-bottom: 1rem;
  opacity: 0; transform: translateY(40px);
  animation: heroSlideUp 1s ease 0.5s forwards;
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300; line-height: 1.7;
  margin-bottom: 2rem; opacity: 0.9;
  opacity: 0; transform: translateY(30px);
  animation: heroSlideUp 1s ease 0.8s forwards;
}
.hero-buttons {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(30px);
  animation: heroSlideUp 1s ease 1.1s forwards;
}
.btn-primary {
  background: var(--gold); color: #fff;
  padding: 0.9rem 2.2rem; border-radius: 30px;
  text-decoration: none; font-weight: 600;
  font-size: 0.95rem; border: none; cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary:hover { background: #b8944f; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,169,110,0.4); }
.btn-secondary {
  background: transparent; color: #fff;
  padding: 0.9rem 2.2rem; border-radius: 30px;
  text-decoration: none; font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer; transition: all 0.3s ease;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: #fff; transform: translateY(-2px); }

@keyframes heroSlideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 2;
  animation: bounce 2s infinite;
}
.scroll-indicator span {
  display: block; width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,0.7);
  border-bottom: 2px solid rgba(255,255,255,0.7);
  transform: rotate(45deg);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(12px); }
}

/* --- Section shared --- */
.section {
  padding: 6rem 2rem;
  max-width: 1200px; margin: 0 auto;
}
.section-header {
  text-align: center; margin-bottom: 4rem;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy); margin-bottom: 1rem;
}
.section-header p {
  font-size: 1.05rem; color: var(--warm-brown);
  max-width: 600px; margin: 0 auto; line-height: 1.7;
}
.section-divider {
  width: 60px; height: 3px;
  background: var(--gold); margin: 1rem auto 0;
  border-radius: 2px;
}

/* --- Reveal animation --- */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- About --- */
.about-section { background: #fff; padding: 6rem 2rem; }
.about-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-image {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  position: relative;
}
.about-image img {
  width: 100%; height: 500px;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.about-image:hover img { transform: scale(1.03); }
.about-badge {
  position: absolute; bottom: -20px; right: 30px;
  background: var(--navy); color: #fff;
  padding: 1rem 1.5rem; border-radius: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-style: italic;
  box-shadow: 0 10px 30px rgba(30,58,95,0.3);
}
.about-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--navy); margin-bottom: 1.5rem; line-height: 1.2;
}
.about-text p {
  font-size: 1.05rem; line-height: 1.8;
  color: var(--warm-brown); margin-bottom: 1.2rem;
}
.about-features {
  display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap;
}
.about-feature {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.95rem; font-weight: 500; color: var(--dark-brown);
}
.about-feature-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blush); display: flex;
  align-items: center; justify-content: center; font-size: 1.2rem;
}

/* --- Menu --- */
.menu-section { padding: 6rem 2rem; }
.menu-categories {
  display: flex; justify-content: center;
  gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.menu-cat-btn {
  padding: 0.6rem 1.5rem; border-radius: 25px;
  border: 2px solid var(--beige); background: transparent;
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 0.9rem; color: var(--warm-brown);
  cursor: pointer; transition: all 0.3s;
}
.menu-cat-btn.active, .menu-cat-btn:hover {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.menu-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.menu-card {
  background: #fff; border-radius: 16px;
  padding: 1.8rem; border: 1px solid var(--beige);
  transition: all 0.3s ease;
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.menu-card-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 0.5rem;
}
.menu-card h3 {
  font-size: 1.15rem; color: var(--dark-brown);
}
.menu-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--gold); font-weight: 600;
}
.menu-card p {
  font-size: 0.9rem; color: var(--warm-brown); line-height: 1.6;
}
.menu-tag {
  display: inline-block; margin-top: 0.8rem;
  padding: 0.25rem 0.7rem; border-radius: 12px;
  font-size: 0.75rem; font-weight: 600;
  background: var(--blush); color: var(--warm-brown);
}

/* --- Gallery --- */
.gallery-section { background: #fff; padding: 6rem 2rem; }
.gallery-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1rem;
}
.gallery-item {
  border-radius: 16px; overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-item:nth-child(1) {
  grid-column: 1 / 2; grid-row: 1 / 3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,58,95,0.5) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.3s ease;
  display: flex; align-items: flex-end; padding: 1.5rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span {
  color: #fff; font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-style: italic;
}

/* --- Testimonials --- */
.testimonials-section { padding: 6rem 2rem; background: var(--beige); }
.testimonials-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: #fff; border-radius: 20px;
  padding: 2.5rem; position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-quote {
  font-size: 3rem; color: var(--gold);
  font-family: 'Playfair Display', serif;
  line-height: 1; margin-bottom: 0.5rem;
}
.testimonial-card p {
  font-size: 1rem; line-height: 1.7;
  color: var(--warm-brown); font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex; align-items: center; gap: 0.8rem;
}
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blush); display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; color: var(--navy); font-size: 1.1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--warm-brown); }

/* --- Location --- */
.location-section { padding: 6rem 2rem; }
.location-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
.location-info h3 {
  font-size: 1.4rem; color: var(--navy);
  margin-bottom: 1.5rem;
}
.location-item {
  display: flex; gap: 1rem; margin-bottom: 1.8rem;
  align-items: flex-start;
}
.location-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blush); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.location-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  margin-bottom: 0.3rem;
}
.location-item p {
  font-size: 0.9rem; color: var(--warm-brown); line-height: 1.6;
}
.map-container {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  height: 400px;
}
.map-container iframe {
  width: 100%; height: 100%; border: none;
}

/* --- Footer --- */
.footer {
  background: var(--dark-brown); color: rgba(255,255,255,0.8);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand h3 {
  font-size: 1.5rem; color: #fff; margin-bottom: 1rem;
}
.footer-brand h3 span { color: var(--gold); }
.footer-brand p {
  font-size: 0.9rem; line-height: 1.7; max-width: 300px;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  color: #fff; margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.7);
  text-decoration: none; font-size: 0.9rem;
  margin-bottom: 0.6rem; transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }
.footer-social {
  display: flex; gap: 0.8rem; margin-top: 1rem;
}
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff; transition: all 0.3s;
}
.footer-social a:hover { background: var(--gold); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem; text-align: center;
  font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image img { height: 350px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
  .gallery-item img { height: 250px; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-content h1 { font-size: 2.2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 1.2rem; }
  .about-section, .gallery-section { padding: 4rem 1.2rem; }
  .menu-grid { grid-template-columns: 1fr; }
  .about-features { flex-direction: column; gap: 1rem; }
}
