/* ============================================================
   לביא שירותי דפוס — laviprint.co.il
   Design system per "Lavi Print Solutions branding" handoff,
   chosen direction 3B — צר וגבוה (tall & narrow).

   Rules carried over from the handoff:
     · wordmark = Noto Serif Hebrew 900, font-stretch 65%, lh .82
     · red is a RULE / small accent only — never a large fill
     · backgrounds stay light and airy; weight lives in the type
     · RTL letter-spacing needs matching padding so it doesn't clip
   ============================================================ */

:root {
  /* palette */
  --red:      #CF3A20;
  --red-deep: #B22F18;
  --paper:    #FBFAF7;
  --grey:     #55585B;
  --ink:      #1A1C1E;
  --white:    #FFFFFF;

  --line:      #EAE6DF;
  --line-card: #EEEBE4;
  --muted:     #A3A5A8;
  --body:      #3A3D40;

  /* type */
  --serif: 'Noto Serif Hebrew', 'Times New Roman', serif;
  --sans:  'Noto Sans Hebrew', system-ui, -apple-system, sans-serif;
  --label: 'Rubik', system-ui, sans-serif;

  /* rhythm */
  --shell:  1180px;
  --gutter: clamp(20px, 5vw, 58px);
  --sec-y:  clamp(72px, 11vw, 148px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--red); color: #fff; }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; z-index: 200;
}
.skip:focus { inset-inline-start: 0; }

/* ============================================================
   LOGO LOCKUP
   ============================================================ */
.lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.lockup-word {
  font-family: var(--serif);
  font-weight: 900;
  font-stretch: 65%;
  font-size: 33px;
  line-height: .82;
  letter-spacing: .01em;
  color: var(--ink);
}
.lockup-rule {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--red);
  margin: 5px 0 4px;
}
.lockup-desc {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 8px;
  letter-spacing: .34em;
  padding-inline-start: .34em;   /* stops RTL tracking clipping the last glyph */
  color: var(--grey);
  white-space: nowrap;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 250, 247, .94);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 82px;
}

.nav {
  display: flex;
  gap: 30px;
  margin-inline-start: auto;
  font-size: 15.5px;
  color: var(--grey);
}
.nav a { position: relative; padding-block: 6px; transition: color .2s; }
.nav a::after {
  content: '';
  position: absolute; inset-inline: 0; bottom: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform .28s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.tel {
  font-family: var(--label);
  font-size: 15px; font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}
.tel:hover { color: var(--red); }

/* burger — mobile only */
.burger {
  display: none;
  margin-inline-start: auto;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block; width: 21px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 26px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  color: var(--grey);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-tel {
  font-family: var(--label);
  color: var(--red) !important;
  letter-spacing: .04em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --btn-py: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--btn-py) 30px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:active { transform: translateY(1px); }

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid:hover { background: var(--red); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #D9D5CD;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(26,28,30,.03); }

.btn-sm { --btn-py: 11px; padding-inline: 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* ============================================================
   SHARED SECTION FURNITURE
   ============================================================ */
.section { padding-block: var(--sec-y); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--label);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  padding-inline-start: .2em;
  color: var(--muted);
  text-transform: uppercase;
}
.label i {
  font-style: normal;
  color: var(--red);
  letter-spacing: .12em;
}

.section-head { max-width: 660px; margin-bottom: clamp(44px, 6vw, 74px); }

.section-title {
  font-family: var(--serif);
  font-weight: 900;
  font-stretch: 68%;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.04;
  letter-spacing: .005em;
  margin-top: 20px;
}

.section-lead {
  margin-top: 22px;
  font-size: clamp(16.5px, 1.6vw, 18.5px);
  line-height: 1.8;
  color: var(--grey);
  max-width: 56ch;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(70px, 12vw, 132px) clamp(64px, 9vw, 112px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* The ל short-mark as a watermark. It sits on the inline-END side — in RTL
   that is the left, i.e. the open space the right-aligned type leaves behind. */
.hero-mark {
  position: absolute;
  inset-inline-end: clamp(-40px, -1vw, 0px);
  top: 50%;
  transform: translateY(-46%);
  font-family: var(--serif);
  font-weight: 900;
  font-stretch: 65%;
  font-size: clamp(260px, 34vw, 520px);
  line-height: .78;
  color: var(--red);
  opacity: .05;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 900px) { .hero-mark { opacity: .035; } }

.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: .2em;
  padding-inline-start: .2em;
  color: var(--muted);
}

.hero-title {
  margin-top: 26px;
  font-family: var(--serif);
  font-weight: 900;
  font-stretch: 65%;
  font-size: clamp(52px, 9vw, 116px);
  line-height: .9;
  letter-spacing: .01em;
  color: var(--ink);
}
/* the brand's red rule, re-used as an underline on the key phrase */
.underline {
  position: relative;
  display: inline-block;
  padding-bottom: .1em;
}
.underline::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: clamp(5px, .8vw, 10px);
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  animation: rule-in 1s var(--ease) .55s forwards;
}
@keyframes rule-in { to { transform: scaleX(1); } }

.hero-lead {
  margin-top: 34px;
  max-width: 52ch;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.8;
  color: var(--grey);
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-strip {
  margin-top: clamp(52px, 7vw, 88px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  font-size: 15.5px;
  color: var(--grey);
}
.hero-strip span {
  display: block;
  font-family: var(--serif);
  font-weight: 900;
  font-stretch: 70%;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 5px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--line-card);
  border: 1px solid var(--line-card);
}

.card {
  position: relative;
  background: var(--white);
  padding: 42px 34px 38px;
  transition: background .3s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-end: 0;
  width: 0; height: 3px;
  background: var(--red);
  transition: width .4s var(--ease);
}
.card:hover::before { width: 100%; }

.card-num {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
}
.card h3 {
  margin-top: 16px;
  font-family: var(--serif);
  font-weight: 900;
  font-stretch: 70%;
  font-size: 27px;
  line-height: 1.15;
}
.card p {
  margin-top: 15px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--grey);
}
.card-list {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-card);
  font-size: 14.5px;
  color: var(--body);
}
.card-list li {
  position: relative;
  padding-inline-start: 16px;
  padding-block: 3.5px;
}
.card-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0; top: 14px;
  width: 6px; height: 1.5px;
  background: var(--red);
}

/* ============================================================
   WHY  (ink section — the page's dark beat)
   ============================================================ */
.section-ink {
  background: var(--ink);
  color: var(--paper);
}
.section-ink .section-title { color: var(--paper); }
.section-ink .section-lead  { color: #A9ABAF; }
.section-ink .label         { color: #6C6F72; }

.grid-why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: #2A2C2E;
  border: 1px solid #2A2C2E;
}
.why-item {
  background: var(--ink);
  padding: 36px 30px 34px;
  transition: background .3s var(--ease);
}
.why-item:hover { background: #212325; }
.why-item h3 {
  position: relative;
  padding-top: 20px;
  font-family: var(--serif);
  font-weight: 900;
  font-stretch: 70%;
  font-size: 22px;
  line-height: 1.2;
  color: var(--paper);
}
.why-item h3::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 26px; height: 3px;
  background: var(--red);
}
.why-item p {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.78;
  color: #9DA0A4;
}

/* ============================================================
   PROCESS
   ============================================================ */
.steps {
  display: grid;
  /* four across on desktop — an orphaned 4th step on its own row looks broken */
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 38px);
  counter-reset: step;
}
@media (max-width: 1040px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .steps { grid-template-columns: 1fr; } }
.steps li {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid var(--ink);
}
.step-num {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--red);
}
.steps h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 900;
  font-stretch: 70%;
  font-size: 23px;
  line-height: 1.18;
}
.steps p {
  margin-top: 13px;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--grey);
}

/* ============================================================
   FAQ
   Native <details> — no JS, keyboard-accessible for free, and the
   answers stay in the DOM so crawlers read them even when collapsed.
   ============================================================ */
.section-faq { border-top: 1px solid var(--line); }

.faq { border-top: 1px solid var(--ink); }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0 26px 44px;   /* room for the marker on the inline-end side */
  position: relative;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary h3 {
  display: inline;
  font-family: var(--serif);
  font-weight: 900;
  font-stretch: 70%;
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.3;
  color: var(--ink);
}
.faq summary:hover h3 { color: var(--red); }

/* the +/− marker, drawn as two rules so it stays on-brand */
.faq summary::before,
.faq summary::after {
  content: '';
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  background: var(--red);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq summary::before {
  width: 15px; height: 2px;
  transform: translateY(-50%);
}
/* Both pseudo-elements anchor to the same inline-end edge, so the vertical
   bar must move +((15-2)/2)px to sit centred on the horizontal one. translate
   is physical, not logical — a negative value pushes it clear of the bar and
   the closed state reads as "|—" instead of "+". */
.faq summary::after {
  width: 2px; height: 15px;
  transform: translate(6.5px, -50%);
}
.faq details[open] summary::after {
  opacity: 0;
  transform: translate(6.5px, -50%) rotate(90deg);
}

.faq details p {
  padding: 0 0 28px 44px;
  margin: 0;
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.82;
  color: var(--grey);
}

@media (prefers-reduced-motion: reduce) {
  .faq summary, .faq summary::before, .faq summary::after { transition: none; }
}

@media (max-width: 560px) {
  .faq summary { padding: 22px 0 22px 36px; }
  .faq details p { padding: 0 0 24px 0; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(234,230,223,.32) 0%, rgba(251,250,247,0) 340px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 86px);
  align-items: start;
}

.contact-aside .section-title { margin-top: 18px; }

.contact-details {
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
}
.contact-details dt {
  font-family: var(--label);
  font-size: 10.5px;
  letter-spacing: .18em;
  padding-inline-start: .18em;
  color: var(--muted);
  margin-bottom: 7px;
}
.contact-details dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}
.contact-details a { border-bottom: 1px solid #D9D5CD; transition: border-color .2s, color .2s; }
.contact-details a:hover { color: var(--red); border-bottom-color: var(--red); }
.contact-details .closed { color: var(--muted); font-size: 15px; }

.whatsapp {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  color: var(--grey);
  transition: color .2s;
}
.whatsapp svg { width: 21px; height: 21px; fill: #25A34B; flex: none; }
.whatsapp:hover { color: var(--ink); }

/* ---------- form ---------- */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--line-card);
  padding: clamp(28px, 3.6vw, 44px);
}

.field { margin-bottom: 20px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form label {
  display: block;
  font-family: var(--label);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .15em;
  padding-inline-start: .15em;
  color: var(--grey);
  margin-bottom: 9px;
}
.req { color: var(--red); }

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--paper);
  border: 1px solid #E3DFD8;
  border-radius: 2px;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color .2s var(--ease), background .2s var(--ease);
  appearance: none;
}
.form textarea { resize: vertical; min-height: 116px; }
.form input::placeholder,
.form textarea::placeholder { color: #B4B6B9; }

.form input:hover,
.form select:hover,
.form textarea:hover { border-color: #CFCAC1; }

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--ink);
}

.form input[aria-invalid="true"],
.form textarea[aria-invalid="true"] { border-color: var(--red); }

.select-wrap { position: relative; }
.select-wrap svg {
  position: absolute;
  inset-inline-start: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px; height: 19px;
  fill: var(--grey);
  pointer-events: none;
}
.form select { padding-inline-start: 40px; cursor: pointer; }

/* honeypot — visually gone, still reachable to bots */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form .btn-block { margin-top: 6px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.form-note {
  margin-top: 15px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.form-status {
  margin-top: 16px;
  padding: 13px 16px;
  font-size: 15px;
  line-height: 1.65;
  border-inline-start: 3px solid transparent;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok   { background: #F1F6F1; border-inline-start-color: #3E8E4E; color: #24552F; }
.form-status.err  { background: #FCF2F0; border-inline-start-color: var(--red);  color: #8C2412; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 52px 44px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 32px;
}
.lockup-footer .lockup-word { font-size: 27px; }
.lockup-footer .lockup-rule { height: 2.5px; }
.lockup-footer .lockup-desc { font-size: 7px; }

.footer-meta {
  margin-inline-start: auto;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--grey);
  text-align: end;
}
.footer-meta a { transition: color .2s; }
.footer-meta a:hover { color: var(--red); }
.sep { color: var(--muted); margin-inline: 7px; }

.footer-copy {
  width: 100%;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }
.reveal[data-delay="5"] { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .underline::after { animation: none; transform: scaleX(1); }
  .btn, .card, .why-item, .nav a::after { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: 1fr; gap: 18px; }
  .hero-strip li { display: flex; align-items: baseline; gap: 10px; }
  .hero-strip span { margin-bottom: 0; font-size: 19px; }
}

@media (max-width: 820px) {
  .nav, .header-cta { display: none; }
  .burger { display: grid; }
  /* :not([hidden]) matters — a bare `display:flex` here is author CSS and
     beats the UA stylesheet's [hidden]{display:none}, which would leave the
     menu permanently open on phones. */
  .mobile-nav:not([hidden]) { display: flex; }
  .header-inner { height: 70px; gap: 16px; }
  .lockup-word { font-size: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { margin-inline-start: 0; text-align: start; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .card { padding: 34px 26px 32px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { width: 100%; }
  .steps { gap: 34px; }
}

/* ============================================================
   PRINT — it is a print shop, after all
   ============================================================ */
@media print {
  .site-header, .mobile-nav, .hero-mark, .contact-form-wrap,
  .hero-actions, .whatsapp, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section { padding-block: 22pt; }
  .section-ink { background: #fff; color: #000; }
  .section-ink .section-title, .why-item h3 { color: #000; }
  .why-item p, .section-ink .section-lead { color: #333; }
  a[href^="tel"]::after, a[href^="mailto"]::after { content: ""; }
}
