/*
Theme Name:   Ummah Builders
Theme URI:    https://ummahbuilders.be
Description:  Child theme of Hello Elementor for the public Ummah Builders website. Works with the free version of Elementor.
Author:       Ummah Builders
Template:     hello-elementor
Version:      1.0.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  ummah-builders
*/

/* ---------- Design tokens ---------- */
:root {
	--ub-ink: #14201d;
	--ub-ink-soft: #4a5753;
	--ub-muted: #7b8682;
	--ub-cream: #faf7f0;
	--ub-paper: #ffffff;
	--ub-line: #e7e1d4;
	--ub-teal: #0f6b5c;
	--ub-teal-dark: #0a4d42;
	--ub-gold: #b8914a;
	--ub-gold-soft: #f3ead6;
	--ub-night: #0d1614;

	--ub-serif: "Cormorant Garamond", Georgia, serif;
	--ub-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--ub-radius: 18px;
	--ub-max: 1140px;
}

/* ---------- Base ---------- */
body {
	font-family: var(--ub-sans);
	color: var(--ub-ink);
	background: var(--ub-cream);
	-webkit-font-smoothing: antialiased;
}

a { color: var(--ub-teal); }
a:hover { color: var(--ub-teal-dark); }

.elementor-widget-heading .elementor-heading-title {
	font-family: var(--ub-serif);
	font-weight: 500;
	color: var(--ub-ink);
	line-height: 1.1;
}

.elementor-widget-text-editor {
	font-family: var(--ub-sans);
	color: var(--ub-ink-soft);
	font-size: 17px;
	line-height: 1.7;
}

/* ---------- Header ---------- */
.ub-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(250, 247, 240, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--ub-line);
}
.ub-header__inner {
	max-width: var(--ub-max);
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.ub-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ub-ink);
}
.ub-brand__mark {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--ub-teal);
	color: #fff;
	display: grid;
	place-items: center;
	font-family: var(--ub-serif);
	font-size: 22px;
}
.ub-brand__name {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1.2;
}
.ub-brand__name span { display: block; font-weight: 300; color: var(--ub-muted); }

.ub-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 26px;
}
.ub-nav a {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ub-ink-soft);
	text-decoration: none;
}
.ub-nav a:hover,
.ub-nav .current-menu-item > a { color: var(--ub-teal); }

.ub-header__actions { display: flex; align-items: center; gap: 12px; }
.ub-nav__login { display: none; }

.ub-lang ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.ub-lang a {
	display: block;
	padding: 4px 8px;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ub-muted);
	text-decoration: none;
}
.ub-lang .current-lang a { background: var(--ub-paper); color: var(--ub-ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

.ub-menu-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 6px;
	color: var(--ub-ink);
	cursor: pointer;
}

@media (max-width: 900px) {
	.ub-menu-toggle { display: block; }
	.ub-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ub-cream);
		border-bottom: 1px solid var(--ub-line);
		padding: 16px 20px 20px;
	}
	.ub-nav.is-open { display: block; }
	.ub-nav ul { flex-direction: column; gap: 14px; }
	.ub-header__actions .ub-btn--ghost { display: none; }
	.ub-nav__login {
		display: block;
		margin-top: 14px;
		padding-top: 14px;
		border-top: 1px solid var(--ub-line);
	}
}

/* ---------- Buttons (header + Elementor button widget with ub classes) ---------- */
.ub-btn,
.ub-btn-primary .elementor-button,
.ub-btn-ghost .elementor-button,
.ub-btn-light .elementor-button {
	display: inline-block;
	font-family: var(--ub-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 16px 30px;
	border-radius: 14px;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.ub-btn--primary,
.ub-btn-primary .elementor-button {
	background: var(--ub-teal);
	color: #fff;
	border: 1px solid var(--ub-teal);
}
.ub-btn--primary:hover,
.ub-btn-primary .elementor-button:hover { background: var(--ub-teal-dark); border-color: var(--ub-teal-dark); color: #fff; }
.ub-btn--ghost,
.ub-btn-ghost .elementor-button {
	background: transparent;
	color: var(--ub-ink);
	border: 1px solid var(--ub-line);
}
.ub-btn--ghost:hover,
.ub-btn-ghost .elementor-button:hover { border-color: var(--ub-ink); color: var(--ub-ink); }
.ub-btn-light .elementor-button { background: #fff; color: var(--ub-ink); border: 1px solid #fff; }
.ub-btn-light .elementor-button:hover { background: var(--ub-gold-soft); }
.ub-btn--sm { padding: 10px 18px; font-size: 11px; }

/* ---------- Section helpers (set as "CSS Classes" on Elementor sections) ---------- */
.ub-section { padding: 110px 20px; }
.ub-section--tight { padding: 70px 20px; }
/* Intro block directly followed by the section it introduces */
.ub-section--head { padding-bottom: 0; }
.ub-section--head + .ub-section--tight { padding-top: 30px; }
.ub-bg-paper { background: var(--ub-paper); }
.ub-bg-cream { background: var(--ub-cream); }
.ub-bg-night { background: var(--ub-night); }
.ub-bg-night .elementor-heading-title { color: #fff; }
.ub-bg-night .elementor-widget-text-editor { color: #a9b5b1; }

@media (max-width: 767px) {
	.ub-section { padding: 70px 16px; }
	.ub-section--tight { padding: 50px 16px; }
	.ub-section--head { padding-bottom: 0; }
}

/* Small uppercase label above headings */
.ub-eyebrow .elementor-heading-title {
	font-family: var(--ub-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--ub-gold);
}

/* Hero */
.ub-hero {
	position: relative;
	padding: 140px 20px 120px;
	background:
		radial-gradient(1200px 500px at 50% -10%, rgba(184,145,74,.14), transparent 70%),
		var(--ub-cream);
	text-align: center;
}
.ub-hero-title .elementor-heading-title {
	font-size: clamp(44px, 7vw, 92px);
	font-weight: 400;
	letter-spacing: -0.01em;
}
.ub-hero-title em { color: var(--ub-gold); font-style: italic; }
.ub-hero .elementor-widget-text-editor { font-size: 19px; max-width: 640px; margin: 0 auto; }
.ub-hero .elementor-widget-button { display: inline-block; width: auto; margin: 0 6px 12px; }

.ub-badge .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 14px;
	border: 1px solid var(--ub-line);
	border-radius: 999px;
	background: var(--ub-paper);
	font-family: var(--ub-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ub-ink-soft);
}
.ub-badge .elementor-heading-title::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ub-teal);
}

/* Section titles */
.ub-title .elementor-heading-title { font-size: clamp(34px, 4.5vw, 54px); }
.ub-title em { color: var(--ub-gold); font-style: italic; }

/* Stats row */
.ub-stat { text-align: center; }
.ub-stat .elementor-counter-number-wrapper {
	font-family: var(--ub-serif);
	font-size: 64px;
	font-weight: 500;
	color: var(--ub-teal);
	line-height: 1;
}
.ub-stat .elementor-counter-title {
	font-family: var(--ub-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ub-muted);
	margin-top: 10px;
}

/* Cards (icon-box) */
.ub-card {
	box-sizing: border-box;
	height: 100%;
	background: var(--ub-paper);
	border: 1px solid var(--ub-line);
	border-radius: var(--ub-radius);
	padding: 34px 30px;
	transition: transform .25s ease, box-shadow .25s ease;
}
.ub-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(20,32,29,.35); }
.ub-card .elementor-icon {
	font-size: 22px;
	width: 52px;
	height: 52px;
	padding: 0;
	display: inline-grid;
	place-items: center;
	border-radius: 14px;
	background: var(--ub-gold-soft);
	color: var(--ub-gold);
	fill: var(--ub-gold);
}
.ub-card .elementor-icon-box-title,
.ub-card .elementor-icon-box-title a {
	font-family: var(--ub-serif);
	font-size: 28px;
	font-weight: 500;
	color: var(--ub-ink);
}
.ub-card .elementor-icon-box-description { color: var(--ub-ink-soft); font-size: 16px; line-height: 1.65; }
.ub-bg-night .ub-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.ub-bg-night .ub-card .elementor-icon-box-title { color: #fff; }
.ub-bg-night .ub-card .elementor-icon-box-description { color: #a9b5b1; }
.ub-bg-night .ub-card .elementor-icon { background: rgba(184,145,74,.15); }

/* Numbered steps (heading widgets with ub-step-number) */
.ub-step-number .elementor-heading-title {
	font-family: var(--ub-serif);
	font-size: 56px;
	font-style: italic;
	color: var(--ub-gold);
	line-height: 1;
}
.ub-step-title .elementor-heading-title { font-size: 28px; }

/* Ladder: horizontal rule linking the steps on desktop */
@media (min-width: 1025px) {
	.ub-ladder .elementor-column + .elementor-column .ub-step-number .elementor-heading-title::before {
		content: "";
		position: absolute;
		margin: 28px 0 0 -40px;
		width: 28px;
		border-top: 1px solid var(--ub-line);
	}
}

/* Quote / meaning block (inspired by a dictionary entry) */
.ub-meaning .elementor-heading-title {
	font-size: clamp(30px, 4vw, 44px);
	font-style: italic;
	font-weight: 400;
}

/* Final call to action */
.ub-cta {
	background:
		radial-gradient(800px 400px at 85% 110%, rgba(15,107,92,.35), transparent 70%),
		var(--ub-night);
	border-radius: 36px;
	margin: 0 20px 90px;
	padding: 110px 20px;
	text-align: center;
}
.ub-cta .elementor-heading-title { color: #fff; }
.ub-cta em { color: var(--ub-gold); font-style: italic; }
.ub-cta .elementor-widget-text-editor { color: #a9b5b1; }

/* ---------- Footer ---------- */
.ub-footer {
	background: var(--ub-paper);
	border-top: 1px solid var(--ub-line);
	padding: 50px 20px;
}
.ub-footer__inner {
	max-width: var(--ub-max);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-size: 13px;
	color: var(--ub-muted);
}
.ub-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.ub-footer a { color: var(--ub-ink-soft); text-decoration: none; }
.ub-footer a:hover { color: var(--ub-teal); }

/* ---------- Accessibility ---------- */
.ub-skip-link {
	position: absolute;
	left: -9999px;
}
.ub-skip-link:focus {
	left: 16px;
	top: 16px;
	z-index: 1000;
	background: var(--ub-paper);
	padding: 10px 16px;
	border-radius: 10px;
}
:focus-visible { outline: 2px solid var(--ub-teal); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
