/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #050505;
  color: #fff;
}

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

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

/* =========================================================
   HERO
========================================================= */

.sponsors-hero {
  --hero-image: url("/img/heroes/sponsors.webp");
  min-height: 100vh;
  position: relative;
  padding: 160px 60px 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sponsors-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.56),
      rgba(0, 0, 0, 0.62),
      rgba(0, 0, 0, 0.45)
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.88)),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.03);
  z-index: -2;
}

@media (max-width: 620px) {
  .sponsors-hero {
    --hero-image: url("/img/heroes/mobile/sponsors.webp");
  }
}

.hero-content {
  max-width: 980px;
  text-align: center;
}

h1 {
  font-size: clamp(72px, 8.8vw, 125px);
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1;
}

h1 span {
  color: #ff2b2b;
}

.hero-content p {
  margin: 28px auto 0;
  max-width: 650px;
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.74);
}

/* =========================================================
   SPONSORS GRID
========================================================= */

.sponsors-grid-section {
  padding: 150px 60px 120px;
}

.sponsors-heading {
  text-align: center;
  margin-bottom: 70px;
}

.sponsors-heading h2 {
  font-size: clamp(56px, 5.8vw, 80px);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: #ffffff;
}

.sponsors-heading p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.sponsors-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.sponsor-card {
  position: relative;
  min-height: 260px;
  border-radius: 30px;
  background: linear-gradient(180deg, #171717, #090909);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.35s;
}

.sponsor-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(225, 6, 0, 0.18),
    transparent 55%
  );
}

.sponsor-card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 6, 0, 0.55);
}

.sponsor-card img {
  --logo-scale: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 44%;
  object-fit: contain;
  filter: brightness(1.1);
  transform: scale(var(--logo-scale));
  transition: 0.35s;
  position: relative;
  z-index: 1;
}

.sponsor-card:nth-child(3) img,
.sponsor-card:nth-child(4) img,
.sponsor-card:nth-child(5) img,
.sponsor-card:nth-child(6) img,
.sponsor-card:nth-child(8) img,
.sponsor-card:nth-child(10) img,
.sponsor-card:nth-child(14) img,
.sponsor-card:nth-child(16) img,
.sponsor-card:nth-child(22) img {
  --logo-scale: 0.95;
}

.sponsor-card:nth-child(13) img,
.sponsor-card:nth-child(17) img {
  --logo-scale: 0.9;
}

.sponsor-card:nth-child(20) img {
  --logo-scale: 0.85;
}

.sponsor-card img[alt="Македонија Турист"],
.sponsor-card img[alt="Технотранс"] {
  filter: brightness(1.55);
}

.sponsor-card:hover img {
  transform: scale(calc(var(--logo-scale) * 1.05));
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {
  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .sponsors-hero {
    min-height: 90vh;
    padding: 140px 24px 70px;
  }

  h1 {
    font-size: clamp(64px, 11vw, 82px);
  }

  .hero-content p {
    font-size: 17px;
  }

  .sponsors-grid-section {
    padding: 90px 24px;
  }

  .sponsors-heading {
    margin-bottom: 54px;
  }

  .sponsors-heading h2 {
    font-size: 58px;
  }

  .sponsors-heading p {
    font-size: 17px;
  }

  .sponsor-card {
    min-height: 240px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {
  .sponsors-hero {
    min-height: 100svh;
    padding: 128px 18px 56px;
  }

  h1 {
    font-size: 52px;
    line-height: 0.95;
  }

  .hero-content p {
    font-size: 16px;
    line-height: 1.7;
  }

  .sponsors-grid-section {
    padding: 76px 18px;
  }

  .sponsors-heading {
    margin-bottom: 42px;
  }

  .sponsors-heading h2 {
    font-size: 42px;
  }

  .sponsors-heading p {
    font-size: 16px;
    line-height: 1.7;
  }

  .sponsors-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sponsor-card {
    min-height: 220px;
    border-radius: 22px;
  }

  .sponsor-card:hover {
    transform: none;
  }

  .sponsor-card img {
    max-width: 66%;
    max-height: 42%;
  }

  .sponsor-card:nth-child(3) img,
  .sponsor-card:nth-child(6) img {
    --logo-scale: 1.25;
  }
}
