/* ==========================================================================
   AzStudy redesign — tokens, header, footer, drawer, mobile bar.
   Loaded on every page while the redesign chrome is active.
   Every selector is scoped to an azs- class: Jannah styles body, links,
   headings, buttons, inputs and .container globally, so nothing here may rely
   on element defaults.
   Palette "Göy" (navy). "Yaşıl" = swap the four dark tokens in :root for
   --azs-ink:#14241F; --azs-ink-2:#384A44; --azs-muted:#5B6B65; --azs-dark:#0C3B31;
   --azs-dark-2:#124A3E; --azs-darker:#082A23.
   ========================================================================== */

:root {
	--azs-ink: #16202B;
	--azs-ink-2: #3B4656;
	--azs-muted: #5F6B7A;
	--azs-brand: #11A07F;
	--azs-brand-ink: #0B7A61;
	--azs-brand-ink-hover: #09684F;
	--azs-brand-tint: #E7F4EF;
	--azs-dark: #122030;
	--azs-dark-2: #1A2C40;
	--azs-darker: #0D1824;
	--azs-gold: #C6A15B;
	--azs-gold-ink: #8A6A2E;
	--azs-gold-tint: #F5EEDF;
	--azs-bg: #FAF8F4;
	--azs-line: #E8E3DA;
	--azs-line-dark: rgba(255, 255, 255, .12);
	--azs-radius: 18px;
	--azs-shadow-sm: 0 1px 2px rgba(22, 32, 43, .05);
	--azs-shadow: 0 1px 2px rgba(22, 32, 43, .04), 0 18px 40px -18px rgba(22, 32, 43, .22);
	--azs-shadow-lg: 0 2px 6px rgba(22, 32, 43, .06), 0 40px 80px -30px rgba(22, 32, 43, .38);
	--azs-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--azs-sans: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--azs-header-h: 78px;
	--azs-top: var(--wp-admin--admin-bar--height, 0px);
}

/* Jannah clips its wrapper with overflow:hidden, which turns it into a scroll
   container and kills position:sticky. overflow:clip clips the same way without
   that side effect (browsers without clip keep hidden — header just won't stick). */
body.azs-chrome .tie-container,
body.azs-chrome .background-overlay {
	overflow: clip;
}

/* ---------- shared base inside our roots ---------- */
.azs-header,
.azs-footer,
.azs-home,
.azs-mobile-bar,
.azs-preview-pill {
	font-family: var(--azs-sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--azs-ink-2);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.azs-header *,
.azs-header *::before,
.azs-header *::after,
.azs-footer *,
.azs-footer *::before,
.azs-footer *::after,
.azs-home *,
.azs-home *::before,
.azs-home *::after,
.azs-mobile-bar * {
	box-sizing: border-box;
}

.azs-header a,
.azs-footer a,
.azs-home a,
.azs-mobile-bar a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.azs-header p,
.azs-footer p,
.azs-footer ul,
.azs-footer li {
	margin: 0;
	padding: 0;
}

.azs-footer ul {
	list-style: none;
}

.azs-header img,
.azs-footer img {
	display: block;
	max-width: 100%;
}

.azs-header button,
.azs-home button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	min-height: 0;
	width: auto;
	cursor: pointer;
}

.azs-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
}

.azs-icon {
	width: 20px;
	height: 20px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
	display: inline-block;
	vertical-align: middle;
}

.azs-icon--fill {
	fill: currentColor;
	stroke: none;
}

.azs-flag {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(22, 32, 43, .1);
	flex: none;
	display: inline-block;
}

.azs-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.azs-header :focus-visible,
.azs-footer :focus-visible,
.azs-home :focus-visible,
.azs-mobile-bar :focus-visible {
	outline: 2px solid var(--azs-brand-ink);
	outline-offset: 3px;
	border-radius: 8px;
}

/* ---------- buttons ---------- */
.azs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	padding: 0 24px;
	border-radius: 999px;
	border: 1px solid transparent;
	font: 600 15px/1 var(--azs-sans);
	letter-spacing: .005em;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}

.azs-btn:hover {
	transform: translateY(-1px);
}

.azs-header .azs-btn--primary,
.azs-footer .azs-btn--primary,
.azs-home .azs-btn--primary,
.azs-mobile-bar .azs-btn--primary {
	background: var(--azs-brand-ink);
	color: #fff;
	box-shadow: 0 10px 24px -10px rgba(11, 122, 97, .6);
}

.azs-header .azs-btn--primary:hover,
.azs-home .azs-btn--primary:hover,
.azs-mobile-bar .azs-btn--primary:hover {
	background: var(--azs-brand-ink-hover);
	color: #fff;
}

.azs-header .azs-btn--ghost,
.azs-home .azs-btn--ghost,
.azs-mobile-bar .azs-btn--ghost {
	background: transparent;
	color: var(--azs-ink);
	border-color: rgba(22, 32, 43, .18);
}

.azs-header .azs-btn--ghost:hover,
.azs-home .azs-btn--ghost:hover {
	border-color: var(--azs-ink);
	background: #fff;
	color: var(--azs-ink);
}

.azs-btn--sm {
	height: 44px;
	padding: 0 18px;
	font-size: 14px;
}

/* .azs-header prefix: the generic ".azs-header button { width: auto }" reset above
   would otherwise shrink these to the icon's 20px. */
.azs-header .azs-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px !important;
	color: var(--azs-ink) !important;
	transition: background-color .2s;
}

.azs-header .azs-icon-btn:hover {
	background: var(--azs-bg) !important;
}

/* ---------- header ---------- */
.azs-header {
	position: sticky;
	top: var(--azs-top);
	z-index: 1000;
	border-bottom: 1px solid var(--azs-line);
	transition: box-shadow .25s;
}

/* The frosted background lives on a pseudo-element: backdrop-filter on the header
   itself would make it the containing block for the position:fixed mobile drawer,
   which would then be sized against the 66px header instead of the viewport. */
.azs-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
}

.azs-header.is-scrolled {
	box-shadow: 0 10px 30px -18px rgba(22, 32, 43, .35);
}

.azs-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--azs-header-h);
}

.azs-logo {
	flex: none;
}

.azs-logo img {
	height: 40px;
	width: auto;
}

.azs-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: 8px;
}

.azs-header .azs-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 13px;
	border-radius: 999px;
	font: 600 14.5px/1 var(--azs-sans);
	color: var(--azs-ink);
	white-space: nowrap;
	transition: background-color .2s, color .2s;
}

.azs-header .azs-nav__link:hover,
.azs-mega-wrap:hover > .azs-nav__link,
.azs-mega-wrap.is-open > .azs-nav__link {
	background: var(--azs-bg);
	color: var(--azs-brand-ink);
}

.azs-nav__link .azs-icon {
	width: 16px;
	height: 16px;
	transition: transform .2s;
}

.azs-mega-wrap.is-open > .azs-nav__link .azs-icon {
	transform: rotate(180deg);
}

.azs-mega-wrap {
	position: relative;
}

.azs-mega {
	position: absolute;
	top: calc(100% + 14px);
	left: -24px;
	width: 720px;
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr;
	gap: 28px;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--azs-line);
	border-radius: var(--azs-radius);
	box-shadow: var(--azs-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}

.azs-mega::before { /* hover bridge across the gap */
	content: "";
	position: absolute;
	top: -16px;
	left: 0;
	right: 0;
	height: 16px;
}

.azs-mega-wrap:hover .azs-mega,
.azs-mega-wrap:focus-within .azs-mega,
.azs-mega-wrap.is-open .azs-mega {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.azs-header .azs-mega__title {
	margin: 0 0 10px;
	font: 700 11px/1 var(--azs-sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--azs-muted);
}

.azs-header .azs-mega__title--spaced {
	margin-top: 18px;
}

.azs-header .azs-mega__link {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 -10px;
	padding: 8px 10px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14.5px;
	line-height: 1.3;
	color: var(--azs-ink);
}

.azs-header .azs-mega__link:hover {
	background: var(--azs-bg);
	color: var(--azs-brand-ink);
}

.azs-header__actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 12px;
}

.azs-header .azs-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 14.5px;
	color: var(--azs-ink);
	white-space: nowrap;
}

.azs-header__phone .azs-icon {
	width: 18px;
	height: 18px;
	color: var(--azs-brand-ink);
}

.azs-menu-toggle {
	display: none !important;
	border: 1px solid var(--azs-line) !important;
	background: #fff !important;
}

.azs-menu-toggle__close,
.azs-menu-toggle[aria-expanded="true"] .azs-menu-toggle__open {
	display: none;
}

.azs-menu-toggle[aria-expanded="true"] .azs-menu-toggle__close {
	display: inline-block;
}

/* search panel */
.azs-search {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	border-bottom: 1px solid var(--azs-line);
	box-shadow: 0 24px 40px -28px rgba(22, 32, 43, .4);
	padding: 16px 0;
}

.azs-search[hidden] {
	display: none;
}

.azs-search__form {
	position: relative;
	display: flex;
	gap: 10px;
	align-items: center;
	max-width: 720px;
	margin: 0 auto;
}

.azs-search__icon {
	position: absolute;
	left: 18px;
	color: var(--azs-muted);
	pointer-events: none;
}

.azs-header input.azs-search__input {
	flex: 1;
	height: 48px;
	margin: 0;
	padding: 0 18px 0 48px;
	border: 1px solid var(--azs-line);
	border-radius: 999px;
	background: var(--azs-bg);
	box-shadow: none;
	color: var(--azs-ink);
	font: 500 15px/1 var(--azs-sans);
	outline: none;
}

.azs-header input.azs-search__input:focus {
	border-color: var(--azs-brand-ink);
	background: #fff;
}

/* mobile drawer */
.azs-drawer {
	position: fixed;
	left: 0;
	right: 0;
	top: calc(var(--azs-header-h) + var(--azs-top));
	bottom: 0;
	z-index: 999;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	padding: 22px 0 120px;
}

.azs-drawer[hidden] {
	display: none;
}

/* Lock the page behind the open drawer — on the root ONLY. If <body> also gets
   overflow:hidden, html's value goes to the viewport while body keeps its own and
   becomes a scroll container; the sticky header then sticks to <body> (scrolled to
   0) and jumps off-screen with the close button whenever the page was scrolled. */
html.azs-drawer-open {
	overflow: hidden;
}

.azs-header .azs-drawer__title {
	margin: 0 0 12px;
	font: 700 11.5px/1 var(--azs-sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--azs-muted);
}

.azs-drawer__countries {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.azs-drawer__nav {
	margin-top: 22px;
	border-top: 1px solid var(--azs-line);
}

.azs-header .azs-drawer__nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 2px;
	border-bottom: 1px solid var(--azs-line);
	font: 600 16px/1.2 var(--azs-sans);
	color: var(--azs-ink);
}

.azs-drawer__nav .azs-icon {
	width: 18px;
	height: 18px;
	color: var(--azs-muted);
}

.azs-drawer__actions {
	display: grid;
	gap: 10px;
	margin-top: 24px;
}

/* chips (drawer + homepage destinations) */
.azs-header .azs-chip,
.azs-home .azs-chip {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 11px 14px;
	background: #fff;
	border: 1px solid var(--azs-line);
	border-radius: 12px;
	font: 600 15px/1.25 var(--azs-sans);
	color: var(--azs-ink);
	transition: border-color .2s, box-shadow .2s;
}

.azs-chip span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.azs-chip .azs-flag {
	width: 26px;
	height: 26px;
}

.azs-header .azs-chip:hover,
.azs-home .azs-chip:hover {
	border-color: rgba(11, 122, 97, .45);
	box-shadow: var(--azs-shadow-sm);
	color: var(--azs-ink);
}

/* ---------- footer ---------- */
.azs-footer {
	background: var(--azs-darker);
	color: rgba(255, 255, 255, .66);
	padding: 88px 0 0;
	font-size: 15px;
}

.azs-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.1fr .9fr 1.25fr;
	gap: 40px;
}

.azs-footer__logo img {
	height: 40px;
	width: auto;
	filter: brightness(0) invert(1);
	opacity: .95;
}

.azs-footer .azs-footer__about {
	margin-top: 20px;
	max-width: 320px;
	line-height: 1.7;
}

.azs-footer__social {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

.azs-footer .azs-footer__social a {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--azs-line-dark);
	display: grid;
	place-items: center;
	color: #fff;
	transition: background-color .2s, border-color .2s;
}

.azs-footer .azs-footer__social a:hover {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .3);
}

.azs-footer__social .azs-icon {
	width: 18px;
	height: 18px;
}

.azs-footer .azs-footer__title {
	margin: 6px 0 18px;
	font: 700 12px/1 var(--azs-sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fff;
}

.azs-footer__col ul {
	display: grid;
	gap: 11px;
}

.azs-footer .azs-footer__col a {
	color: rgba(255, 255, 255, .66);
	transition: color .2s;
}

.azs-footer .azs-footer__col a:hover {
	color: #fff;
}

.azs-footer__contact li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.azs-footer__contact .azs-icon {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	color: var(--azs-gold);
}

.azs-footer .azs-footer__contact a {
	color: #fff;
	font-weight: 600;
}

.azs-footer__bottom {
	margin-top: 64px;
	padding: 24px 0;
	border-top: 1px solid var(--azs-line-dark);
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 13.5px;
	color: rgba(255, 255, 255, .5);
}

/* ---------- phone action bar ---------- */
.azs-mobile-bar {
	display: none;
}

/* ---------- preview pill (only with ?azs_preview=1 while the flag is off) ---------- */
.azs-preview-pill {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 2000;
	padding: 9px 14px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
	pointer-events: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1300px) {
	.azs-header__phone {
		display: none !important;
	}
}

@media (max-width: 1180px) {
	.azs-header .azs-nav__link {
		padding: 0 10px;
	}

	.azs-header__inner {
		gap: 16px;
	}
}

@media (max-width: 1024px) {
	.azs-nav,
	.azs-header__cta {
		display: none !important;
	}

	.azs-menu-toggle {
		display: inline-flex !important;
	}

	.azs-header__actions {
		gap: 8px;
	}

	.azs-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.azs-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	:root {
		--azs-header-h: 66px;
	}

	.azs-container {
		padding: 0 16px;
	}

	.azs-logo img {
		height: 34px;
	}

	.azs-footer {
		padding-top: 64px;
	}

	.azs-footer__grid {
		gap: 36px 24px;
	}

	.azs-footer__bottom {
		flex-direction: column;
		margin-top: 48px;
	}

	body.azs-chrome {
		padding-bottom: 72px;
	}

	.azs-mobile-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 998;
		display: grid;
		grid-template-columns: 1fr 1.4fr;
		gap: 10px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .96);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		border-top: 1px solid var(--azs-line);
	}

	.azs-mobile-bar .azs-btn {
		height: 48px;
		width: 100%;
	}

	html.azs-drawer-open .azs-mobile-bar {
		display: none;
	}

	/* The contact-links plugin's floating WhatsApp button would sit on top of the
	   bar's "Zəng edin"; the bar's WhatsApp goes through the same tracked /ad/ route. */
	body.azs-chrome .qcl-fab {
		display: none !important;
	}

	.azs-preview-pill {
		bottom: 82px;
		right: 12px;
		left: 12px;
		text-align: center;
	}
}

@media (max-width: 640px) {
	.azs-header .azs-drawer__countries .azs-chip {
		gap: 10px;
		padding: 10px 12px;
		font-size: 14.5px;
	}

	.azs-drawer__countries .azs-chip .azs-flag {
		width: 22px;
		height: 22px;
	}
}

@media (max-width: 340px) {
	.azs-drawer__countries {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 380px) {
	.azs-footer__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.azs-header *,
	.azs-footer *,
	.azs-home *,
	.azs-header,
	.azs-mobile-bar * {
		transition: none !important;
		animation: none !important;
	}
}
