/* ============================================================================
   Proyo — proyo.co.il
   Hebrew RTL landing page. Logical properties throughout (inline-start/end
   rather than left/right) so an English LTR variant needs no CSS rewrite.
   Palette is fixed by the brand guidance in artifacts/brand-guidance-color-palette.
   ========================================================================= */

:root {
  --blue:      #0B5ED7;   /* brand — headings, buttons, icons */
  --blue-deep: #0844A0;   /* hover / pressed */
  --sky:       #EAF6FF;   /* soft background bands */
  --gray:      #F5F7FA;   /* secondary background, cards */
  --lime:      #7ED957;   /* benefit highlights ONLY — never as text on white */
  --ink:       #0A2540;   /* body text; also the only text colour used on lime */
  --ink-soft:  #4A5B70;
  --line:      #DCE5F0;
  --white:     #FFFFFF;

  --radius:    18px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(10, 37, 64, .05), 0 8px 28px rgba(10, 37, 64, .07);
  --shadow-lg: 0 2px 6px rgba(10, 37, 64, .07), 0 24px 60px rgba(10, 37, 64, .13);

  --wrap:      1180px;
  --gap:       clamp(1rem, 2.5vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
}

/* ── reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Heebo', 'Arial Hebrew', system-ui, sans-serif;
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; padding: 0; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }

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

/* Hidden via clip, NOT via a negative offset. In RTL `inset-inline-start`
   resolves to `right`, so an off-screen -9999px would extend the document
   rightward and give the whole page a horizontal scrollbar. */
.skip-link {
  position: absolute; top: 0; inset-inline-start: 0; z-index: 200;
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
  background: var(--blue); color: #fff;
  border-end-end-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus {
  width: auto; height: auto; padding: .75rem 1.25rem;
  overflow: visible; clip-path: none;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 720px); }

/* ── typography ────────────────────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.18; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

.eyebrow {
  font-size: .875rem; font-weight: 700; letter-spacing: .06em;
  color: var(--blue); text-transform: none; margin-bottom: 1rem;
}
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--ink-soft); max-width: 44ch; }
.accent { color: var(--blue); }

.section { padding-block: var(--section-y); }
.section-tint { background: var(--gray); }
.section-title { text-align: center; }
.section-lede {
  text-align: center; color: var(--ink-soft); max-width: 56ch;
  margin: 1rem auto 0; font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
}
.section-title + .section-lede { margin-top: .875rem; }
.section-lede + * { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* ── the Greek key (meander) — the cup's signature motif ───────────────── */
/* One 20×20 tile: baseline, riser, top bar, descender, inner bar. Repeats on x. */
.greek-key {
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cg fill='%230B5ED7'%3E%3Crect y='16' width='20' height='4'/%3E%3Crect width='4' height='16'/%3E%3Crect width='16' height='4'/%3E%3Crect x='12' width='4' height='12'/%3E%3Crect x='8' y='8' width='8' height='4'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: auto 100%;
}
.greek-key-light {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cg fill='%23FFFFFF' fill-opacity='.45'%3E%3Crect y='16' width='20' height='4'/%3E%3Crect width='4' height='16'/%3E%3Crect width='16' height='4'/%3E%3Crect x='12' width='4' height='12'/%3E%3Crect x='8' y='8' width='8' height='4'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── wordmark (no logo file exists — this IS the logo) ─────────────────── */
.wordmark { text-decoration: none; display: block; line-height: 1; }
.wordmark-name {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.6rem; font-weight: 700; letter-spacing: .1em;
  color: var(--blue);
}
.wordmark-sub {
  display: block; margin-top: .25rem;
  font-size: .5rem; font-weight: 500; letter-spacing: .34em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.6rem; border: 2px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { --btn-bg: var(--blue-deep); --btn-bd: var(--blue-deep); }
.btn:active { transform: translateY(1px); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--blue); }
.btn-ghost:hover { --btn-bg: var(--sky); --btn-bd: var(--blue-deep); --btn-fg: var(--blue-deep); }
.btn-sm { padding: .5rem 1.1rem; font-size: .95rem; }
.center-cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }

/* ── header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-block-end: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .75rem;
}
.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.75rem); }
.site-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .975rem;
  padding-block: .35rem; border-block-end: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--blue); border-block-end-color: var(--blue); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(120% 90% at 85% 0%, var(--sky) 0%, rgba(234, 246, 255, 0) 60%),
    linear-gradient(180deg, var(--white) 0%, var(--gray) 100%);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero-inner {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.1fr .9fr; align-items: center;
}
.hero h1 { margin-bottom: 1.5rem; }
.tagline {
  margin-top: 1.25rem; font-weight: 700; font-size: 1.1rem; color: var(--blue);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2rem; }

/* Shrink-wrapped to the image so the badge can hang off the artwork's real
   edge rather than float somewhere inside the grid cell. */
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-art img {
  border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%;
}
.hero-badge {
  position: absolute; inset-block-end: 1.5rem; inset-inline-start: -1.25rem;
  display: flex; align-items: center; gap: .6rem;
  background: var(--lime); color: var(--ink);
  padding: .7rem 1.1rem; border-radius: 999px;
  box-shadow: var(--shadow); font-weight: 700;
}
.hero-badge strong { font-size: 1.6rem; line-height: 1; }
.hero-badge span { font-size: .7rem; line-height: 1.2; font-weight: 700; }

/* ── cards ─────────────────────────────────────────────────────────────── */
.cards { display: grid; gap: var(--gap); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}
.card-plain { box-shadow: none; background: var(--white); }
.card .icon { width: 34px; height: 34px; color: var(--blue); margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .975rem; }

/* ── steps ─────────────────────────────────────────────────────────────── */
.steps { display: grid; gap: var(--gap); grid-template-columns: repeat(5, 1fr); }
.step { position: relative; padding-top: .5rem; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--blue); color: #fff;
  font-weight: 800; font-size: 1.15rem; margin-bottom: 1rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--ink-soft); font-size: .95rem; }

/* ── dark showcase ─────────────────────────────────────────────────────── */
.showcase {
  background: linear-gradient(160deg, #06203F 0%, #0B3B7A 55%, #0B5ED7 140%);
  color: #fff; padding-block: var(--section-y);
}
.showcase-inner {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: .85fr 1.15fr; align-items: center;
}
.showcase h2 { color: #fff; margin-bottom: 1.25rem; }
.showcase p { color: #C6D9F2; max-width: 50ch; }
.showcase-art img {
  width: min(100%, 360px); margin-inline: auto;
  border-radius: var(--radius);
  /* Source is shot on pure black; screen blending dissolves it into the panel. */
  mix-blend-mode: screen;
}
.ticks { margin-top: 1.75rem; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-inline-start: 2rem; color: #E3EEFC; }
/* A checkmark is a glyph, not layout — it must NOT mirror in RTL, so the
   borders here are deliberately physical (left/bottom) rather than logical. */
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: .25rem; top: .5em;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--lime);
  border-bottom: 2.5px solid var(--lime);
  transform: rotate(-45deg);
}

/* ── venues ────────────────────────────────────────────────────────────── */
.venues { display: grid; gap: var(--gap); grid-template-columns: repeat(4, 1fr); }
.venues li {
  display: flex; align-items: flex-start; gap: .9rem;
  background: var(--sky); border-radius: var(--radius-sm); padding: 1.15rem 1.25rem;
}
.venues svg { width: 26px; height: 26px; flex: none; color: var(--blue); margin-top: .15rem; }
.venues span { display: flex; flex-direction: column; font-size: .9rem; color: var(--ink-soft); }
.venues strong { color: var(--ink); font-size: 1rem; margin-bottom: .1rem; }

/* ── gallery ───────────────────────────────────────────────────────────── */
.gallery {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.gallery figure { margin: 0; }
/* The sources have wildly different aspect ratios (600–1243px tall at the same
   width). Cropping them to one ratio is what keeps this from going ragged. */
.gallery img {
  width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; object-position: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* ── contact form ──────────────────────────────────────────────────────── */
.section-contact { background: var(--sky); }
.lead-form { display: grid; gap: 1.15rem; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; }
.req { color: #C0392B; }
.field input, .field select, .field textarea {
  padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .15s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B9CBE2; }
.field textarea { resize: vertical; min-height: 110px; }
.field [aria-invalid="true"] { border-color: #C0392B; }
.err { color: #A03024; font-size: .875rem; font-weight: 500; }

.form-actions {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .875rem; margin-top: .5rem;
}
.form-note { grid-column: 1 / -1; font-size: .95rem; color: var(--ink-soft); min-height: 1.5em; }
.form-note.is-ok { color: #1B6B3A; font-weight: 700; }

/* ── footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #C6D9F2; }
.site-footer .greek-key { height: 8px; }
.footer-inner {
  display: grid; gap: 2rem; grid-template-columns: 1.2fr 1fr 1fr;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand .wordmark-name { color: #fff; }
.footer-brand .wordmark-sub { color: #7E9AC0; }
.footer-brand p { margin-top: .9rem; color: #9FBBDD; }
.footer-links, .footer-contact { display: grid; gap: .65rem; align-content: start; }
.site-footer a { color: #C6D9F2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.copyright {
  border-block-start: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.25rem; text-align: center; font-size: .875rem; color: #86A3C7;
}

/* ── scroll reveal (opt-in, respects reduced motion) ───────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .venues  { grid-template-columns: repeat(2, 1fr); }
  .steps   { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-block-end: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding-block: .8rem; border-block-end: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; }

  .hero-inner, .showcase-inner { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lede, .showcase p { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; }
  .hero-badge { inset-inline-start: 0; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links, .footer-contact { justify-items: center; }
}

@media (max-width: 520px) {
  .cards-4, .venues, .steps, .lead-form { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .site-nav .btn { width: auto; }
}

/* ── print ─────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .nav-toggle, .hero-cta, .lead-form, .gallery { display: none; }
  body { color: #000; }
}
