/**
 * Site header (navbar) and footer, matching atozconverter.com.
 * All classes are prefixed `az-` so they never collide with the theme or Elementor.
 */

/* ---------- Header spacer ---------- */

.az-header {
	display: block;
	width: 100%;
	height: 120px;
}

@media (min-width: 640px) {
	.az-header {
		height: 130px;
	}
}

/* ---------- Fixed nav ---------- */

.az-nav {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999999;
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 32px 24px 0;
	pointer-events: none;
}

.az-nav__pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0;
	width: 100%;
	max-width: 1460px;
	padding: 10px 0;
	background: #ffffff;
	border-radius: 9999px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	pointer-events: auto;
}

@media (min-width: 889px) {
	.az-nav__pill {
		gap: 80px;
	}
}

.az-nav__logo {
	display: block;
	width: 232px;
	padding-left: 30px;
	line-height: 0;
}

.az-nav__logo img {
	width: auto;
	height: auto;
	max-width: 100%;
}

@media (min-width: 1024px) {
	.az-nav__logo {
		width: 200px;
		padding-left: 10px;
	}
}

@media (min-width: 1280px) {
	.az-nav__logo {
		width: 232px;
	}
}

.az-nav__right {
	display: flex;
	align-items: center;
	gap: 32px;
	padding-right: 30px;
}

@media (min-width: 1024px) {
	.az-nav__right {
		padding-right: 10px;
	}
}

/* ---------- Nav links ---------- */

.az-nav__links {
	display: none;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 500;
}

@media (min-width: 768px) {
	.az-nav__links {
		display: flex;
	}
}

@media (min-width: 1024px) {
	.az-nav__links {
		gap: 32px;
	}
}

.az-nav__links a {
	color: #333333;
	text-decoration: none;
	transition: color 0.15s ease;
}

.az-nav__links a:hover,
.az-nav__links a:focus-visible,
.az-nav__links a.is-active {
	color: #106f96;
}

/* ---------- Search ---------- */

.az-search {
	position: relative;
}

.az-search__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	color: #106f96;
	background: transparent;
	border: none;
	border-radius: 9999px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.az-search__toggle:hover,
.az-search__toggle:focus-visible {
	background-color: #f3f4f6;
}

.az-search__panel {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 50;
	width: 320px;
	max-width: calc(100vw - 48px);
	margin-top: 16px;
	padding: 12px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.az-search__panel[hidden] {
	display: none;
}

.az-search__input {
	width: 100%;
	padding: 8px 16px;
	font-size: 14px;
	font-family: inherit;
	color: #16181b;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	outline: none;
	transition: border-color 0.15s ease;
}

.az-search__input:focus {
	border-color: #106f96;
}

.az-search__results {
	margin-top: 8px;
	max-height: 280px;
	overflow-y: auto;
}

.az-search__results:empty {
	margin-top: 0;
}

.az-search__result {
	display: block;
	padding: 8px 8px;
	font-size: 14px;
	font-weight: 600;
	color: #16181b;
	text-decoration: none;
	border-radius: 8px;
}

.az-search__result:hover,
.az-search__result:focus-visible {
	background-color: #f3f4f6;
}

.az-search__empty {
	padding: 8px;
	font-size: 13px;
	color: #8a8f98;
}

/* ---------- Burger ---------- */

.az-burger {
	position: relative;
	z-index: 110;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px;
	background: transparent;
	border: none;
	cursor: pointer;
}

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

.az-burger-line {
	display: block;
	width: 24px;
	height: 2px;
	background-color: #000000;
	transform-origin: center;
}

/* ---------- Store buttons (desktop pill) ---------- */

.az-nav__stores {
	display: none;
	align-items: center;
	gap: 12px;
}

@media (min-width: 679px) {
	.az-nav__stores {
		display: flex;
	}
}

a.az-store {
	position: relative;
	overflow: hidden;
	padding: 11px 14px;
	font-size: 12px;
	font-weight: 500;
	color: #ffffff;
	text-decoration: none;
	background-color: #1a1a1a;
	border-radius: 9999px;
	transition: background-color 0.3s ease;
}

a.az-store:hover,a.az-store:visited {
	color: #ffffff;
}

@media (min-width: 1024px) {
	.az-store {
		padding: 11px 22px;
	}
}

.az-store__default,
.az-store__hover {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.az-store__default {
	transform: translateY(0);
	opacity: 1;
}

.az-store:hover .az-store__default,
.az-store:focus-visible .az-store__default {
	transform: translateY(-40px);
	opacity: 0;
}

.az-store__label {
	display: none;
}

@media (min-width: 1024px) {
	.az-store__label {
		display: inline;
	}
}

.az-store__hover {
	position: absolute;
	inset: 0;
	transform: translateY(40px);
	opacity: 0;
}

.az-store:hover .az-store__hover,
.az-store:focus-visible .az-store__hover {
	transform: translateY(0);
	opacity: 1;
}

.az-store__download-text {
	display: none;
	font-weight: 700;
}

@media (min-width: 1024px) {
	.az-store__download-text {
		display: inline;
	}
}

.az-store__download-icon {
	display: inline-block;
}

@media (min-width: 1024px) {
	.az-store__download-icon {
		display: none;
	}
}

/* ---------- Mobile menu ---------- */

.az-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	background-color: #f9f9f9;
	/*
	 * Closed state, set in CSS so there's no flash before GSAP runs (and as a no-JS fallback).
	 * No `transform` here on purpose: GSAP's own `yPercent: -100` (site-header-mobile-menu.js)
	 * is the only source of the translateY. If both set it, GSAP reads the CSS-computed px
	 * value as an existing baseline and adds its own offset on top, so the panel ends up
	 * double-translated and never reaches `yPercent: 0` when opened. visibility/opacity/
	 * pointer-events alone already fully hide it before GSAP takes over.
	 */
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

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

.az-mobile-menu__inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 448px;
	margin: 128px auto 0;
	padding: 0 40px 40px;
}

.az-mobile-menu__label {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 32px;
}

.az-mobile-menu__label-line {
	display: block;
	width: 32px;
	height: 1px;
	background-color: #106f96;
}

.az-mobile-menu__label-text {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #106f96;
}

.az-mobile-menu__links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* NOTE: only transition background/shadow/color here — never transform/opacity,
   or it fights the GSAP timeline's own tweens on these same properties. */
.az-mrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	text-decoration: none;
	border-radius: 16px;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.az-mrow:hover,
.az-mrow:focus-visible {
	background-color: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.az-mrow__text {
	font-size: 20px;
	font-weight: 500;
	letter-spacing: -0.025em;
	color: #333333;
	transition: color 0.3s ease;
}

.az-mrow--active .az-mrow__text {
	color: #106f96;
}

.az-mrow__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: #106f96;
	background-color: #ffffff;
	border: 1px solid #f3f4f6;
	border-radius: 9999px;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.az-mrow:hover .az-mrow__arrow,
.az-mrow:focus-visible .az-mrow__arrow {
	color: #ffffff;
	background-color: #106f96;
	border-color: #106f96;
}

.az-mobile-menu__apps {
	padding-top: 40px;
	margin-top: 40px;
	border-top: 1px solid rgba(229, 231, 235, 0.6);
}

.az-mobile-menu__apps p {
	margin: 0 0 32px;
	font-weight: 500;
	color: #666666;
}

a.az-mstore {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 8px;
	margin-bottom: 20px;
	font-size: 17.6px;
	font-weight: 600;
	color: #ffffff;
	text-decoration: none;
	background-color: #000000;
	border-radius: 16px;
	transition: background-color 0.2s ease;
}

a.az-mstore:hover,
a.az-mstore:focus-visible {
	color: #ffffff;
	background-color: #1a1a1a;
}

@media (prefers-reduced-motion: reduce) {
	.az-mobile-menu,
	.az-mrow,
	.az-mrow__text,
	.az-mrow__arrow {
		transition: none;
	}
}

/* ---------- Footer ---------- */

.az-footer {
	padding: 64px 0 32px;
	color: #ffffff;
	background-color: #111111;
	border-top: 1px solid #222222;
}

.az-footer__inner {
	max-width: 1460px;
	margin: 0 auto;
}

@media (max-width: 1460px) {
	.az-footer__inner {
		padding: 0 24px;
	}
}

.az-footer__top {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 40px;
	margin-bottom: 44px;
}

@media (min-width: 1024px) {
	.az-footer__top {
		flex-direction: row;
	}
}

.az-footer__logo {
	width: 232px;
}

.az-footer__logo img {
	width: auto;
	height: auto;
	max-width: 100%;
	object-fit: contain;
}

.az-footer__tagline {
	flex-grow: 1;
	text-align: left;
}

@media (min-width: 1024px) {
	.az-footer__tagline {
		text-align: right;
	}
}

.az-footer__tagline h3 {
	margin: 0 0 4px;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
	color: #ffffff;
}

.az-footer__tagline p {
	margin: 0;
	font-size: 18px;
	font-weight: 300;
	color: #999999;
}

.az-footer__links {
	display: flex;
	flex-direction: column;
	gap: 48px;
	margin-bottom: 44px;
}

.az-footer__col h3 {
	margin: 0 0 24px;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
}

.az-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 16px;
	row-gap: 12px;
}

@media (min-width: 768px) {
	.az-footer__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.az-footer__grid a {
	display: block;
	font-size: 14px;
	font-weight: 300;
	color: #b0b0b0;
	text-decoration: none;
	transition: color 0.15s ease;
}

.az-footer__grid a:hover,
.az-footer__grid a:focus-visible {
	color: #ffffff;
}

.az-footer__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding-top: 32px;
	font-size: 14px;
	color: #666666;
	border-top: 1px solid #666666;
}

@media (min-width: 768px) {
	.az-footer__bottom {
		flex-direction: row;
	}
}

.az-footer__bottom p {
	margin: 0;
}

.az-footer__bottom a {
	color: #b0b0b0;
	text-decoration: none;
	transition: color 0.15s ease;
}

.az-footer__bottom a:hover,
.az-footer__bottom a:focus-visible {
	color: #ffffff;
}

.az-footer__bottom-links {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 16px;
	text-align: center;
}

@media (min-width: 768px) {
	.az-footer__bottom-links {
		gap: 24px;
		margin-top: 0;
	}
}

.az-footer__divider {
	display: block;
	width: 1px;
	height: 16px;
	background-color: #333333;
}

/* ---------- Focus visibility ---------- */

.az-nav__links a:focus-visible,
.az-mrow:focus-visible,
.az-search__toggle:focus-visible,
.az-burger:focus-visible,
.az-store:focus-visible,
.az-footer__grid a:focus-visible,
.az-footer__bottom a:focus-visible {
	outline: 2px solid #106f96;
	outline-offset: 2px;
}
