/* ============================================================
   ADI FRYDMAN, portfolio
   ספר מותג: Rubik, פסטל רגוע בהשראת ים וטבע, ירוק-ים עמוק לאקסנט
   ============================================================ */

:root {
  /* ---- צבעי המותג (כאן מחליפים אם צריך לעדכן גוון) ---- */
  --sea: #1F4E4A;          /* ירוק-ים עמוק: רקע ראשי וטקסט */
  --sea-deep: #163B38;
  --sea-soft: #2E6560;
  --foam: #DCEDE6;         /* מנטה-קצף */
  --sand: #F7F1E8;         /* חול בהיר */
  --sky: #D3E6EE;          /* תכלת פסטל */
  --blush: #F1D8C9;        /* אפרסק פסטל */
  --white: #FFFFFF;
  --ink: #173432;

  /* שמות ישנים שעמוד הצהרת הנגישות עדיין משתמש בהם */
  --honey: var(--blush);
  --peach: var(--foam);
  --amber: var(--blush);
  --cream-dim: rgba(247, 241, 232, 0.85);

  --font: 'Rubik', system-ui, sans-serif;
  --script: 'Allura', cursive;
  --font-scale: 1;
  --radius: 22px;
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
  font-size: calc(100% * var(--font-scale));
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.7;
  background: var(--sea);
  color: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blush); outline-offset: 3px; }

.skip-link {
  position: absolute; top: -60px; right: 16px; z-index: 300;
  background: var(--blush); color: var(--ink);
  padding: 10px 18px; border-radius: 0 0 12px 12px;
  font-weight: 500; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ======================= ניווט ======================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled {
  background: rgba(22, 59, 56, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
}
.nav nav {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 32px);
}
.nav-logo {
  font-weight: 800; letter-spacing: .18em; text-decoration: none;
  font-size: 1rem; color: var(--sand);
}
.nav-menu { display: flex; gap: clamp(14px, 2.4vw, 30px); align-items: center; }
.nav-menu a {
  text-decoration: none; font-size: .95rem; color: var(--sand);
  opacity: .85; transition: opacity .2s;
}
.nav-menu a:hover { opacity: 1; }
.nav-cta {
  background: var(--blush); color: var(--ink) !important; opacity: 1 !important;
  padding: 8px 18px; border-radius: 999px; font-weight: 500;
}
.nav-burger {
  display: none; background: none; border: 0; width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 6px; align-items: center;
}
.nav-burger span { width: 24px; height: 2px; background: var(--sand); border-radius: 2px; }

@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; inset-inline: 12px;
    flex-direction: column; gap: 4px; padding: 14px;
    background: var(--sea-deep); border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: .25s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu li { width: 100%; text-align: center; }
  .nav-menu a { display: block; padding: 10px; }
}

/* ======================= כפתורים ======================= */
.btn {
  display: inline-block; text-decoration: none; border-radius: 999px;
  padding: 13px 30px; font-weight: 500; font-size: 1rem;
  border: 2px solid transparent; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blush); color: var(--ink); }
.btn-primary:hover { background: var(--white); }
.btn-ghost { border-color: rgba(247,241,232,.6); color: var(--sand); }
.btn-ghost:hover { background: rgba(247,241,232,.1); }

/* ======================= כותרות אזורים ======================= */
section { padding: clamp(70px, 10vw, 120px) clamp(18px, 4vw, 32px); position: relative; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-kicker {
  font-family: var(--script); font-size: clamp(1.9rem, 4vw, 2.4rem);
  line-height: 1; margin-bottom: 4px; color: var(--blush);
}
.section-title {
  font-weight: 700; font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  line-height: 1.2; letter-spacing: -.01em;
}
.section-sub { margin-top: 14px; font-size: 1.08rem; opacity: .85; font-weight: 300; }

/* ======================= פתיח ======================= */
.hero {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(211,230,238,.12), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(241,216,201,.10), transparent 55%),
    var(--sea);
  overflow: hidden;
  border-bottom: 1px solid rgba(247,241,232,.15);
}
.hero-inner { position: relative; z-index: 2; max-width: 980px; }
.hero-title { display: flex; flex-direction: column; align-items: center; }
.hero-big {
  font-weight: 800; color: var(--foam);
  font-size: clamp(3.2rem, 13vw, 9.5rem);
  line-height: .9; letter-spacing: .02em;
}
.hero-script {
  font-family: var(--script); font-weight: 400;
  color: var(--blush); font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1; margin-top: -.25em; transform: rotate(-3deg);
  text-shadow: 0 2px 18px rgba(0,0,0,.2);
}
.hero-welcome {
  margin-top: clamp(28px, 5vw, 46px);
  font-size: clamp(1.4rem, 3.6vw, 2.1rem); font-weight: 700; color: var(--sand);
}
.hero-sub { margin-top: 6px; font-size: clamp(1.05rem, 2.4vw, 1.25rem); font-weight: 300; opacity: .9; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.leaf {
  position: absolute; width: clamp(90px, 14vw, 170px); height: auto;
  fill: none; stroke: var(--foam); stroke-width: 1.4; opacity: .55;
}
.leaf path:last-child { fill: rgba(220,237,230,.15); }
.leaf-a { top: 16%; left: 5%; transform: rotate(-20deg); }
.leaf-b { bottom: 12%; right: 5%; transform: rotate(160deg); }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(247,241,232,.6); border-radius: 14px;
}
.hero-scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--sand); border-radius: 2px; animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ======================= נעים להכיר ======================= */
.about { background: var(--sand); color: var(--ink); }
.about-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 70px); align-items: center;
}
.about-photo {
  width: clamp(200px, 26vw, 300px); aspect-ratio: 1; border-radius: 50%;
  background: var(--foam); position: relative; overflow: hidden;
  box-shadow: 0 0 0 10px var(--white), 0 0 0 12px var(--sea-soft), 0 24px 50px rgba(31,78,74,.25);
  display: grid; place-items: center;
}
.about-initials {
  font-weight: 800; font-size: clamp(3rem, 7vw, 4.6rem); color: var(--sea); letter-spacing: .06em;
}
.about-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.about-photo.has-photo .about-img { opacity: 1; }
.about-photo.has-photo .about-initials { visibility: hidden; }

.about-hey { font-family: var(--script); font-size: 2.4rem; line-height: 1; color: var(--sea-soft); }
.about .section-title { color: var(--sea); margin-bottom: 18px; }
.about-text { font-size: 1.08rem; margin-bottom: 14px; color: #2d4644; }
.about-points { margin-top: 22px; display: grid; gap: 12px; }
.about-points li {
  background: var(--white); border-radius: 16px; padding: 14px 18px;
  border-inline-start: 4px solid var(--sea-soft); font-size: 1rem;
}
.about-points strong { color: var(--sea); font-weight: 700; }

@media (max-width: 760px) {
  .about-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about-points li { text-align: right; }
}

/* ======================= רילס בטלפונים ======================= */
.reels { background: var(--sea); }
.phones {
  max-width: 1000px; margin: 0 auto;
  /* flex ולא grid: כשהשורה האחרונה לא מלאה, הטלפונים יוצאים ממורכזים */
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(18px, 3.5vw, 40px);
}
.phone { flex: 0 0 calc((100% - 2 * clamp(18px, 3.5vw, 40px)) / 3); }
.phones .phone-btn {
  width: 100%; background: none; border: 0; color: inherit; text-align: center;
  box-shadow: none; border-radius: 0; overflow: visible;
  transition: transform .3s;
}
.phone-screen {
  position: relative; display: block; aspect-ratio: 9 / 18;
  border-radius: 34px; overflow: hidden;
  background: #0d1716;
  border: 9px solid #101413;
  box-shadow: 0 0 0 2px #2b3533, 0 24px 50px rgba(0,0,0,.35);
}
.phone-screen img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.phone-btn:hover .phone-screen img { transform: scale(1.05); }
.phone-notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 18px; background: #101413; border-radius: 999px; z-index: 2;
}
.phone-play {
  position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: rgba(247,241,232,.88);
  box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .25s, background .25s;
}
.phone-play::after {
  content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--sea);
}
.phone-btn:hover .phone-play { transform: scale(1.1); background: var(--blush); }
.phone-ui {
  position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 10px; color: var(--blush);
}
.phone-ui i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); position: relative; }
.phone-ui i::after { content: ''; position: absolute; inset: 0 40% 0 0; background: var(--white); border-radius: 4px; }
.phone-ui b { font-weight: 400; font-size: 1.1rem; line-height: 1; }
.phone-label { display: block; margin-top: 16px; }
.phone-label .card-tag { display: block; font-size: .85rem; opacity: .75; }
.phone-label .card-name { display: block; font-weight: 700; font-size: 1.1rem; }

@media (max-width: 760px) {
  .phone { flex-basis: calc((100% - clamp(18px, 3.5vw, 40px)) / 2); }
  .phone-screen { border-width: 7px; border-radius: 26px; }
  .phone-play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
}

/* ======================= עוד עבודות ======================= */
.work { background: var(--foam); color: var(--ink); }
.work .section-kicker { color: var(--sea-soft); }
.work .section-title { color: var(--sea); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter {
  border: 2px solid var(--sea); background: transparent; color: var(--sea);
  padding: 8px 20px; border-radius: 999px; font-weight: 500; transition: .2s;
}
.filter:hover { background: rgba(31,78,74,.08); }
.filter.is-active { background: var(--sea); color: var(--sand); }

.grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
.card.is-hidden { display: none; }
.card-btn {
  width: 100%; text-align: right; background: var(--white); border: 0; color: inherit;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px rgba(31,78,74,.12);
  transition: transform .3s, box-shadow .3s;
}
.card .card-btn:hover { box-shadow: 0 20px 44px rgba(31,78,74,.22); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card-btn:hover .card-media img { transform: scale(1.05); }
.card-play {
  position: absolute; bottom: 14px; left: 14px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(247,241,232,.92);
}
.card-play::after {
  content: ''; position: absolute; top: 50%; left: 55%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--sea);
}
.card-body { display: block; padding: 16px 20px 20px; }
.card .card-tag { display: block; font-size: .85rem; color: var(--sea-soft); }
.card .card-name { display: block; font-weight: 700; font-size: 1.15rem; color: var(--sea); unicode-bidi: plaintext; }

/* ======================= לבעלי עסקים ======================= */
.business { background: var(--sand); color: var(--ink); }
.business .section-kicker { color: var(--sea-soft); }
.business .section-title { color: var(--sea); }
.steps {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 22px;
}
.step {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: 0 10px 30px rgba(31,78,74,.08); position: relative;
}
.step-num {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--sky); color: var(--sea); font-weight: 800; font-size: 1.3rem; margin-bottom: 16px;
}
.step:nth-child(2) .step-num { background: var(--foam); }
.step:nth-child(3) .step-num { background: var(--blush); }
.step h3 { font-weight: 700; font-size: 1.3rem; color: var(--sea); margin-bottom: 6px; }
.step p { color: #3c5452; }

/* ======================= צור קשר ======================= */
.contact { background: var(--sea); }
.contact-title { font-size: clamp(2.4rem, 7vw, 4.2rem); color: var(--foam); }
.contact-form {
  max-width: 720px; margin: 0 auto; display: grid; gap: 16px;
  background: rgba(247,241,232,.06); border: 1px solid rgba(247,241,232,.15);
  border-radius: 28px; padding: clamp(22px, 4vw, 38px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: grid; gap: 6px; }
.form-field label { font-size: .95rem; }
.form-field input, .form-field textarea {
  font: inherit; color: var(--ink); background: var(--sand);
  border: 2px solid transparent; border-radius: 14px; padding: 12px 14px; width: 100%;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--blush); }
.btn-submit { justify-self: start; border: 0; }
.btn-submit:disabled { opacity: .6; cursor: wait; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-status { min-height: 1.4em; font-size: .95rem; }
.form-status.ok { color: var(--foam); }
.form-status.err { color: var(--blush); }

.contact-alt { text-align: center; margin-top: 40px; }
.contact-alt-label { opacity: .8; margin-bottom: 14px; }
.social-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 10px 20px; border-radius: 999px; background: rgba(247,241,232,.1);
  transition: background .2s;
}
.social-link:hover { background: rgba(247,241,232,.2); }

/* ======================= תחתית ======================= */
.footer {
  background: var(--sea-deep); text-align: center; padding: 50px 20px 40px;
  display: grid; gap: 10px; justify-items: center;
}
.footer-logo { font-family: var(--script); font-size: 2.6rem; line-height: 1; color: var(--foam); }
.footer-tag { opacity: .8; }
.footer nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: .92rem; }
.footer nav a { text-decoration: none; opacity: .85; }
.footer nav a:hover { opacity: 1; text-decoration: underline; }
.footer-copy { font-size: .85rem; opacity: .6; }

/* ======================= הופעה בגלילה ======================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ======================= נגן וידאו ======================= */
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(10,26,24,.88); }
.lightbox-panel { position: relative; width: min(960px, 100%); }
.lightbox-frame { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox.is-vertical .lightbox-panel { width: min(400px, 100%, calc((100svh - 120px) * 9 / 16)); }
.lightbox.is-vertical .lightbox-frame { aspect-ratio: 9 / 16; }
.lightbox-caption { text-align: center; margin-top: 12px; font-weight: 500; }
.lightbox-close {
  position: absolute; top: -50px; left: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--sand); color: var(--ink); font-size: 1.1rem;
}
.lightbox-close:hover { background: var(--blush); }

/* ======================= תפריט נגישות ======================= */
.a11y { position: fixed; bottom: 18px; left: 18px; z-index: 350; }
.a11y-toggle {
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--blush); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: transform .2s;
}
.a11y-toggle:hover { transform: scale(1.08); }
.a11y-panel {
  position: absolute; bottom: 64px; left: 0; width: 250px;
  background: var(--sand); color: var(--ink); border-radius: 18px; padding: 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,.3); display: grid; gap: 8px;
}
.a11y-panel[hidden] { display: none; }
.a11y-title { font-size: 1.2rem; font-weight: 700; color: var(--sea); }
.a11y-group { display: grid; gap: 8px; }
.a11y-label { font-size: .95rem; }
.a11y-font-btns { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.a11y-font-btns button {
  width: 44px; height: 36px; border-radius: 10px; border: 2px solid var(--sea); background: none; color: var(--sea); font-weight: 700;
}
#a11y-font-val { min-width: 52px; text-align: center; font-weight: 600; }
.a11y-opt, .a11y-reset {
  text-align: right; padding: 9px 12px; border-radius: 10px;
  border: 2px solid rgba(31,78,74,.25); background: var(--white); color: var(--ink);
}
.a11y-opt:hover { border-color: var(--sea); }
.a11y-opt[aria-pressed="true"] { background: var(--sea); color: var(--sand); border-color: var(--sea); }
.a11y-reset { background: none; text-align: center; }
.a11y-statement { text-align: center; font-size: .9rem; color: var(--sea); }

html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.a11y-motion .reveal { opacity: 1; transform: none; }
html.a11y-motion .card-btn { transform: none !important; }

html.a11y-contrast body,
html.a11y-contrast .hero, html.a11y-contrast .about, html.a11y-contrast .reels,
html.a11y-contrast .work, html.a11y-contrast .business, html.a11y-contrast .contact,
html.a11y-contrast .footer, html.a11y-contrast .card-btn, html.a11y-contrast .step,
html.a11y-contrast .about-points li { background: #000 !important; color: #fff !important; }
html.a11y-contrast .section-title, html.a11y-contrast .hero-big, html.a11y-contrast .card-name,
html.a11y-contrast .step h3, html.a11y-contrast .about-points strong { color: #ffe95e !important; }
html.a11y-contrast .about-text, html.a11y-contrast .step p, html.a11y-contrast .card-tag { color: #fff !important; }
html.a11y-contrast .leaf { display: none; }
html.a11y-contrast .btn-primary, html.a11y-contrast .filter.is-active { background: #ffe95e; color: #000; }
html.a11y-contrast .filter { border-color: #fff; color: #fff; }

html.a11y-grayscale body { filter: grayscale(1); }
html.a11y-links a { text-decoration: underline !important; outline: 2px dashed currentColor; outline-offset: 2px; }
html.a11y-font body, html.a11y-font .hero-script, html.a11y-font .section-kicker,
html.a11y-font .about-hey, html.a11y-font .footer-logo { font-family: Arial, sans-serif !important; letter-spacing: .02em; }
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 10-7 1 4 8-3 1-4-8-6 5z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important;
}

/* עמוד הצהרת נגישות */
.statement { color: var(--sand); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
