/* רושם ראשון — site styles. Mobile-first, RTL, WCAG 2.0 AA / IS 5568 */

@font-face {
  font-family: "Heebo";
  src: url("../fonts/Heebo-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Assistant";
  src: url("../fonts/Assistant-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("../fonts/FrankRuhlLibre-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1c1814;
  --cream: #f7f1e8;
  --paper: #fffdf9;
  --clay: #8a3b16;
  --clay-dark: #6e2e10;
  --muted: #4a453f;
  --sand: #e8dfd2;
  --line: #d9cfc0;
  --focus: #8a3b16;
  --ok: #215c3a;
  --max: 70rem;
  --text: 1.125rem;
  --leading: 1.7;
  --radius: 0.75rem;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}

html.a11y-pause,
html.a11y-pause * {
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html.a11y-pause *,
html.a11y-pause *::before,
html.a11y-pause *::after {
  animation: none !important;
  transition: none !important;
}

html.a11y-text-lg { font-size: 118.75%; }
html.a11y-text-xl { font-size: 137.5%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Assistant, "Segoe UI", "Arial Hebrew", Arial, sans-serif;
  font-size: var(--text);
  line-height: var(--leading);
  min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; }
img { display: block; }

a {
  color: var(--clay);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}
a:hover { color: var(--clay-dark); }

html.a11y-underline a { text-decoration: underline; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: -4rem;
  z-index: 2000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 0 0 0.4rem 0.4rem;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus {
  top: 0;
  color: var(--paper);
  outline-color: var(--paper);
}

.wrap {
  width: min(100% - 1.75rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: Heebo, Assistant, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  margin-inline-end: auto;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
}
.logo-dot { color: var(--clay); }

.nav-toggle,
.a11y-open {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"],
.a11y-open[aria-expanded="true"] {
  border-color: var(--ink);
}

.site-nav {
  display: none;
}
.site-nav.is-open {
  display: block;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0 1rem;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(100% - 1.75rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 0.45rem 0.2rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--clay); }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    border: 0;
    padding: 0;
    margin-inline-end: 0.4rem;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.15rem;
    width: auto;
    margin: 0;
  }
  .site-nav a { padding: 0.2rem 0; }
}

/* Accessibility toolbar */
.a11y-panel {
  display: none;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0 1.1rem;
}
.a11y-panel.is-open { display: block; }
.a11y-panel h2 {
  font-family: Heebo, sans-serif;
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
}
.a11y-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.a11y-grid button {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
}
.a11y-grid button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* High contrast mode */
html.a11y-contrast {
  --ink: #000000;
  --cream: #ffffff;
  --paper: #ffffff;
  --clay: #000000;
  --clay-dark: #000000;
  --muted: #000000;
  --sand: #ffffff;
  --line: #000000;
  --focus: #000000;
  --ok: #000000;
}
html.a11y-contrast body { background: #fff; color: #000; }
html.a11y-contrast a { color: #000; text-decoration: underline; }
html.a11y-contrast .site-header,
html.a11y-contrast .a11y-panel,
html.a11y-contrast .card,
html.a11y-contrast .price-card,
html.a11y-contrast .faq details,
html.a11y-contrast .contact-box,
html.a11y-contrast .demo-banner,
html.a11y-contrast footer {
  background: #fff;
  border-color: #000;
}
html.a11y-contrast .btn,
html.a11y-contrast .btn-primary {
  background: #000;
  color: #fff;
  border-color: #000;
}
html.a11y-contrast .btn-ghost,
html.a11y-contrast .btn-secondary {
  background: #fff;
  color: #000;
  border-color: #000;
}
html.a11y-contrast .hero,
html.a11y-contrast .band { background: #fff; }
html.a11y-contrast .logo-dot { color: #000; }
html.a11y-contrast :focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* Hero */
.hero {
  padding: 2.4rem 0 2.6rem;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, #ead9c8 0%, transparent 55%),
    var(--cream);
}
.hero h1 {
  font-family: Heebo, sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0 0 0.8rem;
  max-width: 16ch;
}
.hero .lede {
  font-size: 1.2rem;
  max-width: 38rem;
  margin: 0 0 1.4rem;
  color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 700;
  font-family: Heebo, Assistant, sans-serif;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  border: 2px solid var(--ink);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: #000; color: var(--paper); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn-secondary:hover { background: var(--sand); color: var(--ink); }
.btn-clay {
  background: var(--clay);
  color: var(--paper);
  border-color: var(--clay);
}
.btn-clay:hover { background: var(--clay-dark); color: var(--paper); border-color: var(--clay-dark); }
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
}

.placeholder-note {
  font-size: 0.95rem;
  color: var(--muted);
  border-right: 3px solid var(--clay);
  padding: 0.4rem 0.8rem;
  background: var(--sand);
  border-radius: 0 0.4rem 0.4rem 0;
  margin: 0.8rem 0;
}

/* Sections */
section { padding: 2.4rem 0; }
section h2 {
  font-family: Heebo, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}
.section-intro {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}
.band { background: var(--paper); border-block: 1px solid var(--line); }

.cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) {
  .cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

.card, .price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
}
.card h3, .price-card h3 {
  font-family: Heebo, sans-serif;
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.card p, .price-card p { margin: 0 0 0.7rem; }
.card ul, .price-card ul { margin: 0 0 1rem; padding: 0 1.1rem 0 0; }
.kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--clay);
  margin-bottom: 0.25rem;
}

.price {
  font-family: Heebo, sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin: 0.2rem 0 0.6rem;
  line-height: 1.2;
}
.price span {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}
.thumb-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
}
.thumb-card:hover { border-color: var(--ink); color: var(--ink); }
.thumb {
  aspect-ratio: 16/10;
  display: flex;
  align-items: flex-end;
  padding: 0.9rem;
  color: #fff;
  font-family: Heebo, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.thumb-elec { background: linear-gradient(160deg, #2a3138, #1a1f24); color: #f4f1ea; }
.thumb-salon { background: linear-gradient(160deg, #8a4d5c, #3f1f28); color: #f8f1ee; }
.thumb-tutor { background: linear-gradient(160deg, #1c5a5a, #14343a); color: #f3f6f4; }
.thumb-card .meta { padding: 0.9rem 1rem 1.1rem; }
.thumb-card .meta p { margin: 0; color: var(--muted); font-size: 1rem; }
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  margin-bottom: 0.35rem;
}

.posts-row {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 700px) { .posts-row { grid-template-columns: 1fr 1fr; } }

.post-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
}
.post-frame a { text-decoration: none; color: inherit; }
.post-square { overflow: hidden; border-radius: 0.4rem; }

/* Process */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.2rem;
}
.band .step { background: var(--paper); }
.step h3 {
  font-family: Heebo, sans-serif;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.step h3::before {
  counter-increment: step;
  content: counter(step) ".";
  color: var(--clay);
  margin-inline-end: 0.35rem;
}

/* FAQ */
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.2rem 0.9rem;
  margin-bottom: 0.55rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: Heebo, Assistant, sans-serif;
  padding: 0.7rem 0;
}
.faq details p { margin: 0 0 0.85rem; }

/* Contact */
.contact-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
form { display: grid; gap: 0.75rem; }
label { font-weight: 700; display: block; margin-bottom: 0.25rem; }
input, textarea, select {
  width: 100%;
  font: inherit;
  color: #1c1814;
  background: #fffdf9;
  border: 1px solid #4a453f;
  border-radius: 0.45rem;
  padding: 0.55rem 0.7rem;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--ink);
}
.form-status[hidden] { display: none; }
.form-status {
  background: var(--sand);
  border-right: 3px solid var(--ok);
  padding: 0.6rem 0.8rem;
  border-radius: 0 0.4rem 0.4rem 0;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  color: var(--muted);
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin: 0 0 0.7rem;
  padding: 0;
  list-style: none;
}
.footer-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; color: var(--clay); }

.legal-page h1 {
  font-family: Heebo, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.legal-page h2 {
  font-size: 1.25rem;
  margin: 1.6rem 0 0.4rem;
}
.legal-page { padding: 2rem 0 3rem; }
.legal-page .wrap { max-width: 46rem; }

.demo-banner {
  background: #1c1814;
  color: #fffdf9;
  text-align: center;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.demo-banner a { color: #fffdf9; }

/* CV documents */
.cv-paper {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 1.4rem 1.2rem;
  max-width: 50rem;
  margin: 0 auto 2rem;
  box-shadow: 0 1px 0 rgba(28,24,20,0.04);
}
.cv-before { font-size: 1rem; line-height: 1.55; }
.cv-after { font-size: 1.05rem; }
.cv-after h1 {
  font-family: Heebo, sans-serif;
  font-size: 1.8rem;
  margin: 0 0 0.15rem;
  letter-spacing: -0.03em;
}
.cv-after .role { color: var(--clay); font-weight: 700; margin: 0 0 0.35rem; }
.cv-after h2 {
  font-family: Heebo, sans-serif;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
  margin: 1.1rem 0 0.4rem;
  padding-bottom: 0.15rem;
}
.cv-meta { color: var(--muted); margin: 0 0 0.8rem; }

html.a11y-contrast .demo-banner {
  background: #000;
  color: #fff;
  border-bottom: 2px solid #000;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

input::placeholder, textarea::placeholder, select::placeholder {
  color: #4a453f;
  opacity: 1;
}

.btn-whatsapp-header {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: Heebo, Assistant, sans-serif;
  color: var(--paper);
  background: var(--clay);
  border: 1px solid var(--clay);
  border-radius: 0.5rem;
  padding: 0.4rem 0.7rem;
}
.btn-whatsapp-header:hover { background: var(--clay-dark); color: var(--paper); border-color: var(--clay-dark); }
html.a11y-contrast .btn-whatsapp-header {
  background: #000;
  color: #fff;
  border-color: #000;
}

@media (max-width: 480px) {
  .header-inner { gap: 0.4rem; }
  .btn-whatsapp-header,
  .nav-toggle,
  .a11y-open { padding: 0.35rem 0.5rem; font-size: 0.85rem; }
  .logo { font-size: 1rem; gap: 0.35rem; }
}

/* Offset in-page anchors for the sticky header */
#services, #pricing, #portfolio, #process, #contact {
  scroll-margin-top: 5rem;
}
