/* ============================================================
   CURSOS DE HEBREO — Modern Redesign
   ============================================================ */

/* --- Variables --- */
:root {
  --primary:        #1e3a5f;
  --primary-light:  #2a5298;
  --primary-dark:   #0d2137;
  --secondary:      #c9a227;
  --secondary-light:#f0c040;
  --accent:         #4a8fe8;
  --bg:             #f7f8fc;
  --bg-dark:        #eef0f7;
  --text:           #2c3e50;
  --text-light:     #6c757d;
  --white:          #ffffff;
  --border:         #dee2e6;
  --shadow:         0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 40px rgba(0,0,0,.15);
  --radius:         12px;
  --radius-sm:      6px;
  --transition:     all .3s ease;
  --font-heading:   'Poppins', sans-serif;
  --font-body:      'Open Sans', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.header-top { background: var(--primary); color: var(--white); padding: 6px 0; font-size: .82rem; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.header-top a { color: inherit; text-decoration: none; }
.header-top a:hover { color: var(--secondary); }

.header-main { padding: 14px 0; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 15px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 52px; height: 52px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--white); font-family: serif; flex-shrink: 0; }
.logo-text h1 { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.logo-text span { font-size: .78rem; color: var(--text-light); }

.nav-toggle { display: none; background: none; border: 2px solid var(--primary); border-radius: var(--radius-sm); cursor: pointer; padding: 6px 8px; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--primary); transition: var(--transition); }

/* ============================================================
   MAIN NAV
   ============================================================ */
.main-nav { background: var(--primary); }
.main-nav-wrapper { /* visible by default on desktop */ }
.nav-list { display: flex; align-items: stretch; flex-wrap: nowrap; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 13px 14px; color: rgba(255,255,255,.88);
  text-decoration: none; font-size: .83rem; font-weight: 500;
  letter-spacing: .02em; white-space: nowrap;
  border-bottom: 3px solid transparent; transition: var(--transition);
}
.nav-list > li > a:hover,
.nav-list > li > a.active { color: var(--secondary); border-bottom-color: var(--secondary); background: rgba(255,255,255,.06); }
.nav-list > li > a.cta-link { background: rgba(201,162,39,.18); color: var(--secondary); }
.nav-list > li > a.cta-link:hover { background: var(--secondary); color: var(--primary-dark); }

/* Dropdown */
.has-dropdown > a::after { content: ' ▾'; font-size: .7rem; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--white); box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius); border-top: 3px solid var(--secondary);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition); z-index: 200;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 10px 20px; color: var(--text); text-decoration: none; font-size: .86rem; border-left: 3px solid transparent; transition: var(--transition); }
.dropdown-menu li a:hover { background: var(--bg); color: var(--primary); border-left-color: var(--secondary); padding-left: 25px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  color: var(--white); padding: 100px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: 'אבגדהוזחטיכלמנסעפצקרשת';
  position: absolute; font-size: 9rem; opacity: .04; right: -40px; top: -20px;
  font-family: serif; letter-spacing: 12px; line-height: 1.1;
  word-break: break-all; max-width: 55%; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge { display: inline-block; background: var(--secondary); color: var(--primary-dark); padding: 5px 16px; border-radius: 30px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.hero h2 { font-family: var(--font-heading); font-size: clamp(2rem,5vw,3.4rem); font-weight: 800; line-height: 1.2; margin-bottom: 18px; }
.hero h2 span { color: var(--secondary); }
.hero p { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; line-height: 1.8; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-hebrew { font-size: 2.2rem; font-family: serif; letter-spacing: 10px; opacity: .5; margin-top: 45px; direction: rtl; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius); font-size: .92rem;
  font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition); letter-spacing: .02em;
}
.btn-primary { background: var(--secondary); color: var(--primary-dark); border-color: var(--secondary); }
.btn-primary:hover { background: var(--secondary-light); border-color: var(--secondary-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,162,39,.4); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); transform: translateY(-2px); }
.btn-secondary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { padding: 9px 18px; font-size: .83rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 55px; }
.section-header .overline { display: inline-block; color: var(--secondary); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.section-header h2 { font-family: var(--font-heading); font-size: clamp(1.7rem,4vw,2.4rem); font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.section-header p { font-size: 1rem; color: var(--text-light); max-width: 580px; margin: 0 auto; }

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(270px,1fr)); gap: 28px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; transition: var(--transition); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.card-header { height: 140px; background: linear-gradient(135deg,var(--primary),var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; color: rgba(255,255,255,.25); font-family: serif; position: relative; overflow: hidden; }
.card-header::after { content: attr(data-h); position: absolute; right: 8px; bottom: -8px; font-size: 6rem; opacity: .12; font-family: serif; }
.card-body { padding: 22px; }
.card-tag { display: inline-block; background: var(--bg-dark); color: var(--primary); padding: 3px 11px; border-radius: 30px; font-size: .74rem; font-weight: 600; margin-bottom: 10px; }
.card h3 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.card p { font-size: .87rem; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }
.card-footer { padding: 13px 22px; border-top: 1px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 28px; }
.feature-card { text-align: center; padding: 38px 22px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.feature-icon { width: 66px; height: 66px; margin: 0 auto 18px; background: linear-gradient(135deg,var(--primary),var(--accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--white); }
.feature-card h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.feature-card p { font-size: .86rem; color: var(--text-light); line-height: 1.6; }

/* Stats bar */
.stats-bar { background: var(--primary); color: var(--white); padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 30px; text-align: center; }
.stat-item h3 { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; color: var(--secondary); margin-bottom: 4px; }
.stat-item p { font-size: .88rem; opacity: .8; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header { background: linear-gradient(135deg,var(--primary-dark),var(--primary)); color: var(--white); padding: 55px 0; position: relative; overflow: hidden; }
.page-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg,var(--secondary),var(--accent)); }
.page-header .overline { display: block; color: var(--secondary); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.page-header h1 { font-family: var(--font-heading); font-size: clamp(1.7rem,4vw,2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-header p { font-size: 1rem; opacity: .85; max-width: 580px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; font-size: .82rem; opacity: .7; }
.breadcrumb a { color: var(--secondary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: .5; }

/* ============================================================
   ALPHABET TABLE
   ============================================================ */
.alphabet-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(110px,1fr)); gap: 12px; margin: 30px 0; }
.letter-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 8px; text-align: center; transition: var(--transition); cursor: pointer; }
.letter-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: scale(1.05); }
.letter-card .heb { font-size: 2.4rem; font-family: serif; color: var(--primary); direction: rtl; display: block; margin-bottom: 6px; line-height: 1; }
.letter-card .name { font-size: .8rem; font-weight: 600; color: var(--text); }
.letter-card .sound { font-size: .74rem; color: var(--text-light); }
.letter-card .val { font-size: .74rem; color: var(--secondary); font-weight: 700; margin-top: 3px; }

/* ============================================================
   DATA TABLE
   ============================================================ */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .9rem; }
.data-table th { background: var(--primary); color: var(--white); padding: 13px 18px; text-align: left; font-weight: 600; font-size: .84rem; letter-spacing: .04em; }
.data-table td { padding: 11px 18px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--bg); }
.data-table tr:hover td { background: var(--bg-dark); }
.heb-cell { font-family: serif; font-size: 1.5rem; direction: rtl; color: var(--primary); font-weight: 600; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.faq-q { width: 100%; background: none; border: none; padding: 18px 22px; text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: .96rem; font-weight: 600; color: var(--primary); transition: var(--transition); font-family: var(--font-body); }
.faq-q:hover { background: var(--bg); }
.faq-q .icon { font-size: 1.3rem; transition: transform .3s ease; color: var(--secondary); flex-shrink: 0; margin-left: 10px; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 22px 18px; color: var(--text-light); font-size: .92rem; line-height: 1.8; }

/* ============================================================
   QUIZ
   ============================================================ */
.quiz-wrap { max-width: 700px; margin: 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px; }
.quiz-progress-wrap { background: var(--bg-dark); height: 8px; border-radius: 4px; margin-bottom: 28px; overflow: hidden; }
.quiz-bar { height: 100%; background: linear-gradient(90deg,var(--primary),var(--accent)); border-radius: 4px; transition: width .5s ease; }
.quiz-meta { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: .84rem; color: var(--text-light); }
.quiz-q { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--primary); margin-bottom: 22px; line-height: 1.5; }
.quiz-options { display: flex; flex-direction: column; gap: 11px; }
.quiz-opt { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); font-size: .92rem; }
.quiz-opt:hover { border-color: var(--primary); background: var(--bg); }
.quiz-opt.correct { border-color: #28a745; background: rgba(40,167,69,.08); color: #28a745; font-weight: 600; }
.quiz-opt.wrong { border-color: #dc3545; background: rgba(220,53,69,.08); color: #dc3545; }
.quiz-opt-letter { width: 28px; height: 28px; background: var(--bg-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.quiz-explanation { display: none; margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: .88rem; line-height: 1.7; }
.quiz-result { text-align: center; padding: 30px 10px; }
.quiz-score { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; margin: 16px 0; }

/* ============================================================
   KEYBOARD
   ============================================================ */
.keyboard-output { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; font-size: 1.6rem; font-family: serif; min-height: 68px; direction: rtl; text-align: right; color: var(--primary); margin-bottom: 16px; line-height: 1.5; }
.kb-wrap { background: #2c2c2c; border-radius: var(--radius); padding: 22px; direction: rtl; max-width: 780px; margin: 0 auto; }
.kb-row { display: flex; justify-content: center; gap: 7px; margin-bottom: 7px; }
.key { min-width: 46px; height: 50px; background: #4a4a4a; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 1.2rem; font-family: serif; display: flex; align-items: center; justify-content: center; transition: background .15s; box-shadow: 0 3px 0 #1a1a1a; border-bottom: 3px solid #1a1a1a; }
.key:hover { background: #666; }
.key:active { transform: translateY(2px); box-shadow: none; border-bottom-width: 0; }
.key-space { min-width: 200px; font-family: sans-serif; font-size: .75rem; }
.key-bksp { min-width: 66px; font-family: sans-serif; font-size: .75rem; direction: ltr; }
.key-util { min-width: 58px; font-family: sans-serif; font-size: .72rem; direction: ltr; }

/* ============================================================
   PAYMENT
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(270px,1fr)); gap: 28px; margin-top: 40px; }
.pricing-card { background: var(--white); border-radius: var(--radius); padding: 32px; text-align: center; border: 2px solid var(--border); position: relative; overflow: hidden; transition: var(--transition); }
.pricing-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card.featured { border-color: var(--secondary); }
.pricing-card.featured::before { content: 'MÁS POPULAR'; position: absolute; top: 16px; right: -28px; background: var(--secondary); color: var(--primary-dark); font-size: .68rem; font-weight: 700; padding: 4px 38px; transform: rotate(45deg); letter-spacing: .08em; }
.pricing-card h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.pricing-card .price { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 800; color: var(--primary); margin: 18px 0; }
.pricing-card .price small { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.pricing-card ul { text-align: left; margin: 18px 0 24px; }
.pricing-card ul li { padding: 5px 0; font-size: .88rem; color: var(--text); }
.pricing-card ul li::before { content: '✓ '; color: var(--secondary); font-weight: 700; }

/* ============================================================
   CTA & BOXES
   ============================================================ */
.cta-box { background: var(--primary); color: var(--white); border-radius: var(--radius); padding: 50px 40px; text-align: center; }
.cta-box h3 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; margin-bottom: 14px; }
.cta-box p { opacity: .85; margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }

.highlight-box { background: var(--bg); border-left: 4px solid var(--secondary); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 18px 0; }
.info-box { background: rgba(74,143,232,.08); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 18px 22px; margin: 18px 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.75); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo .heb-icon { color: var(--secondary); font-family: serif; font-size: 1.5rem; }
.footer-brand p { font-size: .87rem; line-height: 1.7; color: rgba(255,255,255,.55); }
.footer-col h4 { color: var(--white); font-family: var(--font-heading); font-weight: 600; margin-bottom: 18px; font-size: .95rem; padding-bottom: 9px; position: relative; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 28px; height: 2px; background: var(--secondary); }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .85rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--secondary); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: 10px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.bg-light { background: var(--bg-dark); }
.text-center { text-align: center; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.heb { font-family: serif; direction: rtl; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .nav-toggle { display: flex; }
  .main-nav-wrapper { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .main-nav-wrapper.open { max-height: 700px; overflow-y: auto; }
  .nav-list { flex-direction: column; }
  .nav-list > li > a { border-bottom: 1px solid rgba(255,255,255,.1); border-left: 3px solid transparent; padding: 12px 18px; }
  .nav-list > li > a:hover { border-left-color: var(--secondary); border-bottom: 1px solid rgba(255,255,255,.1); }
  .has-dropdown > a::after { content: ' ▾'; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; border-top: none; background: rgba(0,0,0,.25); display: none; min-width: 100%; }
  .has-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu li a { color: rgba(255,255,255,.75); padding-left: 28px; border-left: none; }
  .dropdown-menu li a:hover { background: rgba(255,255,255,.08); padding-left: 34px; color: var(--secondary); }
  .hero { padding: 70px 0 55px; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .pricing-card.featured { transform: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .alphabet-grid { grid-template-columns: repeat(auto-fill,minmax(85px,1fr)); gap: 8px; }
  .kb-row { gap: 4px; }
  .key { min-width: 34px; height: 42px; font-size: 1rem; }
  .key-space { min-width: 140px; }
  .quiz-wrap { padding: 24px 16px; }
  .cta-box { padding: 35px 20px; }
}
