/*
 * Site footer built in Elementor as an Ultimate Addons footer template.
 * Layout, colours and type come from the Elementor template's own controls.
 * These rules cover only what those controls cannot express: the decorative
 * sun, column sizing, dividers between inline items, the contact icon circles
 * and link states. Every rule is scoped to the container with the
 * `fka-site-footer` CSS class, which shares the `fka-section` layout
 * (theme.css): a full-width green background around the shared content box.
 * Column widths assume the menu row's gap equals `--fka-footer-column-gap`.
 * Breakpoints match Elementor's (1024px, 767px), plus 1439px and 1199px,
 * below which the desktop rows no longer fit.
 */

.fka-site-footer {
	--fka-footer-divider: rgba(255, 255, 255, 0.5);
	--fka-footer-sun-width: 224px;
	--fka-footer-sun-offset: -21px;
}

.fka-site-footer .elementor-widget-text-editor p {
	margin: 0;
}


.fka-site-footer .fka-site-footer__heading .elementor-heading-title a {
	color: inherit;
	text-decoration: none;
}

.fka-site-footer .fka-site-footer__heading .elementor-heading-title a:hover,
.fka-site-footer .fka-site-footer__heading .elementor-heading-title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.fka-site-footer .fka-site-footer__logo img {
	display: block;
}

/*
 * Decorative sun and heart. It sits on the divider at the bottom of the main
 * area, behind the content. The main area's bottom padding in the template
 * leaves room for it on tablet and mobile, so it never covers text.
 */

.fka-site-footer .fka-site-footer__main {
	position: relative;
	isolation: isolate;
}

/* Brand and the link group sit beside each other, without a wide empty band. */
@media (min-width: 1025px) {
	.e-con.fka-site-footer .e-con.fka-site-footer__main {
		gap: var(--fka-space-2xl) !important;
		align-items: flex-start;
	}

	.e-con.fka-site-footer .e-con.fka-site-footer__brand {
		margin-inline-end: 0;
	}
}

.fka-site-footer .fka-site-footer__main::after {
	content: "";
	position: absolute;
	right: var(--fka-footer-sun-offset);
	bottom: 0;
	z-index: -1;
	width: var(--fka-footer-sun-width);
	aspect-ratio: 480 / 245;
	background: url("../images/fka-footer-sun.png") no-repeat right bottom / contain;
	pointer-events: none;
}

/*
 * Link columns stay as wide as their text and sit in one row. A stretched
 * 2x2 grid left a large gap between the short lists and the longer ones.
 */

@media (min-width: 768px) {
	.e-con.fka-site-footer .e-con.fka-site-footer__links {
		--display: flex;
		--flex-direction: row;
		--flex-wrap: wrap;
		--justify-content: flex-start;
		--align-items: flex-start;
		--align-content: flex-start;
		--gap: var(--fka-space-lg) var(--fka-space-xl);
		display: flex;
		flex-flow: row wrap;
		align-items: flex-start;
		align-content: flex-start;
		justify-content: flex-start;
		gap: var(--fka-space-lg) var(--fka-space-xl);
		flex: 1 1 auto;
		min-width: 0;
	}

	.e-con.fka-site-footer .e-con.fka-site-footer__links > .e-con.fka-site-footer__column {
		--width: auto;
		width: max-content;
		max-width: 100%;
		flex: 0 0 auto;
	}

	.e-con.fka-site-footer .e-con.fka-site-footer__contact {
		--padding-left: 0px;
		border-left-width: 0;
		max-width: 280px;
	}
}

@media (min-width: 1280px) {
	.e-con.fka-site-footer .e-con.fka-site-footer__links {
		--flex-wrap: nowrap;
		flex-wrap: nowrap;
	}
}

/* Narrower screens fit two link columns. A third column would leave Contact on its own row. */
@media (min-width: 768px) and (max-width: 900px) {
	.e-con.fka-site-footer .e-con.fka-site-footer__links > .e-con.fka-site-footer__column {
		width: calc(50% - var(--fka-space-xl) / 2);
		max-width: calc(50% - var(--fka-space-xl) / 2);
	}
}

@media (min-width: 1025px) {
	.e-con.fka-site-footer .e-con.fka-site-footer__main {
		--padding-bottom: var(--fka-space-4xl);
	}
}

/* Small desktops: beside the logo, three columns are too narrow for the contact details, so the brand sits above them as on tablet. */

@media (min-width: 1025px) and (max-width: 1199px) {
	.e-con.fka-site-footer .e-con.fka-site-footer__main {
		--flex-direction: column;
		--align-items: stretch;
	}

	.e-con.fka-site-footer .e-con.fka-site-footer__main > .e-con {
		--width: 100%;
	}
}

/* Higher specificity than the per-element widths Elementor emits for the template's columns. */

@media (max-width: 1024px) {
	.fka-site-footer {
		--fka-footer-sun-width: 176px;
		--fka-footer-sun-offset: -8px;
	}
}

@media (max-width: 767px) {
	.fka-site-footer {
		--fka-footer-sun-width: 152px;
		--fka-footer-sun-offset: -4px;
	}

	.e-con.fka-site-footer .e-con.fka-site-footer__links > .e-con.fka-site-footer__column {
		--width: calc((100% - var(--fka-footer-column-gap)) / 2);
	}

	.e-con.fka-site-footer .e-con.fka-site-footer__links > .e-con.fka-site-footer__contact {
		--width: 100%;
	}
}

/* Contact details are text only. The envelope and map pin are not shown. */

.fka-site-footer .fka-site-footer__contact-list .elementor-icon-list-icon {
	display: none !important;
}

.fka-site-footer .fka-site-footer__contact-list .elementor-icon-list-text {
	padding-top: 0;
	overflow-wrap: anywhere;
}

/* Thin dividers between the copyright and credit, and between legal links. */

.fka-site-footer .fka-site-footer__credit {
	position: relative;
	padding-inline-start: 37px;
}

.fka-site-footer .fka-site-footer__credit::before,
.fka-site-footer .fka-site-footer__legal .hfe-nav-menu > li.menu-item + li.menu-item::before {
	content: "";
	position: absolute;
	top: 50%;
	height: 14px;
	border-left: 1px solid var(--fka-footer-divider);
	transform: translateY(-50%);
}

.fka-site-footer .fka-site-footer__credit::before {
	left: 20px;
}

.fka-site-footer .fka-site-footer__legal .hfe-nav-menu > li.menu-item {
	position: relative;
}

.fka-site-footer .fka-site-footer__legal .hfe-nav-menu > li.menu-item + li.menu-item::before {
	left: 0;
}

/* Social icons sit under Book a Tour in the left brand column. */
.fka-site-footer .fka-site-footer__brand .fka-site-footer__social {
	width: 100%;
}

.fka-site-footer .fka-site-footer__brand .fka-site-footer__social .elementor-social-icons-wrapper {
	justify-content: flex-start;
	gap: 12px;
}

.fka-site-footer .fka-site-footer__social .elementor-social-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	font-size: 18px !important;
	line-height: 0 !important;
	text-align: center !important;
}

.fka-site-footer .fka-site-footer__social .elementor-social-icon svg {
	display: block !important;
	flex: 0 0 auto;
	width: 1em !important;
	height: 1em !important;
	margin: 0 !important;
}

/* Small desktops: the bottom row no longer fits on one line, so it stacks as it does on tablet. */

@media (min-width: 1025px) and (max-width: 1199px) {
	.e-con.fka-site-footer .e-con.fka-site-footer__bottom {
		--flex-direction: column;
		--align-items: flex-start;
	}

	.e-con.fka-site-footer .e-con.fka-site-footer__end {
		--justify-content: flex-start;
	}
}

@media (max-width: 1199px) {
	.fka-site-footer .fka-site-footer__legal .hfe-nav-menu > li.menu-item:first-child > a.hfe-menu-item {
		padding-left: 0;
	}
}

@media (max-width: 767px) {
	.fka-site-footer .fka-site-footer__credit {
		padding-inline-start: 0;
	}

	.fka-site-footer .fka-site-footer__credit::before {
		content: none;
	}
}

/* Link states: an underline on hover, and a visible focus ring. UAE removes the outline from menu links. */

.fka-site-footer .hfe-nav-menu a.hfe-menu-item,
.fka-site-footer .hfe-nav-menu a.hfe-sub-menu-item,
.fka-site-footer .fka-site-footer__credit a,
.fka-site-footer .fka-site-footer__contact-list a .elementor-icon-list-text {
	text-decoration: underline 1px transparent;
	text-underline-offset: 4px;
	transition: text-decoration-color 0.2s ease;
}

.fka-site-footer .hfe-nav-menu a.hfe-menu-item:hover,
.fka-site-footer .hfe-nav-menu a.hfe-menu-item:focus-visible,
.fka-site-footer .hfe-nav-menu a.hfe-sub-menu-item:hover,
.fka-site-footer .hfe-nav-menu a.hfe-sub-menu-item:focus-visible,
.fka-site-footer .hfe-nav-menu li.current-menu-item > a.hfe-menu-item,
.fka-site-footer .fka-site-footer__credit a:hover,
.fka-site-footer .fka-site-footer__credit a:focus-visible,
.fka-site-footer .fka-site-footer__contact-list a:hover .elementor-icon-list-text,
.fka-site-footer .fka-site-footer__contact-list a:focus-visible .elementor-icon-list-text {
	text-decoration-color: currentColor;
}

.fka-site-footer .hfe-nav-menu a.hfe-menu-item:focus-visible,
.fka-site-footer .hfe-nav-menu a.hfe-sub-menu-item:focus-visible,
.fka-site-footer .elementor-widget a:focus-visible {
	outline: 2px solid var(--fka-color-blue);
	outline-offset: 2px;
	border-radius: 2px;
}

.fka-site-footer .fka-book-tour .elementor-button:focus-visible,
.fka-site-footer .fka-site-footer__social a:focus-visible {
	outline: 2px solid var(--fka-color-blue);
	outline-offset: 3px;
	border-radius: 999px;
}
