/* The Mermaid's Purse: the ad landing page.
   Brand as the villa site (wp-content/themes/mermaids-purse/css/styles.css): IM Fell English for
   headings, Hanken Grotesk for text, deep sea green on salt white, light only. One job: check
   availability on Nightsbridge, or send a WhatsApp. */

@font-face {
	font-family: Fell;
	src: url("../fonts/im-fell-english-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Fell;
	src: url("../fonts/im-fell-english-italic-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: Hanken;
	src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--salt: #f6f7f3;
	--mist: #e7ece6;
	--soft: #dbe6e0;
	--line: #ccd5cd;
	--sea: #173e3b;
	--sea2: #285a52;
	--muted: #4c5f5a;
	--white: #ffffff;
	--whatsapp: #1c8549;
	--serif: Fell, Georgia, serif;
	--sans: Hanken, Arial, sans-serif;
	--gutter: max(20px, env(safe-area-inset-left, 0px));
	--wrap: 1240px;
	color-scheme: light;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--salt);
	color: var(--sea);
	font: 400 1.0625rem/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-underline-offset: 0.3em;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h2 {
	font-size: clamp(2.3rem, 1.6rem + 3vw, 3.9rem);
}

h3 {
	font-size: 1.6rem;
}

h1 em,
h2 em {
	font-style: italic;
}

p {
	margin: 0;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: clamp(64px, 9vw, 128px);
}

.section--mist {
	background: var(--mist);
}

.kicker {
	margin-bottom: 1rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sea2);
}

.lede {
	max-width: 36em;
	margin-top: 1.2rem;
	font-size: 1.125rem;
	color: var(--muted);
}

.skip {
	position: absolute;
	left: -9999px;
}

.skip:focus {
	left: 12px;
	top: 12px;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--white);
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* Buttons: solid, at least 48px tall. */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 52px;
	padding: 0.8rem 1.6rem;
	border: 1px solid transparent;
	font: 600 1rem/1.2 var(--sans);
	letter-spacing: 0.01em;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--book {
	background: var(--sea);
	color: var(--white);
}

.btn--book:hover {
	background: var(--sea2);
}

.btn--light {
	background: var(--white);
	color: var(--sea);
}

.btn--light:hover {
	background: var(--soft);
}

.btn--wa {
	background: var(--whatsapp);
	color: var(--white);
}

.btn--wa:hover {
	background: #166e3c;
}

.btn--ghost {
	border-color: currentColor;
	color: var(--sea);
}

.btn--ghost:hover {
	background: var(--sea);
	color: var(--white);
}

.btn svg {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

.btns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Header: slim and sticky, the booking button always in reach. */
.top {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--salt);
	border-bottom: 1px solid var(--line);
}

.top .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 70px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--serif);
	font-size: 1.4rem;
	line-height: 1.1;
	text-decoration: none;
	white-space: nowrap;
}

.brand img {
	width: 38px;
	height: 38px;
	object-fit: contain;
}

.top__actions {
	display: flex;
	align-items: center;
	gap: 1.2rem;
}

.top__tel {
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.top .btn {
	min-height: 46px;
	padding: 0.6rem 1.2rem;
}

/* Hero: the villa from the air (the salt pans view on phones). */
.hero {
	position: relative;
	isolation: isolate;
	min-height: min(88vh, 820px);
	display: flex;
	align-items: flex-end;
	color: var(--white);
	background: var(--sea);
}

.hero__img {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.hero__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 55%;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgba(10, 30, 28, 0.86) 0%, rgba(10, 30, 28, 0.55) 38%, rgba(10, 30, 28, 0.12) 72%, rgba(10, 30, 28, 0.25) 100%);
}

.hero__text {
	width: 100%;
	padding-block: clamp(120px, 16vw, 200px) clamp(44px, 6vw, 80px);
}

.hero .kicker {
	color: var(--soft);
}

.hero h1 {
	max-width: 13em;
	font-size: clamp(2.8rem, 1.7rem + 4.6vw, 5.4rem);
	text-shadow: 0 1px 2px rgba(5, 20, 18, 0.4), 0 2px 24px rgba(5, 20, 18, 0.4);
}

.hero__sub {
	max-width: 34em;
	margin-top: 1.2rem;
	font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 1px 2px rgba(5, 20, 18, 0.55), 0 0 18px rgba(5, 20, 18, 0.4);
}

/* Prices in the text face: IM Fell's old-style numerals make "R11 500" hard to read at a glance. */
.hero__price {
	margin-top: 1.4rem;
	font-family: var(--sans);
	font-size: 1.5rem;
	font-weight: 600;
	font-variant-numeric: lining-nums;
}

.hero__price small {
	font-size: 0.95rem;
	font-weight: 400;
	opacity: 0.85;
}

@media (max-width: 700px) {
	.hero__price small {
		display: block;
	}
}

.hero .btns {
	margin-top: 1.6rem;
}

.facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.8rem;
	margin: 2.2rem 0 0;
	padding: 1.2rem 0 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, 0.35);
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.9);
}

/* Phones: the portrait photo is composed with open sky above the villa, as on the villa site,
   so the headline sits in the sky and the villa shows beneath it; the details follow on sea
   green below the photo instead of covering it. */
@media (max-width: 700px) {
	.hero {
		display: block;
		min-height: 0;
	}

	.hero__img {
		bottom: auto;
		height: 84svh;
	}

	.hero::before {
		bottom: auto;
		height: 84svh;
		background: linear-gradient(180deg, rgba(10, 30, 28, 0.62) 0%, rgba(10, 30, 28, 0.3) 34%, rgba(10, 30, 28, 0) 55%);
	}

	.hero__text {
		padding-block: 0;
	}

	.hero__head {
		min-height: 84svh;
		padding-block: 36px 24px;
	}

	.hero__body {
		padding-block: 28px 40px;
		background: var(--sea);
	}

	.hero .btns .btn {
		flex: 1 1 100%;
	}
}

/* Who it's for: three short cards. */
.for {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 40px);
	margin: 2.6rem 0 0;
	padding: 0;
	list-style: none;
}

.for li {
	padding-top: 1.4rem;
	border-top: 1px solid var(--sea);
}

.for h3 {
	margin-bottom: 0.6rem;
}

.for p {
	color: var(--muted);
}

@media (max-width: 860px) {
	.for {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The villa: a photo grid with captions. */
.grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(10px, 1.4vw, 18px);
	margin: 2.6rem 0 0;
	padding: 0;
	list-style: none;
}

.grid li {
	grid-column: span 2;
}

.grid li.wide {
	grid-column: span 4;
}

.grid li.half {
	grid-column: span 3;
}

.grid figure {
	margin: 0;
}

.grid img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.grid li.wide img {
	aspect-ratio: 16 / 10;
	height: 100%;
}

.grid figcaption {
	margin-top: 0.6rem;
	font-size: 0.95rem;
	color: var(--muted);
}

.grid figcaption strong {
	display: block;
	font-family: var(--serif);
	font-weight: 400;
	font-size: 1.25rem;
	color: var(--sea);
}

@media (max-width: 860px) {
	.grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.grid li,
	.grid li.half {
		grid-column: span 1;
	}

	.grid li.wide {
		grid-column: span 2;
	}
}

/* Split sections: text beside a photo. */
.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 80px);
	align-items: center;
}

.split--flip .split__pic {
	order: -1;
}

.split__pic {
	margin: 0;
}

.split__pic img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.split p + p {
	margin-top: 1rem;
}

.split .btns {
	margin-top: 1.6rem;
}

@media (max-width: 860px) {
	.split {
		grid-template-columns: minmax(0, 1fr);
	}

	.split--flip .split__pic {
		order: 0;
	}

	.split__pic img {
		aspect-ratio: 4 / 3;
	}
}

/* Amenities. */
.amenities {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin: 2.2rem 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.amenities li {
	padding: 0.9rem 0.4rem;
	border-bottom: 1px solid var(--line);
	font-weight: 500;
}

@media (max-width: 700px) {
	.amenities {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Rates. */
.rates {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(28px, 5vw, 80px);
	align-items: start;
}

.rates__price {
	font-family: var(--sans);
	font-weight: 600;
	letter-spacing: -0.02em;
	font-variant-numeric: lining-nums;
	font-size: clamp(2.6rem, 2rem + 2.6vw, 4.2rem);
	line-height: 1;
}

.rates__price small {
	display: block;
	margin-top: 0.6rem;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--muted);
}

.rates dl {
	display: grid;
	gap: 0;
	margin: 0;
	border-top: 1px solid var(--line);
}

.rates dl div {
	display: grid;
	grid-template-columns: 9rem minmax(0, 1fr);
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--line);
}

.rates dt {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	padding-top: 0.2em;
}

.rates dd {
	margin: 0;
}

.rates .btns {
	margin-top: 1.6rem;
}

@media (max-width: 860px) {
	.rates {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 420px) {
	.rates dl div {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.2rem;
	}
}

/* Questions. */
.faq {
	display: grid;
	max-width: 52rem;
	margin: 2rem 0 0;
}

.faq div {
	padding-block: 1.2rem;
	border-top: 1px solid var(--line);
}

.faq div:last-child {
	border-bottom: 1px solid var(--line);
}

.faq dt {
	font-family: var(--serif);
	font-size: 1.35rem;
}

.faq dd {
	margin: 0.4rem 0 0;
	color: var(--muted);
}

/* Closing call to action. */
.final {
	position: relative;
	isolation: isolate;
	color: var(--white);
	text-align: center;
	background: var(--sea);
}

.final__img {
	position: absolute;
	inset: 0;
	z-index: -2;
}

/* The photo is mostly sky with the villa low down: anchor it near the bottom, keep the text in the
   sky, and leave room under the buttons so the villa shows below them. */
.final__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 78%;
}

.final::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(10, 30, 28, 0.66) 0%, rgba(10, 30, 28, 0.5) 45%, rgba(10, 30, 28, 0.08) 80%, rgba(10, 30, 28, 0) 100%);
}

.final .wrap {
	display: grid;
	justify-items: center;
	gap: 1.2rem;
	padding-block: clamp(72px, 8vw, 110px) clamp(200px, 22vw, 320px);
}

.final p {
	max-width: 32em;
	color: rgba(255, 255, 255, 0.9);
}

.final .btns {
	justify-content: center;
}

/* Footer. */
.foot {
	padding-block: 2.4rem 2.8rem;
	border-top: 1px solid var(--line);
	font-size: 0.92rem;
	color: var(--muted);
}

.foot .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
}

.foot img {
	width: auto;
	height: 34px;
}

/* On phones, Check availability and WhatsApp stay at the bottom of the screen. */
.dock {
	display: none;
}

@media (max-width: 700px) {
	.top__tel,
	.top .btn {
		display: none;
	}

	.dock {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.6rem;
		padding: 0.6rem var(--gutter) max(0.6rem, env(safe-area-inset-bottom, 0px));
		background: var(--salt);
		border-top: 1px solid var(--line);
		box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.3);
	}

	.dock .btn {
		min-height: 50px;
		padding-inline: 0.6rem;
	}

	body {
		padding-bottom: 84px;
	}
}
