/* Self-hosted Google Fonts (OFL licensed): Secular One, Baloo 2, Rubik */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Baloo2-500-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: 'Baloo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Baloo2-500-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: 'Baloo 2';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Baloo2-500-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: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Rubik-400-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: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Rubik-400-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: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Rubik-400-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: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Rubik-400-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: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Rubik-400-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: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Rubik-400-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: 'Secular One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/SecularOne-400-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: 'Secular One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/SecularOne-400-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 {
  /* game palette - kept as-is, used only for Simon/memory game pieces which need distinct hues to function */
  --yellow: #F7C948;
  --yellow-dark: #E0A917;
  --yellow-light: #FBE7B0;
  --red: #EFB0AA;
  --red-dark: #DB938C;
  --blue: #B7DCE8;
  --blue-dark: #96C4D4;
  --green: #C6DDB4;
  --green-dark: #A8CB90;
  --orange: #F2CBA0;
  --orange-dark: #E3AF77;
  --purple: #D6C6E8;
  --purple-dark: #B9A4D4;

  /* brand palette - white background, warm brown text/headings */
  --cream: #FFFFFF;
  --ink: #5C3A22;
  --heading: #7A4A2A;
  --white: #FFFFFF;
  --line: #111111;
  --grey: #EDEDED;
  --grey-text: #555555;

  /* single warm accent, used sparingly for primary CTAs only */
  --btn: #EFB0AA;
  --btn-light: #F3F3F3;
  --accent: var(--heading);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 12px rgba(17,17,17,0.08);
  --shadow-sm: 0 2px 8px rgba(17,17,17,0.08);
}

@font-face {
  font-family: 'Gveret Levin';
  src: url('fonts/GveretLevin-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

a, button, .btn, .card, .memory-tile, .simon-pad, .nav-toggle, .social-link {
  cursor: url('images/cursor-mascot.png') 18 18, pointer;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  direction: rtl;
  font-family: 'Rubik', 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
}

h1, h2, h3, .display {
  font-family: 'Gveret Levin', 'Baloo 2', 'Secular One', 'Rubik', sans-serif;
  font-weight: 400;
  color: var(--heading);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header / Nav ===== */

.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Gveret Levin', 'Baloo 2', 'Secular One', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--heading);
}

.logo img { width: 78px; height: 78px; object-fit: cover; border-radius: 50%; }

.nav-toggle {
  display: none;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1.6rem;
  padding: 8px 14px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  display: inline-block;
  padding: 8px 4px;
  font-family: 'Gveret Levin', 'Baloo 2', 'Secular One', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.main-nav a:hover, .main-nav a:focus-visible {
  border-bottom-color: var(--line);
}

.main-nav a.active {
  border-bottom-color: var(--line);
}

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 999px;
  font-family: 'Gveret Levin', 'Baloo 2', 'Secular One', sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--ink);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-red, .btn-blue, .btn-green, .btn-orange, .btn-purple, .btn-yellow {
  background: var(--btn);
}

/* ===== Hero ===== */

.hero {
  padding-top: 60px;
  padding-bottom: 40px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text { flex: 1 1 420px; }
.hero-image { flex: 1 1 320px; text-align: center; }
.hero-image img { width: 100%; max-width: 520px; margin: 0 auto; }

body.home-bg { background: #F9F0E4; }

.hero h1, .about-hero h1, .parents-hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero .tagline {
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 28px;
  font-weight: 500;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Section blocks ===== */

.section {
  padding-top: 50px;
  padding-bottom: 50px;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

h1.section-title {
  font-size: 3rem;
  line-height: 1.15;
}

.section-title.red, .section-title.blue, .section-title.green,
.section-title.orange, .section-title.purple {
  color: var(--heading);
}

.section-sub {
  text-align: center;
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--ink);
}

/* ===== Cards / grids ===== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
  border: 2px solid var(--line);
  transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-3px); }

.card .icon-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 16px;
  color: var(--ink);
}

.card h3 { margin: 0 0 10px; font-size: 1.35rem; }
.card p { margin: 0; color: var(--ink); }

.bg-red, .bg-blue, .bg-green, .bg-orange, .bg-purple, .bg-yellow {
  background: var(--btn);
}

/* ===== Product showcase (homepage) ===== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.product-tile {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--line);
  aspect-ratio: 4/3;
  transition: transform 0.3s ease;
}

.product-tile:hover, .product-tile:focus-visible { transform: translateY(-3px); }

.product-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-tile-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,0.72), rgba(0,0,0,0));
  color: #fff;
  font-family: 'Gveret Levin', 'Baloo 2', 'Secular One', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
}

/* ===== Photo gallery + lightbox ===== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-item {
  display: block;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--white);
  transition: transform 0.3s ease;
}

.gallery-item:hover, .gallery-item:focus-visible { transform: translateY(-3px); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 10, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  border: 3px solid var(--white);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
}

/* ===== Blog post gallery ===== */

.post-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--line);
  transition: transform 0.3s ease;
  color: var(--ink);
}

.post-card:hover { transform: translateY(-3px); }

.post-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.post-card h3 {
  margin: 0;
  padding: 16px 18px;
  font-size: 1.15rem;
  text-align: center;
}

.border-red, .border-blue, .border-green, .border-orange, .border-purple {
  border-color: var(--line);
}

/* ===== Video grid (songs page) ===== */

.video-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--line);
}

.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: var(--ink);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card .video-info { padding: 18px 20px; }
.video-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.video-card p { margin: 0; color: var(--grey-text); font-size: 0.95rem; }

.placeholder-note {
  background: var(--grey);
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--ink);
  margin-top: 10px;
}

/* ===== Games ===== */

.game-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 2px solid var(--line);
}

.game-card h3 { font-size: 1.6rem; margin-top: 0; }

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 480px;
  margin: 24px auto;
}

.memory-tile {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--btn);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  user-select: none;
  border: none;
  padding: 0;
  font-family: inherit;
  transition: transform 0.2s ease;
}

.memory-tile.flipped, .memory-tile.matched {
  background: var(--white);
  color: var(--ink);
  transform: scale(1.03);
}

.memory-tile.matched { background: var(--accent); color: var(--white); }

.game-status {
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading);
}

.simon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 300px;
  margin: 24px auto;
}

.simon-pad {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: none;
  opacity: 0.88;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.4s ease;
}

.simon-pad:active { opacity: 1; }
.simon-pad.lit { opacity: 1; }
.simon-pad.pad-red { background: var(--red); border-radius: var(--radius-md) var(--radius-sm) var(--radius-sm) var(--radius-sm); }
.simon-pad.pad-blue { background: var(--blue); border-radius: var(--radius-sm) var(--radius-md) var(--radius-sm) var(--radius-sm); }
.simon-pad.pad-green { background: var(--green); border-radius: var(--radius-sm) var(--radius-sm) var(--radius-md) var(--radius-sm); }
.simon-pad.pad-yellow { background: var(--yellow); border-radius: var(--radius-sm) var(--radius-sm) var(--radius-sm) var(--radius-md); }

/* ===== About page ===== */

.about-hero {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.about-hero img { width: 100%; max-width: 300px; margin: 0 auto; }

.timeline {
  max-width: 700px;
  margin: 0 auto;
  border-right: 4px solid var(--btn-light);
  padding-right: 24px;
}

.timeline-item { margin-bottom: 28px; position: relative; }

.timeline-item h3 { margin: 0 0 6px; }
.timeline-item p { margin: 0; color: var(--ink); }

/* ===== Parents page ===== */

.parents-hero {
  background: var(--btn-light);
  color: var(--ink);
  padding: 50px 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}


.contact-card, .info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 2px solid var(--line);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--btn);
  outline-offset: 1px;
}

.contact-form textarea { resize: vertical; min-height: 100px; }

.contact-form .btn { border: none; width: 100%; text-align: center; cursor: pointer; }

.form-success {
  background: var(--grey);
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--ink);
  margin-top: 16px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--btn);
  font-weight: 700;
  transition: transform 0.3s ease;
}

.social-link svg { width: 22px; height: 22px; fill: currentColor; }

.social-link:hover, .social-link:focus-visible {
  transform: translateY(-2px);
}

.site-footer .social-link { color: var(--ink); background: var(--white); }

table.tour-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--line);
}

table.tour-table th {
  background: var(--btn);
  color: var(--ink);
  padding: 14px;
  text-align: right;
}

table.tour-table td {
  padding: 14px;
  border-bottom: 2px solid var(--grey);
}

table.tour-table tr:last-child td { border-bottom: none; }

/* ===== Footer ===== */

.site-footer {
  background: var(--btn);
  color: var(--ink);
  padding: 36px 0;
  margin-top: 40px;
  text-align: center;
}

.site-footer .social-links { justify-content: center; }

.site-footer p { color: var(--ink); opacity: 0.75; margin-top: 18px; }

.footer-legal-links { margin-top: 6px !important; font-size: 0.85rem; }
.footer-legal-links a { text-decoration: underline; }

/* ===== Responsive ===== */

@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
  }

  .header-inner { flex-wrap: wrap; }

  .hero h1, .about-hero h1, .parents-hero h1, h1.section-title { font-size: 2.2rem; }

  .memory-grid { grid-template-columns: repeat(3, 1fr); }
}


/* ===== Accessibility helpers ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -60px; right: 12px; z-index: 1000;
  background: var(--ink); color: var(--white); padding: 10px 18px;
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 8px; outline: 3px solid var(--btn); }
.contact-form .consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--ink); }
.contact-form .consent input { width: auto; margin-top: 4px; flex: none; }
.contact-form .consent a { text-decoration: underline; }
