/* ============================================================
   SOUTH GATE LP — MAIN STYLESHEET
   RTL Hebrew + English mix | Fonts loaded from /fonts/
   ============================================================ */

/* ---------- CUSTOM FONTS ---------- */
@font-face {
  font-family: 'Comfortaa';
  src: url('fonts/Comfortaa-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@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;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'SiteFont', 'Heebo', 'Arial', sans-serif;
  background: #1e1f1f;
  color: #fff;
  direction: rtl;
  min-height: 100vh;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   PAGE LAYOUT — two columns
   ============================================================ */
.page-wrapper {
  display: flex;
  flex-direction: row-reverse; /* image on left, content on right */
  min-height: 100vh;
  width: 100%;
}

/* ============================================================
   LEFT — HERO VISUAL (image slider)
   ============================================================ */
.hero-visual {
  position: relative;
  flex: 0 0 65%;
  overflow: hidden;
  background: #1e1f1f;
}

/* Slider images */
.slider-images {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ---- Ken Burns animations (scale only — no translate to prevent edge strips) ---- */
@keyframes kbZoomIn {
  from { transform: scale(1.04); }
  to   { transform: scale(1.14); }
}

@keyframes kbZoomOut {
  from { transform: scale(1.14); }
  to   { transform: scale(1.04); }
}

/* ---- Slides ---- */
.slide {
  /* extend 4px beyond container to GUARANTEE no pixel-gap on any edge */
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  object-fit: cover;
  object-position: center;

  /* start invisible, mid-stack */
  opacity: 0;
  z-index: 1;
  transform: scale(1.04);

  /* ONLY opacity transitions — transform is handled by animation */
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

/* Incoming slide */
.slide.active {
  opacity: 1;
  z-index: 2;
  animation: kbZoomIn 9s ease-out forwards;
}

/* Outgoing slide — sits below incoming, fades out */
.slide.prev {
  opacity: 0;
  z-index: 1;
  /* no animation override — transform stays frozen where it was */
  animation: none;
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Alternate zoom direction for variety */
.slide:nth-child(even).active {
  animation: kbZoomOut 9s ease-out forwards;
}

/* Dark gradient overlay — above all slides */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.32) 0%,
    rgba(0,0,0,0.08) 50%,
    rgba(0,0,0,0.42) 100%
  );
  pointer-events: none;
  z-index: 10;
}

/* Smoke/gradient — real element (no ::after stacking issues) */
.smoke-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.55) 55%,
    rgba(30,31,31,0.95) 80%,
    #1e1f1f 100%
  );
  pointer-events: none;
  z-index: 10;
}

/* ---- South Gate logo — נשפך מהקצה העליון ---- */
@keyframes logoDropIn {
  0%   { transform: translateY(-110%); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

.logo-block {
  position: absolute;
  top: -20px;
  left: 520px;
  z-index: 20;
  line-height: 0;
  animation: logoDropIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@media (prefers-reduced-motion: reduce) {
  .logo-block { animation: none; }
}

.logo-img {
  width: 160px;
  height: 210px;
  object-fit: contain;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-south {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-gate {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.logo-sub {
  font-size: 0.55rem;
  color: #555;
  letter-spacing: 0.08em;
  margin-top: 3px;
  text-transform: uppercase;
}

/* ---- Slogan ---- */
.slogan-block {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 20;
  direction: ltr;
}

.slogan-line {
  font-family: 'Comfortaa', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

/* שורת "REAL LOCATION." גדולה ב-40% */
.slogan-line.accent {
  font-size: clamp(1.96rem, 3.36vw, 3.08rem);
  line-height: 1.1;
}

.slogan-line.accent {
  color: #ffffff;
}

/* Slider dots — hidden */
.slider-dots { display: none; }

/* ============================================================
   RIGHT — CONTENT PANEL (dark)
   ============================================================ */
.hero-content {
  flex: 0 0 35%;
  background: #1e1f1f;
  padding: clamp(28px, 4vw, 60px) clamp(24px, 3.5vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  overflow-y: auto;
}

/* Title */
.content-title {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 12px;
}

/* Body text */
.content-body p {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: #fff;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
}

.feature-list li {
  font-size: clamp(1.1rem, 1.45vw, 1.3rem);
  color: #fff;
  font-weight: 700;
  padding: 5px 1.4em 5px 0;
  position: relative;
  line-height: 1.5;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: #00b4b4;
  font-size: 1.1em;
  line-height: 1.4;
}

/* ---- Brand + CTA row ---- */
/* RTL: cta-label (ראשון בDOM) → ימין | brand-logos (שני) → שמאל */
.brand-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand-logos {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 48px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-fallback { display: none; }

.brand-text {
  font-size: clamp(0.72rem, 0.9vw, 0.82rem);
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  line-height: 1.5;
}

/* ---- CTA heading ---- */
.cta-label {
  font-size: clamp(1.45rem, 1.9vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-align: right;
  flex: 1;
}

/* ---- Contact form ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* שורת טופס — 2 עמודות שוות */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-group {
  width: 100%;
}

.form-group input {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #fff;
  background: rgba(255,255,255,0.07);
  direction: rtl;
  text-align: right;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-group input[dir="ltr"] {
  text-align: right;
}

.form-group input::placeholder {
  color: #fff;
}

.form-select {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #fff;
  background: rgba(255,255,255,0.07);
  direction: rtl;
  text-align: right;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 18px center;
}

.form-select option {
  background: #2a2b2b;
  color: #fff;
}

.form-select option:disabled {
  color: rgba(255,255,255,0.4);
}

.form-select:focus {
  outline: none;
  border-color: #00b4b4;
  box-shadow: 0 0 0 3px rgba(0,180,180,0.18);
  background-color: rgba(255,255,255,0.11);
}

.form-group input:focus {
  outline: none;
  border-color: #00b4b4;
  box-shadow: 0 0 0 3px rgba(0,180,180,0.18);
  background: rgba(255,255,255,0.11);
}

@keyframes breathePulse {
  0%   { transform: scale(1);    box-shadow: 0 4px 18px rgba(0,180,180,0.35); }
  50%  { transform: scale(1.04); box-shadow: 0 6px 28px rgba(0,180,180,0.6); }
  100% { transform: scale(1);    box-shadow: 0 4px 18px rgba(0,180,180,0.35); }
}

.btn-submit {
  width: 100%;
  height: 52px;
  display: block;
  padding: 0 20px;
  background: #00b4b4;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.02em;
  direction: ltr;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(0,180,180,0.35);
  animation: breathePulse 3s ease-in-out infinite;
}

.btn-submit:hover {
  animation-play-state: paused;
}

.btn-submit:hover {
  background: #009999;
  box-shadow: 0 6px 22px rgba(0,180,180,0.45);
}

.btn-submit:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.btn-submit:active {
  transform: scale(0.97);
}

.form-feedback {
  font-size: 0.82rem;
  min-height: 20px;
  color: #00b4b4;
  font-weight: 600;
  padding-right: 4px;
}

/* ---- Consent ---- */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  margin-top: 4px;
}

.consent-check {
  accent-color: #00b4b4;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  cursor: pointer;
}

.consent-label span {
  font-family: 'SiteFont', 'Heebo', sans-serif;
  font-size: 11px;
  color: #888;
  line-height: 1.7;
  font-weight: 400;
  display: block;
}

.consent-link {
  color: #00b4b4;
  text-decoration: underline;
  white-space: nowrap;
}

/* ---- Fine print ---- */
.fine-print {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
  margin-top: -8px;
}

/* ============================================================
   RESPONSIVE — FULL BREAKPOINT SYSTEM
   XS: ≤360  |  Mobile: ≤767  |  Tablet: 768–1024
   Laptop S: 1025–1279  |  Laptop M: 1280–1535
   Desktop: 1536–1919  |  QHD: 1920–2559  |  4K: ≥2560
   ============================================================ */

/* ---- ALL MOBILE + TABLET (stack layout) ---- */
@media (max-width: 1024px) {
  .page-wrapper {
    flex-direction: column;
  }

  .hero-visual {
    flex: none;
    width: 100%;
    height: 56vw;
    min-height: 260px;
    max-height: 480px;
  }

  .hero-content {
    flex: none;
    width: 100%;
    justify-content: flex-start;
    overflow-y: visible;
  }

  /* Logo — top-left, smaller, hangs from top */
  .logo-block {
    top: -14px;
    left: 18px;
    right: auto;
  }

  .logo-img {
    width: 110px;
    height: 145px;
  }

  /* Slogan — bottom of image for visual balance */
  .slogan-block {
    top: auto;
    bottom: 44px;
    left: 18px;
  }

  .smoke-right {
    width: 180px;
  }
}

/* ---- TABLET: 768px – 1024px (Z Fold open, iPad mini/Air) ---- */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-visual {
    height: 44vw;
    max-height: 440px;
  }

  .hero-content {
    padding: 28px 48px 36px;
    gap: 16px;
  }

  .logo-img {
    width: 120px;
    height: 158px;
  }

  .slogan-line {
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  }

  .slogan-line.accent {
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  }

  .content-title {
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  }

  .feature-list li {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
  }

  .cta-label {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
  }

  .brand-logo {
    height: 54px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- MOBILE: ≤767px (all phones) ---- */
@media (max-width: 767px) {
  .hero-visual {
    height: 62vw;
    min-height: 260px;
    max-height: 420px;
  }

  /* לוגו — מרכוז אופקי */
  .logo-block {
    top: -14px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
  }

  .logo-img {
    width: 120px;
    height: 158px;
  }

  .hero-content {
    padding: 24px 20px 36px;
    gap: 16px;
  }

  .slogan-block {
    bottom: 36px;
    left: 16px;
  }

  .slogan-line {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }

  .slogan-line.accent {
    font-size: clamp(1.82rem, 7.7vw, 2.52rem);
  }

  .content-title {
    font-size: clamp(1.3rem, 5.5vw, 1.7rem);
    padding-bottom: 10px;
  }

  .content-body p {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    margin-bottom: 8px;
  }

  .feature-list li {
    font-size: clamp(1.1rem, 4.8vw, 1.35rem);
    padding: 5px 1.3em 5px 0;
  }

  /* לוגואים באותה שורה של CTA */
  .brand-cta-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .cta-label {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
    text-align: right;
    flex: 1;
  }

  .brand-logo {
    height: 44px;
    flex-shrink: 0;
  }

  .brand-text {
    font-size: clamp(0.72rem, 3vw, 0.85rem);
    text-align: right;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group input,
  .form-select {
    height: 50px;
    font-size: 0.92rem;
  }

  .btn-submit {
    height: 50px;
    font-size: 1rem;
  }

  .consent-label span {
    font-size: 10.5px;
  }
}

/* ---- XS MOBILE: ≤390px (iPhone SE, Galaxy S, Z Fold closed) ---- */
@media (max-width: 390px) {
  .hero-visual {
    height: 64vw;
    min-height: 230px;
  }

  .logo-block {
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
  }

  .logo-img {
    width: 95px;
    height: 125px;
  }

  .hero-content {
    padding: 18px 14px 28px;
    gap: 12px;
  }

  .slogan-block {
    bottom: 28px;
    left: 12px;
  }

  .slogan-line {
    font-size: clamp(1rem, 5.5vw, 1.3rem);
  }

  .slogan-line.accent {
    font-size: clamp(1.4rem, 7.7vw, 1.82rem);
  }

  .content-title {
    font-size: clamp(0.95rem, 5vw, 1.2rem);
  }

  .feature-list li {
    font-size: clamp(0.85rem, 4vw, 1rem);
  }

  .cta-label {
    font-size: clamp(1.05rem, 6vw, 1.4rem);
  }

  .brand-logo {
    height: 38px;
  }

  .form-group input,
  .form-select,
  .btn-submit {
    height: 46px;
    font-size: 0.85rem;
  }
}

/* ---- SAMSUNG Z FOLD (closed): ≤344px ---- */
@media (max-width: 344px) {
  .hero-content {
    padding: 16px 12px 24px;
    gap: 10px;
  }

  .content-title {
    font-size: 0.92rem;
  }

  .content-body p {
    font-size: 0.72rem;
  }

  .logo-img {
    width: 80px;
    height: 105px;
  }

  .slogan-line {
    font-size: 0.95rem;
  }

  .slogan-line.accent {
    font-size: 1.33rem;
  }

  .cta-label {
    font-size: 1rem;
  }
}

/* ---- SMALL LAPTOP: 1025px – 1279px (13" entry-level) ---- */
@media (min-width: 1025px) and (max-width: 1279px) {
  .hero-visual { flex: 0 0 62%; }
  .hero-content {
    flex: 0 0 38%;
    padding: 24px 28px;
    gap: 14px;
  }

  .logo-block { left: 400px; }

  .slogan-line {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
  }

  .slogan-line.accent {
    font-size: clamp(1.68rem, 2.8vw, 2.52rem);
  }

  .content-title {
    font-size: clamp(1rem, 1.6vw, 1.4rem);
  }

  .feature-list li {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  }

  .cta-label {
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  }

  .brand-logo { height: 50px; }

  .form-group input,
  .form-select,
  .btn-submit {
    height: 48px;
  }
}

/* ---- STANDARD LAPTOP: 1280px – 1535px (14–15") — base styles apply ---- */

/* ---- LARGE LAPTOP / DESKTOP: 1536px – 1919px (15–17", 24") ---- */
@media (min-width: 1536px) and (max-width: 1919px) {
  .hero-content {
    padding: clamp(36px, 4vw, 64px) clamp(32px, 3.5vw, 56px);
    gap: 20px;
  }

  .slogan-line {
    font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  }

  .slogan-line.accent {
    font-size: clamp(2.52rem, 3.08vw, 3.64rem);
  }

  .content-title {
    font-size: clamp(1.3rem, 1.6vw, 1.8rem);
  }

  .content-body p {
    font-size: clamp(0.82rem, 0.9vw, 0.96rem);
  }

  .feature-list li {
    font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  }

  .cta-label {
    font-size: clamp(1.5rem, 1.9vw, 2.1rem);
  }

  .brand-logo { height: 68px; }

  .logo-block { left: 560px; }
}

/* ---- QHD MONITORS: 1920px – 2559px (24–26", 32" FHD) ---- */
@media (min-width: 1920px) and (max-width: 2559px) {
  html { font-size: 18px; }

  .hero-content {
    padding: 64px 60px;
    gap: 24px;
  }

  .slogan-line {
    font-size: clamp(2rem, 2vw, 2.8rem);
  }

  .slogan-line.accent {
    font-size: clamp(2.8rem, 2.8vw, 3.92rem);
  }

  .content-title {
    font-size: clamp(1.4rem, 1.4vw, 1.9rem);
  }

  .content-body p {
    font-size: clamp(0.85rem, 0.85vw, 1rem);
  }

  .feature-list li {
    font-size: clamp(1.1rem, 1.1vw, 1.3rem);
    padding: 7px 1.4em 7px 0;
  }

  .cta-label {
    font-size: clamp(1.6rem, 1.7vw, 2.2rem);
  }

  .brand-logo { height: 76px; }

  .logo-block { left: 620px; }

  .logo-img {
    width: 180px;
    height: 236px;
  }

  .smoke-right { width: 320px; }

  .form-group input,
  .form-select,
  .btn-submit {
    height: 56px;
    font-size: 1rem;
  }
}

/* ---- ULTRA WIDE / 4K: ≥2560px (32–34" QHD, 4K) ---- */
@media (min-width: 2560px) {
  html { font-size: 20px; }

  .hero-content {
    padding: 80px 72px;
    gap: 28px;
  }

  .slogan-line {
    font-size: clamp(2.4rem, 1.8vw, 3.2rem);
  }

  .slogan-line.accent {
    font-size: clamp(3.36rem, 2.52vw, 4.48rem);
  }

  .content-title {
    font-size: clamp(1.5rem, 1.2vw, 2rem);
    padding-bottom: 16px;
  }

  .content-body p {
    font-size: clamp(0.9rem, 0.75vw, 1.05rem);
    margin-bottom: 14px;
  }

  .feature-list li {
    font-size: clamp(1.15rem, 0.95vw, 1.35rem);
    padding: 8px 1.5em 8px 0;
  }

  .cta-label {
    font-size: clamp(1.7rem, 1.4vw, 2.4rem);
  }

  .brand-logo { height: 88px; }

  .logo-block { left: 700px; }

  .logo-img {
    width: 200px;
    height: 262px;
  }

  .smoke-right { width: 380px; }

  .form-group input,
  .form-select,
  .btn-submit {
    height: 62px;
    font-size: 1.05rem;
    padding: 0 26px;
  }

  .hero-content { gap: 28px; }
}

/* ============================================================
   HIGH CONTRAST / REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .slide,
  .slide.active,
  .slide.prev {
    transition: none !important;
    animation: none !important;
  }
  .btn-cta,
  .btn-submit {
    transition: none;
    animation: none;
  }
}

@media (prefers-contrast: high) {
  .hero-overlay {
    background: rgba(0,0,0,0.7);
  }
  .content-title {
    color: #fff;
  }
  .btn-cta {
    background: #006666;
    outline: 2px solid #fff;
  }
}
