/*
 * Abda service theme layer.
 * Uses WordPress global palette variables where available, with safe fallbacks.
 */
:root {
	--abda-primary: #102f50;
	--abda-secondary: #071a30;
	--abda-accent: #ffd400;
	--abda-text: #ffffff;
	--abda-heading: #ffd400;
	--abda-button-bg: #ffd400;
	--abda-button-text: #000000;
	--abda-surface: #f6f8fb;
}
body { font-family: Tahoma, Arial, sans-serif; }
.abda-home { direction: rtl; }
.abda-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 500px;
	padding: 64px 5vw;
	color: var(--abda-text);
	background:
		radial-gradient(ellipse at 18% 55%, color-mix(in srgb, var(--abda-primary) 70%, transparent), transparent 52%),
		linear-gradient(115deg, var(--abda-secondary), #071a30 72%);
}
.abda-hero-inner {
	position: relative;
	z-index: 1;
	width: min(1240px, 100%);
	min-height: 370px;
	margin-inline: auto;
	display: grid;
	/* In RTL: first column is on the right; second column is on the left. */
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
	align-items: center;
	gap: clamp(24px, 5vw, 72px);
}
.abda-hero-copy { grid-column: 1; text-align: right; }
.abda-hero-brand {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}
.abda-hero-brand .custom-logo-link { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; }
.abda-hero-brand .custom-logo { display: block; width: auto; height: auto; max-width: min(100%, 430px); max-height: 260px; object-fit: contain; }
.abda-logo-fallback { font-size: clamp(30px, 4vw, 54px); font-weight: 900; color: var(--abda-text); }
.abda-eyebrow { display: inline-block; margin: 0 0 14px; color: var(--abda-accent); font-weight: 800; }
.abda-hero h1 { margin: 0 0 18px; color: var(--abda-text); font-size: clamp(36px, 5vw, 66px); line-height: 1.25; font-weight: 900; }
.abda-hero-description { max-width: 680px; margin: 0 0 28px; color: rgba(255,255,255,.9); font-size: clamp(17px, 2vw, 24px); line-height: 1.9; }
.abda-hero-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	padding: 13px 30px; border-radius: 40px; color: #17243a !important;
	background: var(--abda-accent); font-weight: 800; text-decoration: none !important;
	box-shadow: 0 8px 22px rgba(0,0,0,.18); transition: transform .2s ease, filter .2s ease;
}
.abda-hero-button:hover { transform: translateY(-2px); filter: brightness(.96); }
.abda-hero-decoration { position: absolute; z-index: -1; left: -100px; bottom: -220px; width: 560px; height: 560px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.02); }
.abda-page-content { padding: 52px 5vw; color: #1b2b40; background: var(--abda-surface); }
.abda-content-inner { width: min(1100px, 100%); margin-inline: auto; }
.abda-content-inner h2, .abda-content-inner h3 { color: #102f50; }
.abda-contact-section { padding: 42px 5vw; color: #fff; background: #071a30; }
.abda-contact-inner { width: min(1240px, 100%); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.abda-contact-inner h2 { margin: 0 0 8px; color: var(--abda-accent); }
.abda-contact-inner p { margin: 0; color: rgba(255,255,255,.86); }

/* Bottom navigation is completely absent on tablets and desktop. */
.abda-mobile-nav { display: none !important; }
@media (max-width: 767px) {
	.abda-hero { min-height: 0; padding: 36px 20px 42px; }
	.abda-hero-inner { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 22px; text-align: center; }
	.abda-hero-copy { grid-column: 1; grid-row: 2; text-align: center; }
	.abda-hero-brand { grid-column: 1; grid-row: 1; }
	.abda-hero-brand .custom-logo { max-width: min(76vw, 300px); max-height: 160px; }
	.abda-hero-description { margin-inline: auto; }
	.abda-contact-inner { flex-direction: column; text-align: center; }
	html body { padding-bottom: 76px !important; }
	html body .abda-mobile-nav {
		box-sizing: border-box;
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		align-items: stretch;
		position: fixed !important;
		inset-inline: 0 !important;
		bottom: 0 !important;
		z-index: 999999 !important;
		width: 100% !important;
		min-height: 64px;
		padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
		margin: 0 !important;
		background: #fff;
		border-top: 1px solid rgba(15,35,60,.12);
		box-shadow: 0 -5px 22px rgba(0,0,0,.10);
		direction: rtl;
		visibility: visible !important;
		opacity: 1 !important;
	}
	.abda-mobile-nav__item {
		box-sizing: border-box;
		display: flex;
		min-width: 0;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		padding: 4px 2px;
		color: #17324f !important;
		font-size: 11px;
		font-weight: 700;
		line-height: 1.25;
		text-decoration: none !important;
		cursor: pointer;
		list-style: none;
	}
	.abda-mobile-nav__item::-webkit-details-marker,
	.abda-mobile-more summary::marker { display: none; content: ""; }
	.abda-mobile-nav__item svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
	.abda-mobile-more { position: relative; min-width: 0; }
	.abda-mobile-more > summary { height: 100%; }
	.abda-mobile-more__panel {
		position: absolute;
		right: 0;
		bottom: calc(100% + 12px);
		width: min(260px, 78vw);
		max-height: min(55vh, 420px);
		overflow: auto;
		padding: 12px;
		border: 1px solid rgba(15,35,60,.12);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 12px 32px rgba(0,0,0,.18);
	}
	.abda-mobile-more__panel strong { display: block; padding: 5px 8px 10px; color: #102f50; }
	.abda-mobile-more__panel a, .abda-mobile-more__panel span { display: block; padding: 9px 8px; color: #17324f !important; text-decoration: none !important; border-top: 1px solid #edf0f4; }
}


/* Abda fixed brand palette: independent from WordPress global/site colors. */
.abda-hero,
.abda-hero * {
	color: #ffffff;
}
.abda-hero h1,
.abda-hero h2,
.abda-hero h3,
.abda-hero .abda-eyebrow {
	color: #ffd400 !important;
}
.abda-hero .abda-hero-description,
.abda-hero p {
	color: #ffffff !important;
}
.abda-hero .abda-hero-button,
.abda-hero a.abda-hero-button,
.abda-contact-section .abda-hero-button {
	background: #ffd400 !important;
	color: #000000 !important;
	border-color: #ffd400 !important;
}
.abda-hero .abda-hero-button *,
.abda-contact-section .abda-hero-button * {
	color: #000000 !important;
}
