:root {
	--aat-teal: #003d33;
	--aat-teal-deep: #002821;
	--aat-teal-soft: #0a5c4d;
	--aat-gold: #f9b233;
	--aat-gold-deep: #e08a3c;
	--aat-cream: #f7f3ea;
	--aat-ink: #14201d;
	--aat-muted: rgba(20, 32, 29, 0.68);
	--aat-white: #ffffff;
	--aat-radius: 18px;
	--aat-shadow: 0 24px 60px rgba(0, 40, 33, 0.18);
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--aat-cream);
	color: var(--aat-ink);
	font-family: "Outfit", "Cairo", sans-serif;
}

[dir="rtl"] body,
[dir="rtl"] .aat-page,
.aat-page[dir="rtl"] {
	font-family: "Cairo", "Outfit", sans-serif;
}

/* Hide default frappe chrome leftovers if any */
.navbar:not(.aat-nav),
.web-footer:not(.aat-footer) {
	display: none !important;
}

main.container {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.aat-nav {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(0, 61, 51, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(249, 178, 51, 0.25);
}

.aat-nav__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0.85rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	justify-content: space-between;
}

.aat-nav__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--aat-white);
	min-width: 0;
}

.aat-nav__brand img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(249, 178, 51, 0.55);
}

.aat-nav__brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.aat-nav__brand-text strong {
	font-size: 1.05rem;
	font-weight: 800;
}

.aat-nav__brand-text small {
	opacity: 0.8;
	font-size: 0.78rem;
}

.aat-nav__links {
	display: flex;
	gap: 1.25rem;
}

.aat-nav__links a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	font-weight: 600;
}

.aat-nav__links a:hover {
	color: var(--aat-gold);
}

.aat-nav__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.aat-lang {
	display: inline-flex;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	overflow: hidden;
}

.aat-lang__btn {
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.75);
	padding: 0.4rem 0.85rem;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.aat-lang__btn.is-active {
	background: var(--aat-gold);
	color: var(--aat-teal-deep);
}

.aat-btn--nav {
	background: var(--aat-gold);
	color: var(--aat-teal-deep);
	padding: 0.45rem 1rem;
	font-size: 0.9rem;
	box-shadow: none;
	white-space: nowrap;
}

.aat-btn--nav:hover {
	background: #ffc14d;
	color: var(--aat-teal-deep);
}

.aat-hero {
	position: relative;
	min-height: min(92vh, 820px);
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 20% 20%, rgba(249, 178, 51, 0.18), transparent 40%),
		radial-gradient(circle at 80% 70%, rgba(10, 92, 77, 0.55), transparent 45%),
		linear-gradient(160deg, var(--aat-teal-deep), var(--aat-teal) 55%, #065045);
	overflow: hidden;
	color: var(--aat-white);
	text-align: center;
	padding: 4rem 1.25rem 5rem;
}

.aat-hero__veil {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 40, 33, 0.15), rgba(0, 40, 33, 0.55)),
		url("/assets/asdiqaa/images/logo.png") center 28% / min(520px, 70vw) no-repeat;
	opacity: 0.18;
	pointer-events: none;
	animation: aat-float 12s ease-in-out infinite;
}

.aat-hero__content {
	position: relative;
	max-width: 720px;
	animation: aat-rise 0.9s ease both;
}

.aat-hero__logo {
	width: min(220px, 46vw);
	height: auto;
	border-radius: 28px;
	margin-bottom: 1.25rem;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
	animation: aat-rise 1.1s ease both;
}

.aat-hero__eyebrow {
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--aat-gold);
	font-weight: 700;
	margin: 0 0 0.6rem;
}

.aat-hero__title {
	margin: 0;
	font-size: clamp(2.4rem, 7vw, 4.4rem);
	font-weight: 800;
	line-height: 1.1;
}

.aat-hero__sub {
	margin: 1rem auto 1.75rem;
	max-width: 34rem;
	font-size: 1.1rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.88);
}

.aat-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	justify-content: center;
}

.aat-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	padding: 0.9rem 1.5rem;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.aat-btn:hover {
	transform: translateY(-2px);
}

.aat-btn--primary {
	background: var(--aat-gold);
	color: var(--aat-teal-deep);
	box-shadow: 0 10px 28px rgba(249, 178, 51, 0.35);
}

.aat-btn--ghost {
	background: transparent;
	color: var(--aat-white);
	border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.aat-btn--wide {
	width: 100%;
	margin-top: 0.5rem;
}

.aat-section {
	max-width: 960px;
	margin: 0 auto;
	padding: 4.5rem 1.25rem;
}

.aat-section__head {
	margin-bottom: 2rem;
	text-align: center;
}

.aat-section__head h2 {
	margin: 0 0 0.6rem;
	font-size: clamp(1.8rem, 4vw, 2.5rem);
	color: var(--aat-teal);
	font-weight: 800;
}

.aat-section__head p {
	margin: 0 auto;
	max-width: 36rem;
	color: var(--aat-muted);
	line-height: 1.7;
}

.aat-book {
	animation: aat-rise 0.8s ease both;
	animation-delay: 0.1s;
}

.aat-form {
	background: var(--aat-white);
	border-radius: var(--aat-radius);
	padding: 1.5rem;
	box-shadow: var(--aat-shadow);
	border: 1px solid rgba(0, 61, 51, 0.08);
}

.aat-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.aat-form label,
.aat-notes {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-weight: 600;
	color: var(--aat-teal);
}

.aat-form input,
.aat-form select,
.aat-form textarea {
	border: 1.5px solid rgba(0, 61, 51, 0.16);
	border-radius: 12px;
	padding: 0.75rem 0.9rem;
	font: inherit;
	background: #fff;
	color: var(--aat-ink);
}

.aat-form input:focus,
.aat-form select:focus,
.aat-form textarea:focus {
	outline: none;
	border-color: var(--aat-gold);
	box-shadow: 0 0 0 3px rgba(249, 178, 51, 0.25);
}

.aat-notes {
	margin-top: 1rem;
}

.aat-slots {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px dashed rgba(0, 61, 51, 0.18);
}

.aat-slots__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.aat-slots__head h3 {
	margin: 0;
	color: var(--aat-teal);
	font-size: 1.15rem;
}

.aat-slots__status {
	color: var(--aat-muted);
	font-size: 0.92rem;
}

.aat-slots__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: 0.65rem;
}

.aat-slot {
	border: 1.5px solid rgba(0, 61, 51, 0.18);
	background: #fff;
	color: var(--aat-teal);
	border-radius: 12px;
	padding: 0.7rem 0.4rem;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.aat-slot:hover:not(:disabled) {
	border-color: var(--aat-gold);
	transform: translateY(-1px);
}

.aat-slot.is-selected {
	background: var(--aat-teal);
	border-color: var(--aat-teal);
	color: var(--aat-white);
}

.aat-slot:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.aat-form__msg {
	margin: 0.85rem 0 0;
	padding: 0.75rem 0.9rem;
	border-radius: 12px;
	font-weight: 600;
}

.aat-form__msg.is-ok {
	background: rgba(0, 61, 51, 0.08);
	color: var(--aat-teal);
}

.aat-form__msg.is-err {
	background: rgba(180, 40, 40, 0.08);
	color: #8a1f1f;
}

.aat-contact {
	padding-bottom: 5rem;
}

.aat-contact__layout {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 1.25rem;
	align-items: start;
}

.aat-contact__info {
	background: linear-gradient(160deg, var(--aat-teal), var(--aat-teal-soft));
	color: var(--aat-white);
	border-radius: var(--aat-radius);
	padding: 1.5rem;
	display: grid;
	gap: 1.1rem;
	box-shadow: var(--aat-shadow);
}

.aat-contact__info span {
	display: block;
	opacity: 0.75;
	font-size: 0.85rem;
	margin-bottom: 0.25rem;
}

.aat-contact__info a,
.aat-contact__info strong {
	color: var(--aat-gold);
	text-decoration: none;
	font-size: 1.1rem;
	font-weight: 700;
	word-break: break-word;
}

.aat-footer {
	background: var(--aat-teal-deep);
	color: rgba(255, 255, 255, 0.85);
	padding: 1.5rem 1.25rem;
}

.aat-footer__inner {
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.aat-footer img {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	object-fit: cover;
}

.aat-footer strong {
	display: block;
	color: var(--aat-white);
}

.aat-footer__copy {
	margin-inline-start: auto;
	opacity: 0.7;
	font-size: 0.9rem;
}

@keyframes aat-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes aat-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-12px);
	}
}

@media (max-width: 800px) {
	.aat-nav__links {
		display: none;
	}

	.aat-form__grid,
	.aat-contact__layout {
		grid-template-columns: 1fr;
	}

	.aat-footer__copy {
		margin-inline-start: 0;
		width: 100%;
	}
}
