/* ============================================================
   Yigal Realty — Webinar Website
   Self-contained static build. Theme: "Aubergine" (final design).
   Ported from the Claude Design handoff (React prototype).
   ============================================================ */

:root {
  /* ---- Dark surface family: Plum ---- */
  --navy-950: #140c1c;
  --navy-900: #1b1126;
  --navy-850: #22162f;
  --navy-800: #2d1e3e;
  --navy-700: #3e2b54;
  --navy-600: #294067;
  --navy-line: rgba(255, 255, 255, 0.10);

  /* ---- Accent: clay rose ---- */
  --peach: #cf9b86;
  --peach-strong: #b87862;
  --peach-soft: #f7c8a6;
  --gold: #e7c285;

  /* ---- Light surface: Greige ---- */
  --cream: #e5e1d6;
  --cream-200: #efe6d8;
  --paper: #f1efe9;

  /* ---- Ink (text on light) ---- */
  --ink: #16223a;
  --ink-soft: #41506a;
  --ink-faint: #7c889c;

  /* ---- On-dark text ---- */
  --on-dark: #f4f1ea;
  --on-dark-soft: #c2cad8;
  --on-dark-faint: #8794a8;

  --accent: var(--peach);
  --maxw: 1180px;

  /* Card radius 20 -> --radius-lg 20px, --radius 12px */
  --radius: 12px;
  --radius-lg: 20px;
  --btn-radius: 999px;          /* button shape: Pill */
  --headline-weight: 600;       /* headline weight */

  --shadow-soft: 0 18px 50px -24px rgba(7, 16, 31, 0.55);
  --shadow-card: 0 10px 34px -18px rgba(7, 16, 31, 0.35);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Mulish", system-ui, -apple-system, sans-serif;
  --hebrew: "Frank Ruhl Libre", "Spectral", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 104%; }   /* type scale 104% */
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.65;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: var(--headline-weight, 700);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--peach); color: var(--navy-900); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--peach-strong);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow.on-dark { color: var(--peach); }
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: 0.6; }
.lead { font-size: 1.18rem; line-height: 1.6; color: var(--ink-soft); }
.dark .lead, .on-dark { color: var(--on-dark-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: var(--btn-radius, 999px); font-weight: 700; font-size: 0.98rem;
  padding: 15px 28px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap; letter-spacing: 0.01em;
}
.btn-primary { background: var(--accent); color: var(--navy-950); box-shadow: 0 12px 28px -12px rgba(184, 120, 98, 0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(184, 120, 98, 0.85); }
.btn-ghost { background: transparent; color: var(--on-dark); border: 1.5px solid var(--navy-line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 1.5px solid rgba(22, 34, 58, 0.18); }
.btn-ghost-dark:hover { background: rgba(22, 34, 58, 0.04); border-color: rgba(22, 34, 58, 0.35); }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }
.btn-sm { padding: 11px 20px; font-size: 0.9rem; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

@keyframes ctaBreathe {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 12px 28px -12px rgba(184, 120, 98, 0.7); }
  50% { transform: translateY(-2px) scale(1.03); box-shadow: 0 20px 40px -12px rgba(184, 120, 98, 0.9); }
}
.btn-attn { animation: ctaBreathe 2.4s ease-in-out infinite; }
.btn-attn:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .btn-attn { animation: none; } }

/* ---------- placeholder imagery ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background-color: #2a3a57;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 14px, rgba(255, 255, 255, 0) 14px 28px);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-dark-faint);
}
.ph.warm {
  background-color: #d9c3aa;
  background-image: repeating-linear-gradient(135deg, rgba(120, 86, 56, 0.10) 0 14px, rgba(120, 86, 56, 0) 14px 28px);
  color: #8a6f53;
}
.ph .ph-tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.72rem;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 7px 12px;
  border: 1px dashed currentColor; border-radius: 8px; background: rgba(0, 0, 0, 0.08);
  text-align: center; max-width: 80%;
}

/* ---------- header ---------- */
/* Fixed (floating) so it overlays the dark hero/first band rather than reserving space.
   --hdr-h is measured in JS and used to clear content on every page. */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background .3s ease, box-shadow .3s ease, border-color .3s ease; }
.band-top { padding-top: calc(var(--hdr-h, 98px) + clamp(28px, 4vw, 52px)); }
.hdr:not(.scrolled) { background: linear-gradient(180deg, rgba(8, 16, 31, 0.34) 0%, rgba(8, 16, 31, 0.14) 50%, rgba(8, 16, 31, 0) 100%); }
.hdr:not(.scrolled) .nav a,
.hdr:not(.scrolled) .hdr-bsd { color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 16px rgba(0, 0, 0, 0.55); }
.hdr:not(.scrolled) .logo-img { filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(0, 0, 0, 0.9)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 2px 13px rgba(0, 0, 0, 0.5)); }
.hdr:not(.scrolled) .menu-btn { filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.7)); }
.hdr-bsd { font-family: var(--hebrew); font-size: 0.8rem; text-align: center; padding: 5px 0; color: var(--on-dark-faint); letter-spacing: 0.05em; background: transparent; transition: background .3s ease; }
.hdr.scrolled .hdr-bsd { background: var(--navy-950); }
.hdr-bar { background: transparent; backdrop-filter: none; border-bottom: 1px solid transparent; transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease; }
.hdr.scrolled .hdr-bar { background: rgba(27, 17, 38, 0.82); backdrop-filter: blur(14px); border-bottom-color: var(--navy-line); }
.hdr-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 0.95rem; font-weight: 600; color: var(--on-dark-soft); position: relative; padding: 6px 0; transition: color .18s; cursor: pointer; }
.nav a:hover { color: var(--on-dark); }
.nav a.active { color: #fff; }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--peach); border-radius: 2px; }
.brandmark { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-img { height: 42px; width: auto; display: block; filter: brightness(0) invert(1); }
.ftr .logo-img { height: 46px; }
.hdr-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; background: none; border: none; color: #fff; }

/* ---------- footer ---------- */
.ftr { background: var(--navy-950); color: var(--on-dark-soft); padding: 70px 0 36px; }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.ftr h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-faint); margin-bottom: 18px; }
.ftr a { display: block; color: var(--on-dark-soft); padding: 5px 0; transition: color .15s; cursor: pointer; }
.ftr a:hover { color: var(--peach); }
.ftr-bottom { margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--navy-line); display: flex; justify-content: space-between; gap: 16px; font-size: 0.85rem; color: var(--on-dark-faint); flex-wrap: wrap; }

/* ---------- cards / chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; white-space: nowrap; }
.chip-peach { background: rgba(207, 155, 134, 0.16); color: var(--peach-strong); }
.chip-dark { background: rgba(255, 255, 255, 0.08); color: var(--on-dark-soft); }
.offer-badge {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 0.92rem;
  letter-spacing: 0.02em; color: var(--navy-950); background: var(--peach); padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 10px 24px -12px rgba(184, 120, 98, 0.8); white-space: nowrap;
}
.offer-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--navy-900); }

/* webinar-card play button (opens registration) */
.card-play { transition: transform .15s ease, box-shadow .15s ease; }
.card-play:hover { transform: scale(1.08); box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.7); }

/* ---------- modal ---------- */
.modal-scrim { position: fixed; inset: 0; z-index: 200; background: rgba(7, 12, 24, 0.62); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .22s ease; }
.modal { position: relative; background: var(--paper); border-radius: var(--radius-lg); width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; box-shadow: var(--shadow-soft); animation: pop .26s cubic-bezier(.2, .8, .25, 1); }
.modal-x { position: absolute; top: 16px; right: 16px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(22, 34, 58, 0.06); color: var(--ink-soft); font-size: 1.3rem; display: grid; place-items: center; }
.modal-x:hover { background: rgba(22, 34, 58, 0.12); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink); padding: 13px 15px;
  border: 1.5px solid rgba(22, 34, 58, 0.16); border-radius: 11px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--peach-strong); box-shadow: 0 0 0 4px rgba(207, 155, 134, 0.18); }
.field textarea { resize: vertical; min-height: 96px; }

/* ---------- scroll-reveal ---------- */
.anim-up { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .25, 1); }
.anim-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .anim-up { opacity: 1; transform: none; transition: none; } }

/* ---------- hero type (sized via class so mobile can scale it) ---------- */
.hero-h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
.hero-sub { font-size: 1.25rem; }

/* ---------- WhatsApp floating CTA ---------- */
.wa-cta { position: fixed; left: 22px; bottom: 22px; z-index: 150; display: flex; align-items: center; gap: 12px;
  background: var(--navy-900); color: #fff; border: 1px solid var(--navy-line); border-radius: 999px;
  padding: 9px 20px 9px 9px; box-shadow: 0 16px 38px -16px rgba(0, 0, 0, 0.65); transition: transform .18s ease, box-shadow .18s ease; }
.wa-cta:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -18px rgba(0, 0, 0, 0.75); }
.wa-ic { width: 42px; height: 42px; border-radius: 50%; background: #25d366; display: grid; place-items: center; color: #06351c; flex: none; }
.wa-txt { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.wa-on { font-size: 0.68rem; color: #4fe08a; font-weight: 800; display: flex; align-items: center; gap: 7px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.wa-on .pulse { width: 8px; height: 8px; border-radius: 50%; background: #4fe08a; animation: wapulse 1.8s infinite; }
.wa-main { font-weight: 700; font-size: 0.96rem; color: #fff; }
@keyframes wapulse { 0% { box-shadow: 0 0 0 0 rgba(79, 224, 138, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(79, 224, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 224, 138, 0); } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .feat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-split-grid, .hero-ed-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
}
@media (max-width: 880px) {
  .nav { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .ftr-grid { grid-template-columns: 1fr; gap: 32px; }
  .upc-grid, .comm-grid, .contact-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) { .wa-cta .wa-txt { display: none; } .wa-cta { padding: 9px; left: 16px; bottom: 16px; } }
@media (max-width: 600px) {
  /* smaller letters on mobile so headings/hero don't dominate the screen */
  html { font-size: 96%; }
  .wrap { padding: 0 18px; }
  .trust-grid, .feat-grid { grid-template-columns: 1fr !important; }
  .hero-h1 { font-size: 2rem; }
  .hero-sub { font-size: 1.05rem; }
}
@media (max-width: 400px) {
  html { font-size: 90%; }
  .hero-h1 { font-size: 1.78rem; }
}

/* ---------- featured webinars carousel ---------- */
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
/* perView = 3 here; slide widths mirror the .feat-grid breakpoints below so the
   page-based translateX(-100% * page) in wireCarousel always lands cleanly. */
.carousel-slide { flex: 0 0 33.3333%; max-width: 33.3333%; box-sizing: border-box; padding: 0 11px; }
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 32px; }
.carousel-arrow {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--navy-line); background: var(--navy-800); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.carousel-arrow:hover { background: var(--peach); color: var(--navy-950); border-color: transparent; transform: scale(1.07); }
.carousel-arrow svg { display: block; }

.carousel-dots { display: flex; align-items: center; gap: 9px; }
.carousel-dot {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
  transition: background .25s ease, width .25s ease;
}
.carousel-dot:hover { background: rgba(255, 255, 255, 0.4); }
.carousel-dot.active { width: 26px; background: var(--peach); }

@media (max-width: 1000px) { .carousel-slide { flex-basis: 50%; max-width: 50%; } }
@media (max-width: 600px) { .carousel-slide { flex-basis: 100%; max-width: 100%; } }
