/* ==========================================================================
   AT Wellness — a single-section landing page (Ketnal One engine)
   One viewport, one card, nothing below the fold.

   The logo is dark ink (sage, black, lotus sand) on white, so the card is a
   light linen panel over the background video rather than dark glass.
   --k1-accent and --k1-overlay are injected from the Customizer.
   ========================================================================== */

:root {
	--atw-sage:       #4A6347;   /* logo ring and hands */
	--atw-sage-deep:  #2F3D2D;
	--atw-sand:       #D4B48A;   /* logo lotus */
	--atw-linen:      #F7F3EC;
	--atw-ink:        #1F241E;
	--atw-ink-soft:   #4D574A;

	--k1-accent:      var(--atw-sage);
	--k1-overlay:     .4;

	--k1-paper:       #FFFFFF;
	--k1-paper-faint: rgba(255, 255, 255, .62);
	--k1-hairline:    rgba(212, 180, 138, .55);

	--k1-card-radius: clamp(18px, 2.2vw, 28px);
	--k1-card-glass:  rgba(247, 243, 236, .93);
	--k1-card-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset,
	                  0 24px 60px -20px rgba(20, 28, 19, .55),
	                  0 60px 120px -40px rgba(20, 28, 19, .5);

	--k1-font-display: "Marcellus", "Iowan Old Style", Georgia, serif;
	--k1-font-ui:      "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

	--k1-item-pad:     clamp(5px, .9vh, 9px);
}

/* --------------------------------------------------------------------------
   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(--atw-ink);
	background-color: var(--atw-sage-deep);
	/* 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: #FFFFFF;
	background: var(--k1-accent);
	border-radius: 0 0 8px 8px;
	transition: top .2s ease;
}

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

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

.k1-card :focus-visible {
	outline-color: var(--atw-sage-deep);
}

/* --------------------------------------------------------------------------
   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;
}

/* --------------------------------------------------------------------------
   Background — video, poster, or the animated placeholder
   -------------------------------------------------------------------------- */

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

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

/* No video uploaded yet: a slow drift of sand and sage light, so the page
   still looks deliberate while footage is sourced. */
.k1-bg--placeholder {
	background:
		radial-gradient(60% 55% at 22% 25%, rgba(212, 180, 138, .45) 0%, transparent 62%),
		radial-gradient(65% 60% at 82% 78%, rgba(122, 150, 116, .5) 0%, transparent 64%),
		linear-gradient(160deg, #56704F 0%, var(--atw-sage-deep) 58%, #1E281D 100%);
	background-size: 160% 160%, 160% 160%, 100% 100%;
	animation: k1-drift 26s ease-in-out infinite alternate;
}

@keyframes k1-drift {
	from { background-position: 0% 0%, 100% 100%, 0 0; }
	to   { background-position: 40% 30%, 60% 70%, 0 0; }
}

/* Softens the footage so the card and the credit line always read. */
.k1-bg__scrim {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120% 100% at 50% 40%, rgba(20, 28, 19, 0) 25%, rgba(20, 28, 19, .55) 100%),
		linear-gradient(to bottom, rgba(20, 28, 19, .3) 0%, rgba(20, 28, 19, .08) 40%, rgba(20, 28, 19, .6) 100%);
	opacity: var(--k1-overlay);
}

/* --------------------------------------------------------------------------
   Centred card
   -------------------------------------------------------------------------- */

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

.k1-card {
	position: relative;
	width: min(500px, 100%);
	max-height: 100%;
	overflow: auto;
	overscroll-behavior: contain;
	padding: clamp(20px, 3.4vh, 36px) clamp(20px, 5vw, 40px) clamp(20px, 3vh, 32px);
	text-align: center;
	background: var(--k1-card-glass);
	-webkit-backdrop-filter: blur(14px) saturate(110%);
	backdrop-filter: blur(14px) saturate(110%);
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: var(--k1-card-radius);
	box-shadow: var(--k1-card-shadow);
	scrollbar-width: thin;
	scrollbar-color: var(--k1-hairline) transparent;
	animation: k1-rise .9s cubic-bezier(.2, .7, .25, 1) both;
}

/* A hairline of lotus sand riding the top of the card. */
.k1-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 14%;
	right: 14%;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--atw-sand) 50%, transparent);
}

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

.k1-card__brand {
	margin: 0 0 clamp(10px, 1.8vh, 18px);
}

.k1-card__logo {
	width: auto;
	max-width: min(230px, 68%);
	max-height: clamp(120px, 21vh, 196px);
	margin: 0 auto;
	object-fit: contain;
}

.k1-card__name {
	margin: 0 0 .4rem;
	font-family: var(--k1-font-display);
	font-weight: 400;
	font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
	line-height: 1.15;
	color: var(--atw-ink);
}

.k1-card__tagline {
	max-width: 36ch;
	margin: 0 auto;
	font-size: clamp(.86rem, .82rem + .2vw, .95rem);
	font-weight: 400;
	line-height: 1.55;
	color: var(--atw-ink-soft);
}

.k1-rule {
	width: 44px;
	height: 1px;
	margin: clamp(12px, 2vh, 20px) auto;
	border: 0;
	background: var(--k1-hairline);
}

/* --------------------------------------------------------------------------
   Services — a treatment menu: name, duration, optional detail line
   -------------------------------------------------------------------------- */

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

.k1-services__title {
	display: flex;
	align-items: center;
	gap: .85rem;
	margin: 0 0 clamp(4px, .8vh, 8px);
	font-family: var(--k1-font-ui);
	font-size: .7rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--atw-sage);
}

.k1-services__title::before,
.k1-services__title::after {
	content: "";
	flex: 1 1 0;
	height: 1px;
	background: var(--k1-hairline);
}

.k1-services__list {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.k1-services__item {
	display: grid;
	grid-template-columns: 1fr auto;
	column-gap: 1rem;
	align-items: baseline;
	padding: var(--k1-item-pad) 0;
	border-bottom: 1px solid rgba(212, 180, 138, .32);
}

.k1-services__item:last-child {
	border-bottom: 0;
}

.k1-services__name {
	font-family: var(--k1-font-display);
	font-size: clamp(.95rem, .9rem + .2vw, 1.04rem);
	line-height: 1.3;
	color: var(--atw-ink);
}

.k1-services__time {
	font-size: .74rem;
	font-weight: 500;
	letter-spacing: .06em;
	white-space: nowrap;
	color: var(--atw-sage);
}

.k1-services__detail {
	grid-column: 1 / -1;
	margin-top: 1px;
	font-size: .78rem;
	line-height: 1.4;
	color: var(--atw-ink-soft);
}

/* --------------------------------------------------------------------------
   Location and booking note
   -------------------------------------------------------------------------- */

/* The pin and the address share one row whether or not a map link wraps them. */
.k1-location {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: .5rem;
	margin: 0 0 clamp(6px, 1vh, 10px);
	font-style: normal;
	color: var(--atw-ink-soft);
}

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

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

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

.k1-location__text {
	font-size: clamp(.84rem, .8rem + .2vw, .92rem);
	line-height: 1.5;
}

.k1-note {
	margin: 0 0 clamp(12px, 1.8vh, 18px);
	font-size: .8rem;
	line-height: 1.45;
	color: var(--atw-ink-soft);
}

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

.k1-actions {
	display: grid;
	gap: .6rem;
}

.k1-call {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .7rem;
	width: 100%;
	padding: .8rem 1.1rem;
	color: #FFFFFF;
	background: var(--k1-accent);
	border: 1px solid var(--k1-accent);
	border-radius: 999px;
	box-shadow: 0 10px 24px -12px rgba(47, 61, 45, .7);
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

/* WhatsApp sits beside the call button as the outlined partner, so the two
   greens never clash. */
.k1-call--whatsapp {
	color: var(--atw-sage-deep);
	background: rgba(255, 255, 255, .55);
	border-color: var(--atw-sage);
	box-shadow: none;
}

/* Email is the secondary way in: an outlined pill on its own full-width row. */
.k1-call--email {
	grid-column: 1 / -1;
	color: var(--atw-sage-deep);
	background: transparent;
	border-color: rgba(74, 99, 71, .45);
	box-shadow: none;
}

.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(.9rem, .86rem + .2vw, 1rem);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.k1-call:hover,
.k1-call:focus-visible {
	transform: translateY(-2px);
	background: var(--atw-sage-deep);
	border-color: var(--atw-sage-deep);
	box-shadow: 0 16px 30px -12px rgba(47, 61, 45, .8);
}

.k1-call--whatsapp:hover,
.k1-call--whatsapp:focus-visible,
.k1-call--email:hover,
.k1-call--email:focus-visible {
	color: #FFFFFF;
	background: var(--atw-sage);
	border-color: var(--atw-sage);
}

.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: .66rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .85;
}

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

/* Call and WhatsApp side by side once the card is wide enough. */
@media (min-width: 480px) {
	.k1-actions--both {
		grid-template-columns: 1fr 1fr;
	}

	.k1-actions--both .k1-call {
		padding-left: .8rem;
		padding-right: .8rem;
	}
}

.k1-signoff {
	margin: clamp(12px, 2vh, 20px) 0 0;
	font-family: var(--k1-font-display);
	font-size: .9rem;
	letter-spacing: .04em;
	color: var(--atw-sage);
}

/* --------------------------------------------------------------------------
   Footer 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__credit {
	margin: 0;
	font-size: .74rem;
	font-weight: 300;
	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, .4);
}

/* --------------------------------------------------------------------------
   Short viewports — tighten, never scroll the page
   -------------------------------------------------------------------------- */

/* Small phones (iPhone SE and similar). */
@media (max-height: 700px) {
	:root {
		--k1-item-pad: 3px;
	}

	.k1-card {
		padding-top: 16px;
		padding-bottom: 16px;
	}

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

	.k1-card__tagline {
		font-size: .82rem;
		line-height: 1.45;
	}

	.k1-services {
		margin-top: 10px;
	}

	.k1-rule {
		margin: 10px auto;
	}

	.k1-call {
		padding-top: .6rem;
		padding-bottom: .6rem;
	}

	.k1-signoff {
		margin-top: 10px;
	}
}

/* Landscape phones: smaller logo, services in two
   columns, intro and sign-off dropped. */
@media (max-height: 560px) {
	.k1-main {
		padding-top: 10px;
	}

	.k1-card {
		width: min(720px, 100%);
		padding: 14px 24px 16px;
	}

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

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

	.k1-card__tagline,
	.k1-signoff {
		display: none;
	}

	.k1-services__list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 1.6rem;
	}

	.k1-services__item:nth-last-child(2):nth-child(odd) {
		border-bottom: 0;
	}

	.k1-actions--both {
		grid-template-columns: 1fr 1fr;
	}

	.k1-call {
		padding: .5rem 1rem;
	}

	.k1-call--email .k1-call__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.k1-footer {
		padding-top: 6px;
		padding-bottom: calc(6px + env(safe-area-inset-bottom));
	}
}

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

	.k1-call {
		transition: none;
	}
}

/* Browsers without backdrop-filter get a near-solid panel. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.k1-card {
		background: rgba(247, 243, 236, .97);
	}
}
