/* ==========================================================================
   Rynet Media — site styles
   ========================================================================== */

:root {
  --bg: #090b14;
  --bg-2: #0d1120;
  --surface: #12162a;
  --surface-2: #171c34;
  --border: #262c4a;
  --text: #eef0fb;
  --text-dim: #9aa1c4;
  --accent: #6d6cff;
  --accent-2: #29d6e8;
  --accent-warm: #f2a154;
  --accent-grad: linear-gradient(120deg, #6d6cff 0%, #29d6e8 100%);
  --radius: 14px;
  --maxw: 1120px;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-he: 'Assistant', 'Inter', -apple-system, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[lang="he"] body { font-family: var(--font-he); }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Language toggle ---------- */
[data-lang] { }
html[lang="en"] [data-lang="he"] { display: none !important; }
html[lang="he"] [data-lang="en"] { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9, 11, 20, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.logo svg { width: 34px; height: 34px; flex-shrink: 0; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
nav.main-nav a:hover { color: var(--text); }

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 7px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.lang-toggle button.active {
  background: var(--accent-grad);
  color: #06070d;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
}

/* Fixed full-page backdrop — stays in place behind the entire site while
   scrolling, instead of scrolling away with the hero section. */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 50% at 15% 20%, rgba(109,108,255,0.35), transparent 60%),
    radial-gradient(55% 45% at 85% 15%, rgba(41,214,232,0.25), transparent 60%),
    radial-gradient(70% 60% at 50% 100%, rgba(109,108,255,0.18), transparent 60%),
    var(--bg);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(18deg) brightness(1.08); }
}

.hero-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-video.is-ready { opacity: 0.55; }

.hero-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9,11,20,0.55) 0%, rgba(9,11,20,0.72) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 3;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Asymmetric two-column hero: copy on one side, a pull-quote card
   offset on the other, instead of a centered single-column stack. */
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy { min-width: 0; }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  margin-bottom: 28px;
}

.kicker::before {
  content: '';
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--accent-grad);
  flex-shrink: 0;
}

h1.hero-title {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: clamp(2.3rem, 4.8vw, 3.4rem);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
  max-width: 620px;
}

h1.hero-title .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 1.7vw, 1.1rem);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 20px;
}

.hero-sub:last-of-type { margin-bottom: 36px; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Offset pull-quote card, standing apart from the hero copy rather
   than mirroring it in a matching card — the asymmetry is deliberate. */
.hero-quote-card {
  position: relative;
  background: rgba(18, 22, 42, 0.55);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent-warm);
  border-radius: 4px 18px 18px 4px;
  padding: 38px 34px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: rotate(-0.6deg);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.55);
}

.hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 26px;
}

.hero-quote-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.hero-quote-mark svg { width: 26px; height: 26px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent-grad);
  color: #06070d;
  box-shadow: 0 8px 30px -8px rgba(109,108,255,0.6);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Section shell ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.section-head p { color: var(--text-dim); font-size: 1.05rem; margin: 0; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Services ---------- */
/* Numbered editorial rows instead of a 3-up icon-card grid: a large
   serif numeral beside a full paragraph, each row divided by a
   hairline rather than boxed in its own card. */
.service-rows { border-top: 1px solid var(--border); }

.service-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-inline-start 0.25s ease;
}
.service-row:hover { padding-inline-start: 10px; }

.service-num {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 3.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-warm);
  opacity: 0.85;
}

.service-copy h3 {
  font-size: 1.25rem;
  margin: 4px 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.service-copy p {
  color: var(--text-dim);
  margin: 0;
  font-size: 1rem;
  max-width: 680px;
}

/* ---------- About strip ---------- */
.about {
  background: rgba(13, 17, 32, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-wrap { max-width: 760px; }
.about-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 22px;
}
.about-wrap p:not(.about-lead) { font-size: 1.05rem; color: var(--text-dim); }
.about-wrap p strong { color: var(--text); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 { font-size: 1.8rem; font-weight: 800; margin: 0 0 16px; }
.contact-info p { color: var(--text-dim); margin: 0 0 26px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.98rem;
}
.contact-detail svg { width: 20px; height: 20px; color: var(--accent-2); flex-shrink: 0; }

form#contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field.hp { position: absolute; left: -9999px; top: -9999px; }

#form-status {
  margin-top: 14px;
  font-size: 0.92rem;
  min-height: 1.4em;
}
#form-status.ok { color: #4ade80; }
#form-status.err { color: #f87171; }

button[type="submit"] { width: 100%; border: none; }
button[type="submit"]:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
footer a { text-decoration: none; color: var(--text-dim); }
footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 22px; }

/* ---------- Privacy page ---------- */
.legal {
  padding-top: 140px;
  padding-bottom: 90px;
}
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 2rem; font-weight: 800; margin: 0 0 8px; }
.legal .updated { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 44px; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-dim); font-size: 0.98rem; }
.legal ul { padding-inline-start: 22px; }

/* ---------- RTL adjustments ---------- */
html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-sub,
html[dir="rtl"] .about-lead,
html[dir="rtl"] .about-wrap p { text-align: right; }
html[dir="rtl"] .contact-detail svg { order: 2; }
html[dir="rtl"] .hero-quote-card { transform: rotate(0.6deg); }
html[dir="rtl"] .kicker::before { order: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-quote-card { transform: none; order: -1; }
  .service-row { grid-template-columns: 60px 1fr; gap: 18px; padding: 28px 0; }
  .service-num { font-size: 2.1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
}
