/* =============================================
   Chabad Ethiopia Mikvah Campaign
   Design System — Warm Teal/Gold
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800&family=Secular+One&display=swap');

:root {
  --teal-900: #064e4a;
  --teal-800: #0a7c73;
  --teal-700: #0d9488;
  --teal-600: #0f9d93;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-100: #ccfbf1;
  --teal-50: #edfcfa;

  --gold-700: #b8860b;
  --gold-600: #d4a017;
  --gold-500: #e6b422;
  --gold-400: #f0c84a;
  --gold-300: #f5d87a;
  --gold-200: #fae8a8;
  --gold-100: #fdf3d7;

  --yellow: #ffd166;
  --yellow-bright: #ffe04a;

  --red-600: #c0392b;
  --red-500: #dc2626;

  --cream: #fef9f0;

  --text-dark: #1a1a2e;
  --text-body: #2d2d44;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --shadow-gold: 0 4px 20px rgba(212,160,23,0.3);
  --shadow-teal: 0 4px 20px rgba(13,148,136,0.25);

  --font-display: 'Secular One', sans-serif;
  --font-body: 'Secular One', sans-serif;
  --font-serif: var(--font-body);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  --page-max: 540px;

  /* Font size scale */
  --text-xs: 0.7rem;      /* decorative, currency symbols */
  --text-sm: 0.8rem;      /* captions, notes, badges */
  --text-base: 0.9rem;    /* body text, labels, inputs */
  --text-md: 1rem;        /* buttons, form titles */
  --text-lg: 1.2rem;      /* section subtitles */
  --text-xl: 1.4rem;      /* section titles */

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 100px,
      transparent 100px,
      transparent 200px
    ),
    linear-gradient(165deg, #0a7c73 0%, #0d9488 40%, #0f9d93 70%, #0a7c73 100%);
  background-attachment: fixed;
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: var(--font-body); }
input { font-family: var(--font-body); }

/* ---- Page Container (desktop centering) ---- */
.page-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.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; }

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1000;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.3s var(--ease-out-back);
  animation: wa-pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.6), 0 0 0 8px rgba(37,211,102,0.08); }
}

/* ---- CTA Button ---- */
.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--yellow-bright), var(--gold-400));
  border-radius: 60px;
  box-shadow: var(--shadow-gold);
  border: 2px solid var(--gold-600);
  transition: all 0.3s var(--ease-out-back);
  position: relative;
  overflow: hidden;
}
.cta-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(212,160,23,0.45);
}
.cta-button:active { transform: translateY(-1px) scale(1.01); }

/* ---- Blessing Text ---- */
.blessing-text {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--gold-700);
  text-align: center;
  letter-spacing: 0.04em;
  padding: var(--space-sm) 1rem;
}

/* ---- Spinner ---- */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--teal-100);
  border-top-color: var(--teal-600);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Confetti ---- */
#confetti-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 9999;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--teal-900); }
::-webkit-scrollbar-thumb { background: var(--teal-400); border-radius: 3px; }

/* ---- Footer ---- */
.site-footer {
  background: linear-gradient(170deg, var(--teal-900), #042f2b);
  padding: 2.5rem 1.25rem 1.5rem;
  color: white;
}
.footer-inner { max-width: var(--page-max); margin: 0 auto; }
.footer-share { text-align: center; margin-bottom: 2rem; }
.footer-share h3 { font-family: var(--font-display); font-size: var(--text-lg); color: var(--yellow); margin-bottom: var(--space-xs); }
.footer-share p { font-size: var(--text-base); color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 1rem; }
.share-icons { display: flex; justify-content: center; gap: 0.75rem; }
.share-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.3s var(--ease-out-back); }
.share-icon:hover { transform: scale(1.12); }
.share-icon.wa { background: #25d366; }
.share-icon.fb { background: #1877f2; }
.share-icon.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.share-icon svg { width: 22px; height: 22px; fill: white; }
.footer-contact { padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.contact-row { display: inline-flex; align-items: center; gap: 0.6rem; padding: var(--space-xs) var(--space-md); border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); font-size: var(--text-base); color: rgba(255,255,255,0.75); transition: all 0.3s ease; text-decoration: none; }
a.contact-row:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); color: white; }
.contact-row.location { color: rgba(255,255,255,0.55); font-size: var(--text-sm); }
.footer-blessing { font-family: var(--font-display); font-size: clamp(1.1rem, 4vw, 1.5rem); color: var(--gold-300); text-align: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05); letter-spacing: 0.03em; }
.footer-legal { text-align: center; margin-top: 0.75rem; font-size: var(--text-sm); }
.footer-legal a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); text-decoration: underline; }
.footer-credit {
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
}
.footer-credit a {
  color: #00C8FF;
  text-decoration: none;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.footer-credit a:hover {
  color: #4dd9ff;
  background: rgba(0,200,255,0.12);
  box-shadow: 0 0 12px rgba(0,200,255,0.25);
}
.feather-icon {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  vertical-align: -0.25em;
  animation: feather-float 2.5s ease-in-out infinite;
}
@keyframes feather-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(8deg); }
}

/* Disable fixed background on mobile for performance */
@media (max-width: 767px) {
  body { background-attachment: scroll; }
}

/* ---- Desktop scaling ---- */
@media (min-width: 768px) {
  :root { --page-max: 640px; }
}
@media (min-width: 1200px) {
  :root { --page-max: 520px; }
}
