/* ==========================================================================
   Goldenview Training Excellence — a single-section landing page
   (Ketnal One fork). One viewport, one card, nothing below the fold.
   Navy, gold and white from the brief: a cream card with a serif headline,
   the mockup's gold selling-points bar and its gold diagonal accents, over a
   navy-tinted, blurred training room.
   --k1-accent and --k1-overlay are injected from the Customizer.
   ========================================================================== */

:root {
	--k1-accent:       #B8924A;
	--k1-overlay:      .88;

	--k1-gold-light:   #D9BD7C;
	/* Gold dark enough for small text on cream (~5:1). */
	--k1-gold-ink:     #87662A;
	--k1-navy:         #14233D;
	--k1-navy-deep:    #0B1628;
	--k1-cream:        #FBF8F1;
	--k1-tile:         #FFFFFF;
	--k1-line:         #E8E0CF;
	--k1-muted:        #4F5868;
	--k1-paper:        #FFFFFF;
	--k1-paper-faint:  rgba(255, 255, 255, .6);

	--k1-card-radius:  clamp(14px, 1.4vw, 20px);
	--k1-card-shadow:  0 36px 90px -36px rgba(0, 0, 0, .8),
	                   0 14px 34px -18px rgba(0, 0, 0, .55);

	--k1-font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
	--k1-font-ui:      "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--k1-font-ui);
	font-weight: 400;
	color: var(--k1-navy);
	background-color: var(--k1-navy);
	/* The screen is exactly one viewport — nothing scrolls. */
	overflow: hidden;
	overscroll-behavior: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.k1-skip {
	position: absolute;
	top: -100px;
	left: 12px;
	z-index: 100;
	padding: .6rem 1rem;
	font-size: .85rem;
	color: var(--k1-paper);
	background: var(--k1-navy);
	border-radius: 0 0 8px 8px;
	transition: top .2s ease;
}

.k1-skip:focus {
	top: 0;
}

:focus-visible {
	outline: 2px solid var(--k1-gold-ink);
	outline-offset: 3px;
	border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Stage — exactly one viewport tall
   -------------------------------------------------------------------------- */

.k1-stage {
	position: relative;
	display: grid;
	grid-template-rows: 1fr auto;
	width: 100%;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	isolation: isolate;
}

/* The mockup's gold diagonals, cutting the bottom-left and top-right corners. */
.k1-stage::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		linear-gradient(45deg, transparent 21%, var(--k1-accent) 21% 21.8%, transparent 21.8% 25%, rgba(217, 189, 124, .35) 25% 25.4%, transparent 25.4%) left bottom / min(40vw, 460px) min(40vw, 460px) no-repeat,
		linear-gradient(45deg, transparent 74.6%, rgba(217, 189, 124, .35) 74.6% 75%, transparent 75% 78.2%, var(--k1-accent) 78.2% 79%, transparent 79%) right top / min(40vw, 460px) min(40vw, 460px) no-repeat;
	opacity: .9;
}

/* --------------------------------------------------------------------------
   Background — video or photo under a navy tint
   -------------------------------------------------------------------------- */

.k1-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: var(--k1-navy);
}

.k1-bg__video,
.k1-bg__poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.k1-bg--placeholder {
	background: linear-gradient(150deg, var(--k1-navy) 0%, var(--k1-navy-deep) 100%);
}

.k1-bg__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, var(--k1-navy-deep) 0%, var(--k1-navy) 55%, #1C3054 100%);
	opacity: var(--k1-overlay);
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */

.k1-main {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	min-height: 0;
	padding: clamp(12px, 3vh, 40px) clamp(12px, 4vw, 40px) 0;
}

.k1-card {
	position: relative;
	display: grid;
	grid-template-areas:
		"lead"
		"photo"
		"ranges"
		"actions";
	gap: clamp(14px, 2.2vh, 22px);
	width: min(560px, 100%);
	max-height: 100%;
	overflow: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(184, 146, 74, .5) transparent;
	padding: clamp(20px, 3.2vh, 36px) clamp(18px, 4.5vw, 36px) clamp(20px, 3vh, 32px);
	background: var(--k1-cream);
	border: 1px solid rgba(184, 146, 74, .3);
	border-radius: var(--k1-card-radius);
	box-shadow: var(--k1-card-shadow);
	animation: k1-rise .9s cubic-bezier(.2, .7, .25, 1) both;
}

@keyframes k1-rise {
	from { opacity: 0; transform: translateY(18px) scale(.985); }
	to   { opacity: 1; transform: none; }
}

.k1-lead {
	grid-area: lead;
	min-width: 0;
}

.k1-card__brand {
	margin: 0 0 clamp(14px, 2.4vh, 26px);
}

.k1-card__logo {
	width: auto;
	max-width: min(280px, 100%);
	max-height: clamp(40px, 6.4vh, 60px);
	object-fit: contain;
}

.k1-card__name {
	margin: 0 0 .5rem;
	font-family: var(--k1-font-display);
	font-weight: 700;
	font-size: 1.6rem;
	line-height: 1.15;
}

/* "Train • Develop • Empower": the mockup's tracked gold eyebrow. */
.k1-card__tagline {
	margin: 0 0 .6rem;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .26em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--k1-gold-ink);
}

.k1-headline {
	margin: 0;
	font-family: var(--k1-font-display);
	font-weight: 700;
	font-size: clamp(1.7rem, 1.15rem + 2.1vw, 2.9rem);
	line-height: 1.08;
	letter-spacing: -.012em;
	color: var(--k1-navy);
	text-wrap: balance;
}

.k1-card__intro {
	max-width: 34em;
	margin: .8rem 0 0;
	font-size: clamp(.86rem, .82rem + .2vw, .96rem);
	line-height: 1.6;
	color: var(--k1-muted);
	text-wrap: pretty;
}

/* The gold selling-points bar, one row, divided like the mockup's "|". */
.k1-values {
	display: inline-flex;
	flex-wrap: nowrap;
	max-width: 100%;
	margin: 1rem 0 0;
	padding: .55rem .2rem;
	list-style: none;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--k1-navy);
	background: linear-gradient(100deg, var(--k1-gold-light) 0%, var(--k1-accent) 100%);
	border-radius: 3px;
}

.k1-values__item {
	padding: 0 .8rem;
}

.k1-values__item + .k1-values__item {
	border-left: 1px solid rgba(20, 35, 61, .3);
}

.k1-badge {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin: .7rem 0 0;
	font-size: .76rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--k1-navy);
}

.k1-badge__icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: var(--k1-gold-ink);
}

/* --------------------------------------------------------------------------
   Location
   -------------------------------------------------------------------------- */

.k1-location {
	display: flex;
	align-items: flex-start;
	gap: .45rem;
	margin: .55rem 0 0;
	font-style: normal;
	color: var(--k1-muted);
}

.k1-location__link {
	display: inline-flex;
	align-items: flex-start;
	gap: .45rem;
	max-width: 100%;
	transition: color .2s ease;
}

.k1-location__link:hover,
.k1-location__link:focus-visible {
	color: var(--k1-navy);
}

.k1-location__pin {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	color: var(--k1-gold-ink);
}

.k1-location__text {
	font-size: .78rem;
	line-height: 1.45;
	text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Photo — large screens only, with the mockup's navy-and-gold corner
   -------------------------------------------------------------------------- */

.k1-photo {
	grid-area: photo;
	position: relative;
	display: none;
	margin: 0;
	overflow: hidden;
	border-radius: 10px;
}

.k1-photo__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 55% 30%;
}

.k1-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, transparent 0 80%, var(--k1-accent) 80% 81.2%, var(--k1-navy) 81.2%);
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Services — the mockup's four solution cards as compact tiles
   -------------------------------------------------------------------------- */

.k1-ranges {
	grid-area: ranges;
	min-width: 0;
}

.k1-ranges__title {
	display: flex;
	align-items: center;
	gap: .8rem;
	margin: 0 0 .65rem;
	font-family: var(--k1-font-ui);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--k1-gold-ink);
}

.k1-ranges__title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--k1-line);
}

.k1-ranges__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.k1-range {
	display: flex;
	align-items: center;
	gap: .65rem;
	padding: .65rem .7rem;
	background: var(--k1-tile);
	border: 1px solid var(--k1-line);
	border-radius: 10px;
}

.k1-range__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	color: var(--k1-gold-ink);
	border: 1.5px solid var(--k1-accent);
	border-radius: 50%;
}

.k1-range__icon svg {
	width: 17px;
	height: 17px;
}

.k1-range__text {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	min-width: 0;
}

.k1-range__name {
	font-family: var(--k1-font-display);
	font-size: .86rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--k1-navy);
	text-wrap: balance;
}

/* What each service covers only fits on tall, wide screens. */
.k1-range__items {
	display: none;
	font-size: .74rem;
	line-height: 1.45;
	color: var(--k1-muted);
}

/* --------------------------------------------------------------------------
   Contact buttons — tap-to-call and/or WhatsApp chat, plus optional email
   -------------------------------------------------------------------------- */

/* Stacked everywhere, so a long email address is never cut short. */
.k1-actions {
	grid-area: actions;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: .55rem;
	min-width: 0;
}

.k1-call {
	--k1-btn:     var(--k1-navy);
	--k1-btn-ink: var(--k1-cream);

	display: flex;
	align-items: center;
	gap: .75rem;
	min-width: 0;
	padding: .8rem 1.2rem;
	color: var(--k1-btn-ink);
	background: var(--k1-btn);
	border-radius: 999px;
	box-shadow: 0 12px 26px -14px var(--k1-btn);
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background-color .18s ease;
}

.k1-call .k1-call__icon {
	color: var(--k1-gold-light);
}

/* WhatsApp keeps a green of its own; #15803D holds ~5:1 with white text. */
.k1-call--whatsapp {
	--k1-btn:     #15803D;
	--k1-btn-ink: var(--k1-paper);
}

.k1-call--whatsapp .k1-call__icon {
	color: var(--k1-paper);
}

.k1-call--email {
	color: var(--k1-navy);
	background: transparent;
	border: 1.5px solid rgba(20, 35, 61, .3);
	box-shadow: none;
}

.k1-call--email .k1-call__icon {
	color: var(--k1-gold-ink);
}

.k1-call--email .k1-call__text {
	min-width: 0;
}

/* Long addresses shrink rather than burst the card. */
.k1-call--email .k1-call__value {
	max-width: 100%;
	overflow: hidden;
	font-size: clamp(.84rem, .8rem + .2vw, .94rem);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.k1-call:hover,
.k1-call:focus-visible {
	transform: translateY(-2px);
	filter: brightness(1.15);
	box-shadow: 0 16px 30px -14px var(--k1-btn);
}

.k1-call--email:hover,
.k1-call--email:focus-visible {
	filter: none;
	background: var(--k1-paper);
	border-color: var(--k1-navy);
	box-shadow: none;
}

.k1-call:active {
	transform: translateY(0);
}

.k1-call__icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

.k1-call__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.2;
}

.k1-call__label {
	font-size: .64rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .8;
}

.k1-call__value {
	font-size: clamp(.98rem, .94rem + .25vw, 1.1rem);
	font-weight: 700;
	letter-spacing: .01em;
}

/* --------------------------------------------------------------------------
   Footer — tagline and credit
   -------------------------------------------------------------------------- */

.k1-footer {
	position: relative;
	z-index: 1;
	padding: clamp(10px, 1.8vh, 18px) 16px calc(clamp(10px, 1.8vh, 18px) + env(safe-area-inset-bottom));
	text-align: center;
}

.k1-footer__tag {
	margin: 0 0 .35rem;
	font-size: .64rem;
	font-weight: 700;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--k1-gold-light);
}

.k1-footer__credit {
	margin: 0;
	font-size: .72rem;
	letter-spacing: .04em;
	color: var(--k1-paper-faint);
}

.k1-footer__link {
	border-bottom: 1px solid transparent;
	transition: color .2s ease, border-color .2s ease;
}

.k1-footer__link:hover,
.k1-footer__link:focus-visible {
	color: var(--k1-paper);
	border-bottom-color: rgba(255, 255, 255, .35);
}

/* --------------------------------------------------------------------------
   Tablets in portrait — the photo returns as a band above the services
   -------------------------------------------------------------------------- */

@media (min-width: 600px) and (max-width: 999px) and (min-height: 1000px) {
	.k1-photo {
		display: block;
		height: clamp(150px, 16vh, 220px);
	}
}

/* --------------------------------------------------------------------------
   Desktop and laptop — headline, selling points and buttons on the left;
   the photo and services on the right, as in the mockup's hero
   -------------------------------------------------------------------------- */

@media (min-width: 1000px) and (min-height: 600px) {
	.k1-card {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		grid-template-areas:
			"lead    photo"
			"actions ranges";
		gap: 22px clamp(32px, 3.6vw, 56px);
		width: min(1180px, 100%);
		padding: clamp(28px, 4.6vh, 52px) clamp(28px, 3.6vw, 56px) clamp(26px, 4.2vh, 48px);
	}

	.k1-lead {
		align-self: center;
	}

	.k1-card__logo {
		max-height: clamp(48px, 7vh, 66px);
	}

	/* The photo stretches to the height of the headline beside it. */
	.k1-photo {
		display: block;
		min-height: 160px;
	}

	.k1-photo__img {
		position: absolute;
		inset: 0;
	}

	.k1-ranges {
		align-self: end;
	}

	.k1-actions {
		align-self: end;
		grid-template-columns: minmax(0, 420px);
		gap: .5rem;
	}

	/* No phone or email set yet: the headline column runs the full height. */
	.k1-card--no-actions {
		grid-template-areas:
			"lead photo"
			"lead ranges";
	}

	.k1-card--no-actions .k1-photo {
		min-height: clamp(160px, 27vh, 300px);
	}
}

/* Tall desktops have room to say what each service covers. */
@media (min-width: 1000px) and (min-height: 860px) {
	.k1-range {
		align-items: flex-start;
		padding: .85rem .9rem;
	}

	.k1-range__items {
		display: block;
	}
}

/* Laptop heights: a smaller headline keeps both columns on screen. */
@media (min-width: 1000px) and (min-height: 600px) and (max-height: 760px) {
	.k1-headline {
		font-size: clamp(1.7rem, 1rem + 1.8vw, 2.4rem);
	}

	.k1-card__intro {
		margin-top: .6rem;
	}

	.k1-card__brand {
		margin-bottom: 14px;
	}
}

/* --------------------------------------------------------------------------
   Short viewports (landscape phones) — two compact columns, never scroll
   -------------------------------------------------------------------------- */

@media (max-height: 599px) and (min-width: 640px) {
	.k1-card {
		grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
		grid-template-areas:
			"lead    ranges"
			"actions ranges";
		gap: 12px 22px;
		width: min(920px, 100%);
		padding: 18px 22px;
	}

	.k1-card__brand {
		margin-bottom: 10px;
	}

	.k1-card__logo {
		max-height: 36px;
	}

	.k1-card__tagline {
		margin-bottom: .35rem;
		font-size: .6rem;
	}

	.k1-headline {
		font-size: clamp(1.15rem, 3.4vw, 1.35rem);
	}

	.k1-card__intro,
	.k1-badge,
	.k1-location {
		display: none;
	}

	.k1-values {
		margin-top: .55rem;
		padding: .4rem 0;
		font-size: clamp(.54rem, 1.6vw, .62rem);
		letter-spacing: 0;
	}

	.k1-values__item {
		padding: 0 .6em;
	}

	.k1-ranges {
		align-self: center;
	}

	.k1-ranges__list {
		grid-template-columns: 1fr;
		gap: .35rem;
	}

	.k1-range {
		padding: .4rem .55rem;
	}

	.k1-range__icon {
		width: 28px;
		height: 28px;
	}

	.k1-range__icon svg {
		width: 15px;
		height: 15px;
	}

	.k1-range__name {
		font-size: .78rem;
	}

	.k1-actions {
		align-self: end;
		gap: .35rem;
	}

	.k1-call {
		padding: .45rem .95rem;
	}

	.k1-call__value {
		font-size: .9rem;
	}
}

/* --------------------------------------------------------------------------
   Phones
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
	.k1-card {
		gap: 14px;
	}

	.k1-card__brand {
		margin-bottom: 16px;
	}

	.k1-card__logo {
		max-height: 44px;
	}

	.k1-card__tagline {
		font-size: .62rem;
		letter-spacing: .22em;
	}

	/* The bar stays on one line by scaling with the screen. */
	.k1-values {
		padding: .5rem 0;
		font-size: clamp(.56rem, 2.75vw, .72rem);
		letter-spacing: 0;
	}

	.k1-values__item {
		padding: 0 .6em;
	}

	.k1-range {
		gap: .5rem;
		padding: .55rem .55rem;
	}

	.k1-range__icon {
		width: 30px;
		height: 30px;
	}

	.k1-range__icon svg {
		width: 15px;
		height: 15px;
	}

	.k1-range__name {
		font-size: .76rem;
	}

	.k1-actions {
		gap: .45rem;
	}

	.k1-call {
		padding: .7rem 1.1rem;
	}
}

/* Shorter phones drop the introduction; the headline and services still
   say what Goldenview does. */
@media (max-width: 480px) and (max-height: 800px) {
	.k1-card {
		gap: 14px;
	}

	.k1-card__brand {
		margin-bottom: 12px;
	}

	.k1-card__logo {
		max-height: 38px;
	}

	.k1-card__intro {
		display: none;
	}

	.k1-headline {
		font-size: 1.55rem;
	}

	.k1-values {
		margin-top: .8rem;
	}

	.k1-call {
		padding: .55rem 1.1rem;
	}
}

@media (max-width: 480px) and (max-height: 690px) {
	.k1-location {
		display: none;
	}

	.k1-range {
		padding: .45rem .5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.k1-card {
		animation: none;
	}

	.k1-call {
		transition: none;
	}
}
