/* ==========================================================================
   De Sales Guys — home.css (homepage secties)
   ========================================================================== */

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.32;
  filter: saturate(0.75) contrast(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(11, 11, 13, 0.55) 0%,
      rgba(11, 11, 13, 0.35) 40%,
      rgba(11, 11, 13, 0.92) 85%,
      var(--ink) 100%
    ),
    radial-gradient(
      ellipse at 20% 40%,
      rgba(200, 16, 46, 0.28),
      rgba(200, 16, 46, 0) 55%
    );
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 6.2vw, 5.25rem);
  letter-spacing: -0.03em;
  line-height: 0.96;
  color: var(--chalk);
  margin-bottom: 1.25rem;
}

.hero-copy h1.hero-h1 {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--chalk);
  margin-bottom: 0.75rem;
}

.hero-copy h1 {
  margin-bottom: 1.5rem;
}

.hero-copy h1 .it {
  color: var(--red);
}

.hero-copy .lead {
  max-width: 30rem;
  margin-bottom: 2rem;
}

.hero-copy .btn-row {
  margin-bottom: 3rem;
}

.hero .stats {
  gap: 1.5rem 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-strong);
}

.hero .stat .num {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.hero-form .form-card h3,
.hero-form .form-card .form-title {
  font-size: 1.75rem;
}

.hero-form .form-card h3 .it,
.hero-form .form-card .form-title .it {
  color: var(--red);
}

/* Merkenstrook ----------------------------------------------------------- */

.brands {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(200, 16, 46, 0.12),
    rgba(200, 16, 46, 0) 60%
  );
}

.brands .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.brands .eyebrow {
  margin-bottom: 0;
}

.brands .brand-logos {
  justify-content: center;
  gap: 1rem;
}

.brands .brand-tile {
  height: 72px;
  padding: 0 1.5rem;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.9);
}

.brands .brand-ziggo {
  padding: 0;
}

.brands .brand-ziggo img {
  height: 72px;
  transform: scale(1.3);
}

.brands .brand-delta img {
  height: 40px;
}

.brands ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.brands li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(245, 243, 239, 0.04);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--chalk);
}

.brands li i {
  color: var(--red);
  font-size: 1.15rem;
}

/* Redenen ---------------------------------------------------------------- */

.reasons .card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.reasons .card h3 {
  margin-bottom: 0.6rem;
}

.reasons .card p {
  font-size: 0.95rem;
}

.reasons .card .num {
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(245, 243, 239, 0.05);
  transition: color 0.35s;
}

.reasons .card:hover .num {
  color: rgba(200, 16, 46, 0.35);
}

/* Wat wij doen ----------------------------------------------------------- */

.section.what {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.what .img-frame {
  min-height: 420px;
}

.what .check-list {
  margin: 1.75rem 0 2rem;
}

.what .product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.what .img-frame .badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  background: rgba(11, 11, 13, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.what .img-frame .badge i {
  color: var(--red);
  font-size: 1.6rem;
}

.what .img-frame .badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1;
}

.what .img-frame .badge span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Procedure (4 stappen) --------------------------------------------------- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--red), var(--line-strong));
  opacity: 0.6;
}

.step {
  text-align: center;
  padding: 0 0.5rem;
  position: relative;
}

.step .step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--graphite);
  border: 1px solid var(--line-strong);
  color: var(--chalk);
  font-size: 1.5rem;
  position: relative;
}

.step .step-icon::after {
  content: attr(data-step);
  position: absolute;
  top: -6px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.92rem;
}

.process .btn-row {
  justify-content: center;
  margin-top: 3rem;
}

/* Academy teaser --------------------------------------------------------- */

.academy-teaser .container > div {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.academy-teaser .copy {
  padding: clamp(2rem, 4vw, 4rem);
}

.academy-teaser .copy h2 {
  margin-bottom: 1rem;
}

.academy-teaser .copy .lead {
  margin-bottom: 1.5rem;
}

.academy-teaser .photo {
  position: relative;
  min-height: 360px;
}

.academy-teaser .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.academy-teaser .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--graphite) 0%, rgba(23, 24, 28, 0) 35%);
}

.academy-teaser .milestones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 2rem;
}

.academy-teaser .milestones div {
  border-left: 2px solid var(--red);
  padding-left: 0.85rem;
}

.academy-teaser .milestones strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.1;
}

.academy-teaser .milestones span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Vestigingen ------------------------------------------------------------ */

.locations .card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.locations .card .icon-box {
  margin: 0 auto 1.25rem;
}

.locations .card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.locations .card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.locations .card .pill {
  margin-top: 0.25rem;
}

/* Testimonials ----------------------------------------------------------- */

.testimonials .card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonials .quote-mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--red);
  height: 1.5rem;
}

.testimonials blockquote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(245, 243, 239, 0.88);
  flex: 1;
}

.testimonials .who {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonials .who .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials .who strong {
  display: block;
  font-size: 0.95rem;
}

.testimonials .who span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Fotostrook (Over ons) -------------------------------------------------- */

.gallery-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
  height: 380px;
}

.gallery-strip .img-frame {
  height: 100%;
}

/* Fotoslider ------------------------------------------------------------- */

.photo-marquee {
  overflow: hidden;
}

.photo-marquee {
  padding-top: 0;
}

.photo-marquee .container {
  margin-bottom: 2rem;
}

.video-section .section-head {
  margin-bottom: 0;
}

.photo-marquee h2 {
  margin-top: 0;
}

.marquee {
  width: 100%;
  overflow: hidden;
  padding-block: 0.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee-left 60s linear infinite;
}

.marquee-right .marquee-track {
  animation-name: marquee-right;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-tile {
  flex: 0 0 auto;
  width: 320px;
  height: 214px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--graphite);
}

.marquee-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Kantoorvideo */
.office-video {
  max-width: 420px;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
  text-align: center;
}

.office-video video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--graphite);
  object-fit: cover;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

.office-video .video-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-copy .lead {
    max-width: 36rem;
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1.25rem;
  }

  .process-steps::before {
    display: none;
  }

  .academy-teaser .container > div {
    grid-template-columns: 1fr;
  }

  .academy-teaser .photo {
    min-height: 280px;
    order: -1;
  }

  .academy-teaser .photo::after {
    background: linear-gradient(0deg, var(--graphite) 0%, rgba(23, 24, 28, 0) 40%);
  }

  .gallery-strip {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .gallery-strip .img-frame {
    aspect-ratio: 4 / 3;
  }

  .gallery-strip .img-frame:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

}

@media (max-width: 720px) {
  .hero {
    padding-top: calc(var(--header-h) + 2rem);
  }

  .hero-tagline {
    font-size: clamp(2.5rem, 12vw, 3.4rem);
  }

  .hero-copy .btn-row {
    margin-bottom: 2rem;
  }

  .hero-copy .btn-row .socials {
    width: 100%;
    justify-content: center;
  }

  .what .img-frame {
    min-height: 300px;
  }

  .what .brand-logos,
  .what .product-pills {
    justify-content: center;
  }

  .what .brand-logos {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .what .brand-tile {
    flex: 1 1 0;
    min-width: 0;
    height: 48px;
    padding: 0 0.5rem;
  }

  .what .brand-tile img {
    max-width: 100%;
    height: auto;
    max-height: 100%;
    transform: none;
  }

  .what .brand-ziggo img {
    height: 48px;
    width: auto;
    max-width: none;
    transform: scale(1.25);
  }

  .what .brand-odido img {
    height: 48px;
    width: auto;
    max-width: none;
    transform: scale(1.6);
  }

  .what .brand-delta img {
    max-height: 28px;
  }

  .what .brand-essent img {
    max-height: 34px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .academy-teaser .milestones {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }


  .reasons .card {
    min-height: 0;
  }

  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .marquee-tile {
    width: 220px;
    height: 150px;
  }

  .marquee-track {
    gap: 0.75rem;
    animation-duration: 45s;
  }
}
