/* ====================================================================== *
 * File: landing-nav-refinement.css
 * Location: static/css/landing-nav-refinement.css
 * Description: Landing top navigation anchor, seamless hero-to-course transition, and compact section spacing.
 * Version: 1.1.0
 * Last Modified: Sun Aug 09 2026 - 19:56
 * Dependencies: landing.css, landing-course-portfolio.css, specialist_comments.css
 * ====================================================================== */

/* -------------------------------------------------------------------------- *
 * 1. Smooth in-page navigation
 * -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

#landing-courses {
  scroll-margin-top: 0;
}

/* -------------------------------------------------------------------------- *
 * 2. Top action pills
 * -------------------------------------------------------------------------- */

.landing-topbar {
  gap: 10px;
  flex-wrap: nowrap;
}

.landing-courses-top {
  white-space: nowrap;
}

.landing-courses-top::before {
  content: "↓";
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--landing-gold-2);
  font-size: 0.78rem;
  line-height: 1;
  box-shadow: none;
}

/* -------------------------------------------------------------------------- *
 * 3. Seamless hero-to-course transition
 * -------------------------------------------------------------------------- */

/* - - - 3.1. Allow the transition wash to extend upward over the hero edge - - - */
.landing-content-flow {
  overflow: visible;
  isolation: isolate;
}

/* - - - 3.2. Long transparent-to-navy wash removes the straight section seam - - - */
.landing-content-flow::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -180px;
  right: 0;
  left: 0;
  height: 230px;
  background: linear-gradient(
    180deg,
    rgba(6, 21, 47, 0) 0%,
    rgba(7, 27, 59, 0.16) 22%,
    rgba(8, 32, 69, 0.44) 48%,
    rgba(9, 37, 78, 0.78) 73%,
    #0a2854 100%
  );
  pointer-events: none;
}

/* - - - 3.3. Soft atmospheric color bridge prevents a flat horizontal band - - - */
.landing-content-flow::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -118px;
  right: 0;
  left: 0;
  height: 190px;
  background:
    radial-gradient(ellipse at 18% 28%, rgba(67, 118, 219, 0.15), transparent 46%),
    radial-gradient(ellipse at 82% 22%, rgba(106, 75, 184, 0.12), transparent 47%);
  filter: blur(18px);
  opacity: 0.9;
  pointer-events: none;
}

.landing-content-flow > .landing-course-portfolio,
.landing-content-flow > .specialist-comments-section {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------------------- *
 * 4. Compact course presentation and specialist transition
 * -------------------------------------------------------------------------- */

/* - - - 4.1. Pull the course heading/cards closer to the hero transition - - - */
.landing-content-flow .landing-course-portfolio {
  padding-top: 30px;
  padding-bottom: 8px;
}

.landing-content-flow .landing-course-portfolio-heading {
  padding-top: 0;
  padding-bottom: 22px;
}

.landing-content-flow .landing-course-portfolio-track {
  padding-bottom: 8px;
}

/* - - - 4.2. Keep specialist comments close to the course cards - - - */
.landing-content-flow .specialist-comments-shell {
  padding-top: 24px;
}

/* -------------------------------------------------------------------------- *
 * 5. Mobile refinements
 * -------------------------------------------------------------------------- */

@media (max-width: 700px) {
  .landing-topbar {
    gap: 7px;
  }

  .landing-topbar .landing-contact-top {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .landing-content-flow::before {
    top: -130px;
    height: 168px;
  }

  .landing-content-flow::after {
    top: -88px;
    height: 138px;
    filter: blur(14px);
  }

  .landing-content-flow .landing-course-portfolio {
    padding-top: 22px;
    padding-bottom: 4px;
  }

  .landing-content-flow .landing-course-portfolio-heading {
    padding-bottom: 18px;
  }

  .landing-content-flow .landing-course-portfolio-track {
    padding-bottom: 6px;
  }

  .landing-content-flow .specialist-comments-shell {
    padding-top: 18px;
  }
}

@media (max-width: 390px) {
  .landing-topbar {
    gap: 5px;
  }

  .landing-topbar .landing-contact-top {
    padding-inline: 10px;
    font-size: 0.73rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ============================= End of landing-nav-refinement.css ============================= */
