/* בר תורג׳מן גוהר, קלינאית תקשורת: אתר הדגמה
   Palette: morning sky + swallow blue + a touch of honey.
   Type: Fredoka (headings, soft and friendly) + Assistant (body). */

:root {
  --sky: #EEF3F6;
  --sky-2: #E2ECF2;
  --paper: #FFFFFF;
  --ink: #1B2A38;
  --muted: #475868;
  --swallow: #1D4B68;
  --swallow-deep: #143850;
  --honey: #F3C766;
  --honey-soft: #FCEFCB;
  --star: #D99A1E;
  --line: #CBD9E2;
  --field: #6F8497;
  --error: #A3261B;
  --radius-lg: 28px;
  --radius-md: 16px;
  --font-head: "Fredoka", "Assistant", "Arial Hebrew", sans-serif;
  --font-body: "Assistant", "Arial Hebrew", Arial, sans-serif;
  --wrap: 1140px;
}

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

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

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
}

img, svg { display: block; }
a { color: var(--swallow); text-underline-offset: 3px; }
a:hover { color: var(--swallow-deep); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--swallow); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

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

:focus-visible { outline: 3px solid var(--swallow); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
  background: var(--swallow); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Demo notice */
.demo-banner {
  background: var(--honey-soft);
  color: var(--ink);
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  padding: 8px 16px;
  margin: 0;
}

/* Placeholders: visibly "to be filled" */
.placeholder {
  color: #4F6275;
  border-bottom: 1.5px dashed #93A8B8;
  font-size: .95em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 1.1rem; }
.btn-primary { background: var(--swallow); color: #fff; }
.btn-primary:hover { background: var(--swallow-deep); color: #fff; }
.btn-quiet { background: var(--paper); color: var(--swallow); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--swallow); color: var(--swallow-deep); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%; background: var(--sky-2); color: var(--swallow);
  display: grid; place-items: center; flex: none;
}
.brand-mark svg { width: 32px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--swallow); }
.brand-sub { font-size: .92rem; color: var(--muted); }

.header-end { display: flex; align-items: center; gap: 18px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: 1rem;
}
.site-nav a:hover { background: var(--sky); color: var(--swallow); }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  background: var(--paper); color: var(--swallow); border: 2px solid var(--line); border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Hero */
.hero { position: relative; padding-bottom: clamp(56px, 8vw, 96px); overflow: hidden; }
.flight { width: 100%; height: auto; margin-bottom: -24px; }
.flight-trail {
  fill: none; stroke: var(--swallow); stroke-opacity: .5; stroke-width: 2.6;
  stroke-linecap: round; stroke-dasharray: 1 11;
}
.flight-mask { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; }
.flight-bird { color: var(--swallow); }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: end;
}
.hero h1 { margin: 0 0 22px; }
.h1-who {
  display: block; font-family: var(--font-body); font-weight: 700; font-size: 1.15rem;
  color: var(--muted); margin-bottom: 14px;
}
.h1-line {
  display: block; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.08; color: var(--swallow);
  letter-spacing: -.005em;
}
.hero-lead { font-size: 1.22rem; max-width: 36em; color: var(--ink); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.clinic-card {
  background: var(--paper); border-radius: var(--radius-lg); padding: 26px 26px 22px;
  border: 1px solid var(--line);
}
.rating {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "score stars" "text text";
  align-items: center; column-gap: 14px; row-gap: 4px; text-decoration: none; color: var(--ink);
  padding-bottom: 12px;
}
.rating-score { grid-area: score; font-family: var(--font-head); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--swallow); }
.rating-stars { grid-area: stars; display: flex; gap: 3px; color: var(--star); }
.rating-stars svg { width: 22px; height: 22px; }
.rating-text { grid-area: text; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.rating:hover .rating-text { text-decoration-color: var(--swallow); }
.rating-note { font-size: .88rem; color: var(--muted); margin: 0 0 16px; }
.card-facts { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.card-facts li { display: flex; gap: 10px; align-items: flex-start; }
.card-facts svg { width: 22px; height: 22px; color: var(--swallow); flex: none; margin-top: 4px; }
.card-facts .placeholder { display: inline-block; margin-top: 2px; }

/* Sections */
.section { padding-block: clamp(60px, 8vw, 104px); background: var(--paper); }
.section-tint { background: var(--sky); }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.portrait { margin: 0; }
.portrait-slot {
  aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: var(--sky); border: 2px dashed #9DB2C1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #4F6275; text-align: center; padding: 24px; font-weight: 600;
}
.portrait-slot svg { width: 80px; height: 50px; color: var(--swallow); opacity: .75; }
.about-copy .lead { font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.about-copy p { max-width: 38em; }
.about-facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.about-facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.about-facts dt { font-size: .92rem; color: var(--muted); font-weight: 600; }
.about-facts dd { margin: 2px 0 0; display: inline-block; }

/* Who */
.who-panel { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.who-note { max-width: 42em; font-size: 1.12rem; }
.slot-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.slot {
  border: 2px dashed #A7BAC8; border-radius: var(--radius-md); padding: 18px;
  display: flex; flex-direction: column; gap: 4px; min-height: 120px;
}
.slot-title { font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; color: var(--swallow); }
.slot-text { font-size: .98rem; color: #4F6275; }

/* Steps (a real sequence) */
.steps {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
}
.steps::before {
  content: ""; position: absolute; top: 27px; inset-inline: 12.5%; height: 3px;
  background-image: radial-gradient(circle, rgba(29, 75, 104, .45) 1.5px, transparent 1.8px);
  background-size: 12px 3px; background-repeat: repeat-x;
}
.step { position: relative; }
.step-num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: var(--honey); color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; margin: 0 auto 18px;
  box-shadow: 0 0 0 8px var(--paper);
}
.step h3 { text-align: center; }
.step p { text-align: center; color: var(--muted); margin: 0; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border-radius: var(--radius-md); border: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.12rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: var(--radius-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sky);
  color: var(--swallow); display: grid; place-items: center; font-family: var(--font-head); font-size: 1.4rem; line-height: 1;
}
.faq details[open] summary::after { content: "−"; background: var(--honey-soft); }
.faq-body { padding: 0 22px 18px; }
.faq-body p { margin: 0; max-width: 40em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-direct > p { color: var(--muted); font-size: 1.15rem; max-width: 30em; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 24px; height: 24px; color: var(--swallow); flex: none; margin-top: 4px; }
.contact-list strong { display: block; font-size: .92rem; color: var(--muted); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--sky); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-card { background: var(--sky); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.form-card h3 { font-size: 1.6rem; }
.form-intro { color: var(--muted); font-size: .98rem; }
.field { margin: 0 0 18px; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.req { font-weight: 400; color: var(--muted); font-size: .92rem; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--field); border-radius: 12px; padding: 11px 14px; min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--swallow); outline-offset: 2px; border-color: var(--swallow); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.hint { display: block; font-size: .92rem; color: var(--muted); margin-top: 6px; }
.error-msg { display: block; color: var(--error); font-weight: 700; font-size: .95rem; margin-top: 4px; }
.error-msg:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0 !important; font-weight: 600 !important; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  background: var(--paper); border: 1.5px solid var(--field); cursor: pointer;
}
.chip input:checked + span { background: var(--swallow); border-color: var(--swallow); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--swallow); outline-offset: 3px; }

.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 4px 0 0; flex: none; accent-color: var(--swallow); }
.check label { font-weight: 400; margin: 0; }

.form-status:empty { display: none; }
.form-status {
  margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-md);
  background: var(--paper); border-inline-start: 5px solid var(--honey);
}
.form-status strong { display: block; color: var(--swallow); font-size: 1.1rem; }

/* Footer */
.site-footer { background: var(--swallow-deep); color: #EAF1F5; padding-top: 56px; }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: var(--honey); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-name { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: #fff; }
.footer-name svg { width: 38px; height: 24px; color: var(--honey); }
.site-footer h2 { color: #fff; font-size: 1.15rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.disclaimer { font-size: .92rem; color: #C9D8E2; max-width: 34em; }
.site-footer .demo-banner { background: var(--honey-soft); color: var(--ink); }

/* Mobile quick bar */
.mobile-bar { display: none; }

/* Accessibility statement page */
.doc { max-width: 760px; padding-block: clamp(48px, 7vw, 88px); }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.45rem; margin-top: 1.6em; }
.doc ul { padding-inline-start: 1.2em; }
.doc li { margin-bottom: 6px; }
.back-link { display: inline-block; margin-top: 24px; font-weight: 700; }

/* Responsive */
@media (max-width: 1020px) {
  .site-nav a { padding: 8px 9px; }
  .header-call span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .header-call { padding: 10px 13px; }
  .slot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%; z-index: 20;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 10px; font-size: 1.08rem; }
  .site-header { position: relative; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 340px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 1.06rem; padding-bottom: 72px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.08rem; }
  .brand-sub { font-size: .85rem; }
  .header-call { display: none; }
  .flight { height: 96px; margin-bottom: -8px; }
  .hero-lead { font-size: 1.12rem; }
  .hero-actions .btn { width: 100%; }
  .about-facts { grid-template-columns: 1fr; }
  .slot-list { grid-template-columns: 1fr; }
  .slot { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start; }
  .step-num { margin: 0; grid-row: span 2; }
  .step h3, .step p { text-align: start; }
  .step h3 { margin: 10px 0 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
    background: var(--paper); border-top: 1px solid var(--line); padding: 8px 12px;
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px;
    border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--swallow);
    background: var(--sky);
  }
  .mobile-bar a svg { width: 20px; height: 20px; }
  .mobile-bar .mobile-bar-main { background: var(--swallow); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.section .doc { padding-block: 0; }
@media (max-width: 880px) {
  .portrait { max-width: 260px; }
  .clinic-card { max-width: 520px; }
}
