/* ═══ PizzaRaa Landing Page - Pure CSS ═══ */
/* Design: Rustic Trattoria - Italian Countryside Warmth */

:root {
  --red: #C41E24;
  --red-light: #D93B3B;
  --red-dark: #A01A1F;
  --cream: #FFF8F0;
  --cream-dark: #F0E6D6;
  --charcoal: #2D2926;
  --charcoal-50: rgba(45,41,38,0.5);
  --charcoal-30: rgba(45,41,38,0.3);
  --wheat: #D4A853;
  --whatsapp: #25D366;
  --whatsapp-dark: #1EBE57;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.text-red { color: var(--red); }
.hidden { display: none !important; }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-white { background: transparent; color: white; border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: white; }
.btn-whatsapp { background: var(--whatsapp); color: white; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--charcoal-50); border: 1px solid var(--cream-dark); font-size: 0.85rem; }
.btn-ghost:hover { background: var(--cream-dark); }
.btn-full { width: 100%; }

/* ═══ NAVBAR ═══ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,248,240,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--charcoal);
  text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--charcoal-50);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--charcoal-50);
  text-decoration: none;
  transition: all var(--transition);
}
.nav-icon:hover { background: var(--cream-dark); color: var(--red); }
.cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: white;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.cart-btn:hover { background: var(--red-dark); transform: scale(1.05); }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--whatsapp);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--charcoal);
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 1rem;
    gap: 1rem;
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: var(--shadow-md);
  }
  .nav-icon { display: none; }
  .hamburger { display: flex; }
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 60px;
  max-width: 600px;
}
.hero-badge {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}
.hero-desc {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 450px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: white;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══ SECTIONS COMMON ═══ */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}
.section-desc {
  color: var(--charcoal-50);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══ MENU ═══ */
.menu-section { padding: 5rem 0 3rem; }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.menu-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.menu-card-img {
  position: relative;
  height: 200px;
  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-price {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: white;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}
.menu-card-recommended {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--wheat);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.menu-card-body { padding: 1.25rem; }
.menu-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.menu-card-desc {
  color: var(--charcoal-50);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.menu-card-toppings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.topping-tag {
  background: var(--cream);
  color: var(--charcoal-50);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-card-footer-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--charcoal);
}
.add-to-cart-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--red);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}
.add-to-cart-btn:hover { background: var(--red-dark); transform: scale(1.03); }
.add-to-cart-btn svg { flex-shrink: 0; }
.menu-card-unavailable {
  opacity: 0.5;
  pointer-events: none;
}
.menu-card-unavailable::after {
  content: 'Habis';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Extras bar */
.extras-bar {
  margin-top: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.extras-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--charcoal-50);
}
.extras-info strong { color: var(--charcoal); display: block; font-size: 0.9rem; }
.extras-info span { font-size: 0.8rem; }
.extras-list { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.extras-list strong { font-size: 0.9rem; color: var(--charcoal); }
.extra-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1.5px solid var(--red);
  color: var(--red);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Loading */
.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--charcoal-50);
  font-size: 1rem;
}

/* ═══ HOW TO ORDER ═══ */
.howto-section { padding: 5rem 0; background: white; }
.howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.howto-step { text-align: center; }
.howto-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  color: var(--red);
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}
.howto-step:hover .howto-icon { background: rgba(196,30,36,0.1); }
.howto-num {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.howto-step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.howto-step p {
  color: var(--charcoal-50);
  font-size: 0.85rem;
  max-width: 200px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ═══ ABOUT ═══ */
.about-section { padding: 5rem 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image { order: -1; }
}
.about-text .section-tag, .about-text .section-title { text-align: left; }
.about-desc { margin-bottom: 2rem; }
.about-desc p { color: var(--charcoal-50); line-height: 1.8; margin-bottom: 1rem; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .about-features { grid-template-columns: 1fr; } }
.about-feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.about-feature svg { flex-shrink: 0; color: var(--red); margin-top: 2px; }
.about-feature strong { font-size: 0.85rem; display: block; }
.about-feature small { color: var(--charcoal-50); font-size: 0.78rem; line-height: 1.4; }
.about-image { position: relative; }
.about-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
  object-fit: cover;
}
.about-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: white;
}
.badge-recommended {
  display: inline-block;
  background: var(--wheat);
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-right: 0.4rem;
}
.badge-bestseller {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.about-image-badge h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-top: 0.4rem;
}
.about-image-badge p { font-size: 0.8rem; opacity: 0.8; }

/* ═══ CTA ═══ */
.cta-section {
  background: var(--red);
  padding: 5rem 0;
  text-align: center;
}
.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}
.cta-subtitle {
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ═══ FOOTER ═══ */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand .nav-brand { color: white; font-size: 1.8rem; display: block; margin-bottom: 0.25rem; }
.footer-tagline { font-family: 'Playfair Display', serif; font-style: italic; opacity: 0.6; margin-bottom: 1rem; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; max-width: 300px; }
.footer-links h4, .footer-contact h4 {
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-links a, .footer-contact a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}
.footer-links a:hover, .footer-contact a:hover { color: white; }
.footer-contact a { display: flex; align-items: center; gap: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.5;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ═══ CART DRAWER ═══ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  transition: opacity var(--transition);
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--cream);
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.open { right: 0; }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--cream-dark);
}
.cart-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--red);
}
.cart-header-title h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
}
.cart-count { font-size: 0.8rem; color: var(--charcoal-50); }
.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--cream-dark);
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--charcoal-50);
  cursor: pointer;
  transition: all var(--transition);
}
.cart-close:hover { background: var(--red); color: white; }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.cart-empty {
  text-align: center;
  padding: 3rem 0;
  color: var(--charcoal-30);
}
.cart-empty-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-top: 1rem; }
.cart-empty-desc { font-size: 0.85rem; margin-top: 0.25rem; }
.cart-item {
  background: white;
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.75rem;
}
.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--charcoal-30);
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--red); }
.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}
.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--cream-dark); }
.qty-btn.plus { background: var(--red); color: white; }
.qty-btn.plus:hover { background: var(--red-dark); }
.qty-value { font-weight: 700; font-size: 0.9rem; min-width: 20px; text-align: center; }
.cart-item-subtotal { font-weight: 700; font-size: 0.9rem; color: var(--red); }
.cart-item-unit { font-size: 0.7rem; color: var(--charcoal-30); text-align: right; }
.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--cream-dark);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.cart-total span:first-child { font-size: 0.9rem; color: var(--charcoal-50); }
.cart-total-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--charcoal);
}
.cart-footer .btn { margin-bottom: 0.5rem; }

/* ═══ FLOATING CART (MOBILE) ═══ */
.floating-cart {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: var(--charcoal);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all var(--transition);
}
.floating-cart:hover { transform: translateY(-2px); }
.floating-cart-info { display: flex; align-items: center; gap: 0.75rem; }
.floating-total { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.1rem; }

@media (min-width: 769px) { .floating-cart { display: none !important; } }

/* ═══ WHATSAPP FAB ═══ */
.wa-fab {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 80;
  transition: all var(--transition);
}
.wa-fab:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }

@media (max-width: 768px) {
  .wa-fab { bottom: 5rem; }
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--cream-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ccc; }
