/* ===========================================================
   yuvischool.co.il — הוראה פרטית במתמטיקה ופיזיקה
   =========================================================== */

:root {
  --navy: #1c2b4a;
  --navy-dark: #121e35;
  --teal: #1f7a6c;
  --teal-light: #e6f4f1;
  --amber: #e8a33d;
  --amber-dark: #c9821f;
  --paper: #faf8f4;
  --ink: #22262f;
  --ink-soft: #565d6b;
  --line: #e6e2da;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 43, 74, 0.08);
  --shadow-sm: 0 4px 14px rgba(28, 43, 74, 0.06);
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Rubik", "Segoe UI", Arial, sans-serif;
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- top announcement bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #d8dfeb;
  font-size: 0.85rem;
  padding: 8px 0;
  text-align: center;
  letter-spacing: 0.2px;
}
.topbar a { color: var(--amber); font-weight: 600; }

/* ---------- header / nav ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}
.brand .mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-soft);
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
nav.main-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--ink);
  font-size: 0.97rem;
  transition: background 0.15s, color 0.15s;
}
nav.main-nav a:hover { background: var(--teal-light); color: var(--teal); }
nav.main-nav a.active { color: var(--teal); font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.97rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(circle at 15% 20%, #24365c 0%, var(--navy) 45%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 78px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.06) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: rgba(232, 163, 61, 0.18);
  color: var(--amber);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.25;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero h1 span { color: var(--amber); }
.hero p.lead {
  font-size: 1.08rem;
  color: #cfd6e4;
  margin: 0 0 30px;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
  max-width: 480px;
}
.hero-stats .stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}
.hero-stats .stat b {
  display: block;
  font-size: 1.3rem;
  color: var(--amber);
}
.hero-stats .stat span { font-size: 0.78rem; color: #b9c2d4; }

.hero-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.hero-card h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--navy); }
.hero-card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 0.92rem; }
.hero-card ul { margin: 0 0 20px; padding: 0; list-style: none; }
.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.93rem;
}
.hero-card li .check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------- sections ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .kicker {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 14px;
  color: var(--navy);
  font-weight: 800;
}
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1.02rem; }

.alt-bg { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 800;
}
.card h3 { margin: 0 0 10px; font-size: 1.12rem; color: var(--navy); }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps .step { position: relative; padding-top: 6px; }
.steps .step::before {
  counter-increment: step;
  content: counter(step);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.steps h4 { margin: 0 0 8px; color: var(--navy); font-size: 1.02rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.cta-band {
  background: linear-gradient(120deg, var(--teal) 0%, #15584c 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 46px 40px;
  text-align: center;
}
.cta-band h2 { margin: 0 0 12px; font-size: 1.6rem; }
.cta-band p { margin: 0 0 26px; color: #d7ede8; }
.cta-band .btn-primary { background: var(--white); color: var(--teal); }
.cta-band .btn-primary:hover { background: #eef7f5; }

/* subjects table */
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-card .price-head {
  background: var(--navy);
  color: var(--white);
  padding: 22px 26px;
}
.price-card .price-head h3 { margin: 0 0 6px; }
.price-card .price-head span { color: #c9d2e3; font-size: 0.88rem; }
.price-card table { width: 100%; border-collapse: collapse; }
.price-card td { padding: 16px 26px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.price-card tr:last-child td { border-bottom: none; }
.price-card td.amount { color: var(--teal); font-weight: 700; text-align: left; white-space: nowrap; }

.note-box {
  background: var(--teal-light);
  border: 1px solid #cfe7e1;
  border-radius: 12px;
  padding: 18px 22px;
  color: #10473d;
  font-size: 0.92rem;
  margin-top: 28px;
}
.note-box strong { color: #0b332c; }

.badge-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge-list span {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 600;
}

/* about page bio */
.bio-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--teal) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 4rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.timeline { border-right: 3px solid var(--line); padding-right: 24px; margin-top: 10px; }
.timeline .t-item { position: relative; padding-bottom: 26px; }
.timeline .t-item::before {
  content: "";
  position: absolute;
  right: -30px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid var(--paper);
}
.timeline h4 { margin: 0 0 4px; color: var(--navy); font-size: 1rem; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.contact-info .item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info .item .ic {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-info .item h4 { margin: 0 0 4px; color: var(--navy); font-size: 1rem; }
.contact-info .item p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }

form.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
form.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 18px;
  background: var(--paper);
  color: var(--ink);
}
form.contact-form textarea { min-height: 110px; resize: vertical; }
form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  background: var(--white);
}
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item h4 { margin: 0 0 8px; color: var(--navy); font-size: 1rem; }
.faq-item p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- testimonials ---------- */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.testimonial-card {
  background: var(--navy-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 22px;
  font-size: 3.4rem;
  color: rgba(232, 163, 61, 0.35);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card p.quote {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 10px 0 18px;
  position: relative;
}
.testimonial-card .who {
  font-size: 0.85rem;
  color: #b6c8d6;
}

/* ---------- credibility / story ---------- */
.story-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 34px;
  box-shadow: var(--shadow-sm);
}
.story-block p { color: var(--ink-soft); margin-bottom: 14px; font-size: 1.02rem; }
.story-block p:last-child { margin-bottom: 0; }
.story-block strong { color: var(--navy); }

.stat-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 6px;
}
.stat-pill {
  background: var(--teal-light);
  color: var(--teal);
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  flex: 1;
  min-width: 150px;
  text-align: center;
}
.stat-pill b { display: block; font-size: 1.4rem; color: var(--navy); }

/* ---------- flagship offer highlight ---------- */
.offer-highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 30px;
  align-items: center;
}
.offer-highlight .tag {
  display: inline-block;
  background: rgba(232,163,61,0.2);
  color: var(--amber);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.offer-highlight h3 { font-size: 1.5rem; margin: 0 0 12px; }
.offer-highlight p { color: #cfd6e4; font-size: 0.97rem; margin: 0 0 8px; }
.offer-highlight .price-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
}
.offer-highlight .price-box .amt { font-size: 2.2rem; font-weight: 800; color: var(--amber); }
.offer-highlight .price-box .unit { font-size: 0.85rem; color: #cfd6e4; margin-bottom: 14px; }

/* placeholder callout for content the owner should fill in */
.fill-me {
  background: #fff6e8;
  border: 1px dashed var(--amber-dark);
  color: #7a5410;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.85em;
}

/* ---------- footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #b7c0d1;
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: var(--white); margin: 0 0 16px; font-size: 0.98rem; }
.footer-grid p, .footer-grid a { color: #b7c0d1; font-size: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--amber); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8b96ac;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .testimonials { grid-template-columns: 1fr; }
  .offer-highlight { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  nav.main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0; left: 0;
    background: var(--white);
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-cta .btn-outline { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 50px 0 60px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
}
