/* ============================================
   VÄJA SPORTS — ADDITIONS & FIXES v2
   ============================================ */

:root {
  --sponsor-img-height: 80px;   /* change this to resize all logos at once */
}

/* ===== FIX: Uniform service-row image height ===== */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;     /* fixed baseline */
  max-height: 500px;     /* cap so tall images don't expand */
  overflow: hidden;
}
.service-row-img {
  position: relative;
  overflow: hidden;
  height: 500px;         /* explicit height so object-fit works uniformly */
}
.service-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;  /* keeps faces / key content visible */
  transition: transform 0.8s ease;
}
.service-row:hover .service-row-img img { transform: scale(1.1); }
.service-row-content {
  height: 500px;
  overflow: hidden;
  background: var(--black-2);
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* ===== INFINITE GALLERY LOOP (About page) ===== */
.gallery-loop-section {
  padding: 80px 0;
  background: var(--black);
  overflow: hidden;
}
.gallery-loop-section .section-header {
  padding: 0 60px;
  margin-bottom: 48px;
}
.gallery-track-wrap {
  position: relative;
  overflow: hidden;
  /* fade edges */
}
.gallery-track-wrap::before,
.gallery-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.gallery-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--black), transparent);
}
.gallery-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--black), transparent);
}

.gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: galleryLoop 60s linear infinite;
}
.gallery-track:hover { animation-play-state: paused; }

.gallery-item {
  flex-shrink: 0;
  width: 320px;
  height: 220px;
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: grayscale(30%);
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

@keyframes galleryLoop {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SPONSOR LOOP (Services page) ===== */
.sponsor-loop-section {
  padding: 60px 0;
  background: var(--black-2);
  overflow: hidden;
  border-top: 1px solid rgba(201,168,76,0.12);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.sponsor-loop-section .section-header {
  padding: 0 60px;
  margin-bottom: 48px;
}

.sponsor-track-wrap {
  position: relative;
  overflow: hidden;
}

/* Fade edges */
.sponsor-track-wrap::before,
.sponsor-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.sponsor-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--black-2), transparent);
}
.sponsor-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--black-2), transparent);
}

.sponsor-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  padding: 16px 0;
  animation: sponsorLoop 25s linear infinite;
}
.sponsor-track:hover { animation-play-state: paused; }

.sponsor-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 16px 32px; */
  border: 1px solid rgba(201,168,76,0.12);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.sponsor-item:hover {
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.05);
}

/* ← Height controlled by the variable above */
.sponsor-item img {
  height: var(--sponsor-img-height);
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.8);   /* makes any colour logo white/grey */
  opacity: 0.6;
  transition: filter 0.4s ease, opacity 0.4s ease;
}
.sponsor-item:hover img {
  filter: grayscale(0%) brightness(1);        /* full colour on hover */
  opacity: 1;
}

@keyframes sponsorLoop {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  /* --sponsor-img-height : 36px; */
  .sponsor-item { padding: 12px 20px; }
  .sponsor-track { gap: 40px; }
}


/* ===== HOME EXTRA: PROCESS SECTION ===== */
.process-section {
  padding: var(--section-pad) 0;
  background: var(--black-2);
  position: relative;
  overflow: hidden;
}
.process-section::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 64px;
}
.process-step {
  padding: 52px 36px;
  background: var(--black);
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.process-step::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.5s ease;
}
.process-step:hover::after { width: 100%; }
.process-step:hover { background: var(--black-2); }
.process-num {
  font-family: var(--font-title);
  font-size: 64px;
  color: rgba(201,168,76,0.12);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.4s ease;
}
.process-step:hover .process-num { color: rgba(201,168,76,0.25); }
.process-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.process-icon svg { width: 20px; height: 20px; color: var(--gold); }
.process-step:hover .process-icon {
  background: var(--gold);
  border-color: var(--gold);
}
.process-step:hover .process-icon svg { color: var(--black); }
.process-step h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 400;
}
.process-step p {
  font-size: 13px;
  color: var(--silver-dim);
  line-height: 1.8;
}
/* connector arrow between steps */
.process-step:not(:last-child)::before {
  content: '→';
  position: absolute;
  top: 50%; right: -14px;
  transform: translateY(-50%);
  color: rgba(201,168,76,0.3);
  font-size: 18px;
  z-index: 2;
}

/* ===== HOME EXTRA: TESTIMONIALS SECTION ===== */
.testimonials-section {
  padding: var(--section-pad) 0;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 400px;
  color: rgba(201,168,76,0.03);
  position: absolute;
  top: -60px; left: -20px;
  line-height: 1;
  pointer-events: none;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.testimonial-card {
  background: var(--black-2);
  padding: 48px 36px;
  position: relative;
  border-top: 2px solid transparent;
  transition: var(--transition);
}
.testimonial-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-4px);
}
.testimonial-stars {
  display: flex; gap: 4px; margin-bottom: 24px;
}
.testimonial-stars svg {
  width: 14px; height: 14px;
  color: var(--gold); fill: var(--gold);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 300;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(201,168,76,0.3);
  flex-shrink: 0;
}
.testimonial-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.testimonial-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 3px;
}
.testimonial-role {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.testimonial-quote-mark {
  position: absolute;
  top: 32px; right: 36px;
  font-family: var(--font-display);
  font-size: 80px;
  color: rgba(201,168,76,0.1);
  line-height: 1;
}

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { width: 260px; height: 180px; }
  .service-row { max-height: none; min-height: 460px; }
  .service-row-img { height: 460px; }
  .service-row-content { height: auto; min-height: 460px; }
}
@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-step::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .gallery-item { width: 200px; height: 150px; }
  .sponsor-item { padding: 20px 24px; min-width: 120px; }
  .sponsor-logo { font-size: 15px; }
  .service-row { max-height: none; grid-template-columns: 1fr; }
  .service-row-img { height: 280px; }
  .service-row-content { height: auto; padding: 48px 28px; }
  .service-row:nth-child(even) { direction: ltr; }
}

/* ===== HERO: per-slide content ===== */
.hero-content-slide {
  display: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-content-slide.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

/* ===== IMAGE GRID SECTION ===== */
.img-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: stretch;
}

.img-grid-left {
  display: flex;
  flex-direction: column;
}

.img-grid-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Left — tall single image, matches total height of right column */
.img-grid-tall {
  height: 100%;
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

/* Right — two images, each fixed height */
.img-grid-right .img-grid-item {
  height: 242px;        /* ← change this value to resize right images */
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

/* Image always fills its box */
.img-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease, filter 0.4s ease;
  filter: grayscale(20%);
}
.img-grid-item:hover img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* Overlay label */
.img-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.78) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.img-grid-item:hover .img-grid-overlay { opacity: 1; }
.img-grid-overlay span {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
  .img-grid-layout {
    grid-template-columns: 1fr;
  }
  .img-grid-tall {
    min-height: 280px;
    height: 280px;
  }
  .img-grid-right .img-grid-item {
    height: 200px;
  }
}
/* ===== WHY CHOOSE US — Parallax ===== */
.why-choose-section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}
.why-choose-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/why-us.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}
.why-choose-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.511);
  z-index: 1;
}
.why-choose-content {
  position: relative;
  z-index: 2;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.why-card {
  padding: 32px 32px;
  background: rgba(255, 255, 255, 0.027);
  border: 1px solid rgba(201,168,76,0.12);
  backdrop-filter: blur(8px);
  text-align: center;
  transition: var(--transition);
}
.why-card:hover {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-6px);
}
.why-icon {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(201,168,76,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: var(--transition);
}
.why-icon svg { width: 24px; height: 24px; color: var(--gold); }
.why-card:hover .why-icon {
  background: var(--gold);
  border-color: var(--gold);
}
.why-card:hover .why-icon svg { color: var(--black); }
.why-card h3 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--white);
  font-weight: 500;
}
.why-card p {
  font-size: 13px;
  color: var(--white-dim);
  line-height: 1.8;
}

/* ===== MOBILE NAV: close button ===== */
.nav-mobile-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  cursor: none;
  transition: var(--transition-fast);
  z-index: 10;
}
.nav-mobile-close svg { width: 20px; height: 20px; color: var(--white); }
.nav-mobile-close:hover {
  border-color: var(--gold);
  background: var(--gold-muted);
}
.nav-mobile-close:hover svg { color: var(--gold); }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  cursor: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover { background: var(--gold-light); }
.scroll-top svg { width: 20px; height: 20px; color: var(--black); }

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  /* .img-grid-layout { grid-template-columns: 1fr; }
  .img-grid-tall { min-height: 280px; }
  .img-grid-right .img-grid-item { height: 200px; } */
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-choose-bg { background-attachment: scroll; } /* iOS fix */
  .scroll-top { bottom: 24px; right: 24px; width: 42px; height: 42px; }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
}

.footer-bottom-links a:hover { color: var(--white) !important; border-color: var(--white) !important; }