/* ==========================================================================
   Kingdom Harvester Homepage Preview
   Complete replacement stylesheet
   ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  background: #f7f4ed;
  color: #172019;
  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;
}

.kh-v2,
.kh-v2 * {
  box-sizing: border-box;
}


/* ==========================================================================
   COMPLETE LANDING SCREEN
   Hero and ministry choices share one desktop viewport
   ========================================================================== */

.kh-v2-landing {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 42vh 58vh;
  overflow: hidden;
  background: #f7f4ed;
  scroll-snap-align: start;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.kh-v2-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}

.kh-v2-hero__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.kh-v2-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(8, 23, 14, 0.96) 0%,
      rgba(8, 23, 14, 0.87) 38%,
      rgba(8, 23, 14, 0.48) 70%,
      rgba(8, 23, 14, 0.18) 100%
    );
}

.kh-v2-hero__content {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0 20px;
  color: #ffffff;
}

.kh-v2-eyebrow {
  margin: 0 0 8px;
  color: #e0b856;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kh-v2-hero h1 {
  max-width: 690px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 3.65vw, 3.8rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.kh-v2-intro {
  max-width: 650px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  font-weight: 500;
  line-height: 1.45;
}

.kh-v2-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 17px;
}

.kh-v2-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.kh-v2-button:hover {
  transform: translateY(-2px);
}

.kh-v2-button--gold {
  background: #d8ad4f;
  border-color: #d8ad4f;
  color: #152019;
}

.kh-v2-button--gold:hover {
  background: #edca79;
  border-color: #edca79;
}

.kh-v2-button--outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.62);
  color: #ffffff;
}

.kh-v2-button--outline:hover {
  background: #ffffff;
  color: #172019;
}


/* ==========================================================================
   MINISTRY CHOICES
   ========================================================================== */

.kh-v2-ministries {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  padding: 17px 0 22px;
  scroll-margin-top: 0;
}

.kh-v2-ministries__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 12px;
}

.kh-v2-ministries__heading p {
  margin: 0;
  color: #8b6827;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.kh-v2-ministries__heading h2 {
  margin: 0;
  color: #172019;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.35vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}

.kh-v2-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-height: 0;
}

.kh-v2-card {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #172019;
  box-shadow: 0 9px 24px rgba(20, 31, 23, 0.14);
}

.kh-v2-card__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  cursor: default;
  isolation: isolate;
}

.kh-v2-card img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kh-v2-card__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      0deg,
      rgba(7, 18, 11, 0.97) 0%,
      rgba(7, 18, 11, 0.76) 46%,
      rgba(7, 18, 11, 0.08) 100%
    );
}

.kh-v2-card__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px;
}

.kh-v2-card__category {
  margin: 0 0 6px;
  color: #e2bd66;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kh-v2-card h3 {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 1.65vw, 1.8rem);
  font-weight: 500;
  line-height: 1.05;
}

.kh-v2-card__content > p:not(.kh-v2-card__category) {
  max-width: 360px;
  margin: 8px 0 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  line-height: 1.38;
}

.kh-v2-card__content span {
  color: #e2bd66;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}


/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.kh-v2-about {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 48px 32px;
  background: #ffffff;
  scroll-snap-align: start;
}

.kh-v2-about__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(50px, 7vw, 96px);
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.kh-v2-about__image img {
  display: block;
  width: 100%;
  max-height: 690px;
  object-fit: cover;
  box-shadow: 16px 16px 0 #eee4ce;
}

.kh-v2-section-label {
  margin: 0 0 12px;
  color: #d5a83e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.kh-v2-about__content h2 {
  max-width: 620px;
  margin: 0 0 24px;
  color: #172019;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 3.55vw, 3.55rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.kh-v2-about__content > p:not(.kh-v2-section-label) {
  max-width: 660px;
  margin: 0 0 20px;
  color: #505851;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.65;
}

.kh-v2-text-link {
  display: inline-block;
  margin-top: 5px;
  color: #76551d;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.kh-v2-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}


/* ==========================================================================
   SHORT DESKTOP SCREENS
   ========================================================================== */

@media (min-width: 901px) and (max-height: 760px) {

  .kh-v2-landing {
    grid-template-rows: 44vh 56vh;
  }

  .kh-v2-hero__content {
    padding-top: 18px;
    padding-bottom: 16px;
  }

  .kh-v2-hero h1 {
    font-size: clamp(2.2rem, 3.2vw, 3.25rem);
  }

  .kh-v2-intro {
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .kh-v2-hero__buttons {
    margin-top: 12px;
  }

  .kh-v2-ministries {
    padding-top: 12px;
    padding-bottom: 16px;
  }

  .kh-v2-ministries__heading {
    margin-bottom: 9px;
  }

  .kh-v2-card__content {
    padding: 15px;
  }

  .kh-v2-card__content > p:not(.kh-v2-card__category) {
    margin-bottom: 7px;
    font-size: 0.74rem;
  }
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 900px) {

  html {
    scroll-snap-type: none;
  }

  .kh-v2-landing {
    display: block;
    min-height: auto;
    overflow: visible;
  }

  .kh-v2-hero {
    min-height: 540px;
  }

  .kh-v2-hero__content {
    width: min(100% - 40px, 1180px);
  }

  .kh-v2-hero h1 {
    font-size: clamp(2.6rem, 8vw, 4rem);
  }

  .kh-v2-ministries {
    width: min(100% - 40px, 1180px);
    height: auto;
    padding: 44px 0;
  }

  .kh-v2-card-grid {
    min-height: auto;
  }

  .kh-v2-card__link {
    min-height: 420px;
  }

  .kh-v2-about {
    min-height: auto;
    padding: 70px 26px;
  }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 720px) {

  .kh-v2-hero {
    align-items: flex-end;
    min-height: 640px;
  }

  .kh-v2-hero__overlay {
    background:
      linear-gradient(
        0deg,
        rgba(8, 22, 13, 0.98) 0%,
        rgba(8, 22, 13, 0.9) 58%,
        rgba(8, 22, 13, 0.24) 100%
      );
  }

  .kh-v2-hero__content {
    width: min(100% - 32px, 1180px);
    padding-bottom: 38px;
  }

  .kh-v2-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.7rem);
  }

  .kh-v2-hero__buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .kh-v2-button {
    width: 100%;
  }

  .kh-v2-ministries {
    width: min(100% - 32px, 1180px);
  }

  .kh-v2-ministries__heading {
    display: block;
  }

  .kh-v2-ministries__heading h2 {
    margin-top: 7px;
  }

  .kh-v2-card-grid {
    grid-template-columns: 1fr;
  }

  .kh-v2-card__link {
    min-height: 390px;
  }

  .kh-v2-about {
    padding: 64px 20px;
  }

  .kh-v2-about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .kh-v2-about__image img {
    box-shadow: 10px 10px 0 #eee4ce;
  }
}


@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .kh-v2-button {
    transition: none;
  }
}


/* ==========================================================================
   ABOUT SECTION VIEWPORT ALIGNMENT
   Locks the second homepage panel to one complete browser viewport.
   ========================================================================== */

@media (min-width: 901px) {

  html {
    scroll-snap-type: y mandatory;
  }

  .kh-v2-landing,
  .kh-v2-about {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .kh-v2-about {
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    max-height: 100vh;
    max-height: 100svh;
    padding: 38px 32px;
    overflow: hidden;
  }

  .kh-v2-about__inner {
    width: min(1180px, 100%);
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(48px, 6vw, 88px);
  }

  .kh-v2-about__image {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .kh-v2-about__image img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center center;
  }

  .kh-v2-about__content {
    align-self: center;
    min-width: 0;
  }

  .kh-v2-about__content h2 {
    margin-bottom: 20px;
    font-size: clamp(2.25rem, 3.25vw, 3.35rem);
  }

  .kh-v2-about__content > p:not(.kh-v2-section-label) {
    margin-bottom: 17px;
    font-size: clamp(0.9rem, 1vw, 0.98rem);
    line-height: 1.58;
  }
}


/* Additional tightening for shorter laptop screens */

@media (min-width: 901px) and (max-height: 800px) {

  .kh-v2-about {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .kh-v2-about__content h2 {
    margin-bottom: 16px;
    font-size: clamp(2.05rem, 3vw, 3rem);
  }

  .kh-v2-section-label {
    margin-bottom: 8px;
  }

  .kh-v2-about__content > p:not(.kh-v2-section-label) {
    margin-bottom: 13px;
    font-size: 0.89rem;
    line-height: 1.5;
  }

  .kh-v2-text-link {
    margin-top: 2px;
    font-size: 0.84rem;
  }
}


/* ==========================================================================
   MINISTRY CARD IMAGE POSITIONING
   Displays more of the upper portion of each photograph.
   ========================================================================== */

.kh-v2-card img {
  object-position: center 22%;
}

/* GlobalRoar */
.kh-v2-card:nth-child(1) img {
  object-position: center 42%;
}

/* Seeds of Destiny USA */
.kh-v2-card:nth-child(2) img {
  object-position: center 20%;
}

/* Dino White Ministries */
.kh-v2-card:nth-child(3) img {
  object-position: center 16%;
}

/* GlobalRoar card-specific cropped photograph */
.kh-v2-card:nth-child(1) img {
  object-fit: cover;
  object-position: center center;
}


/* ==========================================================================
   MINISTRY CARD IMAGE CLARITY
   Brighter by default, more vivid on hover, while preserving text contrast.
   ========================================================================== */

.kh-v2-card img {
  filter: brightness(0.88) saturate(1.12) contrast(1.03);
  transform: scale(1.01);
  transition:
    filter 260ms ease,
    transform 420ms ease;
}

.kh-v2-card__shade {
  background:
    linear-gradient(
      0deg,
      rgba(7, 18, 11, 0.95) 0%,
      rgba(7, 18, 11, 0.68) 43%,
      rgba(7, 18, 11, 0.10) 78%,
      rgba(7, 18, 11, 0.02) 100%
    );
  transition: background 260ms ease;
}

.kh-v2-card__link:hover img {
  filter: brightness(1.03) saturate(1.25) contrast(1.05);
  transform: scale(1.045);
}

.kh-v2-card__link:hover .kh-v2-card__shade {
  background:
    linear-gradient(
      0deg,
      rgba(7, 18, 11, 0.92) 0%,
      rgba(7, 18, 11, 0.58) 42%,
      rgba(7, 18, 11, 0.05) 78%,
      rgba(7, 18, 11, 0.00) 100%
    );
}


/* GlobalRoar card actions */
.kh-v2-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.kh-v2-card__action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.025em;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.kh-v2-card__action:hover,
.kh-v2-card__action:focus-visible {
  transform: translateY(-2px);
}

.kh-v2-card__action--primary {
  background: #d9ad4e;
  color: #172019;
}

.kh-v2-card__action--primary:hover,
.kh-v2-card__action--primary:focus-visible {
  background: #efc765;
  color: #172019;
}

.kh-v2-card__action--secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(8, 20, 12, 0.30);
  color: #ffffff;
}

.kh-v2-card__action--secondary:hover,
.kh-v2-card__action--secondary:focus-visible {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

@media (max-width: 560px) {
  .kh-v2-card__actions {
    display: grid;
  }

  .kh-v2-card__action {
    width: 100%;
  }
}


/* New Kingdom Harvester homepage hero image */
.kh-v2-hero > img,
.kh-v2-hero__image {
  object-fit: cover;
  object-position: center 52%;
}

/*
  Preserve strong text readability on the left while keeping the
  ministry scene and landscape bright across the center and right.
*/
.kh-v2-hero::after {
  background:
    linear-gradient(
      90deg,
      rgba(7, 22, 14, 0.86) 0%,
      rgba(7, 22, 14, 0.66) 28%,
      rgba(7, 22, 14, 0.25) 50%,
      rgba(7, 22, 14, 0.04) 72%,
      rgba(7, 22, 14, 0.00) 100%
    );
}

@media (max-width: 720px) {
  .kh-v2-hero > img,
  .kh-v2-hero__image {
    object-position: 62% center;
  }

  .kh-v2-hero::after {
    background:
      linear-gradient(
        90deg,
        rgba(7, 22, 14, 0.88) 0%,
        rgba(7, 22, 14, 0.68) 55%,
        rgba(7, 22, 14, 0.26) 100%
      );
  }
}

/* KH FINAL HERO START */

/*
 * Final homepage landscape banner.
 * The image is intentionally positioned toward the left so the sun
 * remains visible inside the shallow desktop hero crop.
 */
.kh-v2-hero img,
.kh-v2-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 47%;
}

/*
 * Darken only the text area. The center and right side retain their
 * green-and-gold landscape color and visible sunshine.
 */
.kh-v2-hero::after {
  background:
    linear-gradient(
      90deg,
      rgba(5, 23, 14, 0.84) 0%,
      rgba(5, 23, 14, 0.69) 25%,
      rgba(5, 23, 14, 0.35) 43%,
      rgba(5, 23, 14, 0.10) 62%,
      rgba(5, 23, 14, 0.00) 82%
    );
}

/*
 * Some versions of the page use a dedicated overlay element rather
 * than the hero pseudo-element.
 */
.kh-v2-hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(5, 23, 14, 0.84) 0%,
      rgba(5, 23, 14, 0.69) 25%,
      rgba(5, 23, 14, 0.35) 43%,
      rgba(5, 23, 14, 0.10) 62%,
      rgba(5, 23, 14, 0.00) 82%
    );
}

@media (max-width: 720px) {
  .kh-v2-hero img,
  .kh-v2-hero__image {
    object-position: 46% center;
  }

  .kh-v2-hero::after,
  .kh-v2-hero__overlay {
    background:
      linear-gradient(
        90deg,
        rgba(5, 23, 14, 0.88) 0%,
        rgba(5, 23, 14, 0.70) 58%,
        rgba(5, 23, 14, 0.27) 100%
      );
  }
}

/* KH FINAL HERO END */


/* KH HOMEPAGE GIVING PANEL START */

.kh-v2-give {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 32px;
  background:
    linear-gradient(
      135deg,
      #10291d 0%,
      #173726 55%,
      #1d432e 100%
    );
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.kh-v2-give__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.kh-v2-give__heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.kh-v2-give__heading .kh-v2-section-label {
  margin-bottom: 9px;
  color: #e0b856;
}

.kh-v2-give__heading h2 {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 3.4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.kh-v2-give__heading > p:last-child {
  max-width: 650px;
  margin: 15px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.6;
}

.kh-v2-give__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.kh-v2-give-card {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 30px;
  border: 1px solid rgba(224, 184, 86, 0.26);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 18px 42px rgba(4, 16, 10, 0.22);
}

.kh-v2-give-card--pending {
  background: #f3efe5;
}

.kh-v2-give-card__category {
  margin: 0 0 13px;
  color: #8b6827;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kh-v2-give-card h3 {
  margin: 0;
  color: #172019;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2vw, 2.05rem);
  font-weight: 500;
  line-height: 1.08;
}

.kh-v2-give-card > p:not(.kh-v2-give-card__category) {
  margin: 17px 0 25px;
  color: #485248;
  font-size: 0.93rem;
  line-height: 1.58;
}

.kh-v2-give-card .kh-v2-button {
  width: 100%;
  margin-top: auto;
  padding: 10px 16px;
  text-align: center;
}

.kh-v2-button--outline-dark {
  border: 1px solid #294534;
  background: transparent;
  color: #1d3828;
}

.kh-v2-button--outline-dark:hover,
.kh-v2-button--outline-dark:focus-visible {
  background: #1d3828;
  color: #ffffff;
}

@media (min-width: 901px) and (max-height: 760px) {
  .kh-v2-give {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .kh-v2-give__heading {
    margin-bottom: 22px;
  }

  .kh-v2-give__heading h2 {
    font-size: clamp(2rem, 3vw, 3rem);
  }

  .kh-v2-give__heading > p:last-child {
    margin-top: 10px;
    font-size: 0.91rem;
  }

  .kh-v2-give-card {
    min-height: 290px;
    padding: 23px;
  }

  .kh-v2-give-card > p:not(.kh-v2-give-card__category) {
    margin-top: 12px;
    margin-bottom: 18px;
    font-size: 0.86rem;
  }
}

@media (max-width: 900px) {
  .kh-v2-give {
    min-height: auto;
    padding: 64px 20px;
  }

  .kh-v2-give__grid {
    grid-template-columns: 1fr;
    width: min(600px, 100%);
    margin: 0 auto;
  }

  .kh-v2-give-card {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .kh-v2-give {
    padding: 52px 16px;
  }

  .kh-v2-give__heading {
    margin-bottom: 28px;
  }

  .kh-v2-give__heading h2 {
    font-size: 2.25rem;
  }

  .kh-v2-give-card {
    padding: 24px 20px;
  }
}

/* KH HOMEPAGE GIVING PANEL END */
