/* ===============================
   Base Video Section
=================================*/
.video-section {
  position: relative;
  width: 100vw;
  height: 60vh;
  overflow: hidden;
  margin: 0;
  margin-top: 0.5rem;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Video Background with Limited Fade Effect */
.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.87) 75%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 75%,
    rgba(0, 0, 0, 0) 100%
  );
  transition: opacity 1s ease-in-out;
  opacity: 1;
}

.background-video.fading {
  opacity: 0;
}

/* Dark Overlay over the Video */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.753) 0%,
    rgba(0, 0, 0, 0.575) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 0;
}

/* Overlay Content (Text) */
.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--video-desc-color);
  z-index: 1;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  width: 600px;
}

.overlay-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.overlay-description {
  font-size: 18px;
  font-weight: 400;
}

.overlay-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 16px;
  font-weight: 600;
  color: var(--button-text);
  background-color: var(--button-bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.overlay-btn:hover {
  background-color: var(--button-hover);
}

/* Responsive Video Overlay */
@media (max-width: 934px) {
  .overlay-content {
    width: 80%;
    max-width: 100%;
    padding: 15px;
  }

  .overlay-title {
    font-size: 24px;
  }

  .overlay-description {
    font-size: 14px;
  }
}

/* ===============================
   Brands Showcase
=================================*/
.brands-showcase {
  padding: 3rem 1rem;
  background-color: var(--background-color);
  color: var(--text-color);
}

.brands-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
}

.brands-marquee {
  position: relative;
  overflow: hidden;
}

/* Edge fade effect */
.brands-marquee::before,
.brands-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}

.brands-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--background-color), transparent);
}

.brands-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--background-color), transparent);
}

.brands-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  width: fit-content;
  animation: scrollLeft linear infinite; /* replaced dynamically via JS */
}

/* Brand card styling */
.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 140px;
  padding: 12px;
  text-align: center;
  border-radius: 14px;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-color);
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.brand-item:hover,
.brand-item:focus-visible {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 20px var(--shadow-color);
  border-color: var(--accent-color);
  outline: none;
}

.brand-item:active {
  transform: translateY(-2px) scale(0.99);
}

/* Brand logo */
.brand-logo {
  width: 110px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

/* Theme-specific logo tweaks */
[data-theme="dark"] .brand-logo {
  filter: invert(1) brightness(2) drop-shadow(0 1px 3px rgba(255, 255, 255, 0.2));
}

[data-theme="light"] .brand-logo {
  filter: brightness(0) saturate(100%) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

.brand-info .brand-name {
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-color);
  letter-spacing: .3px;
}

.brand-info .brand-count {
  font-size: 12px;
  color: var(--secondary-text-brand);
}

/* Mobile adjustments */
@media (max-width: 700px) {
  .brand-item {
    width: 130px;
    height: 120px;
    padding: 10px;
  }

  .brand-logo {
    width: 90px;
    height: 58px;
  }

  .brands-track {
    gap: .9rem;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none !important; }
}

/* ===============================
   Map Section
=================================*/
.map-section {
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 3rem 1rem;
  justify-content: center;
}

.map-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.map-left,
.map-right {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

.map-left iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--shadow-color);
}

.map-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  background-color: var(--secondary-bg);
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--shadow-color);
  align-items: center;
}

.map-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

.store-address {
  font-size: 16px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.maps-button {
  display: inline-block;
  background-color: var(--button-bg);
  color: var(--button-text);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.maps-button:hover {
  background-color: var(--button-hover);
}

.contact-infos-main {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  font-size: 15px;
  color: var(--text-color);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--background-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--shadow-color);
}

.contact-icon {
  width: 20px;
  height: 20px;
  stroke: var(--text-color);
  stroke-width: 2;
}

/* Light Theme: Force icon to black */
[data-theme="light"] .contact-icon {
  filter: brightness(0) saturate(100%) invert(0);
}

/* Dark Theme: Force icon to white */
[data-theme="dark"] .contact-icon {
  filter: brightness(0) saturate(100%) invert(1);
}

/* ===============================
   About Section
=================================*/
.about-section {
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 3rem 1rem;
  border-radius: 12px;
  margin: 2rem 1rem;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-left,
.about-right {
  flex: 1;
  min-width: 300px;
}

.about-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

.about-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--footer-text);
}

.about-description strong {
  display: inline-block;
  animation: heartbeat 10s infinite;
}

@keyframes heartbeat {
  0% { color: var(--text-color); }
  50% { color: var(--running-bg); }
  100% { color: var(--text-color); }
}

/* Image Container */
.about-image-container {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-color);
  max-width: 90%;
  margin: 0 auto;
}

.about-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.about-image.active {
  opacity: 1;
}

.about-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.4)
  );
  pointer-events: none;
  z-index: 1;
}

/* ===============================
   Conditions Section
=================================*/
.conditions-section {
  padding-top: 2rem;
  color: var(--text-color);
  text-align: center;
  min-height: 50vh;
}

.conditions-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 2rem;
}

.conditions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.condition-column {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.condition-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-color);
  padding-bottom: 0.5rem;
}

.condition-column a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s;
}

.condition-column a:hover {
  color: var(--link-hover);
}

.condition-column:not(:first-child) {
  border-left: 1px solid var(--border-color);
  padding-left: 2rem;
}

@media (max-width: 793px) {
  .condition-column:not(:first-child),
  .condition-column:is(:first-child) {
    border-left: none;
    padding-left: 0;
    border-bottom: 1px solid var(--border-color);
  }
}

@keyframes blinkColor {
  0%, 100% { color: var(--link-color); }
  50% { color: var(--link-hover); }
}

.condition-column a.blink-color {
  animation: blinkColor 1.3s infinite;
}
