:root {
  --primary: #5b3a9e;
  --primary-deep: #2e1b5e;
  --accent: #f08a3c;
  --accent-hover: #d97524;
  --bg: #ffffff;
  --fg: #0f0f14;
  --muted: #6b7280;
  --secondary: #f4f1f8;
  --border: #e6e3ec;
  --card: #ffffff;
  --gradient-hero: linear-gradient(135deg, #4a2d8a 0%, #2e1b5e 60%, #1a0f3d 100%);
  --shadow-net: 0 30px 80px -20px rgba(91, 58, 158, 0.55);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Heebo', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  direction: rtl;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1152px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.logo img{
  display: inline-flex; align-items: center; height: 80px;
}
.logo .accent { color: var(--accent); }
.nav { display: none; gap: 24px; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--primary); }
@media (min-width: 768px) { .nav { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  border: none; transition: all 0.2s;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(240,138,60,0.6); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline-light {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.2); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--gradient-hero);
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0; opacity: 0.3;
}
.hero-bg-img {
  position: absolute; left: -80px; top: 0; height: 120%; width: 55%;
  background-size: cover; background-position: center;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to left, transparent, rgba(46,27,94,0.4), var(--primary-deep));
}
.hero .container {
  position: relative; padding-top: 80px; padding-bottom: 80px;
  display: grid; gap: 40px;
}
@media (min-width: 768px) {
  .hero .container { grid-template-columns: 1fr 1fr; padding-top: 112px; padding-bottom: 112px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(6px);
  font-size: 14px; font-weight: 600;
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
h1.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900; line-height: 1.05; margin: 24px 0;
}
h1.hero-title .accent { color: var(--accent); }
.hero-sub { font-size: 18px; max-width: 560px; color: rgba(255,255,255,0.9); margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-image {
  display: block;
  aspect-ratio: 4/5;
  border-radius: 24px;
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-net);
}

/* Trust strip */
.trust {
  background: rgba(244,241,248,0.6);
  border-bottom: 1px solid var(--border);
}
.trust .container {
  display: grid; gap: 24px; padding-top: 32px; padding-bottom: 32px;
}
@media (min-width: 768px) { .trust .container { grid-template-columns: repeat(3,1fr); } }
.trust-item { display: flex; align-items: center; gap: 16px; }
.trust-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(91,58,158,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.trust-item .t { font-weight: 700; }
.trust-item .s { font-size: 14px; color: var(--muted); }

/* Sections */
section.block { padding: 80px 0; }
section.block.alt { background: rgba(244,241,248,0.6); }
.section-eyebrow {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent);
}
h2.section-title {
  font-size: clamp(28px, 4vw, 48px); font-weight: 900; margin-top: 8px; line-height: 1.1;
}
.section-sub { color: var(--muted); margin-top: 12px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head.left { text-align: right; max-width: 640px; margin-bottom: 48px; }

/* Gallery */
.gallery {
  display: grid; gap: 16px; grid-template-columns: 1fr;
}

@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3,1fr); } }
.tile {
  position: relative; overflow: hidden; border-radius: 16px;
  background: var(--secondary);
  aspect-ratio: 1/1;
}
.showcase-img{
    aspect-ratio: auto;
}
.tile.feature { aspect-ratio: 4/3; }
@media (min-width: 768px) {
  .tile.feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
.tile img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
  aspect-ratio: 1;
}
.showcase-img img {
      width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
  aspect-ratio: auto;
}
.tile:hover img { transform: scale(1.05); }
.tile figcaption, .showcase-img figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 16px; color: #fff; font-weight: 700;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

/* Why cards */
.why-grid {
  display: grid; gap: 20px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4,1fr); } }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 12px 32px -12px rgba(0,0,0,0.15); }
.card-icon {
  width: 48px; height: 48px;
  background: var(--primary); color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-weight: 900; margin-bottom: 4px; }
.card p { color: var(--muted); font-size: 14px; }

/* Showcase */
.showcase {
  display: grid; gap: 40px; align-items: center;
}
@media (min-width: 768px) { .showcase { grid-template-columns: 1fr 1fr; } }
/*.showcase-img figcaption {*/
/*  border-radius: 24px; overflow: hidden;*/
/*  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.2);*/
/*}*/
.stats-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; text-align: center; margin-top: 24px;
}
.stat { background: var(--secondary); border-radius: 12px; padding: 16px; }
.stat .n { font-size: 24px; font-weight: 900; color: var(--primary); }
.stat .l { font-size: 12px; color: var(--muted); }

/* Colors */
.color-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 20px; max-width: 720px; margin: 40px auto 0;
}
.swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.swatch .dot {
  width: 64px; height: 64px; border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.swatch .dot.bordered { border: 2px solid var(--border); }
.swatch span { font-size: 14px; font-weight: 600; }

/* Testimonials */
.t-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .t-grid { grid-template-columns: repeat(3,1fr); } }
.quote { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.quote blockquote { font-size: 17px; font-weight: 600; line-height: 1.5; }
.quote figcaption, .showcase-img figcaption { margin-top: 16px; font-size: 14px;  }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 12px; padding: 16px 20px;
}
details[open] { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
summary {
  cursor: pointer; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; color: var(--primary); }
details[open] summary::after { content: "−"; }
details p { margin-top: 12px; color: var(--muted); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  background: var(--gradient-hero);
  text-align: center;
}
.cta-band-bg {
  position: absolute; inset: 0; opacity: 0.2;
  background-size: cover; background-position: center;
}
.cta-band .container {
  position: relative; padding: 80px 20px; max-width: 720px;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 900; }
.cta-band p { margin-top: 16px; font-size: 18px; color: rgba(255,255,255,0.9); }
.cta-band .btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* Language switch */
.lang-switch { font-size: 13px; font-weight: 700; color: var(--muted); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; }
.lang-switch:hover { color: var(--primary); border-color: var(--primary); }

/* Contact form */
.contact-form-section { padding: 80px 0; background: var(--bg); }
.contact-form-wrap { max-width: 640px; margin: 0 auto; }
.contact-form { display: grid; gap: 16px; margin-top: 32px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: 0 12px 40px -20px rgba(46,27,94,0.25); }
.contact-form .row { display: grid; gap: 16px; }
@media (min-width: 640px) { .contact-form .row.two { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--fg); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 14px; font: inherit;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--fg);
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,58,158,0.15);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button { justify-self: stretch; width: 100%; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }
.form-success { display: none; padding: 16px; border-radius: 10px; background: rgba(22,163,74,0.1); color: #15803d; font-weight: 700; text-align: center; margin-top: 16px; }
.form-success.show { display: block; }

/* English (LTR) overrides */
html[lang="en"], html[lang="en"] body { direction: ltr; }
html[lang="en"] .section-head.left { text-align: left; }
html[lang="en"] .hero-bg-overlay { background: linear-gradient(to right, transparent, rgba(46,27,94,0.4), var(--primary-deep)); }
html[lang="en"] .hero-bg-img { left: auto; right: -80px; }


/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0; font-size: 14px; color: var(--muted);
}
.site-footer .container {
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: space-between;
}
@media (min-width: 768px) { .site-footer .container { flex-direction: row; } }
.site-footer a:hover { color: var(--primary); }


/* === Added by script.js companion === */
.site-header { transition: box-shadow .25s ease, background-color .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0,0,0,.18); }
img { opacity: 0; transition: opacity .5s ease; }
img.is-loaded { opacity: 1; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
html { scroll-behavior: smooth; }
