/* Morah Raizel's Reach - kid-friendly redesign */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/fredoka-hebrew.woff2') format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/fredoka-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('fonts/nunito-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --cream: #fff9f3;
  --ink: #432c3a;
  --ink-soft: #7a5c6c;
  --card: #ffffff;
  --pink: #ef6aa5;   --pink-bg: #fde8f1;
  --green: #3aae7c;  --green-bg: #e4f5eb;
  --amber: #f0a12e;  --amber-bg: #fff1d6;
  --purple: #9467e8; --purple-bg: #efe8fd;
  --blue: #4a9fe8;   --blue-bg: #e3f0fd;
  --orange: #f28a4b; --orange-bg: #fdece0;
  --teal: #35b3a5;   --teal-bg: #e0f6f2;
  --shadow: 0 10px 24px rgba(67, 44, 58, 0.10);
  --shadow-sm: 0 4px 12px rgba(67, 44, 58, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

body {
  background: var(--cream);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(239, 106, 165, 0.06) 0 90px, transparent 90px),
    radial-gradient(circle at 88% 8%, rgba(74, 159, 232, 0.07) 0 120px, transparent 120px),
    radial-gradient(circle at 78% 82%, rgba(58, 174, 124, 0.06) 0 100px, transparent 100px),
    radial-gradient(circle at 8% 88%, rgba(240, 161, 46, 0.06) 0 110px, transparent 110px);
  color: var(--ink);
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

main { max-width: 1060px; margin: 0 auto; padding: 0 20px 40px; }
h1, h2, h3, .brand, .dc-title, .dh-fact { font-family: 'Fredoka', 'Nunito', sans-serif; }
h2 { font-size: 1.55rem; font-weight: 600; margin: 0 0 8px; }
img { max-width: 100%; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 10px; z-index: 20;
  max-width: 1060px; margin: 10px auto 0; padding: 0 20px;
}
.nav-inner {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(239, 106, 165, 0.18);
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; flex-wrap: wrap;
}
.brand {
  font-weight: 600; font-size: 1.06rem; color: var(--ink);
  text-decoration: none; margin-right: 10px; white-space: nowrap;
}
.brand-rose { font-size: 1.2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: 0.86rem;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--pink-bg); color: var(--ink); }
.nav-links a.on { background: var(--ink); color: #fff; }
.nav-links a.on-pink { background: var(--pink); } .nav-links a.on-green { background: var(--green); }
.nav-links a.on-amber { background: var(--amber); } .nav-links a.on-purple { background: var(--purple); }
.nav-links a.on-blue { background: var(--blue); } .nav-links a.on-orange { background: var(--orange); }
.nav-links a.on-teal { background: var(--teal); }

/* ---------- Home hero ---------- */
.hero {
  margin-top: 26px;
  background: linear-gradient(120deg, #ffe3ee 0%, #fff3d9 55%, #e3f0fd 100%);
  border-radius: 32px;
  padding: 46px 44px;
  display: flex; align-items: center; gap: 34px;
  box-shadow: var(--shadow);
  overflow: hidden; position: relative;
}
.hero::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.hero-text { flex: 1 1 60%; position: relative; z-index: 1; }
.hero h1 { font-size: 2.7rem; font-weight: 700; margin: 0 0 14px; line-height: 1.15; }
.hero-rose { display: inline-block; transform: rotate(-8deg); }
.hero-intro { font-size: 1.13rem; color: var(--ink); margin: 0; max-width: 56ch; }
.hero-img {
  flex: 0 0 300px; width: 300px; height: 300px; object-fit: cover;
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  border: 6px solid #fff; box-shadow: var(--shadow);
  transform: rotate(2.5deg);
}

/* ---------- Polaroid photos ---------- */
.photos-row {
  display: flex; gap: 34px; justify-content: center; align-items: flex-start;
  margin: 44px 0 8px; flex-wrap: wrap;
}
.polaroid {
  background: #fff; padding: 14px 14px 16px; margin: 0;
  border-radius: 18px; box-shadow: var(--shadow);
  width: 300px;
}
.polaroid img { border-radius: 10px; display: block; width: 100%; height: auto; }
.polaroid figcaption { text-align: center; font-weight: 700; color: var(--ink-soft); padding-top: 12px; font-size: 0.95rem; }
.tilt-l { transform: rotate(-2.2deg); }
.tilt-r { transform: rotate(1.8deg); }

/* ---------- Sections ---------- */
.section { margin-top: 46px; }
.section-sub { margin: 0 0 18px; color: var(--ink-soft); font-weight: 700; }
.closing { text-align: center; color: var(--ink-soft); font-weight: 700; margin: 48px 0 10px; }

/* ---------- Day cards grid (home + printables) ---------- */
.day-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.day-card, .pdf-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  border-radius: 22px; padding: 20px;
  text-decoration: none; color: var(--ink);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.day-card:hover, .pdf-card:hover { transform: translateY(-4px) rotate(-0.5deg); box-shadow: var(--shadow); }
.dc-pink { background: var(--pink-bg); border-color: #f7c6db; }
.dc-green { background: var(--green-bg); border-color: #c3e8d2; }
.dc-amber { background: var(--amber-bg); border-color: #f5ddad; }
.dc-purple { background: var(--purple-bg); border-color: #d9c8f6; }
.dc-blue { background: var(--blue-bg); border-color: #c2ddf8; }
.dc-orange { background: var(--orange-bg); border-color: #f8d2b8; }
.dc-teal { background: var(--teal-bg); border-color: #b8e8e0; }
.dc-emoji { font-size: 2rem; }
.dc-title { font-size: 1.2rem; font-weight: 600; }
.dc-date {
  font-size: 0.8rem; font-weight: 800; color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.75); padding: 2px 10px; border-radius: 999px;
}
.dc-fact { font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; }
.dc-go { margin-top: 8px; font-weight: 800; font-size: 0.9rem; color: var(--ink); }

/* ---------- Date page hero ---------- */
.day-hero {
  margin-top: 26px; border-radius: 32px; padding: 40px 38px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.day-hero::after {
  content: ''; position: absolute; right: -50px; bottom: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.30);
}
.dh-pink { background: linear-gradient(130deg, #fdd3e4, var(--pink-bg)); }
.dh-green { background: linear-gradient(130deg, #c9ecd8, var(--green-bg)); }
.dh-amber { background: linear-gradient(130deg, #ffe4b0, var(--amber-bg)); }
.dh-purple { background: linear-gradient(130deg, #ddcdf9, var(--purple-bg)); }
.dh-blue { background: linear-gradient(130deg, #c6e0fa, var(--blue-bg)); }
.dh-orange { background: linear-gradient(130deg, #fad4ba, var(--orange-bg)); }
.dh-teal { background: linear-gradient(130deg, #bee9e2, var(--teal-bg)); }
.dh-print { background: linear-gradient(130deg, #ffe0ec, #e3f0fd); }
.dh-donate { background: linear-gradient(130deg, #ffe4b0, #fdd3e4); }
.dh-emoji {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2.6rem; width: 84px; height: 84px;
  background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.day-hero h1 { font-size: 2.3rem; font-weight: 700; margin: 0 0 10px; }
.dh-fact {
  display: inline-block; font-weight: 600; font-size: 1.02rem;
  background: rgba(255, 255, 255, 0.85); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 14px;
}
.dh-intro { font-size: 1.08rem; max-width: 62ch; margin: 0 0 18px; position: relative; z-index: 1; }
.pdf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.05rem;
  padding: 13px 26px; border-radius: 999px; box-shadow: var(--shadow-sm);
  position: relative; z-index: 1;
  transition: transform 0.15s;
}
.pdf-btn:hover { transform: scale(1.04); }

/* ---------- Illustration frame ---------- */
.illus {
  margin: 36px auto 0; max-width: 640px; text-align: center;
}
.illus img {
  border-radius: 28px; border: 6px solid #fff; box-shadow: var(--shadow);
  transform: rotate(-1.2deg); width: 100%;
}
.illus figcaption { margin-top: 14px; font-weight: 800; color: var(--ink-soft); }

/* ---------- Activity cards ---------- */
.act-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px; margin-top: 14px;
}
.act-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card); border-radius: 18px; padding: 14px 16px;
  box-shadow: var(--shadow-sm); border: 2px solid rgba(67, 44, 58, 0.05);
}
.act-emoji {
  flex: 0 0 auto; font-size: 1.3rem; width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--cream);
}
.ac-pink .act-emoji { background: var(--pink-bg); }
.ac-green .act-emoji { background: var(--green-bg); }
.ac-amber .act-emoji { background: var(--amber-bg); }
.ac-purple .act-emoji { background: var(--purple-bg); }
.ac-blue .act-emoji { background: var(--blue-bg); }
.ac-orange .act-emoji { background: var(--orange-bg); }
.ac-teal .act-emoji { background: var(--teal-bg); }
.act-text { font-weight: 600; font-size: 0.98rem; padding-top: 2px; }

.video-btn {
  display: inline-flex; margin-top: 20px; align-items: center; gap: 8px;
  text-decoration: none; color: #fff; font-weight: 800;
  padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.vb-pink { background: var(--pink); } .vb-green { background: var(--green); }
.vb-amber { background: var(--amber); } .vb-purple { background: var(--purple); }
.vb-blue { background: var(--blue); } .vb-orange { background: var(--orange); }
.vb-teal { background: var(--teal); }

/* ---------- Info cards ---------- */
.info-card {
  border-radius: 24px; padding: 28px 30px; box-shadow: var(--shadow-sm);
  border: 2px dashed rgba(67, 44, 58, 0.14);
}
.ic-yellow { background: var(--amber-bg); }
.ic-rose { background: var(--pink-bg); }
.info-card p { margin: 8px 0; }
.chips { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.chip {
  background: #fff; border-radius: 16px; padding: 12px 18px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.chip-label { font-size: 0.8rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.chip-value { font-size: 1.15rem; font-weight: 800; }
.hebrew {
  font-family: 'Fredoka', sans-serif; font-size: 1.35rem; color: var(--ink);
  margin-top: 12px;
}

/* ---------- Printables ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.plan-card {
  display: flex; gap: 14px; background: #fff; border-radius: 18px;
  padding: 18px; box-shadow: var(--shadow-sm); border: 2px solid rgba(67, 44, 58, 0.05);
}
.plan-card .act-emoji { background: var(--green-bg); }
.plan-card h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; }
.plan-card p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); font-weight: 600; }
.note-card {
  margin-top: 18px; background: var(--blue-bg); border-radius: 16px;
  padding: 14px 18px; font-weight: 600; border: 2px dashed rgba(74, 159, 232, 0.4);
}

/* ---------- Donate ---------- */
.warn-card {
  background: var(--amber-bg); border: 2px solid var(--amber);
  border-radius: 16px; padding: 16px 20px; font-weight: 700;
}

/* ---------- Footer ---------- */
footer {
  text-align: center; color: var(--ink-soft); font-weight: 700;
  padding: 30px 20px 36px; font-size: 0.95rem;
}
.foot-rose { font-size: 1.1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero { flex-direction: column; padding: 34px 24px; text-align: center; }
  .hero h1 { font-size: 2rem; }
  .hero-img { flex-basis: auto; width: 230px; height: 230px; }
  .day-hero { padding: 30px 22px; }
  .day-hero h1 { font-size: 1.8rem; }
  .nav-inner { border-radius: 22px; }
  .brand { width: 100%; margin-bottom: 4px; }
  .nav-links a { min-height: 40px; display: inline-flex; align-items: center; }
}

/* ---------- Print ---------- */
@media print {
  .site-nav, .pdf-btn, .video-btn, footer { display: none !important; }
  body { background: #fff; background-image: none; }
  .day-hero, .act-card, .info-card, .illus img { box-shadow: none; }
}

/* One-page printing */
@page { size: letter; margin: 0.35in; }
@media print {
  html { zoom: var(--pz, 0.8); }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .act-card, .info-card, .day-hero { break-inside: avoid; }
  main { padding-top: 0 !important; }
  .day-hero { padding: 18px 22px !important; margin-bottom: 10px !important; }
  .illus { margin: 8px 0 !important; padding: 0 !important; }
  .illus img { max-height: 2.6in; width: auto; }
  .illus figcaption { margin-top: 4px !important; }
  .section, section { margin-top: 10px !important; margin-bottom: 10px !important; }
  section:has(a[href$="-coloring.pdf"]) { display: none !important; }
  section:has(iframe) { display: none !important; }
}

/* ---------- Photo sharing ---------- */
.photo-form { display: grid; gap: 14px; margin-top: 14px; }
.photo-form label { display: grid; gap: 6px; font-weight: 700; color: var(--ink); }
.photo-form textarea, .photo-form input[type=text], .photo-form input[type=email], .photo-form input[type=file], .photo-form select {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 2px solid #f0d9b8; border-radius: 14px; background: #fff; color: var(--ink);
}
.photo-form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.photo-form label.check input { margin-top: 5px; width: 18px; height: 18px; }
.photo-form .hp { position: absolute; left: -9999px; }
.photo-form button { border: 0; cursor: pointer; font: inherit; justify-self: start; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.photo-grid:empty { display: none; }
.photo-grid figure { margin: 0; background: #fff; padding: 10px 10px 14px; border-radius: 18px; box-shadow: var(--shadow-sm); }
.photo-grid img { width: 100%; border-radius: 12px; display: block; }
.photo-grid figcaption { margin-top: 8px; font-weight: 700; font-size: .95rem; }
.photo-grid figcaption span { display: block; font-weight: 400; color: var(--ink-soft); }
.photo-grid:not(:empty) + .empty-note { display: none; }
.ic-pink { background: var(--pink-bg); }
.form-msg { margin: 0; font-weight: 700; color: var(--ink-soft); }
.note-card + .note-card { margin-top: 12px; }
@media print { .no-print { display: none !important; } }

/* nav hides on scroll down, returns on scroll up */
.site-nav { transition: transform .3s ease; }
.site-nav.nav-hidden { transform: translateY(-130%); }

/* ---------- Phone cleanup ---------- */
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .site-nav { top: 6px; margin-top: 6px; padding: 0 12px; }
  .nav-inner { flex-wrap: wrap; padding: 6px 8px 6px 14px; gap: 0; justify-content: space-between; }
  .brand { width: auto; margin: 0; font-size: 1rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer;
    background: var(--ink); color: #fff; font: inherit; font-weight: 600; font-size: .92rem;
    padding: 8px 14px; border-radius: 999px; min-height: 40px;
  }
  .nav-links { display: none; width: 100%; padding: 8px 0 6px; gap: 6px; grid-template-columns: 1fr 1fr; }
  .site-nav.open .nav-links { display: grid; }
  .nav-links a { justify-content: center; text-align: center; background: rgba(0,0,0,.035); padding: 8px 6px; font-size: .92rem; }
  .nav-links a.on, .nav-links a[class*="on-"] { background: var(--ink); }
  main { padding: 0 14px 32px; }
  h2 { font-size: 1.3rem; }
  .section { margin-top: 30px; }
  .hero { padding: 24px 18px; border-radius: 22px; }
  .hero h1 { font-size: 1.7rem; }
  .day-hero { padding: 22px 18px; border-radius: 22px; }
  .day-hero h1 { font-size: 1.6rem; }
  .hero-img { width: 170px; height: 170px; }
  .illus img { max-height: 220px; object-fit: contain; }
  .pdf-btn, .video-btn { padding: 12px 18px; font-size: .95rem; }
  footer { font-size: .85rem; padding: 22px 14px 34px; }
}

/* ---------- Song lyrics ---------- */
.lyrics-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-sm); padding: 26px 24px; max-width: 640px; margin: 14px auto 0; text-align: center; border: 2px solid rgba(90,140,230,.18); }
.lyrics-card .lyrics-sub { font-weight: 600; color: var(--ink); opacity: .75; margin: 0 0 18px; }
.lyrics-card .stanza { margin: 0 0 20px; line-height: 1.75; font-size: 1.08rem; }
.lyrics-card .stanza-break { color: var(--blue); letter-spacing: .5em; margin: 0 0 20px; }
.lyrics-card .stanza:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .lyrics-card { padding: 20px 16px; border-radius: 18px; } .lyrics-card .stanza { font-size: 1.02rem; } }

/* welcome popup */
.welcome-pop{position:fixed;inset:0;z-index:2000;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(67,44,58,.45)}
.welcome-pop.show{display:flex;animation:wpfade .35s ease}
.welcome-box{position:relative;max-width:440px;width:100%;background:var(--card);border-radius:24px;padding:34px 26px 26px;text-align:center;box-shadow:0 18px 50px rgba(67,44,58,.3);border-top:8px solid var(--pink)}
.welcome-box .wp-icon{font-size:2.2rem;margin-bottom:8px}
.welcome-box p{margin:0 0 20px;font-size:1.15rem;line-height:1.55;color:var(--ink)}
.welcome-box .wp-btn{display:inline-block;border:0;cursor:pointer;background:var(--ink);color:#fff;font:inherit;font-weight:700;padding:11px 28px;border-radius:999px}
.welcome-box .wp-x{position:absolute;top:10px;right:12px;border:0;background:transparent;font-size:1.6rem;line-height:1;color:var(--ink-soft);cursor:pointer;padding:6px 10px}
@keyframes wpfade{from{opacity:0}to{opacity:1}}
