/**
 * Site chrome: header (Figma "Navigation Bar" 7:6723), phone menu ("Mobile navigation / 390"
 * 7:3443), the phone's fixed button ("Sticky CTA" 7:2817) and footer ("M15 Mega footer" 7:781)
 * with the "Letters from the courtyard" newsletter. The same markup is printed by the site
 * header and footer widgets inside Elementor templates and by the theme's own templates.
 */

/* ------------------------------------------------------------------ */
/* Header: 72 high, cream, wordmark left, links and the earth button   */
/* ------------------------------------------------------------------ */

.ct-main:focus {
	outline: 0;
}

.ct-header {
	position: relative;
	z-index: 50;
	background: var(--ct-header-bg, var(--ct-c-cream));
	color: var(--ct-header-text, var(--ct-c-earth));
	font-family: var(--ct-sans);
}

.ct-header ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ct-header__bar {
	display: flex;
	align-items: center;
	gap: 0;
	height: 72px;
}

.ct-logo {
	display: flex;
	align-items: center;
	min-height: 44px;
	margin-right: auto;
	color: inherit;
	font-family: var(--ct-serif);
	font-size: var(--ct-fs-h3);
	line-height: var(--ct-lh-h3);
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
}

.ct-logo--image a {
	display: flex;
	align-items: center;
}

.ct-logo--image img {
	display: block;
	width: auto;
	max-height: 36px;
}

.ct-nav__list {
	display: flex;
	align-items: center;
}

/* Figma link boxes are 90 to 110 wide with the text centred: 24px either side at 1440. */
.ct-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 24px;
	color: inherit;
	font-size: var(--ct-fs-small);
	line-height: var(--ct-lh-small);
	font-weight: 400;
	text-decoration: none;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	white-space: nowrap;
}

/* Not in Figma: underline on hover and for the current page, so visitors know where they are. */
.ct-nav__link:hover,
.ct-nav__link[aria-current="page"] {
	text-decoration-line: underline;
}

.ct-header__cta {
	flex: none;
	min-width: 170px;
	padding: 0 34px;
	white-space: nowrap;
}

.ct-header__toggle {
	display: none;
}

@media (max-width: 1024px) {
	.ct-nav__link {
		padding: 0 16px;
	}
}

@media (max-width: 767px) {
	.ct-nav,
	.ct-header__cta {
		display: none;
	}

	/* "Menu": the earth button, 48 high; "Close" (menu open): the same button. */
	.ct-js .ct-header__toggle {
		display: inline-flex;
		flex: none;
		min-width: 73px;
		margin: 0;
		padding: 0 16px;
		font-family: var(--ct-sans);
	}

	.ct-header__toggle-close,
	.ct-header__toggle[aria-expanded="true"] .ct-header__toggle-open {
		display: none;
	}

	.ct-header__toggle[aria-expanded="true"] .ct-header__toggle-close {
		display: inline;
	}

	/* Without JavaScript the menu cannot open: the links wrap under the wordmark instead. */
	html:not(.ct-js) .ct-header__bar {
		flex-wrap: wrap;
		height: auto;
		min-height: 72px;
		padding: 12px 0;
	}

	html:not(.ct-js) .ct-nav {
		display: block;
	}

	html:not(.ct-js) .ct-nav__list {
		flex-wrap: wrap;
	}

	html:not(.ct-js) .ct-nav__link {
		padding: 0 16px 0 0;
	}
}

/* ------------------------------------------------------------------ */
/* Phone menu: replaces the page content and the footer while open     */
/* ------------------------------------------------------------------ */

.ct-menu[hidden] {
	display: none;
}

.ct-menu__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 32px 0;
}

.ct-menu__list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ct-menu__link {
	width: 100%;
}

.ct-menu__link[aria-current="page"] {
	border-color: var(--ct-c-earth);
}

.ct-menu__intro {
	margin: 0;
	color: var(--ct-c-muted);
}

.ct-menu__media {
	aspect-ratio: 350 / 240;
}

/* The short footer at the foot of the menu: wordmark, three links, rule, legal line. */
.ct-menu__footer {
	padding: 64px 0;
	background: var(--ct-footer-bg, var(--ct-c-earth));
	color: var(--ct-footer-text, var(--ct-c-paper));
}

.ct-menu__footer .ct-container {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ct-header .ct-logo--menu {
	min-height: 0;
	margin: 0;
	font-size: var(--ct-fs-h2);
	line-height: var(--ct-lh-h2);
	white-space: normal;
}

.ct-menu__footer-links {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ct-menu__footer-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	font-size: var(--ct-fs-small);
	line-height: var(--ct-lh-small);
	text-decoration: none;
}

.ct-menu__footer-links a:hover {
	text-decoration: underline;
}

.ct-menu__legal {
	margin: 0;
	padding-top: 24px;
	border-top: 1px solid var(--ct-c-muted);
	font-size: var(--ct-fs-small);
	line-height: var(--ct-lh-small);
}

.ct-menu__footer :focus-visible {
	outline-color: var(--ct-c-paper);
}

@media (max-width: 767px) {
	html.ct-menu-open .ct-main,
	html.ct-menu-open .ct-footer,
	html.ct-menu-open .ct-template--footer,
	html.ct-menu-open .ct-sticky-cta {
		display: none;
	}
}

@media (min-width: 768px) {
	.ct-menu {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* Phone: button fixed to the bottom of the screen                     */
/* ------------------------------------------------------------------ */

.ct-sticky-cta {
	display: none;
}

@media (max-width: 767px) {
	.ct-sticky-cta {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 40;
		display: block;
		padding: 14px var(--ct-gutter);
		background: var(--ct-c-paper);
		box-shadow: 0 -1px 0 color-mix(in srgb, var(--ct-c-earth) 16%, transparent);
	}

	/* Room for the bar, so it never covers the end of the footer. */
	body:has(.ct-sticky-cta) {
		padding-bottom: 76px;
	}
}

/* ------------------------------------------------------------------ */
/* Footer: earth brown, paper and sand text                            */
/* ------------------------------------------------------------------ */

.ct-footer {
	padding: 96px 0 48px;
	background: var(--ct-footer-bg, var(--ct-c-earth));
	color: var(--ct-footer-text, var(--ct-c-paper));
	font-family: var(--ct-sans);
	font-size: var(--ct-fs-body);
	line-height: var(--ct-lh-body);
}

.ct-footer h2,
.ct-footer p,
.ct-footer ul {
	margin: 0;
}

.ct-footer ul {
	padding: 0;
	list-style: none;
}

.ct-footer a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ct-footer a:hover {
	text-decoration-thickness: 2px;
}

.ct-footer :focus-visible {
	outline-color: var(--ct-c-paper);
}

/* Brand and newsletter (384 of 1200) beside the link columns (792), 24 apart. */
.ct-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 384fr) minmax(0, 792fr);
	gap: 48px 24px;
}

.ct-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.ct-footer .ct-logo--footer {
	display: inline-block;
	min-height: 0;
	margin: 0;
	font-size: 40px;
	line-height: 44px;
	white-space: normal;
}

.ct-footer .ct-footer__promise,
.ct-footer .ct-news__text,
.ct-footer .ct-news__note,
.ct-footer .ct-footer__heading,
.ct-footer .ct-footer__contact,
.ct-footer .ct-footer__legal {
	color: var(--ct-footer-muted, var(--ct-c-sand));
}

/* Newsletter (Figma component "Newsletter", states Default and Error; Sent is the theme's). */
.ct-news {
	width: 100%;
	min-width: 0;
	padding-top: 24px;
}

.ct-footer .ct-news > * + * {
	margin-top: 8px;
}

.ct-footer .ct-news__title {
	color: inherit;
	font-family: var(--ct-serif);
	font-size: 24px;
	line-height: 32px;
	font-weight: 400;
}

.ct-news__form[hidden],
.ct-news__sent[hidden] {
	display: none;
}

.ct-news__row {
	display: flex;
	gap: 8px;
}

.ct-news__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 48px;
	margin: 0;
	padding: 11px 16px;
	border: 1px solid var(--ct-c-line);
	border-radius: var(--ct-radius-control);
	background: var(--ct-c-paper);
	color: var(--ct-c-earth);
	font-family: var(--ct-sans);
	font-size: 16px;
	line-height: 24px;
	box-shadow: none;
}

.ct-news__input::placeholder {
	color: var(--ct-c-muted);
	opacity: 1;
}

.ct-news__input:focus {
	outline: 2px solid var(--ct-c-paper);
	outline-offset: 2px;
}

/* Error (component 7:140): the border turns brick; the line under the field says why. */
.ct-news__input[aria-invalid="true"] {
	border-color: var(--ct-c-error);
}

/* Subscribe: outline button on the dark footer. */
.ct-footer .ct-news__submit {
	flex: none;
	padding: 0 20px;
	border-color: var(--ct-c-paper);
	background: transparent;
	color: var(--ct-c-paper);
}

.ct-footer .ct-news__submit:hover {
	background: var(--ct-c-paper);
	color: var(--ct-c-earth);
}

.ct-footer .ct-news__note {
	margin-top: 12px;
	font-size: var(--ct-fs-small);
	line-height: var(--ct-lh-small);
}

.ct-news__sent:focus {
	outline: 0;
}

.ct-footer .ct-news__message {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.ct-news__check {
	flex: none;
}

.ct-footer .ct-news__again {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
	text-decoration-line: underline;
}

/* Link columns: Villas 160, Plan your stay 180, Journal 160, Contact 220 at 1440. */
.ct-footer__cols {
	display: grid;
	grid-template-columns: 160fr 180fr 160fr 220fr;
	gap: 32px 24px;
	align-content: start;
}

.ct-footer .ct-footer__heading {
	margin-bottom: 12px;
	font-family: var(--ct-sans);
	font-size: var(--ct-fs-label);
	line-height: var(--ct-lh-label);
	font-weight: 600;
}

.ct-footer__links {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ct-footer__links a {
	display: flex;
	align-items: center;
	min-height: 44px;
	text-decoration-line: underline;
	overflow-wrap: anywhere;
}

.ct-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 12px;
	font-size: var(--ct-fs-small);
	line-height: var(--ct-lh-small);
}

.ct-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.ct-footer__icon {
	flex: none;
	width: 20px;
	height: 20px;
}

.ct-footer .ct-footer__contact a {
	text-decoration-line: none;
}

.ct-footer .ct-footer__legal {
	margin-top: 64px;
	padding-top: 24px;
	border-top: 1px solid var(--ct-c-muted);
	font-size: var(--ct-fs-small);
	line-height: var(--ct-lh-small);
}

@media (max-width: 1024px) {
	.ct-footer {
		padding: 72px 0 40px;
	}

	.ct-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}

	.ct-footer__cols {
		grid-template-columns: 160fr 170fr 160fr 208fr;
	}

	.ct-footer .ct-footer__legal {
		margin-top: 48px;
	}
}

@media (max-width: 767px) {
	.ct-footer {
		padding: 56px 0 40px;
	}

	.ct-footer .ct-logo--footer {
		font-size: 32px;
		line-height: 40px;
	}

	.ct-footer .ct-news__title {
		font-size: 22px;
		line-height: 30px;
	}

	/* Villas and Plan your stay side by side, Journal under them, Contact full width. */
	.ct-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ct-footer__col--contact {
		grid-column: 1 / -1;
	}

	.ct-footer .ct-footer__legal {
		margin-top: 32px;
	}
}
