:root {
  --header-anchor-offset: clamp(80px, 10vw, 140px);
  --admin-bar-offset: 0px;
}

body.admin-bar {
  --admin-bar-offset: 32px;
}

@media (max-width: 782px) {
  body.admin-bar {
    --admin-bar-offset: 46px;
  }
}

#clients,
#about,
#services,
#portfolio,
#rentals {
  scroll-margin-top: var(--header-anchor-offset, 100px);
}
.home-main {
  width: 100%;
  height: calc(100vh - var(--admin-bar-offset)); /* FULL HEIGHT */
  display: block; /* important – stop flex collapsing */
}

.hero-bgs img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.3;
  z-index: -100;
}

.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--admin-bar-offset)); /* force full height */
  overflow: hidden;
}
.hero-center {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-center img {
  width: 100%;
  max-width: 100vh;
}
body {
  overflow-x: clip;
}
.hero-bgs {
  position: absolute; /* detach from content flow */
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-bgs--has-video .bg-img {
  opacity: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  min-width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  z-index: -110;
}

.hero-video__media {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  width: 100%;
  object-position: center;
  pointer-events: none;
  opacity: 0.4;
}

.hero-video iframe, .hero-video video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); /* dynamic responsive sizing */ width: max(100vw, 177.78vh); /* 16/9 = 1.7778 */ height: max(56.25vw, 100vh); /* 9/16 = 0.5625 */ pointer-events: none; }

.hero-content {
  display: flex;
  position: relative;
  flex-direction: column;
  text-align: centerr;
  align-items: center;
  max-width: 1440px;
  width: 100%;
}
.hero-background,
.clients,
.video-section {
  position: relative;
  overflow-x: clip; /* modern, prevents scroll but allows positioned children */
  overflow-y: visible;
}
.marketing-title {
  margin-top: 0;
  font-size: var(--fs-42);
  color: var(--color-hero);
  text-transform: uppercase;
  z-index: 100;
  text-align: center;
}
.hero-background {
  background: radial-gradient(
    circle at 55% 12%,
    #2b2b2b 15%,
    #1b1b1b 30%,
    #000000 70%
    );
    margin-bottom: 40px;
  height: 20%;
  padding: 20px 40px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: -10;

}

.clients {
  padding: 40px 40px 20px 40px;
  background: transparent;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.clients-container {
  max-width: 1440px;
  height: 80vh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.clients-title {
  font-size: var(--fs-48);
  color: var(--color-hero);
  text-transform: uppercase;
  margin: 0;
}
.info-icon {
  max-width: 600px;
    z-index: 100;
    width: 100%;
    height: auto;
    display: block;
}
.clients-description {
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f4f4f4;
  font-size: var(--fs-26);
  max-width: 800px;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.site-footer {
  background: #111;
  box-shadow: none;
  position: relative;
  z-index: 1;
  isolation: isolate;
}
.site-footer .footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform var(--hover-duration, 320ms) var(--hover-ease, ease);
}

.footer-logos {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  width: 100%;
  height: 70px;
  margin: 0 auto;
  padding: 20px 0;
  gap: 18px;
}

.socials {
  display: flex;
  gap: 1rem;
  height: 70px;
}

.socials img {
  width: 45px;
  height: 45px;
}

.footer-logo {
  display: flex;
}

.footer-logos img {
  max-height: 100%;
  transition: transform var(--hover-duration, 320ms) var(--hover-ease, ease),
              filter var(--hover-duration, 320ms) ease;
}

.footer-logos img:hover {
  transform: translateY(-4px) scale(1.02);
}

.work-together {
  opacity: 0.5;
  font-size: var(--fs-26);
  font-weight: 400;
  font-family: var(--color-hero);
  color: #fff;
  transition: opacity var(--hover-duration, 320ms) ease;
}

.work-email {
  color: #fff;
  font-weight: 400;
  font-size: var(--fs-26);
  font-family: var(--color-hero);
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--hover-duration, 320ms) ease,
              text-shadow var(--hover-duration, 320ms) ease;
}

.work-email::after {
  content: "";
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--color-hero), transparent);
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--hover-duration, 320ms) var(--hover-ease, ease),
              opacity var(--hover-duration, 320ms) ease;
}

.contact-info {
  display: flex;
  flex-direction: row;
  gap: 50px;
  justify-content: space-between;
  align-items: flex-end;
}

.address {
  font-style: normal;
  color: #fff;
  opacity: 0.5;
  font-size: var(--fs-14);
}

.footer-menu {
  display: flex;
  list-style: none;
  flex-direction: column;
  gap: 1rem;
}

.footer-menu-item {
  font-size: var(--fs-26);
  font-weight: 400;
  color: #fff;
  opacity: 0.5;
  transition: opacity var(--hover-duration, 320ms) ease,
              transform var(--hover-duration, 320ms) var(--hover-ease, ease),
              letter-spacing var(--hover-duration, 320ms) ease;
}

.footer-menu-item a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-bottom: 2px;
}

.footer-menu-item a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-hero), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--hover-duration, 320ms) var(--hover-ease, ease),
              opacity var(--hover-duration, 320ms) ease;
  opacity: 0;
}

.footer-menu-item:hover,
.footer-menu-item:focus-within {
  opacity: 1;
  transform: translateX(6px);
  letter-spacing: 0.04em;
}

.footer-menu-item:hover a::after,
.footer-menu-item:focus-within a::after {
  transform: scaleX(1);
  opacity: 1;
}

.site-footer {
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/footer/footer.svg") no-repeat center center / cover;
  opacity: 0.2;
  animation: kde-float 6s ease-in-out infinite;
}
.site-footer > .footer-container,
.site-footer > section {
  position: relative;
  z-index: 1;
}

/* Add reusable class for social links */
.social-link {
  display: flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  transition: transform var(--hover-duration, 320ms) var(--hover-ease, ease);
  position: relative;
  overflow: hidden;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.work-email:hover,
.work-email:focus-visible {
  color: var(--color-hero);
  text-shadow: 0 0 12px rgba(211, 171, 103, 0.4);
}

.work-email:hover::after,
.work-email:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.work-together:hover {
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer::before,
  .footer-logos img,
  .footer-menu-item,
  .footer-menu-item a::after,
  .social-link,
  .social-link::before,
  .social-link img,
  .work-email,
  .work-email::after {
    transition: none !important;
    animation: none !important;
  }
}


.social-link img {
  width: 28px;
  height: 28px;
  transition: transform var(--hover-duration, 320ms) var(--hover-ease, ease);
}


.social-link:hover::before,
.social-link:focus-visible::before {
  opacity: 1;
}

.social-link:hover img,
.social-link:focus-visible img {
  transform: scale(1.1);
}

@media (max-width: 1024px) and (min-width: 769px) {

  .site-footer .footer-container {
    flex-direction: row;
    padding: 0px 40px;
    gap: 20px;
    text-align: start;
  }

  .footer-logos {
    gap: 20px;
    height: auto;
  }

  .footer-logos img {
    max-width: 160px;
  }

  .socials {
    justify-content: start;
    gap: 15px;
    height: auto;
  }

  .socials img {
    width: 35px;
    height: 35px;
  }

  .work-together,
  .work-email {
    text-align: start;
    font-size: var(--fs-18);
  }

  .contact-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    width: 100%;
  }

  .footer-menu {
    flex-direction: column;
    justify-content: center;
    gap: 15px;
  }

  .footer-menu-item {
    font-size: var(--fs-18);
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {


  .marketing-title,
  .clients-title {
    font-size: var(--fs-28);
    margin-bottom: 1rem;
    z-index: 100;
  }


  .clients {
    padding: 20px;
  }
  .clients .hero-background {
    padding: 40px 20px;
  }
  .clients-description {
    font-size: var(--fs-18);
  }

  .clients-logos {
    margin: 0 20px;
    width: calc(100% - 40px);
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .clients-logos img {
    flex: 0 0 calc(33.333% - 1rem); /* exactly 3 per view with spacing */
    max-height: 45px;
    scroll-snap-align: center;
  }

  .clients-nav {
    font-size: var(--fs-2-5rem);
    width: 35px;
    height: 35px;
  }

  .clients-logos {
    margin: 0 25px;
    width: calc(100% - 50px);
  }

  .clients-logos img {
    flex: 0 0 25%;
    max-height: 45px;
  }

  /* Footer mobile */
  .site-footer .footer-container {
    flex-direction: column;
    padding: 20px 20px;
    justify-content: start;
    gap: 20px;
    text-align: start;
  }

  .call {
    display: flex;
    width: 100%;
    flex-direction: column;
    text-align: start;
  }

  .footer-logos {
    flex-direction: column;
    gap: 15px;
    height: auto;
  }

  .footer-logos img {
    width: 100%;
  }

  .footer-menu-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .socials {
    justify-content: center;
    gap: 10px;
    height: auto;
  }

  .socials img {
    width: 30px;
    height: 30px;
  }

  .work-together,
  .work-email {
    text-align: start;
    font-size: var(--fs-16);
  }

  .contact-info {
    flex-direction: column !important;
    align-items: start;
    gap: 10px;
    width: 100%;
  }

  .address-info {
    width: 100%;
  }

  .footer-menu {
    flex-direction: row;
    gap: 10px;
  }

  .footer-menu-item {
    font-size: var(--fs-16);
  }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  .hero-center img {
    width: 70%;
    max-width: 250px;
  }

  .clients-description {
    font-size: var(--fs-1rem);
  }

  .clients-logos {
    margin: 0 15px;
    width: calc(100% - 30px);
  }

  .clients-logos img {
    flex: 0 0 calc(50% - 1rem); /* 2 per view on small phones */
    max-height: 35px;
  }

  .clients-nav {
    font-size: var(--fs-2rem);
    width: 30px;
    height: 30px;
  }

  .clients-logos img {
    flex: 0 0 30%;
    max-height: 35px;
  }

  .site-footer .footer-container {
    display: flex;
    text-align: start;
    flex-direction: column;
    padding: 20px 20px;
  }

  .call {
    display: flex;
    flex-direction: column;
    text-align: start;
  }

  .footer-logos img {
    max-width: 1200px;
    width: 100%;
  }

  .contact-info {
    flex-direction: column !important;
    align-items: start;
    gap: 10px;
    width: 100%;
  }


  .work-together,
  .work-email {
    text-align: start;
  }

  .footer-menu-item {
    font-size: var(--fs-1rem);
  }
  .footer-menu {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 0;
  }
}
