/* =====================================================================
   FILE: kcbme/landing.css — styles for kcbme/index.php (and the Motivation Guide). Loaded AFTER styles2.css.
   Layout uses CSS grid; no flexbox.
   v2: the hero text block now lives inside .intro-container (normal flow), pulled up over the bottom of the
       hero with a negative margin. Everything after it moves down with it, so no percentage spacers are needed.
       Tune ONE number per screen size: --hero-overlap = how far the top of the text box sits ABOVE the bottom
       edge of the hero (bigger = text starts higher on the hero).
   ===================================================================== */

/* ---- Hero ---- */
.hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-image: url('pics/Network006.png');
    background-size: cover;
    background-position: bottom;
    color: white;
    text-align: center;
    margin-top: -30px;
    padding-bottom: 120px;
}

.herotext {
    position: relative;          /* needed for the ::before border, and so it paints above the hero */
    z-index: 2;
    display: flow-root;          /* keeps the button's negative top margin working inside the box */
    width: fit-content;
    max-width: 90%;
    margin: calc(-1 * var(--hero-overlap)) auto 0;
    color: white;
    text-align: center;
    background: linear-gradient(
        to bottom,
        rgba(50, 40, 110, 0.7) 0%,
        rgba(40, 105, 176, 0.7) 55%,
rgba(40, 105, 176, 0) 100%
    );
    border-radius: 20px;
    border: none;
    padding: 0 36px 80px;
}

.herotext::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.7) 75%,
        rgba(255, 255, 255, 0) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-spacer { margin-top: 20px; }
.title {
    font-size: 5.5rem;
    text-shadow: 2px 2px 10px #000;
    font-family: 'Oswald', sans-serif;
    line-height: 1.2;
}
.title span {
    font-size: 2rem;
    margin-bottom: -20px;
    line-height: 1.5;
    display: block;
    font-family: 'Raleway', sans-serif;
    text-shadow: 2px 2px 10px #000;
}
.title-sub { color: #f7d48a; }

/* added: hero line and join buttons */
.hero-line { font-size: 1.9rem; line-height: 1.5; padding: 24px 0 0; margin: 0 auto; max-width: 640px; text-shadow: 2px 2px 10px #000; }
.hero-actions { padding: 6px 0 0; }
.probutton-ghost { background-color: transparent; }
.probutton-ghost:hover { background-color: rgba(255, 255, 255, 0.2); }



/* ---- Intro: "What motivates you most?" ---- */
.intro-section {
    position: relative;
    display: block;
    width: 100%;
    overflow: visible !important;
    height: auto !important;
    min-height: 100%;
}
.intro-container { --hero-overlap: 300px; padding-top: 20px; padding-bottom: 0; position: relative; text-align: center; }
.lion-wrap { width: 100%; text-align: center; }
.lion-badge {
    position: relative;
    max-width: 80px;
    height: auto;
    margin-top: -70px;
    z-index: 20000;
    opacity: 1;
    filter: brightness(1.1) contrast(0.8);
}
.intro-sub { margin-top: -30px; }
.probutton { margin: 5px; }
.motive-buttons { position: relative; z-index: 991; width: 100%; }

#content { margin-top: 20px; }
#content h2 { color: #7981a8; }
#content p  { color: #5b6075; }
.motive[hidden] { display: none; }
/* Optional later: a narrower, centred reading column for the motivation text.
#content { max-width: 800px; margin-left: auto; margin-right: auto; padding: 20px; box-sizing: border-box; } */

strong { color: #D7C299; font-weight: 600; }

@media (max-width: 900px) {
    .hero {
        min-height: 450px;
        background-image: url('pics/hero_med.png');
        background-position: center;
    }
    .title { font-size: 4.5rem; }
    .herotext { max-width: 80%; }
    .intro-container { --hero-overlap: 200px; }
}
@media (max-width: 500px) {
    .hero { background-image: url('pics/hero_small.png'); }
    .title { font-size: 3.2rem; }
    .herotext { max-width: 80%; }
    .hero-line { font-size: 1.6rem; }
    .intro-container { --hero-overlap: 100px; }
}

/* ---- Waves ---- */
.wave-wrap { margin-top: 30px; margin-bottom: 2px; }
.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px; /* Safari gap fix */
    min-height: 100px;
    max-height: 150px;
}
.parallax > use { animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite; }
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
@keyframes move-forever {
    0%   { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}
@media (max-width: 768px) {
    .waves { height: 40px; min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .parallax > use { animation: none; }
}

/* ---- Dark panel ---- */
.panel {
    width: 100%;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 -4px 10px rgba(0, 0, 0, 0.2);
    background: #0d1414;
    background: linear-gradient(341deg, rgba(13, 20, 20, 1) 0%, rgba(10, 44, 48, 1) 92%);
}
.panel-intro {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    text-align: left;
    padding-top: 40px;
}
.panel-kicker { color: #d19b49; font-size: 1.8rem; font-weight: 300; }
.panel-title  { font-size: 4rem; }
.panel-lead   { font-size: 1.8rem; line-height: 1.4; }

.stages { margin-top: 30px; margin-left: 6%; margin-right: 12%; text-align: center; }
.stage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 15px;
    margin-left: 4%;
}
.stage-pic {
    position: relative;
    height: 300px;
    overflow: hidden;
    background-color: rgba(92, 181, 214, 0.2);
    border: solid 2px #c6a37f;
    border-radius: 8px;
}
.stage-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage-text { width: 90%; margin-left: auto; margin-right: auto; padding-bottom: 2.5rem; }
.stage-kicker { color: #d19b49; font-size: 1.5rem; font-weight: 300; margin-bottom: -20px; text-align: left; }
.panelh3 { color: #CCCCCC; text-align: left; margin-top: 0; position: relative; z-index: 999; }
.plist {
    color: #CCCCCC;
    text-align: left !important;
    font-size: 1.4rem !important;
    font-family: 'Arial', sans-serif;
    font-weight: 300;
    line-height: 2.0 !important;
}
.panel-close { width: 70%; margin-left: auto; margin-right: auto; padding-top: 30px; padding-bottom: 50px; color: #d7c299; }

@media (max-width: 1000px) {
    .stage-grid { grid-template-columns: 100%; row-gap: 20px; margin-left: 0; }
    .stages { margin-left: 6%; margin-right: 6%; }
    .panel-title { font-size: 2.6rem; }
    .panel-lead { font-size: 1.4rem; }
}

/* ---- Membership call to action (selectors beat styles2.css ".innerwrap p") ---- */
.next-section {
    width: 100%;
    height: auto;
    background-color: #5F8FDD;
    color: #fff;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 50px;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 -4px 10px rgba(0, 0, 0, 0.2);
    background-image: repeating-linear-gradient(405deg, #5F8FDD, #5F8FDD 39px, #639fe8 39px, #639fe8 40px);
    margin-bottom: -39px;
}
.innerwrap .next-kicker { font-size: 2.2rem; font-weight: 300; margin-bottom: -20px; }
.innerwrap .next-title  { font-size: 6rem; margin-top: 0; margin-bottom: -15px; font-weight: 600; }
.innerwrap .next-terms  { font-size: 1.6rem; font-weight: 300; margin-bottom: -10px; }
.next-cta { margin: 0 0 20px 0; }
.innerwrap .next-note { font-size: 1.6rem; }
.next-note a { color: #fff; text-decoration: underline; }
.number-icon2 {font-size:6rem; font-weight:700; color:rgba(255,255,255,0.7); text-align: center;
  width: 70px;
  height: 70px;
  border: 3px dotted #61d8a5;
  border-radius: 50%;
  color: #fff;
  background-color: #4f74a3;
  line-height: 60px;
  display: inline-block;
  vertical-align: middle;}

/* added: three-step strip */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 30px; row-gap: 20px; margin: 40px 0 20px; }
.steps h3 { font-size: 2.4rem; margin: 10px 0 0; }
.innerwrap .steps p { font-size: 1.6rem; padding-top: 8px; }

@media (max-width: 900px) {
    .steps { grid-template-columns: 100%; }
}
@media (max-width: 600px) {
    .innerwrap .next-title { font-size: 4rem; }
    .innerwrap .next-terms { font-size: 1.3rem; }
}