/* ============================================================
   Torah Tech brand layer — torahtech.co
   ------------------------------------------------------------
   Tokens and primitives lifted from index.html (the canonical
   brand reference). Load this after shared.css on any page that
   uses the Program theme. See .claude/rules.md, section
   "Torah Tech branding is required on EVERY page".
   ============================================================ */

:root {
  /* Core palette */
  --tt-navy:        #1C47A5;
  --tt-navy-deep:   #0C2350;
  --tt-hero-navy:   #091836;
  --tt-blue:        #5E90E3;
  --tt-blue-light:  #7BB3F0;
  --tt-cyan:        #00C8DC;
  --tt-cyan-bright: #00D2D4;
  --tt-ice:         #7BE0EC;
  --tt-footer:      #1a1a2e;

  /* Neutrals */
  --tt-ink:         #333;
  --tt-ink-soft:    #555;
  --tt-ink-muted:   #636B77;
  --tt-surface:     #fff;
  --tt-surface-2:   #f7f9fc;
  --tt-line:        #e9eef6;
  --tt-line-strong: #cfdcf0;

  /* Gradients */
  --tt-grad-header:  linear-gradient(135deg, #5E90E3, #1C47A5);
  --tt-grad-section: linear-gradient(135deg, #5E90E3 0%, #7BB3F0 100%);
  --tt-grad-hero:    linear-gradient(135deg, #091836 0%, #123071 45%, #1C47A5 100%);
  --tt-grad-deep:    linear-gradient(135deg, #0C2350 0%, #1C47A5 100%);

  /* Shadows + shape */
  --tt-shadow-card:  0 6px 24px rgba(28,71,165,.10);
  --tt-shadow-lift:  0 18px 40px rgba(28,71,165,.12);
  --tt-shadow-cyan:  0 12px 32px rgba(0,200,220,.38);
  --tt-radius:       16px;
  --tt-radius-sm:    12px;
  --tt-pill:         999px;

  /* Type */
  --tt-font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --tt-font-body:    'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --tt-font-serif:   'Cormorant Garamond', Georgia, serif;
  --tt-font-hebrew:  'Frank Ruhl Libre', 'Times New Roman', serif;
}

/* ── Eyebrow ─────────────────────────────────────────────────
   Uppercase, letterspaced, hairline flanks. Ice on dark,
   blue on light. */
.tt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--tt-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--tt-ice);
}
.tt-eyebrow::before,
.tt-eyebrow::after {
  content: '';
  width: 26px;
  height: 1px;
  background: rgba(123,224,236,.5);
}
.tt-eyebrow.on-light { color: var(--tt-blue); }
.tt-eyebrow.on-light::before,
.tt-eyebrow.on-light::after { background: rgba(94,144,227,.45); }

/* ── Divider rule under an h2 ────────────────────────────── */
.tt-rule { width: 60px; height: 2px; background: var(--tt-blue); margin: 0 auto; border: 0; }
.tt-rule.on-dark { background: #fff; }

/* ── Buttons ─────────────────────────────────────────────── */
.tt-btn,
.tt-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--tt-pill);
  font-family: var(--tt-font-body);
  font-size: 16px;
  letter-spacing: .4px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .2s, border-color .2s;
}
.tt-btn {
  padding: 17px 40px;
  background: var(--tt-cyan);
  color: #08233f;
  font-weight: 800;
  border: none;
  box-shadow: var(--tt-shadow-cyan);
}
.tt-btn:hover {
  transform: translateY(-3px);
  background: var(--tt-cyan-bright);
  box-shadow: 0 20px 44px rgba(0,200,220,.48);
}
.tt-btn-ghost {
  padding: 17px 34px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
  font-weight: 700;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.tt-btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.22);
  border-color: #fff;
}
.tt-btn:focus-visible,
.tt-btn-ghost:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ── Card ────────────────────────────────────────────────── */
.tt-card {
  background: var(--tt-surface);
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius);
  box-shadow: var(--tt-shadow-card);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tt-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--tt-shadow-lift);
  border-color: var(--tt-line-strong);
}

/* ── Flat panel (no lift) ────────────────────────────────── */
.tt-panel {
  background: var(--tt-surface-2);
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius);
}

/* ── Stat block ──────────────────────────────────────────── */
.tt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tt-stat { text-align: center; position: relative; }
.tt-stat + .tt-stat::before {
  content: '';
  position: absolute;
  left: -12px; top: 50%;
  transform: translateY(-50%);
  height: 52px; width: 1px;
  background: rgba(255,255,255,.15);
}
.tt-stat-num {
  display: block;
  font-family: var(--tt-font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--tt-cyan-bright);
}
.tt-stat-label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}

/* ── Hero ────────────────────────────────────────────────── */
.tt-hero {
  position: relative;
  overflow: hidden;
  background: var(--tt-grad-hero);
  color: #fff;
  padding: 78px 24px 88px;
  text-align: center;
}
/* Soft light wash, matching the home hero's depth without a video */
.tt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(94,144,227,.34), transparent 46%),
    radial-gradient(circle at 84% 74%, rgba(0,200,220,.20), transparent 48%);
  pointer-events: none;
}
.tt-hero-inner { position: relative; max-width: 900px; margin: 0 auto; }
.tt-hero-he {
  font-family: var(--tt-font-hebrew);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 84px);
  line-height: 1.15;
  direction: rtl;
  margin: 20px 0 10px;
  text-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.tt-hero h1 {
  font-family: var(--tt-font-display);
  font-size: clamp(24px, 4.4vw, 38px);
  font-weight: 600;
  letter-spacing: -.4px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #fff;
}
.tt-hero-lede {
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  color: rgba(255,255,255,.88);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Program CTA band (goes above the shared footer) ─────── */
.tt-band {
  background: linear-gradient(135deg, #1C47A5 0%, #2A57B4 55%, #3568CF 100%);
  color: #fff;
  padding: 66px 24px;
  text-align: center;
}
.tt-band-inner { max-width: 760px; margin: 0 auto; }
.tt-band h2 {
  font-family: var(--tt-font-display);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -.6px;
  line-height: 1.2;
  margin: 18px 0 14px;
  color: #fff;
}
.tt-band p {
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.96);
  margin: 0 auto 30px;
  max-width: 580px;
}
.tt-band-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* The band is lighter than the hero, so the ice eyebrow would drop to 3.4:1 there. */
.tt-band .tt-eyebrow { color: #fff; }
.tt-band .tt-eyebrow::before,
.tt-band .tt-eyebrow::after { background: rgba(255,255,255,.55); }

/* ── Section heading pattern ─────────────────────────────── */
.tt-h2 {
  font-family: var(--tt-font-display);
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 700;
  letter-spacing: -.6px;
  line-height: 1.22;
  color: var(--tt-navy);
  margin: 0 0 14px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 780px) {
  .tt-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .tt-stat + .tt-stat::before { display: none; }
  .tt-stat-num { font-size: 40px; }
  .tt-hero { padding: 56px 20px 64px; }
  .tt-btn, .tt-btn-ghost { padding: 15px 28px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .tt-card, .tt-btn, .tt-btn-ghost { transition: none; }
  .tt-card:hover, .tt-btn:hover, .tt-btn-ghost:hover { transform: none; }
}
