/* Golanix static placeholder — bilingual (EN default, HE under /he/)
   Design palette inspired by Robokids Online (deep tech-blue) and the
   Golanix brand illustrations (robots in blue circles). */
:root {
  --color-fg: #1a1a1a;
  --color-muted: #555;
  --color-bg: #ffffff;
  --color-bg-alt: #f2f6fc;
  --color-bg-dark: #0f2b5a;

  --color-accent: #1b4f9e;          /* primary brand blue (matches Robokids logo) */
  --color-accent-hover: #153e7e;
  --color-accent-light: #eaf2fd;    /* soft blue tint for backgrounds */
  --color-accent-bright: #2468c8;   /* brighter blue for highlights */

  --color-border: #e1e7ef;
  --font-sans: 'Heebo', 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Arial Hebrew', Arial, sans-serif;
  --max-width: 74rem;
  --radius: 0.75rem;
  --radius-sm: 0.4rem;
  --shadow-sm: 0 1px 2px rgba(15, 43, 90, 0.06), 0 1px 3px rgba(15, 43, 90, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 43, 90, 0.08), 0 2px 4px rgba(15, 43, 90, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 43, 90, 0.12), 0 8px 16px rgba(15, 43, 90, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--color-fg);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); }

/* --- Layout -------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header -------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(4px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-header .logo img {
  height: 44px;
  width: auto;
  display: block;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--color-fg);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.site-nav a.lang-switch {
  margin-inline-start: 0.25rem;
  padding: 0.3rem 0.75rem;
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-accent);
}
.site-nav a.lang-switch:hover {
  background: var(--color-accent);
  color: #fff;
}

/* --- Hero ---------------------------------------------------- */
.hero {
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(ellipse at 85% 30%, rgba(36, 104, 200, 0.10), transparent 60%),
    radial-gradient(ellipse at 15% 80%, rgba(27, 79, 158, 0.06), transparent 60%),
    linear-gradient(180deg, var(--color-accent-light) 0%, #fff 100%);
  border-bottom: 1px solid var(--color-border);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}
.hero-text h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  margin: 0 0 0.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-bg-dark);
  letter-spacing: -0.01em;
}
.hero-text .tagline {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin: 0 0 2rem;
  max-width: 34ch;
}
.hero-image {
  justify-self: center;
}
.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(15, 43, 90, 0.14));
}

/* --- Buttons ------------------------------------------------- */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: transparent;
  color: var(--color-accent);
  text-decoration: none;
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover {
  background: var(--color-accent);
  color: #fff;
}

/* --- Sections ------------------------------------------------ */
section { padding: 4rem 0; }
section + section { padding-top: 0; }
section h2 {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  margin: 0 0 1rem;
  font-weight: 800;
  color: var(--color-bg-dark);
  letter-spacing: -0.01em;
}
section h2 + .lead {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 48rem;
  margin: 0 0 2.25rem;
}
section h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* Alt section background */
.section-alt {
  background: var(--color-bg-alt);
}

/* --- Feature tiles (home) ------------------------------------ */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem;
  margin-top: 1rem;
}
.tile {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.tile-icon {
  width: 110px;
  height: 110px;
  margin-bottom: 1rem;
  object-fit: contain;
}
.tile h3 {
  margin: 0.25rem 0 0.5rem;
  color: var(--color-bg-dark);
  font-size: 1.2rem;
}
.tile p {
  color: var(--color-muted);
  margin: 0 0 1rem;
  font-size: 0.97rem;
}
.tile a.tile-link {
  margin-top: auto;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}
.tile a.tile-link:hover { text-decoration: underline; }

/* --- Feature stats row --------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  padding: 2.5rem 0;
}
.stat { text-align: center; }
.stat .num {
  display: block;
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .label {
  color: var(--color-muted);
  font-size: 0.98rem;
  margin-top: 0.25rem;
  display: block;
}

/* --- Course cards ------------------------------------------- */
.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.75rem;
}
.course-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.course-card-image {
  width: 100%;
  height: 140px;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
}
.course-card-image img {
  max-height: 120px;
  max-width: 80%;
  object-fit: contain;
}
.course-card-body { padding: 1.5rem 1.75rem 1.75rem; }
.course-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  color: var(--color-bg-dark);
}
.course-card .grade {
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.course-card ul {
  margin: 0;
  padding-inline-start: 1.25rem;
  color: var(--color-fg);
}
.course-card ul li { margin-bottom: 0.4rem; }

/* --- About page layout (text + photo) ------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.about-photo figcaption {
  font-size: 0.88rem;
  color: var(--color-muted);
  padding: 0.75rem 1rem;
  background: var(--color-bg-alt);
}

/* --- Achievement badges ------------------------------------- */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.badge {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-inline-start: 4px solid var(--color-accent-bright);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.badge .year {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge p {
  margin: 0.3rem 0 0;
  color: var(--color-fg);
  font-weight: 500;
  line-height: 1.45;
}

/* --- Contact info block -------------------------------------- */
.contact-info {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  max-width: 38rem;
  box-shadow: var(--shadow-sm);
}
.contact-info dt {
  font-weight: 700;
  margin-top: 1.25rem;
  color: var(--color-accent);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 0.3rem 0 0;
  font-size: 1.1rem;
}
.contact-info a { text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* --- Prose --------------------------------------------------- */
.prose {
  max-width: 48rem;
}
.prose p {
  margin: 0 0 1rem;
}

/* --- Footer -------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  background: var(--color-bg-alt);
}

/* --- Responsive --------------------------------------------- */
@media (max-width: 800px) {
  .hero { padding: 2.5rem 0 2rem; }
  .hero .container { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-text .tagline { margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 2.75rem 0; }
}
@media (max-width: 600px) {
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .site-nav { gap: 1rem; font-size: 0.95rem; }
  .container { padding: 0 1rem; }
  .tile-icon { width: 96px; height: 96px; }
}
