/* ============================================================
   CAKE SHOP.MZ — MAIN STYLES
   Design: Luxury Patisserie — Rose Gold & Noir
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ===== CUSTOM PROPERTIES ===== */
:root {
  /* Colors */
  --rose: #F8BBD9;
  --rose-2: #F48FB1;
  --rose-dark: #C2185B;
  --gold: #D4AF37;
  --gold-2: #E8C84A;
  --gold-light: #FFF8DC;
  --gold-dark: #9A7B0A;
  --noir: #0E0A0D;
  --noir-2: #1A1118;
  --noir-3: #241B22;
  --cream: #FDF8F0;
  --cream-2: #FAF3E8;
  --gray: #6B6370;
  --gray-light: #F3EFF5;
  --white: #FFFFFF;

  /* Gradients */
  --grad-rose-gold: linear-gradient(135deg, var(--rose-2) 0%, var(--gold) 100%);
  --grad-noir: linear-gradient(135deg, var(--noir) 0%, var(--noir-3) 100%);
  --grad-cream: linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 128px;

  /* Borders */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(14,10,13,0.08);
  --shadow-md: 0 8px 32px rgba(14,10,13,0.12);
  --shadow-lg: 0 20px 60px rgba(14,10,13,0.16);
  --shadow-gold: 0 8px 40px rgba(212,175,55,0.25);
  --shadow-rose: 0 8px 40px rgba(244,143,177,0.25);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.35s;

  /* Header height */
  --header-h: 76px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--noir);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font-family: var(--font-body);
  font-size: inherit;
}
ul { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: var(--radius-full); }

/* ===== ICON HELPER ===== */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.section { padding: var(--space-2xl) 0; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.06));
  border: 1px solid rgba(212,175,55,0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}
.section-eyebrow .icon { font-size: 0.9rem; color: var(--gold); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--noir);
  margin-bottom: var(--space-sm);
}
.section-title em { color: var(--gold); font-style: italic; }
.section-title span { color: var(--rose-dark); }

.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.8;
}

.gold-rule {
  width: 60px;
  height: 2px;
  background: var(--grad-rose-gold);
  margin: var(--space-sm) auto;
  border-radius: var(--radius-full);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}
.btn .icon { font-size: 1.1em; transition: transform 0.3s var(--ease-spring); }
.btn:hover .icon { transform: translateX(3px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 50%, var(--gold) 100%);
  background-size: 200% 100%;
  color: var(--noir);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212,175,55,0.4);
}

.btn-noir {
  background: var(--noir);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-noir:hover { background: var(--noir-2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-rose {
  background: linear-gradient(135deg, var(--rose-dark), var(--rose-2));
  color: var(--white);
  box-shadow: var(--shadow-rose);
}
.btn-rose:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(244,143,177,0.4); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
}
.btn-outline:hover { background: var(--gold); color: var(--noir); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(37,211,102,0.45); }

.btn-sm { padding: 9px 20px; font-size: 0.82rem; }
.btn-lg { padding: 18px 44px; font-size: 1rem; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-gold { background: rgba(212,175,55,0.12); color: var(--gold-dark); border: 1px solid rgba(212,175,55,0.25); }
.badge-rose { background: rgba(244,143,177,0.12); color: var(--rose-dark); border: 1px solid rgba(244,143,177,0.25); }
.badge-green { background: rgba(34,197,94,0.1); color: #15803D; border: 1px solid rgba(34,197,94,0.25); }
.badge-amber { background: rgba(251,191,36,0.1); color: #B45309; border: 1px solid rgba(251,191,36,0.25); }
.badge-noir { background: var(--noir); color: var(--gold); border: 1px solid var(--noir-3); }

/* ===== CARD BASE ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212,175,55,0.08);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: rgba(212,175,55,0.2); }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(212,175,55,0.2);
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--noir);
  font-size: 0.93rem;
  outline: none;
  transition: all 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* ===== TOAST ===== */
#toast {
  position: fixed;
  bottom: 110px;
  right: 28px;
  z-index: 9999;
  min-width: 280px;
  max-width: 360px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.4s var(--ease-spring);
}
#toast.show { display: flex; }
.toast-success { background: #ECFDF5; color: #065F46; border-left: 4px solid #10B981; }
.toast-error { background: #FEF2F2; color: #991B1B; border-left: 4px solid #EF4444; }
.toast-info { background: var(--gold-light); color: var(--gold-dark); border-left: 4px solid var(--gold); }
#toast .icon { font-size: 1.3rem; flex-shrink: 0; }
@keyframes toastIn { from { opacity:0; transform:translateX(60px) scale(0.9); } to { opacity:1; transform:translateX(0) scale(1); } }

/* ===== SPINNER ===== */
.spinner-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 80px 0; }
.spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(212,175,55,0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner-wrap p { font-size: 0.88rem; color: var(--gray); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--gray);
}
.empty-state-icon {
  width: 80px; height: 80px;
  background: var(--gray-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.empty-state-icon .icon { font-size: 2rem; color: var(--rose-2); }
.empty-state h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--noir); margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== DIVIDERS ===== */
.wave-divider { width: 100%; overflow: hidden; line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 768px) {
  :root { --space-xl: 60px; --space-2xl: 80px; }
  .section { padding: var(--space-xl) 0; }
}
@media (max-width: 480px) {
  .btn { padding: 13px 24px; font-size: 0.88rem; }
  .btn-lg { padding: 15px 32px; }
}
