.hero-section {
  padding: 0 var(--container-padding);
  margin-bottom: var(--spacing-lg);
}

.hero-banner {
  position: relative;
  width: var(--container-content-width);
  height: 100%;
  margin: 32.848px auto 0;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  margin: 34.722px auto 0;
}

.hero-text {
  position: relative;
  width: 977.283px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  color: var(--color-black);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-2xl);
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
  color: var(--color-black);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-2xl);
  text-align: center;
}

.hero-divider {
  position: relative;
  width: var(--container-content-width);
  height: 1px;
  margin: 39.06px auto 0;
}

@media (max-width: 1440px) {
  .hero-section {
    padding: 0 var(--spacing-md);
  }

  .hero-banner,
  .hero-content,
  .hero-divider .divider-image {
    width: 100%;
  }

  .hero-text {
    width: 100%;
    max-width: 977.283px;
  }

}

@media (max-width: 768px) {
  .hero-banner {
    margin-top: var(--spacing-sm);
  }

  .hero-title {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-lg);
  }

  .hero-content {
    margin-top: var(--spacing-md);
  }
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
  }

  .logo img {
    height: 60px;
    width: auto;
  }

  .nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
  }

  .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
  }

  .nav-links a:hover {
    color: #00bfff;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00bfff;
    transition: width 0.3s ease;
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  .evolution-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('image/evolution_header.jpg') center center/cover no-repeat;
    position: relative;
  }

  .evolution-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
  }

  .banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    padding: 0 20px;
  }

  .banner-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -2px;
  }

  .banner-subtitle {
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.9;
  }

  @media (max-width: 768px) {
    .main-header {
      flex-direction: column;
      padding: 15px 20px;
      gap: 15px;
    }

    .nav-links {
      flex-wrap: wrap;
      justify-content: center;
      gap: 15px;
    }

    .nav-links a {
      font-size: 12px;
    }
  }


.evolution-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

/* Image as background layer */
.banner-bg {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* makes full image visible */
}

/* Overlay content */
.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  z-index: 2;
}

.banner-logo img {
  max-width: 140px;
}

.banner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  width: 100%;
}

.banner-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

.banner-links a:hover {
  color: #00aaff;
}

.banner-title {
  font-size: 100px;
  font-weight: 800;
}

.banner-subtitle {
  font-size: 60px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .banner-title {
    font-size: 42px;
  }
  .banner-subtitle {
    font-size: 24px;
  }
}

.manifesto-section {
  padding: 60px 20px;
  font-family: var(--font-family-primary);
}

.manifesto-header {
  text-align: center;
  margin-bottom: 40px;
}

.manifesto-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 3px solid #00A0F2; /* accent line */
  display: inline-block;
  padding-bottom: 5px;
}

.manifesto-subtitle {
  font-size: 1rem;
  color: #666;
}

.manifesto-content {
  display: flex;
  gap: 20px;
  margin: 0 auto;
  align-items: stretch; /* ensures equal height */
}

.manifesto-image,
.manifesto-text {
  flex: 1;                 /* equal width */
  border-radius: 10px;
  overflow: hidden;        /* so corners clip correctly */
}

/* Image fills container */
.manifesto-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* cover entire area */
  display: block;
}

/* Text box */
.manifesto-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;       /* Black */
  font-size: 36px;
  line-height: 50px;      /* as specified */
  letter-spacing: 0;      /* default, but set for clarity */
  
  background-color: #00aaff;
  color: #000;
  padding: 50px;
  border-radius: 10px;
  
  display: flex;          /* keep content aligned */
  align-items: center;
}

.manifesto-text p {
  margin: 0 0 12px 0;     /* paragraph spacing */
}

.manifesto-text p:last-child {
  margin-bottom: 0;       /* remove last gap */
}

@media (max-width: 768px) {
  .manifesto-content {
    flex-direction: column;
  }
}

.whatwhy-section {
  padding: 60px 20px;
  font-family: var(--font-family-primary);
}

.whatwhy-content {
  display: flex;
  gap: 40px;
  margin: 0 auto;
  align-items: center;
}

.whatwhy-text {
  flex: 1;
}

.whatwhy-title {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;         /* Black */
  font-size: 50px;
  line-height: 1;           /* 100% */
  letter-spacing: 0;
  margin-bottom: 20px;

  /* underline in CSS */
  text-decoration: underline;
  text-decoration-thickness: 3px;   /* ~15% of 50px = 7.5px, 3–4px looks better in web */
  text-underline-offset: 6px;       /* offset from text baseline */
  text-decoration-color: #00aaff;   /* Polleo blue */
}


.whatwhy-text p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;       /* Regular */
  font-size: 26px;
  line-height: 42px;      /* exactly from Figma */
  letter-spacing: 0;
  margin-bottom: 12px;    /* paragraph spacing */
  color: #333;
}

.whatwhy-text p:last-child {
  margin-bottom: 0; /* no extra gap at end */
}

.whatwhy-image {
  flex: 1;
}

.whatwhy-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .whatwhy-content {
    flex-direction: column;
  }

  .whatwhy-image {
    order: -1; /* image goes above text on mobile */
  }
}

/* MAIN HEADLINE (naslov50) */
.logo-main-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;             /* Black */
  font-size: 50px;
  line-height: 1;               /* 100% */
  letter-spacing: 0;
  text-align: center;
  margin-bottom: 50px;
  text-decoration: underline;
  text-decoration-thickness: 7px;  /* ~15% of 50px ≈ 7.5px */
  text-underline-offset: 6px;      /* small gap between text and line */
  text-decoration-color: #00aaff;  /* brand color */
}

/* SUB-HEADLINE */
.logo-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;             /* Bold */
  font-size: 36px;
  line-height: 32px;
  text-align: center;
  letter-spacing: 0;
  margin-bottom: 12px;          /* paragraph spacing */
}

/* BODY TEXT */
.logo-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;             /* Regular */
  font-size: 26px;
  line-height: 42px;
  text-align: center;
  letter-spacing: 0;
  margin-bottom: 12px;
  color: #333;
}

.logo-text:last-child {
  padding:40px;
  margin-bottom: 0;
}

.logo-comparison {
  display: flex;
  margin: 40px auto;
  border-radius: 8px;
  overflow: hidden;
}

.comparison-item {
  flex: 1;                /* equal width */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;    /* background behind logos */
}

.comparison-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Desktop: 4-column grid */
.brand-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

/* Mobile: horizontal scroll */
@media (max-width: 768px) {
  .brand-gallery .gallery-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
  }

  .gallery-item {
    flex: 0 0 90%; /* each item takes ~80% of screen width */
    scroll-snap-align: start;
  }
}

.section-headline h2 {
  padding:100px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;        /* Black */
  font-size: 50px;
  line-height: 1;          /* 100% */
  letter-spacing: 0;
  text-align: center;
  color: #00A0F2;
  margin-bottom: 12px;     /* paragraph spacing */
}


.gymwear-section {
  position: relative;
  background: url("../image/evolution_footer.png") no-repeat center center/cover;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  padding: 80px 40px;
  display: flex;
  align-items: center;
  min-height: 500px;
}

.gymwear-overlay {
  position: relative;
  width: 100%;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.gymwear-content {
  max-width: 700px;
}

.gymwear-content h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.gymwear-content p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 42px;
  letter-spacing: 0;
  margin-bottom: 20px;
}

/* Buttons pinned to bottom-left */
.gymwear-buttons {
  position: absolute;
  bottom: 1px;
  left: 40px;
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #00A0F2;
  color: #fff;
}

.btn-primary:hover {
  background: #00A0F2;
}

.btn-secondary {
  background: #fff;
  color: #000;
}

.btn-secondary:hover {
  background: #ddd;
}


@media (max-width: 768px) {

  .banner-logo{
  padding-top:55px;
  }

  .banner-bg {
    content: url("../image/header_mobile_evolution.jpg");
}

  /* Hero / Evolution Banner */
  .evolution-banner {
    height: auto;
    border-radius: 0; /* often banners go edge-to-edge on mobile */
  }

  .banner-title {
    margin-bottom:0;
    font-size: 26px; /* scale down from 100px */
  }

  .banner-subtitle {
    padding-bottom: 40px;
    font-size: 24px; /* scale down from 60px */
  }

  .banner-links {
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 5px;
  }

  .banner-links a {
    font-size: 14px;
  }

  /* Manifesto */
  .manifesto-content {
    flex-direction: column;
    gap: 20px;
  }

  .manifesto-image,
  .manifesto-text {
    max-width: 100%;
    border-radius: 8px;
  }

  .manifesto-text {
    font-size: 22px;
    line-height: 34px;
    padding: 20px;
  }

  /* What & Why */
  .whatwhy-content {
    flex-direction: column;
    gap: 20px;
  }

  .whatwhy-title {
    padding:20px;
    font-size: 32px;
    text-align: center;
  }

  .whatwhy-text p {
    font-size: 18px;
    line-height: 30px;
  }

  /* Logo Section */
  .logo-main-title {
    padding:20px;
    font-size: 32px;
  }

  .logo-subtitle {
    font-size: 24px;
    line-height: 32px;
  }

  .logo-text {
    font-size: 18px;
    line-height: 28px;
    padding: 0 10px;
  }

  .logo-comparison {
    flex-direction: column;
  }

  /* Gallery */
  .brand-gallery .gallery-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-item {
    flex: 0 0 80%;
    scroll-snap-align: center;
  }

  /* Gymwear Section */
  .gymwear-section {
    border-radius: 0;
    padding: 40px 20px;
    min-height: 400px;
  }

  .gymwear-content h2 {
    font-size: 28px;
  }

  .gymwear-content p {
    font-size: 18px;
    line-height: 28px;
  }

  /* Buttons */
  .gymwear-buttons {
    position: static;  /* not pinned, flow naturally */
    margin-top: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    font-size: 14px;
    width: 100%; /* full-width buttons for tap targets */
    text-align: center;
  }
  .section-headline h2{
    padding:20px;
    font-size: 24px;
  }

.logo-comparison  {
    padding:5px;
  }

  .brand-gallery
  {
    padding:5px;
  }

}


/* ===== Language Switcher ===== */
.language-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-block;
  z-index: 999;
  font-family: 'DM Sans', sans-serif;
}

.language-btn {
  display: flex;
  align-items: center;
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.language-btn:hover {
  background: #f8f8f8;
}

.flag-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 45px;
  right: 0;
  background: #EBEFF1; /* dropdown background */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
  min-width: 120px;
  animation: fadeIn 0.2s ease;
}

.language-dropdown a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  gap: 8px;
  transition: background 0.2s;
  font-size: 14px;
}

.language-dropdown a:hover {
  background: #ffffff; /* hovered/selected background */
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-5px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .language-switcher {
    top: 12px;
    right: 12px;
  }
  .language-btn {
    font-size: 13px;
    padding: 4px 8px;
  }
  .flag-icon {
    width: 20px;
    height: 20px;
  }
}
