/* ============================================================
   One Stop Shop · concept: "Ivory"
   White elegant theme: warm ivory ground, dark ink type,
   amber accent, full-screen photo hero.
   RTL-first, mobile-first.
   ============================================================ */

/* Self-hosted Heebo variable font (weights 400-900, hebrew+latin subsets) */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/heebo-var-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/heebo-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f4f1ea;
  --border: #e8e4da;
  --border-light: #d9d3c6;
  --text: #1d1a15;
  --muted: #6e675c;
  --accent: var(--wa-green); /* fills, large marks */
  --accent-deep: #0d3320; /* text & borders — AA on ivory */
  --accent-dim: rgb(37 211 102 / 0.12);
  --ink-shadow: 29 26 21; /* shadow base color */
  --wa-green: #25d366;
  --wa-green-dark: #0d3320;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  line-height: 1.8;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

a {
  color: var(--accent-deep);
}

::selection {
  background: var(--accent);
  color: var(--wa-green-dark);
}

:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition:
    transform 130ms ease,
    background-color 130ms ease,
    box-shadow 130ms ease,
    color 130ms ease,
    border-color 130ms ease;
}

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

.btn-whatsapp {
  background: linear-gradient(180deg, #2ee076, var(--wa-green));
  color: var(--wa-green-dark);
  font-size: 1.15rem;
  padding: 1rem 2.25rem;
  min-height: 48px;
  box-shadow:
    0 10px 28px rgb(37 211 102 / 0.35),
    inset 0 1px 0 rgb(255 255 255 / 0.4);
}

.btn-whatsapp:hover {
  background: linear-gradient(180deg, #3aeb81, #2ada6d);
  box-shadow:
    0 14px 36px rgb(37 211 102 / 0.45),
    inset 0 1px 0 rgb(255 255 255 / 0.4);
}

.btn-link {
  color: var(--accent-deep);
  font-size: 0.98rem;
  padding: 0.55rem 1.4rem;
  border: 1px solid rgb(13 51 32 / 0.4);
  background: transparent;
}

.btn-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--wa-green-dark);
  box-shadow: 0 6px 20px rgb(37 211 102 / 0.4);
}

.icon-wa {
  width: 1.35em;
  height: 1.35em;
  flex: none;
}

/* ============================================================
   Top navigation — fixed, glassy
   ============================================================ */

.topnav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  background: rgb(250 249 247 / 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid rgb(29 26 21 / 0.07);
}

.nav-inner {
  max-width: none; /* anchor to the screen edges on wide monitors */
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 4vw, 2.25rem);
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 130ms ease;
}

.nav-links a:hover {
  color: var(--accent-deep);
}

@media (max-width: 479px) {
  .brand {
    font-size: 1rem;
  }
  .nav-links a {
    font-size: 0.88rem;
  }
}

/* ============================================================
   Hero — full-screen photo, light grade
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end; /* mobile: text low, face stays clear */
  padding-block: 7rem 4.5rem; /* clears the fixed nav */
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 900px) {
  .hero {
    align-items: center;
    padding-block: 7rem 6rem;
  }
}

.hero .container {
  position: relative;
  z-index: 3;
  max-width: 72rem;
  width: 100%;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Full-bleed photo. White studio backdrop blends into the ivory page.
   The image is picked at random per visit (inline script in <head>);
   hero-1 is the no-JS fallback. */
.hero-photo {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img, url("images/hero-1.jpg"));
  background-position: center 28%;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Wide screens: pin the photo to the end side at full height —
   its white edges melt into the ivory page, and the RTL text
   column on the right stays completely clear of the subject */
@media (min-width: 900px) {
  .hero-photo {
    background-size: auto 100%;
    background-position: left center;
    /* fade the photo's edge so it floats on the ivory, no seam */
    -webkit-mask-image: linear-gradient(to right, #000 72%, transparent 97%);
    mask-image: linear-gradient(to right, #000 72%, transparent 97%);
  }
}

/* Light grade: soft wash on the text side (start = right in RTL),
   melting into the ivory page at the bottom */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to left,
      rgb(250 249 247 / 0.92),
      rgb(250 249 247 / 0.55) 45%,
      rgb(250 249 247 / 0.05)
    ),
    linear-gradient(
      180deg,
      rgb(250 249 247 / 0.3),
      transparent 30%,
      transparent 70%,
      var(--bg) 97%
    );
}

/* Hero typography */
.hero h1 {
  font-family: "Heebo", sans-serif;
  font-size: clamp(3rem, 11vw, 5.75rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  text-align: end; /* hug the RTL text side, clear of the photo */
}

.accent-dot {
  color: var(--accent);
}

.hero-value {
  font-size: clamp(1.25rem, 4.6vw, 1.6rem);
  font-weight: 500;
  line-height: 1.55;
  margin: 0 0 2.5rem;
  max-width: 34rem;
  text-wrap: balance;
}

/* ============================================================
   Projects — editorial rows
   ============================================================ */

.projects {
  padding-block: 6rem 7rem;
}

.projects .container {
  max-width: 64rem;
}

.projects h2 {
  font-family: "Heebo", sans-serif;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 1rem;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.projects h2::after {
  content: "";
  flex: 1;
  height: 1px;
  align-self: center;
  background: linear-gradient(to left, var(--border-light), transparent);
}

.section-intro {
  color: var(--muted);
  margin: 0 0 4rem;
}

.project {
  position: relative;
  margin-block-end: 7rem;
}

.project:last-child {
  margin-block-end: 0;
}

/* Giant outlined index number behind each project */
.proj-num {
  position: absolute;
  top: -4.5rem;
  inset-inline-end: -0.5rem;
  z-index: 0;
  margin: 0;
  font-family: "Heebo", sans-serif;
  font-size: clamp(6rem, 20vw, 9.5rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(13 51 32 / 0.25);
  pointer-events: none;
  user-select: none;
}

.project h3 {
  font-family: "Heebo", sans-serif;
  font-size: clamp(1.5rem, 5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 2rem 0 0.75rem;
}

.project .client {
  color: var(--muted);
  font-weight: 400;
  font-size: 1.02rem;
}

.project > p:not(.proj-num) {
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.project img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Device frames, light chrome --- */

.frame {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow:
    0 24px 50px rgb(var(--ink-shadow) / 0.16),
    0 4px 14px rgb(var(--ink-shadow) / 0.08);
  transition: box-shadow 250ms ease;
}

.project:hover .frame {
  box-shadow:
    0 30px 64px rgb(var(--ink-shadow) / 0.2),
    0 6px 18px rgb(var(--ink-shadow) / 0.1);
}

.frame-browser {
  border-radius: 14px;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: linear-gradient(180deg, #f7f4ee, #eeeae1);
  border-block-end: 1px solid var(--border);
}

.frame-bar .fd {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
}

.frame-bar .fd:nth-child(1) {
  background: #e0645c;
}
.frame-bar .fd:nth-child(2) {
  background: #e0b14e;
}
.frame-bar .fd:nth-child(3) {
  background: #6cc26c;
}

.frame-url {
  margin-inline: auto;
  direction: ltr;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 1.2rem;
  line-height: 1.5;
}

/* Silver iPhone-style frame */
.frame-phone {
  width: min(240px, 64%);
  margin-inline: auto;
  border-radius: 44px;
  border: 3px solid #c9c3b8;
  outline: 1px solid rgb(var(--ink-shadow) / 0.12);
  background: #fff;
  position: relative;
}

.frame-phone::before {
  content: "";
  position: absolute;
  top: 12px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 25%;
  height: 20px;
  border-radius: 999px;
  background: #14120e;
  z-index: 1;
}

/* Desktop: screenshot beside text, alternating sides */
@media (min-width: 900px) {
  .project {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: auto auto auto 1fr;
    column-gap: 4rem;
    align-items: center;
  }

  .project .frame {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: center;
  }

  .project h3,
  .project > p:not(.proj-num),
  .project .btn-link {
    grid-column: 2;
    justify-self: start;
  }

  .project h3 {
    align-self: end;
    margin-block-start: 0;
  }
  .project .btn-link {
    align-self: start;
  }

  .project:nth-of-type(even) .frame {
    grid-column: 2;
  }
  .project:nth-of-type(even) h3,
  .project:nth-of-type(even) > p:not(.proj-num),
  .project:nth-of-type(even) .btn-link {
    grid-column: 1;
  }

  .proj-num {
    top: -3.5rem;
    inset-inline-end: 0;
  }

  .project:nth-of-type(even) .proj-num {
    inset-inline-end: auto;
    inset-inline-start: 0;
  }
}

/* ============================================================
   Automation & AI — soft band
   ============================================================ */

.automation {
  border-block: 1px solid var(--border);
  background:
    radial-gradient(
      46rem 18rem at 15% 0%,
      rgb(37 211 102 / 0.07),
      transparent 70%
    ),
    var(--surface-2);
  padding-block: 4.5rem;
}

.automation h2 {
  font-family: "Heebo", sans-serif;
  font-size: clamp(1.7rem, 5.5vw, 2.3rem);
  font-weight: 900;
  margin: 0 0 1rem;
}

.automation > .container > p {
  max-width: 38rem;
  margin: 0 0 1.75rem;
}

.automation-list {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 34rem;
}

.automation-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-weight: 500;
}

.automation-list li::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg) translateY(-1px);
}

/* ============================================================
   How it works — timeline strip
   ============================================================ */

.how {
  border-block-end: 1px solid var(--border);
  background: var(--surface);
  padding-block: 2.75rem;
}

.how-strip {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  font-weight: 500;
  text-align: center;
}

.how-strip li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.how-strip li::before {
  content: "0" counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  border: 1px solid rgb(13 51 32 / 0.35);
  background: var(--accent-dim);
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
}

.how-strip li:not(:last-child)::after {
  content: "\2190"; /* ← — forward direction in RTL */
  color: var(--accent-deep);
  font-weight: 700;
  opacity: 0.7;
}

@media (max-width: 639px) {
  .how-strip li:not(:last-child)::after {
    display: none;
  }
}

@media (min-width: 640px) {
  .how-strip {
    flex-direction: row;
    justify-content: center;
    gap: 1.2rem;
  }
}

/* ============================================================
   Final CTA + footer
   ============================================================ */

.final-cta {
  position: relative;
  padding-block: 7rem;
  text-align: center;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 100%;
  background: radial-gradient(
    36rem 18rem at 50% 30%,
    rgb(37 211 102 / 0.08),
    transparent 70%
  );
  pointer-events: none;
}

.final-cta p {
  position: relative;
  font-family: "Heebo", sans-serif;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.45;
  max-width: 34rem;
  margin: 0 auto 2.25rem;
  text-wrap: balance;
}

.final-cta .btn {
  position: relative;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.btn-email {
  background: var(--surface);
  color: var(--text);
  font-size: 1.05rem;
  padding: 0.95rem 2rem;
  min-height: 48px;
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 18px rgb(var(--ink-shadow) / 0.08);
}

.btn-email:hover {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
  box-shadow: 0 8px 24px rgb(var(--ink-shadow) / 0.12);
}

footer {
  border-block-start: 1px solid var(--border);
  background: var(--surface);
  padding-block: 2.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

footer p {
  margin: 0;
}
footer a {
  color: var(--muted);
}
footer a:hover {
  color: var(--accent-deep);
}
.sep {
  margin-inline: 0.5rem;
  color: var(--border-light);
}

/* ============================================================
   Floating WhatsApp button (mobile only)
   ============================================================ */

.wa-float {
  position: fixed;
  bottom: 1.25rem;
  inset-inline-start: 1.25rem; /* start side in RTL = right */
  display: none;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2ee076, var(--wa-green));
  color: var(--wa-green-dark);
  box-shadow:
    0 6px 20px rgb(var(--ink-shadow) / 0.25),
    0 4px 16px rgb(37 211 102 / 0.35);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 200ms ease;
  z-index: 60;
}

.wa-float .icon-wa {
  width: 30px;
  height: 30px;
}

@media (max-width: 767px) {
  .js .wa-float {
    display: inline-flex;
  }
}

.wa-float.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ============================================================
   Subtle reveal fade (JS-gated, motion-safe)
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 600ms ease,
      transform 600ms ease;
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
}
