/* Sugar Media - Beauty landing page. Hand-written, RTL-first (logical properties).
   Brand tokens come from the logo: ink #1D1D1F + turquoise #66F0F0. */

@font-face {
  font-family: "Assistant";
  src: url("../assets/fonts/assistant-hebrew.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Assistant";
  src: url("../assets/fonts/assistant-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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 {
  --ink: #1d1d1f;
  --ink-soft: #4a4a50;
  --paper: #f7f5f1;
  --white: #fff;
  --turq: #66f0f0;
  --turq-deep: #066a70;   /* text-safe turquoise (>=5.5:1 on paper) */
  --line: #e3dfd8;
  --radius: 4px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --bar-h: 64px;
  --font: "Assistant", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block-start: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  padding-block-end: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

/* keep phone numbers / latin strings stable inside RTL text */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--turq); }

.skip {
  position: absolute; inset-inline-start: 8px; inset-block-start: -80px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { inset-block-start: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(48px, 8vw, 96px); }
.eyebrow {
  font-size: .95rem; font-weight: 700; letter-spacing: .02em; color: var(--turq-deep);
  display: flex; align-items: center; gap: 10px; margin-block-end: 14px;
}
.eyebrow::before { content: ""; inline-size: 28px; block-size: 3px; background: var(--turq); border-radius: 2px; }
.on-dark .eyebrow { color: var(--turq); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.75rem); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; max-inline-size: 22ch; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-inline-size: 60ch; }
.on-dark .lead { color: #cfd0d6; }
.sec-head { margin-block-end: clamp(28px, 4vw, 48px); display: grid; gap: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-block-size: 52px; padding: 12px 26px; border-radius: 999px;
  font-weight: 800; font-size: 1.05rem; text-decoration: none; line-height: 1.2;
  border: 2px solid var(--ink); cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn svg { inline-size: 22px; block-size: 22px; fill: currentColor; flex: none; }
.btn-wa { background: var(--turq); color: var(--ink); border-color: var(--turq); }
.btn-wa:hover { background: var(--ink); color: var(--turq); border-color: var(--ink); }
.btn-tel { background: transparent; color: var(--ink); }
.btn-tel:hover { background: var(--ink); color: var(--white); }
.on-dark .btn-wa:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.on-dark .btn-tel { color: var(--white); border-color: var(--white); }
.on-dark .btn-tel:hover { background: var(--white); color: var(--ink); }
.btn-sm { min-block-size: 44px; padding: 8px 18px; font-size: 1rem; }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: rgba(247, 245, 241, .94); backdrop-filter: blur(8px);
  border-block-end: 1px solid var(--line);
}
.hdr { display: flex; align-items: center; gap: 12px; min-block-size: 64px; flex-wrap: wrap; }
.logo { display: block; flex: none; }
.logo img { inline-size: 150px; block-size: auto; }
.nav-toggle {
  margin-inline-start: auto; min-inline-size: 44px; min-block-size: 44px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 700; cursor: pointer;
}
.hdr .btn-sm { display: none; }
.site-nav { inline-size: 100%; }
.js .site-nav { display: none; }
.js .site-nav.open { display: block; }
.site-nav ul { display: grid; padding-block: 8px 16px; }
.site-nav a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 700; border-block-end: 1px solid var(--line); }
.site-nav a:hover { color: var(--turq-deep); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .hdr { flex-wrap: nowrap; }
  .js .site-nav, .site-nav { display: block; inline-size: auto; margin-inline-start: auto; }
  .site-nav ul { display: flex; gap: 28px; padding: 0; }
  .site-nav a { padding: 8px 0; border: 0; }
  .hdr .btn-sm { display: inline-flex; }
  .logo img { inline-size: 170px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: clip; color: var(--white);
  background: #121214;
  padding-block: clamp(36px, 6vw, 84px) clamp(48px, 7vw, 96px);
}
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; inline-size: 70vmax; block-size: 70vmax; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(102, 240, 240, .30), rgba(102, 240, 240, 0) 70%),
    radial-gradient(closest-side at 70% 60%, rgba(255, 170, 120, .16), rgba(255, 170, 120, 0) 70%);
  filter: blur(20px);
  animation: glow-drift 18s ease-in-out infinite alternate;
}
@keyframes glow-drift { to { transform: translate3d(-14%, 10%, 0) scale(1.15); } }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }

.hero h1 { font-size: clamp(2.5rem, 8.4vw, 4.9rem); line-height: 1.02; font-weight: 800; letter-spacing: -.02em; }
.hl { display: block; }
.hl-2 { color: var(--turq); }
.w { display: inline-block; overflow: clip; vertical-align: top; padding-block-end: .12em; margin-block-end: -.12em; }
.w > span { display: inline-block; animation: word-up .9s cubic-bezier(.2, .8, .2, 1) both; }
.hl-1 .w:nth-child(1) > span { animation-delay: .05s; }
.hl-1 .w:nth-child(2) > span { animation-delay: .15s; }
.hl-1 .w:nth-child(3) > span { animation-delay: .25s; }
.hl-2 .w:nth-child(1) > span { animation-delay: .4s; }
.hl-2 .w:nth-child(2) > span { animation-delay: .5s; }
.hl-2 .w:nth-child(3) > span { animation-delay: .6s; }
@keyframes word-up { from { transform: translateY(110%); } to { transform: none; } }

.hero .lead { margin-block: 24px 28px; color: #d3d4da; animation: fade-in .8s .85s both; }
.hero .cta-row { animation: fade-in .8s 1s both; }
.hero-note { margin-block-start: 22px; font-size: .98rem; color: #b6b7bf; display: flex; flex-wrap: wrap; gap: 6px 20px; animation: fade-in .8s 1.1s both; }
.hero-note li::before { content: ""; display: inline-block; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--turq); margin-inline-end: 9px; vertical-align: .12em; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* the stage: two looping clips and a still, drifting at different speeds */
.stage { position: relative; inline-size: 100%; max-inline-size: 520px; margin-inline: auto; aspect-ratio: 1 / 1.08; }
.frame {
  position: absolute; transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.frame-in {
  position: relative; border-radius: 14px; overflow: hidden; background: #26262b;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
  animation: frame-reveal 1.1s cubic-bezier(.7, 0, .2, 1) both, float 9s ease-in-out infinite alternate;
}
.frame-in video, .frame-in img { display: block; inline-size: 100%; block-size: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.f-main { inset-block-start: 0; inset-inline-start: 24%; inline-size: 52%; z-index: 2; }
.f-a { inset-block-end: 0; inset-inline-start: 0; inline-size: 38%; z-index: 1; }
.f-b { inset-block-start: 8%; inset-inline-end: 0; inline-size: 38%; z-index: 1; }
.f-b .frame-in img { aspect-ratio: 2 / 3; }
.f-main .frame-in { animation-delay: .3s, 0s; }
.f-a .frame-in { animation-delay: .6s, -3s; animation-duration: 1.1s, 11s; }
.f-b .frame-in { animation-delay: .8s, -6s; animation-duration: 1.1s, 10s; }
@keyframes frame-reveal { from { clip-path: inset(100% 0 0 0 round 14px); } to { clip-path: inset(0 0 0 0 round 14px); } }
@keyframes float { from { translate: 0 -8px; } to { translate: 0 10px; } }

/* viewfinder overlay on the main clip */
.vf { position: absolute; inset: 10px; z-index: 3; pointer-events: none; font-size: .8rem; font-weight: 700; color: var(--white); animation: fade-in .6s 1.4s both; }
.vf-c { position: absolute; inline-size: 18px; block-size: 18px; border: 0 solid rgba(255, 255, 255, .9); }
.vf-tl { inset-block-start: 0; inset-inline-start: 0; border-block-start-width: 2px; border-inline-start-width: 2px; }
.vf-tr { inset-block-start: 0; inset-inline-end: 0; border-block-start-width: 2px; border-inline-end-width: 2px; }
.vf-bl { inset-block-end: 0; inset-inline-start: 0; border-block-end-width: 2px; border-inline-start-width: 2px; }
.vf-br { inset-block-end: 0; inset-inline-end: 0; border-block-end-width: 2px; border-inline-end-width: 2px; }
.rec, .tc { position: absolute; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.rec { inset-block-start: 14px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 6px; }
.rec-dot { inline-size: 9px; block-size: 9px; border-radius: 50%; background: #ff3b30; animation: rec-blink 1.2s steps(2, jump-none) infinite; }
.tc { inset-block-end: 14px; inset-inline-end: 16px; }
@keyframes rec-blink { 50% { opacity: .15; } }

/* desktop background video (attached by js/lp.js; hidden on mobile) */
.hero-bg { display: none; }

@media (min-width: 900px) {
  .hero { display: grid; align-items: center; min-block-size: clamp(560px, 82vh, 860px); }
  .hero-bg { display: block; position: absolute; inset: 0; background: #121214; }
  .hero-bg video { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
  /* page is RTL: copy sits on the right, so the dark side of the scrim is the right (inline-start) */
  .hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(to left, rgba(18, 18, 20, .88) 0%, rgba(18, 18, 20, .74) 38%, rgba(18, 18, 20, .30) 72%, rgba(18, 18, 20, .18) 100%),
      linear-gradient(to bottom, rgba(18, 18, 20, .35), rgba(18, 18, 20, 0) 30%, rgba(18, 18, 20, 0) 70%, rgba(18, 18, 20, .45));
  }
  .hero-glow, .stage { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 800px); }
}

/* ---------- audience ---------- */
.audience { background: var(--ink); color: var(--white); padding-block: 28px; border-block-start: 1px solid #2c2d33; }
.audience ul { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.audience .tag-lead { font-weight: 800; color: var(--turq); margin-inline-end: 6px; }
.audience li:not(.tag-lead) { border: 1.5px solid #55565e; border-radius: 999px; padding: 6px 16px; font-weight: 600; }

/* ---------- portfolio ---------- */
.gallery { columns: 2; column-gap: 10px; }
.tile { break-inside: avoid; margin-block-end: 10px; display: block; inline-size: 100%; padding: 0; border: 0; background: #e8e4dc; border-radius: var(--radius); cursor: zoom-in; overflow: hidden; position: relative; }
.tile img { inline-size: 100%; transition: transform .5s; }
@media (prefers-reduced-motion: no-preference) { .tile:hover img { transform: scale(1.03); } }
@media (min-width: 700px) { .gallery { columns: 3; column-gap: 14px; } .tile { margin-block-end: 14px; } }
@media (min-width: 1100px) { .gallery { columns: 4; } }
.gallery-note { margin-block-start: 18px; font-size: .95rem; color: var(--ink-soft); }

/* ---------- video ---------- */
.videos-sec { background: var(--ink); color: var(--white); }
.videos { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.vcard { flex: 0 0 min(68vw, 300px); scroll-snap-align: start; }
.vcard video { inline-size: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: var(--radius); object-fit: cover; }
.vcard figcaption { margin-block-start: 10px; font-size: .98rem; color: #cfd0d6; }
@media (min-width: 800px) {
  .videos { overflow: visible; margin-inline: 0; padding-inline: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .vcard { flex: initial; }
}

/* ---------- production (differentiator) ---------- */
.feat { display: grid; gap: 14px; }
.feat li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: grid; gap: 8px; align-content: start; }
.feat h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 800; }
.feat p { color: var(--ink-soft); font-size: 1.02rem; }
.feat .ico { inline-size: 44px; block-size: 44px; border-radius: 50%; background: var(--turq); display: grid; place-items: center; font-weight: 800; }
@media (min-width: 760px) { .feat { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.note-tailored { margin-block-start: 22px; color: var(--ink-soft); max-inline-size: 70ch; }

/* ---------- services ---------- */
.svc { display: grid; gap: 0; border-block-start: 1px solid var(--line); }
.svc li { display: grid; gap: 4px; padding-block: 22px; border-block-end: 1px solid var(--line); }
.svc h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.svc p { color: var(--ink-soft); font-size: 1.02rem; }
@media (min-width: 800px) {
  .svc { grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
}

/* ---------- process ---------- */
.steps { display: grid; gap: 22px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; counter-increment: s; }
.steps li::before {
  content: counter(s); inline-size: 52px; block-size: 52px; border-radius: 50%; background: var(--turq); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem;
}
.steps h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.steps p { color: var(--ink-soft); font-size: 1.02rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps li { grid-template-columns: 1fr; }
}

/* ---------- mid CTA ---------- */
.band { background: var(--turq); padding-block: clamp(32px, 5vw, 56px); }
.band .wrap { display: grid; gap: 18px; align-items: center; }
.band h2 { max-inline-size: 28ch; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.band .btn-wa { background: var(--ink); color: var(--turq); border-color: var(--ink); }
.band .btn-wa:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
@media (min-width: 800px) { .band .wrap { grid-template-columns: 1fr auto; } }

/* ---------- studio ---------- */
.studio-grid { display: grid; gap: 28px; }
.facts { display: grid; gap: 10px; }
.facts li { padding-inline-start: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .7em; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--turq); }
.text-link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--turq-deep); }
.text-link:hover { color: var(--turq-deep); }
@media (min-width: 860px) { .studio-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- FAQ ---------- */
.faq { border-block-start: 1px solid var(--line); max-inline-size: 860px; }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 4px; font-weight: 800; font-size: 1.15rem; line-height: 1.35;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; flex: none; inline-size: 32px; block-size: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--turq); }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 4px 22px; color: var(--ink-soft); max-inline-size: 70ch; }

/* ---------- final CTA / footer ---------- */
.final { background: var(--ink); color: var(--white); text-align: start; }
.final h2 { max-inline-size: 20ch; }
.final .lead { margin-block: 16px 26px; }
.final .phone-big { margin-block-start: 22px; color: #cfd0d6; }
.final .phone-big a { color: var(--white); font-weight: 800; }
.site-footer { background: #121214; color: #cfd0d6; padding-block: 40px 28px; font-size: 1rem; }
.foot { display: grid; gap: 28px; }
.foot img { inline-size: 160px; }
.foot h2 { font-size: 1rem; color: var(--white); margin-block-end: 10px; max-inline-size: none; letter-spacing: 0; }
.foot ul { display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--turq); text-decoration: underline; }
.copy { margin-block-start: 28px; padding-block-start: 18px; border-block-start: 1px solid #2c2c31; font-size: .92rem; color: #9b9ca4; }
@media (min-width: 800px) { .foot { grid-template-columns: 1.3fr 1fr 1fr; } }

/* ---------- sticky mobile bar ---------- */
.mbar {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-block-start: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
}
.mbar .btn { min-block-size: 48px; padding-inline: 12px; }
@media (min-width: 768px) {
  .mbar { display: none; }
  body { padding-block-end: 0; }
}

/* ---------- lightbox ---------- */
dialog.lb { border: 0; padding: 0; background: transparent; max-inline-size: 100vw; max-block-size: 100dvh; inline-size: 100vw; block-size: 100dvh; color: var(--white); }
dialog.lb::backdrop { background: rgba(12, 12, 14, .93); }
.lb-inner { inline-size: 100%; block-size: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 12px; gap: 10px; }
.lb-top { display: flex; justify-content: space-between; align-items: center; }
.lb-count { font-size: .95rem; color: #cfd0d6; }
.lb-stage { position: relative; display: grid; place-items: center; min-block-size: 0; }
.lb-stage img { max-inline-size: 100%; max-block-size: calc(100dvh - 150px); inline-size: auto; block-size: auto; border-radius: var(--radius); object-fit: contain; }
.lb-btn { min-inline-size: 48px; min-block-size: 48px; border-radius: 50%; border: 2px solid var(--white); background: rgba(0, 0, 0, .55); color: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--turq); color: var(--ink); border-color: var(--turq); }
/* SVG chevrons: text glyphs (‹ ›) get bidi-mirrored in RTL, so they pointed the wrong way.
   Prev sits on the right (inline-start) and points right; next sits on the left and points left. */
.lb-chev { inline-size: 24px; block-size: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lb-nav { position: absolute; inset-block-start: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 4px; }
.lb-next { inset-inline-end: 4px; }
.lb-cap { text-align: center; font-size: .98rem; color: #cfd0d6; max-inline-size: 70ch; margin-inline: auto; }
dialog.lb :focus-visible { outline-color: var(--turq); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
