/* ==========================================================================
   Citybook Migration Media: styles (penguin theme from Huvi Sapir's artwork:
   navy night sky, silver lettering, snow). You normally don't edit this.
   ========================================================================== */

:root {
  --night:   #232f45;
  --night-2: #34445f;
  --peri:    #6d7fb8;
  --ice:     #eef2fa;
  --snow:    #f8fafd;
  --ink:     #1d2433;
  --muted:   #5b6475;
  --accent:  #3b5bab;
  --line:    #dfe5f0;
  --font:    'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Cinzel', Georgia, serif;
}
:lang(he) { --display: 'Frank Ruhl Libre', 'Heebo', serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--snow); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; }
h2 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .4rem; color: var(--night); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); margin-top: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid #93b4ff; outline-offset: 2px; }

/* ---- Top bar + language switch ----------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(35, 47, 69, .96); color: #fff; backdrop-filter: blur(6px); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.brand strong { display: block; font-family: var(--display); font-size: 1.1rem; letter-spacing: .02em; }
.brand small { display: block; color: #c7d0e3; font-size: .8rem; }
.top-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.portal-link { color: #fff; text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.portal-link:hover { background: rgba(255,255,255,.1); }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); }
.lang button { font: 600 .95rem var(--font); color: #e6ebf5; background: transparent; border: 0; border-radius: 999px; padding: 7px 16px; cursor: pointer; min-height: 38px; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--night); }
.lang button:not([aria-pressed="true"]):hover { background: rgba(255,255,255,.15); }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 56px 0 120px;
  background:
    radial-gradient(1.5px 1.5px at 8% 20%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 22% 8%, #e8edf7 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 30%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 85% 26%, #e8edf7 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 8%, #fff 50%, transparent 51%),
    linear-gradient(170deg, var(--night) 0%, var(--night-2) 60%, #4a5d86 100%);
}
.snow {
  position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90px 120px, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 160px 60px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 220px 170px, #fff 50%, transparent 51%);
  background-size: 240px 200px;
  animation: snowfall 16s linear infinite;
}
@keyframes snowfall { from { background-position: 0 0; } to { background-position: 40px 200px; } }
.hero-in { position: relative; display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hero-in { grid-template-columns: 1fr 320px; } }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: .85rem; color: #c7d0e3; }
:lang(he) .eyebrow { letter-spacing: .05em; }
.silver {
  font-family: var(--display); font-size: clamp(2.2rem, 6vw, 4rem); margin: 0 0 16px; letter-spacing: .02em;
  background: linear-gradient(180deg, #ffffff 0%, #dfe4ec 45%, #9aa4b5 55%, #eef1f6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.35));
}
.intro { font-size: 1.15rem; color: #e6ebf5; max-width: 40em; margin: 0 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 500;
        background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); }
a.chip:hover { background: rgba(255,255,255,.24); }
.hero-badge { width: min(320px, 70vw); justify-self: center; border-radius: 50%; box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 0 6px rgba(255,255,255,.12); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.hills {   /* snowy hills along the bottom of the banner */
  position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background:
    radial-gradient(60% 120% at 20% 100%, var(--snow) 60%, transparent 61%),
    radial-gradient(55% 110% at 75% 100%, var(--snow) 60%, transparent 61%),
    radial-gradient(40% 80% at 50% 100%, #e6ecf6 60%, transparent 61%);
}

/* ---- Main video ---------------------------------------------------------- */
.watch { padding-top: 24px; }
.player { margin-top: 16px; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 18px 40px -18px rgba(35,47,69,.6); }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* ---- Cards ---------------------------------------------------------------- */
.more { padding-top: 56px; }
.cards { display: grid; gap: 18px; margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  display: flex; flex-direction: column; text-align: start; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer;
  background: linear-gradient(170deg, var(--ice) 0%, #fff 55%); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #a9bbe6; box-shadow: 0 14px 28px -14px rgba(35,47,69,.45); }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.5rem; border-radius: 14px; background: var(--night); }
.card h3 { margin: 14px 0 6px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); flex: 1; }
.card .go { margin-top: 16px; font-weight: 700; color: var(--accent); }
.card.soon { cursor: default; background: #f3f5f9; border-style: dashed; }
.card.soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card.soon .card-icon { background: #c9d1e0; }
.card.soon .go { color: var(--muted); font-weight: 500; }

/* ---- Help ------------------------------------------------------------------ */
.help { padding-top: 56px; padding-bottom: 56px; }
.help-card { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; background: var(--night); color: #fff; border-radius: 22px; overflow: hidden; }
.help-card img { width: 100%; height: 220px; object-fit: cover; object-position: 50% 78%; }
.help-card > div { padding: 0 24px 28px; }
.help-card h2 { color: #fff; }
.help-card p { color: #dbe2ef; }
@media (min-width: 760px) {
  .help-card { grid-template-columns: 260px 1fr; }
  .help-card img { height: 100%; min-height: 300px; }
  .help-card > div { padding: 28px 32px 28px 0; }
  [dir="rtl"] .help-card > div { padding: 28px 0 28px 32px; }
}
.button { display: inline-block; font: 700 1rem var(--font); background: #fff; color: var(--night); border: 0; border-radius: 12px; padding: 12px 20px; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--ice); }

/* ---- Footer + dialog ------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: .9rem; background: #fff; }
dialog { border: 0; padding: 0; border-radius: 16px; background: #111; width: min(960px, 94vw); }
dialog::backdrop { background: rgba(10, 15, 25, .85); }
dialog video { display: block; width: 100%; max-height: 80vh; background: #000; }
dialog form { display: flex; justify-content: flex-end; padding: 10px; background: #1b2230; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .snow, .hero-badge { animation: none; }
  .card, .card:hover { transition: none; transform: none; }
}
