/* ─── אימפלנטס — style.css — v6.1 ─── */

:root {
  --navy: #152535;
  --navy-mid: #1E3448;
  --teal: #0FA89A;
  --teal-text: #0B7D72;
  --teal-light: #5EC4B6;
  --teal-bg: #EDF8F6;
  --white: #FFFFFF;
  --off-white: #F6F8FA;
  --text: #2A2F33;
  --text-mid: #555B62;
  --text-light: #7D8490;
  --border: #D8DDE3;
  --max-w: 820px;
  --max-w-wide: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Heebo', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  direction: rtl;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ─── Skip Link ─── */
.skip-link {
  position: absolute;
  top: -100%;
  right: 1rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 200;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ─── Focus ─── */
*:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ─── Typography ─── */
h1, h2, h3, h4 { line-height: 1.3; color: var(--navy); }
h1 { font-size: 2.4rem; font-weight: 900; }
h2 { font-size: 1.55rem; font-weight: 700; margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4em; }
p { margin-bottom: 1em; }
a { color: var(--teal-text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }

/* ─── Layout ─── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.wrap-wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 1.5rem; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
}
.header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.site-logo {
  font-family: 'Heebo', sans-serif;
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-logo .bar {
  display: inline-block;
  width: 3px;
  height: 24px;
  background: var(--teal);
  border-radius: 2px;
}
.nav-desktop { display: flex; gap: 1.8rem; }
.nav-desktop a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-desktop a:hover { color: var(--teal-light); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* Mobile nav - hidden by default, shown via JS on mobile */
.mobile-nav { display: none; }

/* ─── Hero ─── */
.hero {
  background: linear-gradient(175deg, var(--navy-mid) 0%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 1.5rem 3.5rem;
  border-bottom: 3px solid var(--teal);
}
.hero h1 {
  color: var(--white);
  font-size: 1.95rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.hero-supporting {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  margin: 0 auto 1.8rem;
  line-height: 1.75;
}
.hero-byline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
}
.hero-byline .name { font-weight: 700; color: rgba(255,255,255,0.85); }
.hero-byline .name a { color: rgba(255,255,255,0.85); text-decoration: none; }
.hero-byline .name a:hover { color: var(--teal-light); }
.hero-byline .credential { font-weight: 300; }

/* ─── Sections ─── */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--off-white); }

.section-header { margin-bottom: 2rem; text-align: right; }
.section-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.section-header h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: var(--teal);
  border-radius: 2px;
}
.section-header p {
  color: var(--text-mid);
  font-size: 0.92rem;
  margin-top: 0.3rem;
}

/* ─── Start Cards ─── */
.start-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.start-card {
  background: var(--teal-bg);
  border-radius: 8px;
  padding: 1.6rem 1.4rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s, transform 0.15s;
  border: 1px solid transparent;
  position: relative;
}
.start-card:hover {
  box-shadow: 0 4px 16px rgba(15,168,154,0.12);
  transform: translateY(-2px);
  border-color: var(--teal);
}
.start-card .card-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal-text);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.start-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.5rem; }
.start-card p { font-size: 0.86rem; color: var(--text-mid); line-height: 1.6; margin: 0; }
.card-thumb {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-top: 1rem;
  object-fit: cover;
}
.start-card::after { display: none; }

/* ─── Article Groups ─── */
.group-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.article-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.article-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.8rem;
  margin: 0 -0.8rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  border-radius: 4px;
  transition: background 0.15s;
}
.article-row:last-child { border-bottom: none; }
.article-row:hover { background: rgba(15,168,154,0.04); }

.row-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 56px;
  background: var(--border);
}
.article-row .row-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  flex: 0 0 auto;
  min-width: 120px;
}
.article-row .row-desc { font-size: 0.85rem; color: var(--text-mid); flex: 1; }
.article-row::after {
  content: '\2190';
  color: var(--teal);
  opacity: 0;
  font-size: 0.85rem;
  transition: opacity 0.15s;
  flex: 0 0 auto;
}
.article-row:hover::after { opacity: 1; }
.group + .group { margin-top: 2.5rem; }

/* ─── Footer ─── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 2.2rem 1.5rem;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.7;
  border-top: 3px solid var(--teal);
}
.footer-inner { max-width: var(--max-w-wide); margin: 0 auto; }
.footer-logo { font-weight: 900; font-size: 1rem; color: var(--white); margin-bottom: 0.3rem; }
.footer-logo a { color: var(--white); text-decoration: none; }
.footer-logo a:hover { color: var(--teal-light); }
.footer-line { margin-bottom: 0.15rem; }

/* ─── About ─── */
.about-hero {
  background: linear-gradient(175deg, var(--navy-mid) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  border-bottom: 3px solid var(--teal);
}
.about-hero h1 { color: var(--white); font-size: 2rem; margin-bottom: 0.5rem; }
.about-hero p { color: rgba(255,255,255,0.65); font-size: 0.92rem; margin: 0; }

.about-content { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 1.5rem; }
.about-content h2 { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.about-content h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }

.about-tldr {
  background: var(--teal-bg);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.5rem;
  font-size: 0.93rem;
  line-height: 1.75;
  border-right: 3px solid var(--teal);
}

.disclaimer {
  margin-top: 2.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--off-white);
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.75;
}
.disclaimer strong { display: block; margin-bottom: 0.3rem; color: var(--text); font-size: 0.88rem; }

/* Author block */
.about-author {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
}
.author-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 110px;
}
.author-info { flex: 1; }
.author-info p:last-child { margin-bottom: 0; }

@media (max-width: 480px) {
  .about-author { flex-direction: column; align-items: center; text-align: center; }
  .author-photo { width: 90px; height: 90px; flex: 0 0 90px; }
}

/* ─── Article Page ─── */
.article-hero {
  background: linear-gradient(175deg, var(--navy-mid) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 3rem 1.5rem 2.5rem;
  border-bottom: 3px solid var(--teal);
}
.article-hero .wrap { text-align: right; }
.article-hero h1 { color: var(--white); font-size: 2rem; margin-bottom: 0.6rem; }
.article-meta {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-body { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 1.5rem; }

.article-hero-img {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.article-hero-img img {
  width: 100%;
  height: auto;
  border-radius: 0 0 8px 8px;
  margin-top: -1px;
}
.tldr-box {
  background: var(--teal-bg);
  border-radius: 8px;
  border-right: 3px solid var(--teal);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
}
.tldr-box h2 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--teal-text); }
.tldr-box h2::before { display: none; }
.tldr-box ul { list-style: none; padding: 0; }
.tldr-box li {
  padding: 0.25rem 0;
  padding-right: 1rem;
  position: relative;
  font-size: 0.9rem;
}
.tldr-box li::before { content: '\2013'; position: absolute; right: 0; color: var(--teal-text); }

.toc {
  margin-bottom: 2.5rem;
  padding: 1.2rem 1.4rem;
  background: var(--off-white);
  border-radius: 8px;
}
.toc h2 { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 0.5rem; font-weight: 700; }
.toc h2::before { display: none; }
.toc ol { padding-right: 1.2rem; margin: 0; }
.toc li { font-size: 0.88rem; padding: 0.2rem 0; }
.toc a { color: var(--teal-text); }

.article-body h2 { margin-top: 2.5rem; }
.article-body h3 { margin-top: 1.5rem; }

.ask-doctor {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 1.6rem;
  margin-top: 2.5rem;
}
.ask-doctor h2 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.8rem; }
.ask-doctor h2::before { background: var(--teal-light); }
.ask-doctor ul { list-style: none; padding: 0; }
.ask-doctor li {
  padding: 0.35rem 1rem 0.35rem 0;
  position: relative;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
}
.ask-doctor li::before {
  content: '?';
  position: absolute;
  right: 0;
  color: var(--teal-light);
  font-weight: 700;
}

.related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.related h2 { font-size: 1rem; }
.related h2::before { display: none; }
.related-links { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.6rem; }
.related-links a {
  background: var(--off-white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.86rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.related-links a:hover { border-color: var(--teal); background: var(--teal-bg); }

.video-embed { margin: 2rem 0; position: relative; padding-bottom: 56.25%; border-radius: 8px; overflow: hidden; }
.video-embed iframe { position: absolute; top: 0; right: 0; width: 100%; height: 100%; border: 0; }

.faq { margin-top: 2.5rem; }
.faq h2 { margin-bottom: 1rem; }
.faq-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; font-size: 0.95rem; }
.faq-a { font-size: 0.92rem; color: var(--text-mid); }

/* ─── 404 ─── */
.page-404 { text-align: center; padding: 5rem 1.5rem; }
.page-404 h1 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.page-404 p { color: var(--text-mid); margin-bottom: 1.5rem; }
.page-404 a {
  display: inline-block;
  background: var(--teal-text);
  color: var(--white);
  padding: 0.6rem 1.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
  text-decoration: none;
}
.page-404 a:hover { background: var(--teal); color: var(--white); }



.footer-copyright {
  margin-top: 0.6rem;
  font-size: 0.75rem;
}

.footer-links {
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal-light); }
/* ─── Hero eyebrow + tagline ─── */
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
  margin-bottom: 0.8rem;
}
.hero-tagline {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--teal-light);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

/* ─── Article disclaimer ─── */
.article-disclaimer {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  background: var(--off-white);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.7rem; }
  .hero { padding: 3rem 1.2rem 2.5rem; }
  .hero-supporting { font-size: 0.98rem; }
  .start-cards { grid-template-columns: 1fr; gap: 0.8rem; }
  .start-card::after { display: none; }
  .article-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.8rem 0.6rem;
    margin: 0 -0.6rem;
  }
  .row-thumb { width: 44px; height: 44px; flex: 0 0 44px; }
  .article-row .row-title { min-width: 0; flex: 1; }
  .article-row .row-desc { font-size: 0.82rem; flex-basis: 100%; padding-right: 0; }
  .article-row::after { display: none; }
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: none; background: var(--navy-mid); padding: 1rem 1.5rem; }
  .mobile-nav.open { display: block; }
  .mobile-nav a {
    display: block;
    color: rgba(255,255,255,0.85);
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
    text-decoration: none;
  }
  .mobile-nav a:last-child { border-bottom: none; }
  .hero-byline { flex-direction: column; gap: 0.3rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
}
