/*
 * Adventuresholic site: header logo spacing, footer, and the day (white) mode.
 * Night mode is the site as designed (dark "aurora"); day mode = html[data-theme="light"].
 */
:root {
	--ahs-night: #050d12;
	--ahs-deep: #0a1a21;
	--ahs-ink: #eaf6f5;
	--ahs-muted: #9fb7b6;
	--ahs-mint: #6ff5dd;
	--ahs-teal: #07bcb1;
	--ahs-line: rgba(255, 255, 255, .1);
	--ahs-strong: #fff;
}
html[data-theme="light"] {
	--ahs-night: #ffffff;
	--ahs-deep: #f3f8f8;
	--ahs-ink: #1b3138;
	--ahs-muted: #5a7279;
	--ahs-mint: #079e94;
	--ahs-line: rgba(5, 13, 18, .1);
	--ahs-strong: #0b1f25;
}

/* ---------- header: the logo no longer touches the header's edges ---------- */
#site-header #site-logo #site-logo-inner a img,
#site-header #site-logo #site-logo-inner a img.custom-logo { max-height: 62px !important; width: auto; }
@media (max-width: 959px) {
	#site-header #site-logo #site-logo-inner a img,
	#site-header #site-logo #site-logo-inner a img.custom-logo { max-height: 50px !important; }
}

/* sun/moon switch, the last item of the menu */
/* The menu items float with a fixed line-height (83px here); the switch takes the same height and centres. */
#site-navigation-wrap .dropdown-menu > li.ahs-mode-li { display: flex; align-items: center; height: 83px; padding: 0 4px 0 10px; }
.ahs-mode {
	position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; margin: 0;
	border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06);
	color: #fff; cursor: pointer; line-height: 1; vertical-align: middle; transition: border-color .2s, color .2s, background-color .2s;
}
.ahs-mode:hover, .ahs-mode:focus { background: rgba(255, 255, 255, .14); border-color: var(--ahs-mint); color: var(--ahs-mint); }
.ahs-mode:focus-visible { outline: 2px solid var(--ahs-mint); outline-offset: 2px; }
.ahs-mode svg { display: block; width: 19px; height: 19px; }
.ahs-mode__moon { display: none; }
html[data-theme="light"] .ahs-mode__sun { display: none; }
html[data-theme="light"] .ahs-mode__moon { display: block; }
#mobile-dropdown li.ahs-mode-li { padding: 10px 0; }

/* ---------- footer ---------- */
#footer.site-footer, .wpml-ls-statics-footer { display: none !important; }
.ahs-footer {
	position: relative; clear: both;
	background:
		radial-gradient(800px 300px at 10% 0%, rgba(111, 245, 221, .07), transparent 60%),
		var(--ahs-night);
	border-top: 1px solid var(--ahs-line);
	color: var(--ahs-ink); font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.6;
}
/* The footer stays dark in day mode too. */
html[data-theme="light"] .ahs-footer {
	--ahs-night: #050d12; --ahs-deep: #0a1a21; --ahs-ink: #eaf6f5; --ahs-muted: #9fb7b6;
	--ahs-mint: #6ff5dd; --ahs-line: rgba(255, 255, 255, .1); --ahs-strong: #fff;
}
.ahs-footer:lang(ar) { font-family: Almarai, Cairo, sans-serif; }
/* Arabic pages: Almarai for the whole site (theme text, menu, headings, forms). Icons keep their own fonts. */
html:lang(ar) body,
html:lang(ar) body :is(h1, h2, h3, h4, h5, h6, p, a, li, td, th, label, button, input, select, textarea, blockquote, .menu-text) {
	font-family: Almarai, Cairo, sans-serif !important;
}
.ahs-footer a { color: inherit; text-decoration: none; transition: color .2s, border-color .2s; }
.ahs-footer__in {
	max-width: 1240px; margin: 0 auto; padding: 72px 24px 48px;
	display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px;
}
.ahs-footer__logo { display: inline-block; }
.ahs-footer__logo img { display: block; height: 72px; width: auto; }
.ahs-footer__about { margin: 18px 0 22px; max-width: 340px; color: var(--ahs-muted); }
.ahs-footer__social { display: flex; gap: 10px; }
.ahs-footer__social a {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	border: 1px solid var(--ahs-line); color: var(--ahs-ink);
}
.ahs-footer__social a:hover { border-color: var(--ahs-mint); color: var(--ahs-mint); }
.ahs-footer__col h2 {
	margin: 6px 0 18px; font: 600 13px/1 Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--ahs-mint);
}
.ahs-footer__col h2:lang(ar) { font-family: inherit; font-size: 15px; letter-spacing: 0; }
.ahs-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ahs-footer__col li { margin: 0; }
.ahs-footer__col a:hover { color: var(--ahs-mint); }
.ahs-footer__contact a { display: flex; align-items: flex-start; gap: 12px; }
.ahs-footer__contact svg { flex: none; margin-top: 3px; color: var(--ahs-mint); }
.ahs-footer__contact span { display: flex; flex-direction: column; }
.ahs-footer__contact small { font-size: 12.5px; color: var(--ahs-muted); line-height: 1.4; }
.ahs-footer__contact bdi { font-family: Outfit, Poppins, sans-serif; font-weight: 600; font-size: 16px; color: var(--ahs-strong); direction: ltr; }
.ahs-footer__bar {
	max-width: 1240px; margin: 0 auto; padding: 22px 24px 28px; border-top: 1px solid var(--ahs-line);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
	color: var(--ahs-muted); font-size: 14px;
}
.ahs-footer__bar p { margin: 0; }
@media (min-width: 561px) { .ahs-footer__bar { padding-inline-end: 84px; } } /* room for the theme's back-to-top button */
.ahs-footer__langs { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.ahs-footer__langs a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ahs-line); color: var(--ahs-ink); }
.ahs-footer__langs a:hover, .ahs-footer__langs a[aria-current] { border-color: var(--ahs-mint); color: var(--ahs-mint); }
@media (max-width: 960px) {
	.ahs-footer__in { grid-template-columns: 1fr 1fr; }
	.ahs-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.ahs-footer__in { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
	.ahs-footer__bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- day mode ---------- */
html[data-theme="light"] body { background-color: #fff; }

/* top bar and header on pages without a photo under the header */
html[data-theme="light"] #top-bar-wrap { background-color: #fff !important; border-color: rgba(5, 13, 18, .08) !important; }
html[data-theme="light"] #top-bar-wrap a, html[data-theme="light"] #top-bar-wrap .oceanwp-social-menu a { color: #1b3138 !important; }
html[data-theme="light"] body:not(.has-transparent-header) #site-header { background-color: #fff !important; border-bottom-color: rgba(5, 13, 18, .08) !important; }
html[data-theme="light"] body:not(.has-transparent-header) #site-navigation-wrap .dropdown-menu > li > a,
html[data-theme="light"] body:not(.has-transparent-header) #site-header .oceanwp-mobile-menu-icon a { color: #1b3138 !important; }
html[data-theme="light"] body:not(.has-transparent-header) #site-navigation-wrap .dropdown-menu > li > a:hover { color: #079e94 !important; }
html[data-theme="light"] body:not(.has-transparent-header) .ahs-mode { border-color: rgba(5, 13, 18, .2); background: rgba(5, 13, 18, .04); color: #1b3138; }
html[data-theme="light"] body:not(.has-transparent-header) .ahs-mode:hover { border-color: #079e94; color: #079e94; }

/* the dark "adv" pages (home, contact…): white background, dark text */
html[data-theme="light"] .adv {
	--night: #ffffff; --deep: #f3f8f8; --card: #f6fafa; --ink: #1b3138; --muted: #5a7279;
	--line: rgba(5, 13, 18, .1); --mint: #079e94;
}
html[data-theme="light"] .adv h1, html[data-theme="light"] .adv h2, html[data-theme="light"] .adv h3,
html[data-theme="light"] .adv-quote blockquote, html[data-theme="light"] .adv-ccard span { color: #0b1f25; }
html[data-theme="light"] .adv-social a { color: #1b3138 !important; }
html[data-theme="light"] .adv-formbox .wpforms-container label, html[data-theme="light"] .adv-formbox .wpforms-container legend { color: #0b1f25 !important; }
html[data-theme="light"] .adv-formbox .wpforms-container input, html[data-theme="light"] .adv-formbox .wpforms-container textarea,
html[data-theme="light"] .adv-formbox .wpforms-container select { background: #fff !important; color: #1b3138 !important; }
html[data-theme="light"] .adv-svc, html[data-theme="light"] .adv-fact, html[data-theme="light"] .adv-ccard,
html[data-theme="light"] .adv-formbox, html[data-theme="light"] .adv-soon { box-shadow: 0 18px 40px -30px rgba(5, 13, 18, .35); }
html[data-theme="light"] .adv-btn--ghost { color: #1b3138 !important; border-color: rgba(5, 13, 18, .22); background: rgba(5, 13, 18, .04); }
/* …but sections on a photo keep their light text */
html[data-theme="light"] .adv-hero, html[data-theme="light"] .adv-cta,
html[data-theme="light"] .adv-season, html[data-theme="light"] .adv-place {
	--ink: #eaf6f5; --muted: #c9dcdb; --mint: #6ff5dd; --line: rgba(255, 255, 255, .14);
}
html[data-theme="light"] .adv-hero :is(h1, h2, h3), html[data-theme="light"] .adv-cta :is(h1, h2, h3),
html[data-theme="light"] .adv-season :is(h1, h2, h3), html[data-theme="light"] .adv-place :is(h1, h2, h3) { color: #fff; }
html[data-theme="light"] .adv-hero .adv-btn--ghost, html[data-theme="light"] .adv-cta .adv-btn--ghost {
	color: #fff !important; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08);
}
html[data-theme="light"] .adv-hero .adv-stats { background: rgba(10, 26, 33, .72); }
/* the home hero fades out into the white page: a soft landing (a straight fade shows a faint line where it ends) */
html[data-theme="light"] .adv-hero:before {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0) 68%, rgba(255, 255, 255, .05) 73%, rgba(255, 255, 255, .16) 78%, rgba(255, 255, 255, .36) 83%,
			rgba(255, 255, 255, .6) 88%, rgba(255, 255, 255, .82) 92.5%, rgba(255, 255, 255, .94) 96%, #fff 99%, #fff 100%),
		linear-gradient(180deg, rgba(5, 13, 18, .55) 0%, rgba(5, 13, 18, .15) 35%, rgba(5, 13, 18, .7) 75%, rgba(5, 13, 18, .7) 100%);
}
/* the closing aurora band fades in from the white page: a soft start (a straight fade shows a faint line where it begins) */
html[data-theme="light"] .adv-cta:before {
	background:
		linear-gradient(180deg, #fff 0, #fff 2%, rgba(255, 255, 255, .97) 5%, rgba(255, 255, 255, .88) 9%, rgba(255, 255, 255, .7) 14%,
			rgba(255, 255, 255, .48) 19%, rgba(255, 255, 255, .27) 24%, rgba(255, 255, 255, .12) 29%, rgba(255, 255, 255, .04) 33%,
			rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 72%, #050d12 100%),
		rgba(5, 13, 18, .38);
}
/* phones: the band is shorter and its small title sits higher, so the fade ends sooner */
@media (max-width: 700px) {
	html[data-theme="light"] .adv-cta:before {
		background:
			linear-gradient(180deg, #fff 0, #fff 1%, rgba(255, 255, 255, .96) 3%, rgba(255, 255, 255, .85) 6%, rgba(255, 255, 255, .64) 9.5%,
				rgba(255, 255, 255, .4) 13%, rgba(255, 255, 255, .2) 16.5%, rgba(255, 255, 255, .08) 20%, rgba(255, 255, 255, .02) 23%,
				rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, 0) 72%, #050d12 100%),
			rgba(5, 13, 18, .38);
	}
}

/* ---------- cookie banner (bottom of the screen, both modes) ---------- */
.ahs-consent {
	position: fixed; z-index: 99990; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto;
	display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 16px;
	background: #0a1a21; color: #eaf6f5; border: 1px solid rgba(255, 255, 255, .14);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .45); font-family: Inter, system-ui, sans-serif; font-size: 14px; line-height: 1.55;
}
.ahs-consent[hidden] { display: none; }
html[lang^="ar"] .ahs-consent { font-family: Almarai, system-ui, sans-serif; }
.ahs-consent__text { flex: 1; min-width: 0; }
.ahs-consent__text strong { display: block; margin-bottom: 2px; color: #fff; font-size: 15px; }
.ahs-consent__text p { margin: 0; color: #c4d6d5; }
.ahs-consent__text a { color: #6ff5dd; text-decoration: underline; }
.ahs-consent__btns { display: flex; gap: 8px; flex-shrink: 0; }
.ahs-consent__btn {
	min-width: 96px; padding: 10px 16px; margin: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2;
	border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; text-transform: none; letter-spacing: 0;
}
.ahs-consent__btn:hover, .ahs-consent__btn:focus { border-color: #6ff5dd; color: #6ff5dd; background: transparent; }
.ahs-consent__btn--yes { background: #07bcb1; border-color: #07bcb1; color: #04211f; }
.ahs-consent__btn--yes:hover, .ahs-consent__btn--yes:focus { background: #6ff5dd; border-color: #6ff5dd; color: #04211f; }
.ahs-consent__btn:focus-visible { outline: 2px solid #6ff5dd; outline-offset: 2px; }
@media (max-width: 640px) {
	.ahs-consent { flex-direction: column; align-items: stretch; gap: 12px; left: 10px; right: 10px; bottom: 10px; padding: 14px; }
	.ahs-consent__btn { flex: 1; }
}
.ahs-footer__cookies {
	margin: 0 10px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
	text-decoration: underline; text-transform: none; letter-spacing: 0; opacity: .8;
}
.ahs-footer__cookies:hover, .ahs-footer__cookies:focus { background: none; color: var(--ahs-mint); opacity: 1; }
