/* ============================================
   SouthGate Investment Edition — style.css
   ============================================ */

@font-face { font-family: 'SiteFont'; src: url('fonts/Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'SiteFont'; src: url('fonts/Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'SiteFont'; src: url('fonts/Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Comfortaa'; src: url('fonts/Comfortaa-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

:root {
  --bg:        #1f0f30;   /* deep purple at the bottom of the design */
  --purple:    #5a2393;
  --purple-2:  #3d1666;
  --accent:    #b98ae6;   /* light purple — focus rings, accessibility button */
  --accent-rgb: 155, 93, 229;
  --text:      #ffffff;
  --muted:     rgba(255,255,255,.62);
  --error:     #ff6b6b;
  --topbar-h:  0px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: calc(var(--topbar-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'SiteFont', 'Assistant', Arial, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

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

/* ── Top bar (mobile / tablet only) ─────────────────────── */
.topbar { display: none; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 90% at 50% 20%, #4a3a63 0%, #2a1641 55%, var(--bg) 100%); /* shown until bg.jpg exists */
}

.hero-bg, .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-bg img { object-fit: cover; object-position: center center; }

/* Purple wash: readable centre column, deep purple at the bottom (like the design) */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(44% 58% at 50% 44%, rgba(31,15,48,.34) 0%, rgba(31,15,48,0) 100%),
    linear-gradient(180deg, rgba(31,15,48,.06) 0%, rgba(31,15,48,.12) 40%, rgba(42,18,66,.40) 72%, rgba(31,15,48,.80) 100%);
}

.hero-inner {
  width: min(100%, 1240px);
  padding: clamp(40px, 9vh, 140px) 24px clamp(28px, 5vh, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── Headline ── */
.headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 4px 30px rgba(20,8,34,.35);
}
.hl-top {
  font-weight: 400; /* one step lighter than the 7% line (user request) */
  font-size: clamp(24px, 4.32vh, 49.6px);
  letter-spacing: -.01em;
}
.hl-big {
  font-size: clamp(64px, min(15vh, 7.6vw), 168px);
  line-height: .88;
  letter-spacing: -.02em;
  margin-top: .04em;
}
.hl-num { display: inline-block; unicode-bidi: isolate; }
.nw { white-space: nowrap; }

/* ── Pill ── */
.pill {
  margin-top: clamp(14px, 2.6vh, 30px);
  width: min(100%, 840px);
  padding: clamp(8px, 1.3vh, 16px) 32px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  gap: .12em;
  background: linear-gradient(180deg, #6a2aa8 0%, var(--purple) 45%, var(--purple-2) 100%);
  box-shadow: 0 10px 40px rgba(31,15,48,.45), inset 0 1px 0 rgba(255,255,255,.18);
  font-weight: 700;
  font-size: clamp(22px, 4.2vh, 48px);
  line-height: 1.15;
}
.pill-main { text-wrap: balance; font-size: max(.8em, 14px); } /* 20% smaller (user request) */
.pill-sub { font-weight: 400; font-size: .56em; }

/* ── Copy ── */
.copy {
  max-width: 900px;
  margin-top: clamp(18px, 3.8vh, 44px);
  font-size: clamp(15px, 1.95vh, 21px);
  line-height: 1.5;
  text-shadow: 0 2px 14px rgba(20,8,34,.55);
}
.copy-q, .copy-cta { font-weight: 700; }

/* ── Form row: form (right) + SouthGate logo (left) ── */
.form-row {
  margin-top: clamp(18px, 3.6vh, 42px);
  width: min(100%, 720px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(24px, 4vw, 64px);
}

.lead-form {
  flex: 0 1 380px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px 9px;
  text-align: right;
}
.f-name  { grid-column: span 3; }
.f-phone { grid-column: span 3; }
.f-interest { grid-column: span 4; }
.btn-send { grid-column: span 2; }

.field { position: relative; }
.field input, .field select {
  width: 100%;
  height: clamp(40px, 4.5vh, 50px);
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #1a1424;
  font: 700 clamp(15px, 1.7vh, 18px)/1 'SiteFont', Arial, sans-serif;
  outline: 2px solid transparent;
  transition: outline-color .2s;
}
.field input::placeholder { color: #1a1424; opacity: .9; }
/* Multiple-choice question: native select dressed like the inputs, chevron on the left (RTL) */
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-left: 30px;
  font-size: clamp(15px, 1.7vh, 16.5px); /* longest answer must fit beside the send button */
  cursor: pointer;
  text-overflow: ellipsis;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235a2393' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left 12px center / 12px 8px;
}
.field select option { font-weight: 400; color: #1a1424; background: #fff; }
/* tel/email are LTR + left-aligned by default even on an RTL page: keep LTR (digit order) but align right like the name field */
.field input[type="tel"], .field input[type="email"], .field input[inputmode="tel"], .field input[inputmode="email"] { direction: ltr; text-align: right; }
.field input:focus, .field select:focus { outline-color: var(--accent); }
.field.has-error input, .field.has-error select { outline: 2px solid #c0392b; }

.field-error {
  display: none;
  margin-top: 4px;
  color: var(--error);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}
.field-error.show { display: block; }

.btn-send {
  height: clamp(40px, 4.5vh, 50px);
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #6a2aa8 0%, var(--purple) 50%, var(--purple-2) 100%);
  color: #fff;
  font: 700 clamp(15px, 1.7vh, 18px)/1 'SiteFont', Arial, sans-serif;
  cursor: pointer;
  animation: sendPulse 2.6s ease-out 1.2s infinite;
  transition: filter .2s;
}
.btn-send:hover { filter: brightness(1.15); }
.btn-send:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn-send:hover, .btn-send:focus-visible, .btn-send:disabled { animation: none; }
.btn-send:disabled { opacity: .7; cursor: wait; }

@keyframes sendPulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(var(--accent-rgb),.6); }
  14%  { transform: scale(1.05); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.03); }
  60%  { box-shadow: 0 0 0 14px rgba(var(--accent-rgb),0); }
  70%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--accent-rgb),0); }
}

/* Honeypot — off-screen, never focusable */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Consent — two round boxes, unchecked by default, both required (as on 1000.gtsm.co.il) */
.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
  cursor: pointer;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 300;
}
.consent input {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.7);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.consent input::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform .15s;
}
.consent input:checked::after { transform: scale(1); }
.consent input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent input:checked { border-color: var(--accent); }
.consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--accent); }
.legal { grid-column: 1 / -1; margin-top: 2px; font-size: 11.5px; color: var(--muted); text-align: right; }
.consent-error, .send-error { grid-column: 1 / -1; }

/* SouthGate Investment Edition logo (assets/img/sg-logo-white.svg) */
.sg-logo {
  flex: 0 0 auto;
  width: clamp(200px, 13.5vw, 280px);
  height: auto;
  margin-top: 6px;
  filter: drop-shadow(0 0 14px rgba(185,138,230,.35));
}

.prash-logo {
  margin-top: clamp(22px, 4.5vh, 54px);
  width: clamp(110px, 8vw, 150px);
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .btn-send, .topbar-cta { animation: none !important; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */

/* 4K / 24"–26" */
@media (min-width: 2560px) {
  .hero-inner { width: min(100%, 1400px); }
  .hl-top { font-size: 69px; }
  .hl-big { font-size: 190px; }
  .pill { width: 1180px; font-size: 54px; }
  .copy { font-size: 29px; }
  .form-row { width: 1000px; }
  .lead-form { flex-basis: 540px; gap: 12px; }
  .field input, .field select, .btn-send { height: 68px; font-size: 24px; }
  .consent, .legal { font-size: 14px; }
  .consent input { width: 20px; height: 20px; }
  .sg-logo { width: 400px; }
  .prash-logo { width: 210px; }
}

/* Short laptops (13"–14" with taskbar) — keep everything on one screen */
@media (min-width: 1025px) and (max-height: 768px) {
  .hero-inner { padding-top: 34px; padding-bottom: 18px; }
  .copy { line-height: 1.42; }
}

/* Tablet / Fold open */
@media (max-width: 1024px) {
  :root { --topbar-h: 58px; }

  .topbar {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    height: var(--topbar-h);
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    background: rgba(31,15,48,.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .topbar-logo { width: 96px; height: auto; }
  .topbar-cta {
    padding: 9px 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, #6a2aa8 0%, var(--purple) 50%, var(--purple-2) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    animation: sendPulse 2.6s ease-out 1.2s infinite;
  }
  .topbar-cta:hover, .topbar-cta:focus-visible { animation: none; }

  .hero { align-items: flex-start; }
  .hero-inner { padding-top: calc(var(--topbar-h) + 64px); padding-bottom: 40px; }
  .hl-top { font-size: clamp(22.4px, 4.16vw, 41.6px); }
  .hl-big { font-size: clamp(60px, 10.5vw, 120px); }
  .pill { font-size: clamp(18px, 3.4vw, 34px); }
  .copy { font-size: clamp(15px, 2.1vw, 19px); }

  .prash-logo { display: none; } /* it lives in the top bar on these sizes */
}

/* Mobile */
@media (max-width: 700px) {
  /* Photo covers the first screen only, then the page fades into the deep purple */
  .hero-bg, .hero-bg img { bottom: auto; height: 100svh; max-height: 900px; }
  .hero-bg img { object-position: 50% top; }
  .hero { background: var(--bg); }
  .hero-shade {
    bottom: auto;
    height: calc(100svh + 2px);
    max-height: 902px;
    background:
      linear-gradient(180deg, rgba(31,15,48,.40) 0%, rgba(31,15,48,.50) 30%, rgba(42,18,66,.80) 60%, rgba(31,15,48,1) 100%);
  }
  .hero-inner { padding: calc(var(--topbar-h) + 34px) 18px 34px; }

  .hl-top { font-size: clamp(17.6px, 5.76vw, 25.6px); }
  .hl-big { font-size: clamp(60px, 21vw, 100px); }
  .pill { padding: 10px 12px; font-size: clamp(15px, 5.2vw, 24px); }
  .pill { gap: 3px; border-radius: 22px; }
  .pill-sub { font-size: max(.62em, 12px); }

  .copy { font-size: 15px; line-height: 1.55; }
  .copy p + p { margin-top: 6px; }
  .sg-logo { width: 240px; margin-top: 0; }

  .form-row { flex-direction: column-reverse; align-items: center; gap: 22px; }
  .lead-form { flex-basis: auto; width: 100%; grid-template-columns: 1fr; gap: 10px; }
  .f-name, .f-phone, .f-interest, .btn-send { grid-column: 1 / -1; }
  .field input, .field select, .btn-send { height: 50px; font-size: 16px; } /* 16px stops iOS zoom-on-focus */
  .consent, .legal { font-size: 12px; }
  .consent input { width: 20px; height: 20px; }
  .consent input::after { width: 10px; height: 10px; }
}

/* iPhone Pro Max */
@media (max-width: 430px) {
  .hl-big { font-size: 22vw; }
}

/* Galaxy S23–S26 / iPhone 15 Pro */
@media (max-width: 393px) {
  .hero-inner { padding-left: 16px; padding-right: 16px; }
  .copy { font-size: 14.5px; }
}

/* Galaxy S21/S22 */
@media (max-width: 360px) {
  .topbar-logo { width: 84px; }
  .topbar-cta { padding: 8px 16px; font-size: 14px; }
  .hl-top { font-size: 16.8px; }
  .copy { font-size: 14px; }
  .sg-logo { width: 210px; }
}

/* Galaxy Z Fold closed */
@media (max-width: 300px) {
  :root { --topbar-h: 52px; }
  .topbar { padding: 0 10px; }
  .topbar-logo { width: 70px; }
  .topbar-cta { padding: 7px 12px; font-size: 13px; }
  .hero-inner { padding-left: 12px; padding-right: 12px; }
  .hl-top { font-size: 14.4px; }
  .pill { font-size: 14px; padding: 8px 10px; }
  .copy { font-size: 13px; }
  .sg-logo { width: 180px; }
}

/* Landscape phones */
@media (max-height: 500px) and (max-width: 932px) and (orientation: landscape) {
  .hero-inner { padding-top: calc(var(--topbar-h) + 24px); }
  .hl-big { font-size: 15vh; }
}

/* ══════════════════════════════════════════════════════
   MOTION — entrance choreography + shine loops (no particles: user rejected them)
   Only when <html class="motion"> (set in <head> unless prefers-reduced-motion).
   Timeline: bg settle 0s → headline words .25s → 7% count .7s → wipes .95/1.2s
             → pill 1.75s → copy 2.0s → form 2.25s → logo 2.6s → loops from ~3.2s
   ══════════════════════════════════════════════════════ */


.motion .hero-bg { animation: kbSettle 2.6s cubic-bezier(.22,1,.36,1) both; transform-origin: 50% 40%; }
/* On mobile the photo ends mid-page: grow upwards only, or a bright strip shows below the purple shade */
@media (max-width: 700px) { .motion .hero-bg { transform-origin: 50% 100%; } }
.motion .hero-shade { animation: shadeIn 1.6s ease-out both; }
@keyframes kbSettle { from { transform: scale(1.14); filter: brightness(.55) saturate(.8); } to { transform: scale(1.02); filter: none; } }
@keyframes shadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Words of the first line rise one by one (split by JS) */
.hl-top .w { display: inline-block; }
.motion .hl-top .w { opacity: 0; transform: translateY(.55em); filter: blur(6px); }
.motion.go .hl-top .w { animation: wordUp .8s cubic-bezier(.22,1,.36,1) forwards; animation-delay: calc(.25s + var(--i) * .09s); }
@keyframes wordUp { to { opacity: 1; transform: none; filter: blur(0); } }

/* Big line: shadow moves to a filter so the shine gradient can fill the glyphs */
.motion .hl-big { text-shadow: none; filter: drop-shadow(0 6px 28px rgba(20,8,34,.45)); }
.motion .shine {
  background: linear-gradient(105deg, #fff 0 40%, #d4b2ff 45.5%, #ffffff 50%, #d4b2ff 54.5%, #fff 60% 100%);
  background-size: 320% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.motion.go .shine { animation: shine 1.4s ease-in-out infinite; animation-delay: var(--sd, 3.4s); animation-duration: 6.5s; }
.motion.go .rv.shine { --sd: 3.55s; }
.motion.go .rv-2.shine { --sd: 3.7s; }
@keyframes shine { 0% { background-position: 0 0; } 22%, 100% { background-position: 100% 0; } }

/* 7% — pops in, counts 0→7 (JS), flashes */
.hl-num { position: relative; }
.motion .hl-num { opacity: 0; transform: scale(.55); filter: blur(10px); }
.motion.go .hl-num { animation: numPop 1s cubic-bezier(.34,1.56,.64,1) .7s forwards, shine 6.5s ease-in-out 3.4s infinite; }
@keyframes numPop { to { opacity: 1; transform: none; filter: blur(0); } }
.hl-num::after {
  content: '';
  position: absolute;
  left: 50%; top: 52%;
  width: 150%; aspect-ratio: 1;
  transform: translate(-50%,-50%) scale(.3);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,178,255,.55) 0%, rgba(155,93,229,.18) 40%, rgba(155,93,229,0) 70%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
.hl-num.flash::after { animation: numFlash 1.3s ease-out forwards; }
@keyframes numFlash { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.25); } }

/* "תשואה" / "מובטחת!" — wipe in right→left (reading direction) */
.rv { display: inline-block; }
.motion .rv { clip-path: inset(-10% 0 -10% 100%); transform: translateX(.18em); }
.motion.go .rv { animation: wipeIn .85s cubic-bezier(.65,0,.35,1) .95s forwards, shine 6.5s ease-in-out var(--sd) infinite; }
.motion.go .rv-2 { animation-delay: 1.2s, var(--sd); }
@keyframes wipeIn { to { clip-path: inset(-10% 0 -10% 0); transform: none; } }

/* Generic rise-in for the rest */
.motion [data-in] { opacity: 0; transform: translateY(26px); }
.motion.go [data-in] { animation: riseIn .9s cubic-bezier(.22,1,.36,1) var(--d, 0s) forwards; }
@keyframes riseIn { to { opacity: 1; transform: none; } }

/* Pill: glint sweeps across every few seconds */
.pill { position: relative; overflow: hidden; isolation: isolate; }
.pill::after {
  content: '';
  position: absolute;
  top: -20%; bottom: -20%;
  width: 22%;
  right: -30%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  pointer-events: none;
}
.motion.go .pill::after { animation: glint 5.5s ease-in-out 3s infinite; }
@keyframes glint { 0% { right: -30%; } 28%, 100% { right: 130%; } }

/* SouthGate logo breathes softly */
.motion.go .sg-logo { animation: logoGlow 4.5s ease-in-out 3.2s infinite; }
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(185,138,230,.30)); }
  50%      { filter: drop-shadow(0 0 26px rgba(185,138,230,.70)); }
}

/* Form fields lift slightly on focus */
.field input, .field select { transition: outline-color .2s, transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s; }
.field input:focus, .field select:focus { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20,8,34,.35), 0 0 0 4px rgba(185,138,230,.25); }

@media (prefers-reduced-motion: reduce) {
  .field input:focus, .field select:focus { transform: none; }
}
