/* ============================================================
   פרופ׳ שירלי פורטוגיז — אתר סטטי
   עיצוב מינימליסטי: לבן / כחול בהיר / טורקיז / פוטר אפור כהה
   ============================================================ */

:root {
  --blue-light: #d7ecf3;
  --teal: #29a3c2;
  --teal-dark: #1f829c;
  --dark: #3d3d3d;
  --band-gray: #6e6e6e;
  --page-gray: #ededed;
  --text: #333333;
  --heading: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e2e2e2;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans Hebrew", "Helvetica Neue", Arial,
    sans-serif;
  background-color: #ffffff;
  color: var(--text);
  line-height: 1.8;
  font-size: 1rem;
}

/* ---------- נגישות ---------- */
.skip-link {
  position: absolute;
  top: -48px;
  right: 12px;
  background: var(--dark);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}

a:hover {
  color: var(--teal);
}

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

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

/* ---------- מבנה כללי ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- כותרת עליונה ---------- */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 14px;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.main-nav {
  margin-right: auto;
  margin-left: auto;
  transform: translateX(-40px);
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--teal-dark);
}

.main-nav a[aria-current="page"] {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

.header-phone {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--teal-dark);
}

/* ---------- Hero מינימלי ---------- */
.hero {
  text-align: center;
  padding: 110px 24px 100px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 16px;
  line-height: 1.2;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 36px;
}

/* ---------- כפתורים ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 34px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: #fff;
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: #2b2b2b;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal);
}

.btn-outline:hover {
  background: var(--blue-light);
  color: var(--teal-dark);
}

/* ---------- רצועות ---------- */
.band-blue {
  background: var(--blue-light);
  padding: 72px 0;
}

.band-white {
  background: #ffffff;
  padding: 72px 0;
}

.band-gray {
  background: var(--band-gray);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}

.band-gray h2 {
  font-size: 1.8rem;
  margin: 0 0 16px;
  color: #fff;
}

.band-gray p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- כותרות מקטעים ---------- */
.section-title {
  font-size: 1.7rem;
  color: var(--heading);
  margin: 0 0 36px;
  text-align: center;
  position: relative;
  padding-bottom: 14px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 48px;
  height: 2px;
  background: var(--teal);
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 700px;
  margin: -16px auto 40px;
}

/* ---------- אודות בתוך רצועה כחולה ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 300px 1fr;
  }
}

.about-photo img {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
}

.photo-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}

.panel {
  background: #ffffff;
  padding: 40px;
}

.panel h2 {
  display: inline-block;
  font-size: 1.35rem;
  color: var(--heading);
  margin: 0 0 20px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--teal);
}

.panel p {
  margin: 0 0 14px;
  font-size: 1rem;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--teal-dark);
}

/* ---------- תחומי התמחות (שטוח) ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 760px) {
  .spec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spec {
  text-align: center;
  padding: 8px 16px;
}

.spec h3 {
  font-size: 1.1rem;
  color: var(--teal-dark);
  margin: 0 0 10px;
}

.spec p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- עמוד אפור עם פאנל לבן (אודות) ---------- */
.page-gray {
  background: var(--page-gray);
  padding: 64px 0 80px;
}

.page-heading {
  text-align: center;
  font-size: 1.9rem;
  color: var(--heading);
  margin: 0 0 44px;
  position: relative;
  padding-bottom: 14px;
}

.page-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 48px;
  height: 2px;
  background: var(--teal);
}

.cv-panel {
  background: #ffffff;
  padding: 48px;
}

.cv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
}

@media (min-width: 900px) {
  .cv-grid {
    grid-template-columns: 260px 1fr;
  }
}

.portrait-frame {
  position: relative;
  max-width: 260px;
  margin-inline: auto;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  top: -20px;
  inset-inline-start: -20px;
  width: 60%;
  height: 55%;
  background: var(--teal);
}

.portrait-frame img {
  position: relative;
  width: 100%;
}

.cv-section {
  margin-bottom: 30px;
}

.cv-section:last-child {
  margin-bottom: 0;
}

.cv-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 8px;
}

.cv-section p {
  margin: 0 0 8px;
}

.cv-list {
  margin: 0;
  padding-inline-start: 22px;
  line-height: 1.9;
}

/* ---------- מסגרת כחולה עם פאנל לבן (לקראת הפגישה) ---------- */
.frame-blue {
  background: var(--blue-light);
  padding: 48px 16px;
}

.frame-panel {
  background: #ffffff;
  max-width: 860px;
  margin-inline: auto;
  padding: 56px 24px;
}

@media (min-width: 720px) {
  .frame-panel {
    padding: 64px 56px;
  }
}

.frame-panel h1 {
  text-align: center;
  font-size: 1.6rem;
  color: var(--heading);
  margin: 0 0 40px;
}

.prep-section {
  margin-bottom: 28px;
}

.prep-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 6px;
}

.prep-section p {
  margin: 0 0 8px;
}

.prep-section ul {
  margin: 0;
  padding-inline-start: 22px;
  line-height: 1.9;
}

/* ---------- הודעת דגש ---------- */
.notice {
  background: var(--blue-light);
  border-inline-start: 4px solid var(--teal);
  padding: 16px 20px;
  margin: 0 0 16px;
}

/* ---------- פרסומים ---------- */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 860px;
  margin-inline: auto;
}

.pub-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-authors {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pub-title {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--heading);
}

.pub-journal {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.pub-links {
  margin: 0;
  display: flex;
  gap: 16px;
}

.pub-links a {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- צור קשר ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.info-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.info-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.info-value {
  font-size: 1rem;
  color: var(--heading);
}

.map-frame {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

/* ---------- טפסים ---------- */
.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--heading);
}

.form-field .optional {
  font-weight: 400;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- עמוד תודה ---------- */
.thanks-box {
  max-width: 560px;
  margin: 80px auto;
  text-align: center;
}

.thanks-box h1 {
  font-size: 2.2rem;
  color: var(--heading);
  margin: 0 0 12px;
}

.thanks-box p {
  color: var(--muted);
  margin: 0 0 32px;
}

/* ---------- פוטר כהה (בכל העמודים) ---------- */
.site-footer {
  background: var(--dark);
  color: #d5d5d5;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}

@media (min-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-title {
  color: #ffffff;
  font-size: 1.05rem;
  letter-spacing: 2px;
  text-align: center;
  margin: 0 0 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 36px;
  height: 2px;
  background: var(--teal);
}

.footer-map {
  width: 100%;
  max-width: 340px;
  height: 180px;
  border: 0;
  display: block;
  margin-inline: auto;
}

.footer-address {
  font-style: normal;
  text-align: center;
  line-height: 1.9;
  font-size: 0.9rem;
  margin-top: 16px;
}

.footer-address a {
  color: #ffffff;
}

.footer-form {
  max-width: 340px;
  margin-inline: auto;
  display: grid;
  gap: 10px;
}

.footer-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.footer-form input,
.footer-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.9rem;
  background: #ffffff;
  color: var(--text);
}

.footer-form textarea {
  min-height: 110px;
  resize: vertical;
}

.footer-submit {
  width: 100%;
  padding: 12px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.footer-submit:hover {
  background: var(--teal-dark);
}

.footer-note {
  max-width: 820px;
  margin: 44px auto 0;
  text-align: center;
  font-size: 0.78rem;
  color: #9a9a9a;
  line-height: 1.7;
}

.footer-copy {
  text-align: center;
  color: #8a8a8a;
  font-size: 0.82rem;
  margin: 12px 0 0;
}

/* ---------- מובייל ---------- */
@media (max-width: 640px) {
  .header-inner {
    justify-content: center;
  }

  .hero {
    padding: 72px 20px 64px;
  }

  .panel,
  .cv-panel {
    padding: 28px 20px;
  }

  .frame-panel {
    padding: 40px 20px;
  }
}

/* ---------- באנר עמוד צור קשר ---------- */
.contact-banner img {
  width: 100%;
  height: clamp(220px, 42vw, 460px);
  object-fit: cover;
  object-position: center;
}

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

/* =========================================
   עיצוב דף פרסומים, מדיה והרצאות
   ========================================= */

.pub-section-title {
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--teal-dark, #204e4a);
  font-size: 1.4rem;
  border-bottom: 2px solid #edf2f7;
  padding-bottom: 8px;
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.pub-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* התאמת יחס 16:9 לווידאו מוטמע */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background-color: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pub-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pub-body h3 {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 8px;
  color: #1a202c;
  line-height: 1.35;
}

.pub-meta {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 12px;
  font-weight: 500;
}

.pub-body p {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.doc-card .doc-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

/* כפתורי פעולה */
.btn-primary {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 18px;
  background-color: var(--teal-dark, #204e4a);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
  background-color: #173835;
  color: #ffffff;
}

.video-preview-link {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background-color: #000;
}

.video-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-preview-link:hover .video-thumb {
  transform: scale(1.03);
  opacity: 1;
}

.play-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
}
