/* =========================================================
   JIM KNUTE SCHAFER FOUNDATION
   HOW WE HELP PAGE
   Page-specific styles only
   ========================================================= */


/* =========================================================
   PAGE BASE
   ========================================================= */

.jks-help {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

.jks-help *,
.jks-help *::before,
.jks-help *::after {
    box-sizing: border-box;
}

.jks-help h1,
.jks-help h2,
.jks-help h3,
.jks-help p {
    margin-top: 0;
}

.jks-help-label,
.jks-help-item-label {
    display: block;
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--jks-gold, #c89b3c);
}


/* =========================================================
   HOW WE HELP — INTRO
   ========================================================= */

.jks-help-intro-section {
    padding: clamp(72px, 7vw, 110px) 0;
    background: #ffffff;
}

.jks-help-heading {
    max-width: 1050px;
}

.jks-help-heading h1 {
    max-width: 900px;
    margin: 0 0 34px;
    font-size: clamp(48px, 5vw, 72px);
    line-height: 1.02;
    letter-spacing: -2px;
    color: var(--jks-navy, #052236);
}

.jks-help-intro {
    max-width: 1000px;
    margin: 0;
    font-size: 19px;
    line-height: 1.75;
    font-weight: 400;
    color: #40515e;
}


/* =========================================================
   SECTION BACKGROUNDS
   ========================================================= */

.jks-help-band {
    width: 100%;
}

.jks-help-band-white {
    background: #ffffff;
}

.jks-help-band-cream {
    background: #f6f3eb;
}


/* =========================================================
   HELP ITEMS
   ========================================================= */

.jks-help-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(55px, 7vw, 100px);
    align-items: center;
    padding-top: clamp(72px, 7vw, 105px);
    padding-bottom: clamp(72px, 7vw, 105px);
}

.jks-help-item-reverse .jks-help-item-image {
    order: 2;
}

.jks-help-item-reverse .jks-help-item-copy {
    order: 1;
}


/* =========================================================
   HELP ITEM IMAGES
   ========================================================= */

.jks-help-item-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-left: 4px solid var(--jks-gold, #c89b3c);
    box-shadow: 0 24px 50px rgba(5, 34, 54, .14);
}

.jks-help-item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   HELP ITEM COPY
   ========================================================= */

.jks-help-item-copy {
    max-width: 560px;
}

.jks-help-item-copy h2 {
    margin: 0 0 24px;
    font-size: clamp(36px, 3.4vw, 54px);
    line-height: 1.06;
    letter-spacing: -1.4px;
    color: var(--jks-navy, #052236);
}

.jks-help-item-copy p {
    margin: 0;
    font-size: 18px;
    line-height: 1.75;
    font-weight: 400;
    color: #40515e;
}


/* =========================================================
   SCHOLARSHIP TEXT LINK
   ========================================================= */

.jks-help-text-link {
    display: inline-block;
    position: relative;
    margin-top: 26px;
    padding-bottom: 5px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--jks-navy, #052236);
}

.jks-help-text-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 2px;
    background: var(--jks-gold, #c89b3c);
    transition: width .2s ease;
}

.jks-help-text-link:hover::after,
.jks-help-text-link:focus::after {
    width: 100%;
}


/* =========================================================
   CONNECT WITH THE FOUNDATION
   ========================================================= */

.jks-help-connect {
    padding: clamp(75px, 7vw, 105px) 0;
    background: var(--jks-navy, #052236);
}

.jks-help-connect-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(50px, 7vw, 100px);
    align-items: center;
}

.jks-help-connect-copy {
    max-width: 780px;
}

.jks-help-connect .jks-help-label {
    color: var(--jks-gold, #c89b3c);
}

.jks-help-connect h2 {
    margin: 0 0 22px;
    font-size: clamp(36px, 3.4vw, 54px);
    line-height: 1.06;
    letter-spacing: -1.4px;
    color: #ffffff;
}

.jks-help-connect p {
    max-width: 720px;
    margin: 0;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .84);
}

.jks-help-connect-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}


/* =========================================================
   CONNECT CTA BUTTON
   Dedicated styling so global button rules cannot hide it
   ========================================================= */

.jks-help-connect-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 17px 32px;

    background: var(--jks-gold, #c89b3c);
    border: 2px solid var(--jks-gold, #c89b3c);
    border-radius: 3px;

    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
    text-decoration: none;

    color: var(--jks-navy, #052236);

    box-shadow: 0 10px 25px rgba(0, 0, 0, .14);

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.jks-help-connect-button:hover,
.jks-help-connect-button:focus {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--jks-navy, #052236);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .jks-help-intro-section {
        padding: 75px 0;
    }

    .jks-help-heading h1 {
        font-size: clamp(44px, 8vw, 60px);
    }

    .jks-help-intro {
        font-size: 18px;
    }

    .jks-help-item,
    .jks-help-connect-inner {
        grid-template-columns: 1fr;
    }

    .jks-help-item {
        gap: 45px;
        padding-top: 70px;
        padding-bottom: 70px;
    }

    /*
     * Once stacked, always show the image first.
     */
    .jks-help-item-reverse .jks-help-item-image {
        order: 1;
    }

    .jks-help-item-reverse .jks-help-item-copy {
        order: 2;
    }

    .jks-help-item-copy {
        max-width: 700px;
    }

    .jks-help-connect-inner {
        gap: 38px;
    }

    .jks-help-connect-action {
        justify-content: flex-start;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .jks-help-intro-section {
        padding: 60px 0;
    }

    .jks-help-label,
    .jks-help-item-label {
        margin-bottom: 14px;
        font-size: 13px;
        letter-spacing: 1.4px;
    }

    .jks-help-heading h1 {
        margin-bottom: 26px;
        font-size: clamp(38px, 11vw, 48px);
        line-height: 1.04;
        letter-spacing: -1.2px;
    }

    .jks-help-intro {
        font-size: 16px;
        line-height: 1.7;
    }

    .jks-help-item {
        gap: 34px;
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .jks-help-item-image {
        aspect-ratio: 4 / 3;
    }

    .jks-help-item-copy h2 {
        margin-bottom: 20px;
        font-size: clamp(32px, 10vw, 42px);
        line-height: 1.08;
        letter-spacing: -.8px;
    }

    .jks-help-item-copy p {
        font-size: 16px;
        line-height: 1.7;
    }

    .jks-help-connect {
        padding: 65px 0;
    }

    .jks-help-connect h2 {
        font-size: clamp(32px, 10vw, 42px);
        line-height: 1.08;
        letter-spacing: -.8px;
    }

    .jks-help-connect p {
        font-size: 16px;
        line-height: 1.7;
    }

    .jks-help-connect-action {
        width: 100%;
        justify-content: flex-start;
    }

    .jks-help-connect-button {
        min-height: 54px;
        padding: 16px 26px;
        font-size: 13px;
    }
}


/* =========================================================
   ULTRAWIDE
   ========================================================= */

@media (min-width: 1600px) {

    .jks-help-item {
        column-gap: 110px;
    }

    .jks-help-connect-inner {
        column-gap: 110px;
    }
}

/* =========================================================
   EXPOSURE — EXTERNAL PARTNER LINKS
   ========================================================= */

.jks-help-inline-link {
	position: relative;
	display: inline-block;

	color: #052236;
	font-weight: 800;
	text-decoration: none;

	transition:
		color 0.25s ease,
		transform 0.25s ease;
}

/* Animated gold underline */

.jks-help-inline-link::after {
	content: "";
	position: absolute;

	left: 0;
	bottom: -3px;

	width: 100%;
	height: 2px;

	background: #c89b3c;

	transform: scaleX(0.35);
	transform-origin: left center;

	transition:
		transform 0.3s ease,
		height 0.3s ease;
}

/* Hover */

.jks-help-inline-link:hover {
	color: #c89b3c;
	transform: translateY(-1px);
}

.jks-help-inline-link:hover::after {
	transform: scaleX(1);
	height: 3px;
}

/* Keyboard accessibility */

.jks-help-inline-link:focus-visible {
	color: #c89b3c;
	outline: 2px solid #c89b3c;
	outline-offset: 5px;
}

/* Final emphasis */

.jks-help-emphasis {
	color: #052236;
	font-weight: 800;
}

/* =========================================================
   EXPOSURE — TWO IMAGE COMPOSITION
   ========================================================= */

.jks-help-exposure-images {
	position: relative;
	min-height: 540px;
	padding: 0 55px 65px 0;
}

.jks-help-exposure-image {
	overflow: hidden;
	box-shadow: 0 18px 45px rgba(5, 34, 54, 0.16);
}

.jks-help-exposure-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;

	transition:
		transform 0.6s ease,
		filter 0.6s ease;
}

/* Main image */

.jks-help-exposure-image-main {
	width: 88%;
	height: 470px;
}

/* Smaller overlapping image */

.jks-help-exposure-image-secondary {
	position: absolute;

	right: 0;
	bottom: 0;

	width: 52%;
	height: 235px;

	border: 7px solid #f6f3eb;
}

/* Subtle motion */

.jks-help-exposure-images:hover
.jks-help-exposure-image-main img {
	transform: scale(1.025);
}

.jks-help-exposure-images:hover
.jks-help-exposure-image-secondary img {
	transform: scale(1.04);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

	.jks-help-exposure-images {
		min-height: 470px;
		padding: 0 40px 55px 0;
	}

	.jks-help-exposure-image-main {
		width: 90%;
		height: 400px;
	}

	.jks-help-exposure-image-secondary {
		width: 50%;
		height: 200px;
	}

}


@media (max-width: 600px) {

	.jks-help-exposure-images {
		min-height: auto;
		padding: 0;
		display: grid;
		grid-template-columns: 1.25fr 0.75fr;
		gap: 8px;
	}

	.jks-help-exposure-image-main,
	.jks-help-exposure-image-secondary {
		position: relative;
		right: auto;
		bottom: auto;
		width: 100%;
		height: 260px;
		border: 0;
	}

}


/* =========================================================
   EXPOSURE — MULTI-IMAGE GALLERY
   ========================================================= */

.jks-help-exposure-gallery {
	position: relative;
	min-height: 560px;
	padding: 0 70px 75px 0;
}

.jks-help-exposure-photo {
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 20px 50px rgba(5, 34, 54, 0.16);
}

.jks-help-exposure-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;

	transition:
		transform 0.6s ease,
		filter 0.6s ease;
}


/* LARGE PRIMARY IMAGE */

.jks-help-exposure-photo-large {
	width: 88%;
	height: 475px;
}


/* SMALL OVERLAPPING IMAGE */

.jks-help-exposure-photo-small {
	position: absolute;

	right: 0;
	bottom: 0;

	width: 55%;
	height: 245px;

	border: 7px solid #f6f3eb;
}


/* SUBTLE IMAGE MOVEMENT */

.jks-help-exposure-gallery:hover
.jks-help-exposure-photo-large img {
	transform: scale(1.025);
}

.jks-help-exposure-gallery:hover
.jks-help-exposure-photo-small img {
	transform: scale(1.04);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

	.jks-help-exposure-gallery {
		min-height: 490px;
		padding: 0 50px 65px 0;
	}

	.jks-help-exposure-photo-large {
		width: 90%;
		height: 410px;
	}

	.jks-help-exposure-photo-small {
		width: 52%;
		height: 210px;
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

	.jks-help-exposure-gallery {
		min-height: auto;
		padding: 0;

		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.jks-help-exposure-photo-large,
	.jks-help-exposure-photo-small {
		position: relative;
		right: auto;
		bottom: auto;

		width: 100%;
		height: 245px;

		border: 0;
	}

}

/* =========================================================
   EQUIPMENT DONATION BUTTON
   ========================================================= */

.jks-help-equipment-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	margin-top: 14px;
	padding: 14px 26px;

	background: #052236;
	color: #ffffff;

	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;

	border: 2px solid #052236;

	transition:
		background 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.jks-help-equipment-button:hover {
	background: #c89b3c;
	border-color: #c89b3c;
	color: #052236;

	transform: translateY(-3px);

	box-shadow:
		0 10px 22px rgba(5, 34, 54, 0.16);
}

.jks-help-equipment-button:focus-visible {
	outline: 3px solid #c89b3c;
	outline-offset: 4px;
}