/* ---------- Hero image sections ---------- */
.hero-section {
  width: 100%;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-section.visible {
  opacity: 1;
  transform: none;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

picture {
  display: block;
  width: 100%;
}

/* ---------- Overlay CTA button on top of a hero image ---------- */
.hero-cta-wrap {
  position: relative;
}

.hero-cta-btn {
  position: absolute;
  left: 77%;
  top: 62%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(240, 168, 92, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-cta-btn:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.05);
  box-shadow: 0 8px 18px rgba(240, 168, 92, 0.5);
  background: #e6954a;
}

@media (max-width: 768px) {
  .hero-cta-btn {
    padding: 6px 16px;
    font-size: 10px;
  }
}

/* ---------- Hero slider (img 01 <-> img 02 crossfade) ---------- */
.hero-slider {
  position: relative;
}

.hero-slide {
  aspect-ratio: 6000 / 3750;
}

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

.hero-slider .hero-slide + .hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hero-slider .hero-slide.active {
  opacity: 1;
}

@media (max-width: 768px) {
  /* overflow:hidden here used to clip the old 105%-width crop hack.
     Now that .hero-image is a plain 100% width, keeping it clips a
     sub-pixel sliver off images with a fractional rendered height,
     which shows up as a thin seam line between stacked sections. */
  .hero-section {
    overflow: visible;
  }

  .hero-image {
    width: 100%;
  }

  /* Mobile phone photos are portrait-cropped already, unlike the landscape
     desktop originals - drop the fixed landscape aspect-ratio/cover so they
     render at their own proportions instead of being squeezed/cut off. */
  .hero-slide {
    aspect-ratio: auto;
  }

  .hero-slide .hero-image {
    height: auto;
    object-fit: initial;
  }

  /* Mobile: no crossfade animation, just show both photos stacked normally. */
  .hero-slider .hero-slide + .hero-slide {
    position: static;
    opacity: 1;
    transition: none;
  }
}

/* ---------- Testimonial video (self-hosted mp4, 16:9) ---------- */
.fb-video-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  box-sizing: border-box;
}

.fb-video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.fb-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Success cases (3-column) ---------- */
.cases-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  text-align: center;
}

.cases-title {
  font-family: Georgia, "Times New Roman", serif;
  color: #6e6e6e;
  font-size: 44px;
  margin-bottom: 40px;
}

.cases-row {
  display: flex;
  gap: 32px;
}

.cases-col {
  flex: 1 1 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.cases-image {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .cases-row {
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    gap: 24px;
  }

  .cases-col {
    flex: none;
    width: 100%;
  }

  .cases-title {
    font-size: 32px;
    margin-bottom: 24px;
  }
}

/* ---------- Advisors title (cropped to trim blank space below the text).
   Uses aspect-ratio (percentage of width) instead of a fixed pixel height,
   so the same proportion of the image is visible on every screen width -
   a fixed height here crops more away the wider the viewport gets. ---------- */
.advisors-title-image {
  aspect-ratio: 16 / 3;
  height: auto;
  object-fit: cover;
  object-position: top;
}

/* ---------- Advisors row (3 columns under title image) ---------- */
.advisors-row {
  display: flex;
  width: 100%;
}

.advisors-col {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  text-align: center;
  aspect-ratio: 1000 / 1371;
}

.advisor-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.advisor-caption {
  position: absolute;
  left: 50%;
  top: 78%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.advisor-btn {
  display: inline-block;
  padding: 14px 42px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 4px 10px rgba(201, 160, 92, 0.35);
}

.advisor-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 18px rgba(201, 160, 92, 0.5);
  background: #b3893f;
}

.advisor-name {
  margin: 0;
  padding-top: 16px;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .advisor-caption {
    top: 78%;
  }

  .advisor-name {
    padding-top: 10px;
    font-size: 20px;
  }
}

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

  .advisors-col {
    flex: none;
    width: 100%;
    margin: 0;
  }

  .advisor-image {
    width: 100%;
    height: auto;
  }
}
