/* PuckUnited public site — shared by the Hebrew (/) and Arabic (/ar/) pages */

:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --text: #16202f;
  --muted: #5a6478;
  --border: #e1e6ee;
  --accent: #0d3b66;
  --accent-hover: #0a2f52;
  --accent-soft: rgba(13, 59, 102, 0.08);
  --ice: #e8f1fb;
  --red: #c62828;
  --red-hover: #a91f1f;
  --navy-deep: #071f38;
  --success-bg: #e8f5e9;
  --success-text: #1b5e20;
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1120px;
  --space: clamp(1rem, 3vw, 1.75rem);
  --section-gap: clamp(3.5rem, 8vw, 6rem);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 60px rgba(7, 31, 56, 0.18);
  --header-h: 76px;
  --font: "IBM Plex Sans Hebrew", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid rgba(13, 59, 102, 0.4);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(198, 40, 40, 0.35);
}

.btn--primary:hover {
  background: var(--red-hover);
  box-shadow: 0 14px 30px rgba(198, 40, 40, 0.42);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* Arrows point "forward" in RTL */
[dir="rtl"] .btn svg.arrow {
  transform: scaleX(-1);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  padding-inline: clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(225, 230, 238, 0.8);
}

.site-header__inner {
  max-width: var(--max);
  min-height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 3rem);
  direction: ltr;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  text-decoration: none;
}

.site-header__brand:hover {
  text-decoration: none;
}

.site-header img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-header .brand {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
}

.nav {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(0.15rem, 1vw, 0.6rem);
  direction: rtl;
  white-space: nowrap;
}

.nav a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav .nav__lang {
  color: var(--muted);
  border: 1px solid var(--border);
}

.nav .nav__cta {
  margin-inline-start: 0.35rem;
  padding: 0.55rem 1.2rem;
  background: var(--red);
  color: #fff;
  font-weight: 600;
}

.nav .nav__cta:hover {
  background: var(--red-hover);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  flex: 0 0 44px;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.menu-toggle:hover {
  background: var(--accent-soft);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 860px) {
  :root {
    --header-h: 68px;
  }

  .menu-toggle {
    display: flex;
    margin-inline-start: auto;
  }

  .nav {
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    z-index: 20;
    display: none;
    width: 100%;
    padding: 0.5rem clamp(1rem, 5vw, 2rem) 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(16, 24, 40, 0.12);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    min-height: 48px;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
  }

  .nav .nav__lang {
    border: 0;
  }

  .nav .nav__cta {
    margin: 0.5rem 0 0;
    justify-content: center;
    border-radius: 999px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 4vw, 3rem) clamp(5rem, 11vw, 8rem);
  color: #fff;
  background: var(--navy-deep) url("../images/header.jpg") center 40% / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to left, rgba(7, 31, 56, 0.94) 0%, rgba(7, 31, 56, 0.78) 45%, rgba(7, 31, 56, 0.35) 100%),
    linear-gradient(to top, rgba(7, 31, 56, 0.85) 0%, rgba(7, 31, 56, 0) 45%);
}

.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__content {
  max-width: 40rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.3);
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero h1 .highlight {
  color: #9cc9f5;
}

.hero__lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__facts {
  margin: clamp(2.5rem, 6vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.hero__facts li {
  display: flex;
  flex-direction: column;
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--red);
}

.hero__facts strong {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero__facts span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Layout / sections ---------- */

main {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section {
  margin-top: var(--section-gap);
}

.section__head {
  max-width: 40rem;
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
}

.section__kicker {
  display: inline-block;
  margin: 0 0 0.5rem;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-deep);
  text-wrap: balance;
}

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

/* About: floats up over the hero edge */
.about {
  margin-top: calc(var(--section-gap) * -0.6);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.feature {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--ice) 0%, #fff 70%);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 59, 102, 0.25);
  box-shadow: var(--shadow);
}

.feature__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
}

.feature__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-deep);
}

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

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

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(140px, 17vw, 210px);
  gap: clamp(0.5rem, 1.5vw, 0.9rem);
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ice);
  box-shadow: var(--shadow);
}

.gallery figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery figure:last-child {
  grid-column: span 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery figure:hover img {
  transform: scale(1.06);
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
  }

  .gallery figure:first-child {
    grid-row: span 1;
  }
}

/* ---------- Join / CTA ---------- */

.join {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.join__pitch {
  position: relative;
  isolation: isolate;
  padding: clamp(1.75rem, 4vw, 3rem);
  color: #fff;
  background: linear-gradient(150deg, var(--accent) 0%, var(--navy-deep) 100%);
  overflow: hidden;
}

/* faint rink lines */
.join__pitch::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  inset-block-end: -120px;
  inset-inline-end: -110px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.03);
}

.join__pitch .section__kicker {
  color: #ff8a80;
}

.join__pitch h2 {
  color: #fff;
}

.join__pitch > p {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 500;
}

.checklist svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 0.15rem;
  padding: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.join__form {
  padding: clamp(1.75rem, 4vw, 3rem);
}

.join__form h3 {
  margin: 0 0 0.25rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.join__form .form-note {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.form-grid .field--full {
  grid-column: 1 / -1;
}

@media (max-width: 860px) {
  .join {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  margin: 1rem 0 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fbfcfe;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

input:hover,
select:hover {
  border-color: #c9d2e0;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 59, 102, 0.12);
}

.join__form button[type="submit"] {
  width: 100%;
  margin-top: 1.5rem;
}

#confirmation {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--success-bg);
  color: var(--success-text);
  font-weight: 600;
  text-align: center;
  border: 1px solid #c8e6c9;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--section-gap);
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 3rem) 1.5rem;
  background: var(--navy-deep);
  color: #d5deea;
  text-align: center;
}

.site-footer__main {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto clamp(1.5rem, 3vw, 2rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-areas: "social contact";
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  direction: ltr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-panel {
  grid-area: contact;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  direction: rtl;
  text-align: right;
}

.site-footer .contact-block {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: 0.95rem;
}

.site-footer .contact-block p {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.social {
  grid-area: social;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  direction: ltr;
}

.social a {
  width: 44px;
  height: 44px;
  padding: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s, transform 0.2s;
}

.social a:hover,
.social a:focus-visible {
  background: var(--red);
  transform: translateY(-2px);
  text-decoration: none;
}

.social svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: currentColor;
}

.site-footer .fine {
  margin: 0.35rem 0;
  font-size: 0.82rem;
  opacity: 0.75;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  direction: rtl;
}

.footer-meta .fine,
.github-link {
  margin: 0;
}

.github-link {
  padding-inline-start: 1rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
  opacity: 0.75;
}

@media (max-width: 820px) {
  .site-footer__main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "contact"
      "social";
    gap: 1.25rem;
  }

  .contact-panel {
    width: 100%;
    justify-self: stretch;
    display: block;
    text-align: center;
  }

  .site-footer .contact-block {
    display: block;
  }

  .site-footer .contact-block p {
    margin: 0.4rem 0;
    text-align: center;
    white-space: normal;
  }

  .social {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .feature,
  .gallery img,
  .social a {
    transition: none;
  }

  .btn:hover,
  .feature:hover,
  .social a:hover {
    transform: none;
  }

  .gallery figure:hover img {
    transform: none;
  }
}
