/* -------------------------------------------------------------------
   Gazania Atelier Florist Jakarta - Indonesian Market
   Custom CSS & Animations (Font: Nunito)
------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700;1,800;1,900&display=swap');

:root {
  --color-terracotta: #BD6F51;
  --color-terracotta-dark: #A45B40;
  --color-terracotta-light: #D4886E;
  --color-cream: #FDF9F7;
  --color-blush: #F9EFED;
  --color-rose-taupe: #D6BEBC;
  --color-charcoal: #222222;
  --color-stone: #6B6861;
  --color-whatsapp: #25D366;
  --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F9EFED;
}
::-webkit-scrollbar-thumb {
  background: #D6BEBC;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #BD6F51;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  color: var(--color-stone);
  background-color: var(--color-cream);
}

body {
  font-family: var(--font-family);
  overflow-x: hidden;
  max-width: 100vw;
}

/* Pastikan tidak ada gambar yang membesar layar (horizontal overflow) */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Section utama tidak memlebar */
section, header, footer {
  overflow-x: hidden;
}

.font-nunito {
  font-family: var(--font-family);
}

/* Animations */
@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.animate-spin-slow {
  animation: spin-slow 18s linear infinite;
}

.animate-pulse-subtle {
  animation: pulse-subtle 4s ease-in-out infinite;
}

.animate-float {
  animation: float-gentle 5s ease-in-out infinite;
}

.animate-pulse-ring {
  animation: pulse-ring 2.5s infinite;
}

/* Hero Slides */
.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  pointer-events: none;
  overflow: hidden;
  width: 100%;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-slide.active .hero-title-up {
  animation: slideInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-slide.active .hero-title-main {
  animation: slideInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-slide.active .hero-desc {
  animation: fadeIn 0.9s ease-out 0.3s both;
}

.hero-slide.active .hero-cta {
  animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Product Card Hover effects */
.product-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(189, 111, 81, 0.14), 0 10px 15px -8px rgba(0, 0, 0, 0.05);
}

.product-card .action-bar {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .action-bar {
  opacity: 1;
  transform: translateY(0);
}

.product-card img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover img {
  transform: scale(1.06);
}

/* Floral Badge & Divider */
.floral-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.floral-divider::before,
.floral-divider::after {
  content: "";
  height: 1px;
  width: 60px;
  background-color: var(--color-rose-taupe);
  opacity: 0.6;
}

/* Glassmorphism Navigation */
.nav-scrolled {
  background-color: rgba(253, 249, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

/* Drawer & Modal Overlays */
.overlay-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

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

.drawer-slide {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-slide.active {
  transform: translateX(0);
}

/* Modal Popup */
.modal-scale {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95) translateY(10px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-scale.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

/* Toast Notification */
.toast-notice {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Floating WhatsApp button */
.whatsapp-float {
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.5), 0 8px 10px -6px rgba(37, 211, 102, 0.3);
}

/* Form focus */
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
}
