/* PuckUnited public site — Hebrew only, minimal, no motion effects */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1c2434;
  --muted: #5c6578;
  --border: #e2e6ee;
  --accent: #0d3b66;
  --accent-hover: #0a2f52;
  --success-bg: #e8f5e9;
  --success-text: #1b5e20;
  --radius: 10px;
  --max: 1040px;
  --space: clamp(1rem, 3vw, 1.75rem);
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: "Noto Serif Hebrew", system-ui, -apple-system, "Segoe UI", sans-serif;
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  width: 100%;
  min-height: 88px;
  direction: ltr;
  padding-inline: clamp(1rem, 4vw, 3.75rem);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  width: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  direction: ltr;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  direction: ltr;
}

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

.site-header .brand {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  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.25rem, 1.4vw, 1.25rem);
  direction: rtl;
  white-space: nowrap;
}

.nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  background: rgba(235, 235, 235, 0.493);
  text-decoration: none;
  border-radius: 20px;
}

.nav a:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid rgba(13, 59, 102, 0.35);
  outline-offset: 3px;
}

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

.menu-toggle:hover {
  background: rgba(13, 59, 102, 0.08);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

@media (max-width: 768px) {
  .site-header,
  .site-header__inner {
    min-height: 76px;
  }

  .site-header {
    padding-inline: clamp(1rem, 5vw, 2rem);
  }

  .site-header__inner {
    gap: 1rem;
  }

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

  .site-header .brand {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .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%;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    direction: rtl;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(28, 36, 52, 0.12);
  }

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

  .nav a {
    width: 100%;
    min-height: 52px;
    padding: 0.8rem clamp(1rem, 5vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 0;
    text-align: right;
  }

  .nav a + a {
    border-top: 1px solid var(--border);
  }

  .nav a:hover {
    border-radius: 0;
  }
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space);
}

.section {
  background: rgb(175, 173, 173);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: var(--space);
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 600;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--border);
}

.section p {
  margin: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.form-wrap {
  max-width: 32rem;
  margin: 0 auto;
}

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

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

button[type="submit"] {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: var(--accent-hover);
}

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

.site-footer {
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 3.75rem);
  background: var(--accent);
  color: #e8eef5;
  text-align: center;
}

.site-footer__main {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto 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;
}

.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 h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  border: none;
  padding: 0;
}

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

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

.site-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

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

.social a {
  width: 48px;
  height: 48px;
  min-height: 44px;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  text-decoration: none;
}

.social a:hover,
.social a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.social a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.social svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  overflow: visible;
  fill: currentColor;
  stroke: none;
}

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

.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.3);
  font-size: 0.8rem;
  opacity: 0.85;
  text-align: inherit;
}

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

  .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.5rem 0;
    text-align: center;
    white-space: normal;
  }

  .social {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .nav {
    justify-content: flex-start;
  }

  .footer-meta {
    gap: 0.35rem 0.5rem;
  }

  .footer-meta .fine,
  .footer-meta .github-link {
    font-size: 0.75rem;
  }

  .footer-meta .github-link {
    padding-inline-start: 0.5rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hockey-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hockey-scene {
  width: 100%;
  height: 100%;
  display: block;
}

/* Keep actual website above the animation */
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: relative;
  z-index: 30;
}

/* Stick */
.stick-handle {
  stroke: #283342;
  stroke-width: 18;
  stroke-linecap: round;
}

.stick-blade {
  fill: none;
  stroke: #1c2434;
  stroke-width: 26;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#hockey-stick {
  transform-box: view-box;
  transform-origin: 245px 115px;
  will-change: transform;
}

/* Airflow */
#airflow {
  opacity: 0;
  will-change: opacity;
}

#airflow path {
  fill: none;
  stroke: rgba(13, 59, 102, 0.28);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 45 30;
}

/* Puck */
#puck {
  will-change: transform;
}

.puck-top {
  fill: #141414;
}

.puck-side {
  fill: #080808;
}

#puck-trail {
  opacity: 0;
}

#puck-trail {
  transform-box: view-box;
  transform-origin: center;
  will-change: transform;
}

/*
Optional:
Your .section background is currently completely opaque,
so the background animation will be hidden behind sections.

Use this if you want the animation subtly visible through them.
*/
.section {
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(2px);
}

@media (prefers-reduced-motion: reduce) {
  .hockey-bg {
    display: none;
  }
}
.stick-handle {
  stroke: #0b0b0d;
  stroke-width: 18;
  stroke-linecap: round;
}

.stick-blade {
  fill: none;
  stroke: #0b0b0d;
  stroke-width: 26;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stick-stripe {
  stroke-width: 19;
  stroke-linecap: butt;
}

.stick-stripe-blue {
  stroke: #0d3b66;
}

.stick-stripe-red {
  stroke: #c62828;
}
