:root {
  --brand: #44b3eb;
  --max-width: 1200px;
  --page-gap: 20px;
  --base-font-size: 16px;
  --card-bg: #ffffff;
  --hero-height: calc(100vh + 120px);
  --hero-min-height: 720px;
  --easing: cubic-bezier(0.2, 0.9, 0.2, 1);
  --hero-glow: rgba(68, 179, 235, 0.06);
  --hero-glow-strong: rgba(68, 179, 235, 0.14);
  --card-shadow: rgba(12, 24, 32, 0.06);

  /* move hero title down so it avoids faces */
  --hero-title-shift: 22vh;

  /* Header sizing variables – USKLAĐENO SA style.css */
  --header-height: 110px;
  --header-logo-height: 160px;
  --nav-gap: 28px;
  --nav-font-size: 18px;
  --flag-w: 50px;
  --flag-h: 40px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family:
    "Sora",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: var(--base-font-size);
  color: #111;
  background: #fff;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* HEADER */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: #fff;
  box-shadow: 0 6px 18px rgba(13, 24, 35, 0.08);
}

/* allow wrapping instead of clipping */
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px var(--page-gap);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  min-height: var(--header-height);
  height: auto;
}

.header-inner .nav.nav-left {
  justify-self: end;
  margin-right: 6px;
}
.header-inner .nav.nav-right {
  justify-self: start;
  margin-left: 12px;
}

.nav {
  display: flex;
  gap: var(--nav-gap);
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
}

.logo {
  height: var(--header-logo-height);
  display: inline-block;
  max-height: calc(var(--header-height) + 30px);
  width: auto;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: #0f1720;
  font-size: var(--nav-font-size);
  font-weight: 700;
  padding: 8px 0;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 100%;
  background: var(--brand);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 220ms ease;
}
.nav-link:hover::after,
.nav-link:focus::after {
  transform: scaleX(1);
}

.lang-flag {
  display: inline-block;
  position: relative;
}
.lang-flag img {
  width: var(--flag-w);
  height: var(--flag-h);
  object-fit: cover;
  transform: translateY(2px);
  border-radius: 20%;
}
.lang-flag::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 100%;
  background: var(--brand);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 220ms ease;
}
.lang-flag:hover::after,
.lang-flag:focus::after {
  transform: scaleX(1);
}

main {
  padding-top: var(--header-height);
}

/* ===== Header responsiveness fixes (match style.css approach) ===== */

/* ≤1100px */
@media (max-width: 1100px) {
  :root {
    --header-logo-height: 110px;
    --nav-gap: 20px;
    --nav-font-size: 16px;
    --flag-w: 40px;
    --flag-h: 32px;
  }

  .header-inner {
    gap: 20px;
  }
}

/* Tablet layout tweaks */
@media (max-width: 900px) {
  :root {
    --header-logo-height: 96px;
    --header-height: 100px;
  }

  main {
    padding-top: var(--header-height);
  }
}

/* ==========================================================
   MOBILE (≤ 720px) - same responsive header behavior as style.css
   - column layout: logo on top, nav row beneath
   - nav row is one line and scrolls horizontally when needed (no overlap)
   ========================================================== */
@media (max-width: 720px) {
  :root {
    --header-height: 140px;
    --header-logo-height: 92px;
    --nav-gap: 14px;
    --nav-font-size: 14px;
    --flag-w: 42px;
    --flag-h: 34px;
  }

  main {
    padding-top: var(--header-height);
  }

  .header-inner {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 10px 14px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    overflow-x: auto;
    scrollbar-width: none;
  }
  .header-inner::-webkit-scrollbar {
    display: none;
  }

  .logo-link {
    order: 0;
  }

  .nav.nav-left,
  .nav.nav-right {
    margin: 0 !important;
    display: inline-flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    row-gap: 0;
    gap: var(--nav-gap);
    align-items: center;
    flex: 0 0 auto;
  }

  .nav.nav-left {
    order: 1;
  }
  .nav.nav-right {
    order: 1;
  }

  .lang-flag img {
    width: var(--flag-w);
    height: var(--flag-h);
    transform: none;
  }

  .nav-link {
    padding: 6px 0;
  }
}

/* Phones */
@media (max-width: 600px) {
  :root {
    --header-height: 124px;
    --header-logo-height: 84px;
    --nav-gap: 12px;
    --nav-font-size: 13px;
    --flag-w: 40px;
    --flag-h: 32px;
  }

  main {
    padding-top: var(--header-height);
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  :root {
    --header-height: 124px;
    --header-logo-height: 76px;
    --nav-gap: 10px;
    --nav-font-size: 12px;
    --flag-w: 38px;
    --flag-h: 30px;
  }

  main {
    padding-top: var(--header-height);
  }
}

/* HERO */

.hero-full {
  position: relative;
  width: 100%;
  height: var(--hero-height);
  min-height: var(--hero-min-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 680ms var(--easing),
    transform 680ms var(--easing);
  transform-origin: center;
  animation: hero-box-pulse 9s ease-in-out infinite alternate;
}
.hero-full.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-full:hover,
.hero-full:focus-within {
  animation-play-state: paused;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: hero-img-zoom 22s ease-in-out infinite alternate;
  transform-origin: center;
}
.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 18, 26, 0.45),
    rgba(7, 18, 26, 0.45)
  );
  z-index: 1;
  animation: hero-overlay-pulse 10s ease-in-out infinite alternate;
}

/* title lowered */
.hero-full-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  transform: translateY(var(--hero-title-shift));
}

.hero-title {
  margin: 0;
  color: #fff;
  font-size: 54px;
  line-height: 1.02;
  letter-spacing: 0.02em;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(18px);
  animation: hero-title-in 700ms var(--easing) 250ms both;
}

/* PURPOSE */

.purpose-section {
  padding: 36px 0 18px;
  background: #fff;
  margin-top: 64px;
  position: relative;
}
.purpose-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-gap);
  text-align: center;
}
.purpose-title {
  margin: 8px 0 18px 0;
  font-size: 33px;
  line-height: 1.08;
  font-weight: 800;
  color: #0f1720;
}
.purpose-text {
  max-width: 820px;
  margin: 0 auto;
  color: #333;
  font-size: 27px;
  line-height: 1.6;
}

/* COACHES GRID */

.coaches-grid-section {
  padding: 36px 0 100px;
  background: #fff;
}
.coaches-grid-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-gap);
}
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  align-items: flex-start;
  gap: 36px;
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}
.coach-card {
  background: var(--card-bg);
  border-radius: 14px;
  border: 2px solid rgba(12, 24, 32, 0.06);
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-height: 480px;
  width: 360px;
  box-shadow: 0 8px 22px var(--card-shadow);
  transition:
    transform 220ms var(--easing),
    box-shadow 320ms var(--easing),
    border-color 220ms var(--easing);
}
.coach-card:hover,
.coach-card:focus-within {
  transform: translateY(-8px);
  border-color: var(--brand);
  box-shadow:
    0 18px 40px rgba(12, 24, 32, 0.12),
    0 6px 20px var(--hero-glow-strong),
    0 0 0 6px var(--hero-glow);
}
.coach-media {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid rgba(12, 24, 32, 0.06);
  background: #f3f3f3;
}
.coach-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.coach-name {
  margin: 4px 0 0 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f1720;
  text-align: center;
}
.coach-desc {
  margin: 2px 0 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  text-align: center;
}
.view-coach-btn {
  margin-top: auto;
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 120ms ease;
}
.view-coach-btn:hover,
.view-coach-btn:focus {
  background: var(--brand);
  color: #0b1120;
  transform: translateY(-4px);
}

/* CV MODAL */

.cv-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.cv-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cv-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.cv-card {
  position: relative;
  background: #fff;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cv-modal.open .cv-card {
  transform: scale(1);
}
.cv-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 200ms ease,
    transform 200ms ease;
  z-index: 10;
}
.cv-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}
.cv-content {
  padding: 40px 32px;
}
.cv-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f0f0f0;
}
.cv-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #44b3eb;
}
.cv-title-block h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  color: #0f1720;
  font-weight: 800;
}
.cv-role {
  margin: 0;
  font-size: 16px;
  color: #44b3eb;
  font-weight: 600;
}
.cv-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cv-section h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  color: #0f1720;
  font-weight: 700;
}
.cv-bio {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}
.cv-experience {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}
.cv-experience li {
  margin-bottom: 8px;
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}
.cv-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.specialty-tag {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #44b3eb, #6bc5f0);
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* ANIMATIONS */

@keyframes hero-box-pulse {
  from {
    transform: scale(1);
    box-shadow: none;
  }
  to {
    transform: scale(1.02);
    box-shadow:
      0 40px 80px var(--hero-glow),
      inset 0 0 50px rgba(0, 0, 0, 0.06);
  }
}
@keyframes hero-img-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}
@keyframes hero-overlay-pulse {
  from {
    opacity: 0.9;
  }
  to {
    opacity: 1;
  }
}
@keyframes hero-title-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SECTION REVEAL */

.reveal-section {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 520ms cubic-bezier(0.2, 0.9, 0.2, 1),
    transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

/* Large screens / TVs */
@media (min-width: 1400px) {
  :root {
    --max-width: 1300px;
    --hero-height: calc(110vh + 120px);
    --hero-min-height: 780px;
    --hero-title-shift: 18vh;
  }

  body {
    font-size: 17px;
  }

  .hero-title {
    font-size: 60px;
  }

  .purpose-title {
    font-size: 38px;
  }
  .purpose-text {
    font-size: 30px;
  }

  .coach-card {
    width: 380px;
    min-height: 500px;
  }
  .coach-media {
    width: 240px;
    height: 240px;
  }
}

/* Slight downscale for wide but not huge screens */
@media (max-width: 1600px) {
  .coach-card {
    width: 340px;
    min-height: 460px;
    padding: 24px;
  }
  .coach-media {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 1200px) {
  .coaches-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 28px;
  }
  .coach-card {
    width: 320px;
    min-height: 440px;
    padding: 20px;
  }
  .coach-media {
    width: 190px;
    height: 190px;
  }

  .hero-title {
    font-size: 46px;
  }
  .purpose-title {
    font-size: 30px;
  }
  .purpose-text {
    font-size: 24px;
  }
}

/* Small tablets / large phones */
@media (max-width: 720px) {
  .coaches-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .coach-card {
    width: calc(100% - 40px);
    max-width: 520px;
    min-height: 360px;
    padding: 16px;
  }
  .coach-media {
    width: 140px;
    height: 140px;
  }
  .hero-title {
    font-size: 30px;
  }
  .purpose-title {
    font-size: 22px;
  }
  .purpose-text {
    font-size: 18px;
  }
}

/* Phones */
@media (max-width: 600px) {
  .purpose-section {
    padding: 28px 0 12px;
    margin-top: 32px;
  }

  .cv-content {
    padding: 32px 20px;
  }
  .cv-header {
    flex-direction: column;
    text-align: center;
  }
  .cv-title-block h2 {
    font-size: 24px;
  }
  .cv-photo {
    width: 80px;
    height: 80px;
  }
}

/* Extra small phones */
@media (max-width: 420px) {
  .coach-card {
    width: calc(100% - 24px);
    padding: 12px;
    min-height: 320px;
  }
  .coach-media {
    width: 120px;
    height: 120px;
  }
  .hero-title {
    font-size: 22px;
  }
  .purpose-title {
    font-size: 18px;
  }
  .purpose-text {
    font-size: 16px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-full,
  .hero-img,
  .hero-full::before,
  .hero-title {
    animation: none !important;
    transition: none !important;
  }
  .reveal-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* SR ONLY */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
