/* 1. Fonts */
@font-face {
  font-family: 'NarkissBlock';
  src: url('./assets/fonts/NarkissBlock-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NarkissBlock';
  src: url('./assets/fonts/NarkissBlock-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NarkissBlock';
  src: url('./assets/fonts/NarkissBlock-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 2. Design tokens */
:root {
  --color-cream: #fdeadf;
  --color-light-blue: #e5edff;
  --color-cyan: #9fd6e0;
  --color-orange: #f1844b;
  --color-navy: #1f2d3f;
  --color-bg: #ffffff;
  --color-surface: #fdeadf;
  --color-primary: #f1844b;
  --color-accent: #9fd6e0;
  --color-text: #1f2d3f;
  --color-player-bg: #000000;

  --header-navy-height: 80px;
  --header-banner-height: 56px;
  --section-header-height: 48px;
  --section-accent-width: 8px;
  --player-max-width: 1203px;
  --content-max-width: 1760px;
  --content-padding: clamp(16px, 4vw, 80px);
  --column-gap: 24px;
  --footer-logo-width: 150px;
  --player-top-gap: 40px;
}

/* 3. Reset / base */
* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'NarkissBlock', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* Utility: responsive icon sets.
   Desktop-first: show the --desktop variant, hide the --mobile variant.
   The mobile media query later flips these. Both base rules are single-class
   (equal specificity) and the generic .X__icon rules below intentionally do
   NOT set `display`, so the variant rules are the single source of truth and
   only one variant is ever visible. */
.header-logo__img--desktop,
.whatsapp-btn__icon--desktop,
.social-icons__icon--desktop {
  display: block;
}

.header-logo__img--mobile,
.whatsapp-btn__icon--mobile,
.social-icons__icon--mobile {
  display: none;
}

/* 4. Page layout */
.site-main {
  padding-inline: var(--content-padding);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--column-gap);
  max-width: var(--content-max-width);
  margin-inline: auto;
  margin-block: 40px 64px;
}

.content-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#about,
#team,
#expected {
  scroll-margin-top: 120px;
}

.section-body {
  background: transparent;
  padding: 20px 24px 28px;
  flex: 1;
  text-align: start;
}

.section-body__lead {
  font-weight: 600;
  margin-bottom: 1em;
}

.section-body__highlight {
  font-weight: 600;
  text-align: center;
  margin-bottom: 1em;
}

.section-body__sub {
  text-align: center;
  margin-bottom: 1.25em;
}

/* 5. Header */
.site-header {
  position: relative;
  z-index: 10;
}

.header-top {
  background: var(--color-navy);
  height: var(--header-navy-height);
}

.header-top__inner {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--content-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.header-logo__img {
  width: 61px;
  height: auto;
}

.header-banner {
  background: var(--color-orange);
  height: 37px;
  min-height: 37px;
  max-height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 0;
  padding-inline: var(--content-padding);
}

.header-banner__text {
  margin: 0;
  color: #ffffff;
  font-weight: 500;
  font-size: clamp(14px, 1.25vw, 18px);
  text-align: center;
  line-height: 1.4;
}

/* 6. Player */
.player-section {
  padding-inline: var(--content-padding);
  margin-top: var(--player-top-gap);
}

.player-section__inner {
  max-width: var(--player-max-width);
  margin-inline: auto;
}

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-player-bg);
}

/* The live embed script injects its player markup inside .player-frame and
   hardcodes a fixed pixel width/height (e.g. 920px) on its own inner nodes.
   Force the injected wrapper AND every nested player container to fluidly
   fill the exact 16:9 rectangle from the design, overriding the embed's
   inline width/height and max-width so the video never sits as a fixed box
   or leaves black dead space on desktop. */
.player-frame > *:not(script) {
  position: absolute;
  inset: 0;
  margin: 0;
}

.player-frame > *:not(script),
.player-frame .insight-player-wrapper,
.player-frame .insight-player,
.player-frame .mvp-player-wrap,
.player-frame .mvp-player-holder,
.player-frame .mvp-media-holder {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.player-frame iframe,
.player-frame video,
.player-frame embed,
.player-frame canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border: 0;
  display: block;
}

/* Section headers (shared) */
.section-header {
  display: flex;
  align-items: stretch;
  background: var(--color-navy);
  min-height: var(--section-header-height);
  position: relative;
}

.section-header__accent {
  flex-shrink: 0;
  width: var(--section-accent-width);
  background: var(--color-orange);
  order: -1;
}

.section-header__title {
  margin: 0;
  padding: 10px 16px;
  color: #ffffff;
  font-weight: 600;
  font-size: clamp(16px, 1.1vw, 20px);
  text-align: start;
  align-self: center;
  flex: 1;
}

/* 7. Icons / actions */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
}

.team-member__figure {
  margin: 0;
  text-align: center;
}

.team-member__photo {
  display: block;
  width: 100%;
}

.team-member__photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  clip-path: none;
}

.team-member__name {
  margin-top: 10px;
  font-weight: 500;
  font-size: clamp(14px, 1vw, 16px);
  color: var(--color-text);
}

/* "קרא עוד..." button in the About card */
.read-more-btn {
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 16px;
  padding: 8px 20px;
  background: var(--color-navy);
  color: #ffffff;
  border: 3px solid transparent;
  border-radius: 6px;
  font-family: 'NarkissBlock', Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.read-more-btn:hover,
.read-more-btn:focus-visible {
  opacity: 0.88;
  border-color: var(--color-orange);
  outline: none;
}

.read-more-btn:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 18px;
  background: #25d366;
  color: #ffffff;
  border: 3px solid transparent;
  border-radius: 8px;
  font-weight: 500;
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.35;
  transition: opacity 0.15s ease;
}

.whatsapp-btn:hover,
.whatsapp-btn:focus-visible {
  opacity: 0.9;
  border-color: var(--color-orange);
}

.whatsapp-btn:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
}

.whatsapp-btn__icon {
  flex-shrink: 0;
  width: 36px;
  height: auto;
}

.whatsapp-btn__text {
  text-align: start;
}

.cta-btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--color-navy);
  color: #ffffff;
  border: 3px solid transparent;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  text-align: center;
  margin-inline: auto;
  margin-bottom: 24px;
}

.content-card--expected .section-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-card--expected .section-body__highlight {
  align-self: stretch;
  text-align: right;
}

/* "קרא עוד..." inside the Say section — right-aligned in the flex column,
   with a gap below to separate it from the "מגוון אפשרויות" sub-text. */
.content-card--expected .read-more-btn {
  margin-bottom: 20px;
  align-self: flex-start;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  opacity: 0.9;
  border-color: var(--color-orange);
}

.cta-btn:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
}

.qr-block {
  text-align: center;
  margin-top: 8px;
}

.qr-block__label {
  font-weight: 500;
  margin-bottom: 12px;
}

.qr-block__code {
  display: block;
  width: 160px;
  margin-inline: auto;
}

.qr-block__code img {
  display: block;
  width: 100%;
  height: auto;
}

/* 8. Footer */
.site-footer {
  background: var(--color-navy);
  color: #ffffff;
  padding: 64px var(--content-padding) 48px;
}

.site-footer__inner {
  max-width: var(--content-max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Logo + nav grouped together on the right; the 95px is specifically the
   distance between the logo block and the footer links block. */
.footer-main-area {
  display: flex;
  align-items: center;
  gap: 95px;
}

.site-footer__logo {
  width: var(--footer-logo-width);
  height: auto;
  display: block;
}

.site-footer__brand {
  flex: 0 0 auto;
}

.site-footer__nav {
  flex: 0 0 auto;
  display: flex;
  gap: 48px;
  justify-content: flex-start;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__links a {
  font-size: 15px;
  font-weight: 400;
  transition: opacity 0.15s ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  opacity: 0.75;
  outline: none;
  text-decoration: underline;
}

.site-footer__social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  box-sizing: border-box;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.social-icons a:hover,
.social-icons a:focus-visible {
  opacity: 0.75;
  border-color: var(--color-orange);
  outline: none;
}

.social-icons__icon {
  height: 24px;
  width: auto;
}

.site-footer__copyright {
  margin: 0;
  font-size: 14px;
  text-align: end;
  white-space: nowrap;
}

/* 9. Responsive media queries */

/* Large desktop — 1920 validation */
@media (min-width: 1441px) {
  :root {
    --content-padding: 80px;
  }

  .player-section__inner {
    max-width: var(--player-max-width);
  }
}

/* Desktop refinements */
@media (max-width: 1440px) {
  :root {
    --player-max-width: min(1203px, calc(100vw - 2 * var(--content-padding)));
  }
}

@media (max-width: 1280px) {
  .content-grid {
    gap: 16px;
  }

  .section-body {
    padding: 16px 18px 24px;
  }

  .site-footer__nav {
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    gap: 32px;
  }

  /* Mobile stack order: team → about → expected */
  .content-card--team {
    order: 1;
  }

  .content-card--about {
    order: 2;
  }

  .content-card--expected {
    order: 3;
  }

  /* Footer keeps its horizontal layout down to tablet; tighten the
     logo<->nav distance a touch so it never overflows at ~1024px. */
  .footer-main-area {
    gap: 64px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-navy-height: 56px;
    --header-banner-height: 48px;
    --section-header-height: 44px;
    --footer-logo-width: 80px;
    --player-top-gap: 24px;
  }

  .header-logo__img--desktop {
    display: none;
  }

  .header-logo__img--mobile {
    display: block;
    width: 37px;
  }

  .header-top__inner {
    justify-content: flex-start;
    padding-inline: 32px;
  }

  .player-section {
    padding-inline: 0;
  }

  .site-main {
    padding-inline: 16px;
  }

  .content-grid {
    margin-block: 24px 40px;
    gap: 24px;
  }

  .section-body {
    padding: 16px;
    font-size: 15px;
  }

  /* Mobile team order: tzvika, maor / ram, yaakov */
  .team-member:nth-child(1) { order: 4; }
  .team-member:nth-child(2) { order: 2; }
  .team-member:nth-child(3) { order: 3; }
  .team-member:nth-child(4) { order: 1; }

  .team-grid {
    gap: 12px 10px;
  }

  .team-member__photo img {
    border-radius: 0;
  }

  .whatsapp-btn {
    flex-direction: row;
    padding: 12px 14px;
  }

  .whatsapp-btn__icon--desktop {
    display: none;
  }

  .whatsapp-btn__icon--mobile {
    display: block;
  }

  .social-icons__icon--desktop {
    display: none;
  }

  .social-icons__icon--mobile {
    display: block;
  }

  .site-footer {
    padding: 32px 16px 24px;
  }

  /* Mobile: stack the main row (logo + links) above social/copyright,
     but keep links to the LEFT of the logo (not beneath it). */
  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .footer-main-area {
    gap: 24px;
    align-items: flex-start;
  }

  .site-footer__nav {
    flex-direction: row;
    gap: 24px;
  }

  .site-footer__social {
    align-items: center;
  }

  .site-footer__copyright {
    text-align: center;
  }

  .site-footer__links {
    text-align: start;
  }
}

@media (max-width: 430px) {
  .header-banner__text {
    font-size: 13px;
  }

  .site-footer__nav {
    gap: 24px;
  }

  .site-footer__links a {
    font-size: 14px;
  }
}

@media (max-width: 393px) {
  .site-main {
    padding-inline: 12px;
  }

  .section-body {
    padding: 14px;
    font-size: 14px;
  }

  .team-member__name {
    font-size: 13px;
  }

  .qr-block__code {
    width: 140px;
  }
}

@media (max-width: 375px) {
  .whatsapp-btn__text {
    font-size: 12px;
  }

  .site-footer__nav {
    gap: 16px;
  }
}

@media (max-width: 360px) {
  .header-banner__text {
    font-size: 12px;
  }

  .social-icons {
    gap: 12px;
  }
}
