/* Africa Housing Awards – Nominations (front end) */
.ahan {
	--ahan-primary: #16130E;
	--ahan-accent: #BC8014;
	--ahan-ink: #1c1913;
	--ahan-muted: #6b6456;
	--ahan-line: #ece5d8;
	--ahan-bg: #faf7f1;
	--ahan-serif: "Cinzel", "Trajan Pro", "Times New Roman", serif;
	--ahan-radius: 18px;
	color: var(--ahan-ink);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.ahan *, .ahan *::before, .ahan *::after { box-sizing: border-box; }
.ahan img { max-width: 100%; display: block; }
.ahan h1, .ahan h2, .ahan h3 { color: inherit; margin: 0; line-height: 1.15; }
.ahan [hidden], .ahan[hidden], .ahan-modal[hidden] { display: none !important; }

/* Buttons */
.ahan-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .9em 1.6em; border-radius: 999px; border: 2px solid transparent;
	font-weight: 700; font-size: 15px; letter-spacing: .01em; text-decoration: none !important;
	cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
	line-height: 1.2; font-family: inherit;
}
.ahan-btn:hover { transform: translateY(-2px); }
.ahan-btn--accent { background: var(--ahan-accent); color: #fff !important; box-shadow: 0 10px 30px -10px var(--ahan-accent); }
.ahan-btn--ghost { border-color: rgba(255,255,255,.45); color: #fff !important; background: transparent; }
.ahan-btn--ghost:hover { background: rgba(255,255,255,.1); }
.ahan-btn--primary { background: var(--ahan-primary); color: #fff !important; }
.ahan-btn--primary:hover { box-shadow: 0 12px 28px -12px var(--ahan-primary); }
.ahan-btn--outline { border-color: var(--ahan-primary); color: var(--ahan-primary) !important; background: #fff; }
.ahan-btn--block { width: 100%; }
.ahan-btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Hero */
.ahan-hero {
	position: relative; overflow: hidden; border-radius: var(--ahan-radius);
	background:
		radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--ahan-accent) 40%, transparent), transparent 60%),
		radial-gradient(600px 300px at -10% 110%, rgba(255,255,255,.08), transparent 60%),
		var(--ahan-primary);
	color: #fff; padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px); padding: clamp(32px, 7cqi, 88px) clamp(20px, 5.5cqi, 64px);
}
.ahan-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
	background-image: linear-gradient(rgba(255,255,255,1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
	background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent 85%);
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.ahan-hero__inner { position: relative; z-index: 1; max-width: 760px; }
/* Layout follows the width of the plugin's own box (works in narrow theme columns and Elementor sections). */
.ahan[data-state] { container-type: inline-size; container-name: ahan; }
.ahan-hero__title, .ahan-cats__head h2, .ahan-dialog__head h2, .ahan-success h3 { font-family: var(--ahan-serif) !important; letter-spacing: .01em !important; font-weight: 700 !important; }
.ahan-eyebrow {
	display: inline-block; padding: .4em 1em; border-radius: 999px; font-size: 12px; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase; color: var(--ahan-accent);
	background: rgba(255,255,255,.08); border: 1px solid color-mix(in srgb, var(--ahan-accent) 45%, transparent);
}
.ahan-hero__title { font-size: clamp(30px, 5vw, 54px); font-size: clamp(28px, 6cqi, 54px); font-weight: 800; margin: 18px 0 16px !important; color: #fff !important; letter-spacing: -.02em; }
.ahan-hero__intro { color: rgba(255,255,255,.85); font-size: clamp(16px, 1.6vw, 18px); }
.ahan-hero__intro p { margin: 0 0 .8em; }
.ahan-hero__event { margin: 10px 0 0; font-weight: 700; color: var(--ahan-accent); letter-spacing: .02em; }
.ahan-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.ahan-countdown { margin-top: 26px; }
.ahan-countdown__label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 10px; }
.ahan-countdown__units { display: flex; gap: 10px; flex-wrap: wrap; }
.ahan-countdown__units span {
	min-width: 76px; padding: 12px 10px; text-align: center; border-radius: 14px;
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
	font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7);
}
.ahan-countdown__units b { display: block; font-size: 28px; color: #fff; letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* Notice */
.ahan-notice {
	margin: 20px 0 0; padding: 14px 18px; border-radius: 12px; font-size: 15px;
	background: color-mix(in srgb, var(--ahan-accent) 14%, #fff); border: 1px solid color-mix(in srgb, var(--ahan-accent) 40%, #fff);
}
.ahan-notice--closed { background: #f4f4f4; border-color: #ddd; }

/* How it works */
.ahan-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0; }
.ahan-step { padding: 24px; border-radius: var(--ahan-radius); background: var(--ahan-bg); border: 1px solid var(--ahan-line); }
.ahan-step__n {
	display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	background: var(--ahan-primary); color: var(--ahan-accent); font-weight: 800; margin-bottom: 14px;
}
.ahan-step h3 { font-size: 18px; margin-bottom: 6px; }
.ahan-step p { margin: 0; color: var(--ahan-muted); font-size: 15px; }

/* Gallery */
.ahan-gallery {
	display: grid; gap: 12px; margin: 0 0 56px;
	grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px;
}
.ahan-gallery__item { margin: 0; overflow: hidden; border-radius: 14px; background: var(--ahan-line); }
.ahan-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ahan-gallery__item:hover img { transform: scale(1.06); }
.ahan-gallery__item--0 { grid-column: span 2; grid-row: span 2; }
/* Six photos: large feature + two stacked on the right + a row of three. */
.ahan-gallery--n6 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
.ahan-gallery--n1 { grid-template-columns: 1fr; grid-auto-rows: 320px; }
.ahan-gallery--n1 .ahan-gallery__item--0 { grid-column: auto; }

/* Categories */
.ahan-cats__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.ahan-cats__head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.01em; }
.ahan-cats__head p { margin: 6px 0 0; color: var(--ahan-muted); }
.ahan-search { position: relative; flex: 0 1 320px; }
.ahan-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: var(--ahan-muted); }
.ahan-search input {
	width: 100%; padding: 12px 16px 12px 42px !important; border-radius: 999px !important;
	border: 1px solid var(--ahan-line) !important; background: #fff !important; font-size: 15px; font-family: inherit;
}
.ahan-search input:focus { outline: none; border-color: var(--ahan-primary) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ahan-primary) 12%, transparent); }

.ahan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ahan-card {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
	gap: 10px; padding: 24px 22px 20px; min-height: 210px; width: 100%;
	background: #fff; color: var(--ahan-ink); border: 1px solid var(--ahan-line); border-radius: var(--ahan-radius);
	cursor: pointer; font-family: inherit; font-size: inherit; overflow: hidden; white-space: normal; text-transform: none; letter-spacing: 0;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ahan-card::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
	background: linear-gradient(90deg, var(--ahan-accent), color-mix(in srgb, var(--ahan-accent) 40%, var(--ahan-primary)));
	transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.ahan-card:hover, .ahan-card:focus-visible { transform: translateY(-4px); border-color: transparent; box-shadow: 0 18px 40px -18px rgba(11,59,46,.35); outline: none; background: #fff; color: var(--ahan-ink); }
.ahan-card:hover::before, .ahan-card:focus-visible::before { transform: scaleX(1); }
.ahan-card[disabled] { cursor: not-allowed; opacity: .75; }
.ahan-card[disabled]:hover { transform: none; box-shadow: none; }
.ahan-card__num { position: absolute; right: 18px; top: 16px; font-size: 13px; font-weight: 800; color: color-mix(in srgb, var(--ahan-primary) 25%, #fff); letter-spacing: .06em; }
.ahan-card__icon {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
	background: color-mix(in srgb, var(--ahan-accent) 16%, #fff);
}
.ahan-card__icon svg { width: 22px; height: 22px; fill: var(--ahan-accent); }
.ahan-card__title { font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--ahan-primary); }
.ahan-card__desc { font-size: 14px; color: var(--ahan-muted); line-height: 1.45; }
.ahan-card__cta { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; color: var(--ahan-primary); }
.ahan-card__cta span { display: inline-block; transition: transform .25s ease; }
.ahan-card:hover .ahan-card__cta span { transform: translateX(4px); }
.ahan-empty { text-align: center; color: var(--ahan-muted); padding: 30px 0; }

/* Modal */
.ahan-modal { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 16px; }
.ahan-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 20, 16, .62); backdrop-filter: blur(4px); animation: ahanFade .2s ease; }
.ahan-dialog {
	position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
	background: #fff; border-radius: 22px; padding: 30px clamp(20px, 4vw, 36px) 26px;
	box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); animation: ahanPop .28s cubic-bezier(.2,.9,.3,1.2);
}
.ahan-dialog::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--ahan-primary), var(--ahan-accent)); }
.ahan-dialog__close {
	position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%;
	border: 0; background: var(--ahan-bg); color: var(--ahan-ink); font-size: 22px; line-height: 1; cursor: pointer; padding: 0;
}
.ahan-dialog__close:hover { background: var(--ahan-line); color: var(--ahan-ink); }
.ahan-dialog__head { text-align: center; margin-bottom: 22px; }
.ahan-dialog__logo.is-custom { width: auto; max-width: 240px; height: 84px; border-radius: 0; box-shadow: none; }
.ahan-dialog__logo { height: 96px; width: 96px; margin: 0 auto 14px; object-fit: contain; border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ahan-accent) 45%, #fff), 0 10px 24px -10px rgba(0,0,0,.35); }
.ahan-dialog__head h2 { font-size: 24px; font-weight: 800; color: var(--ahan-primary); }
.ahan-dialog__sub { margin: 6px 0 0; color: var(--ahan-muted); font-size: 14px; min-height: 1em; }

.ahan-form { display: grid; gap: 18px; }
.ahan-field { position: relative; display: grid; gap: 6px; }
.ahan-field label { font-weight: 700; font-size: 14px; color: var(--ahan-ink); }
.ahan-field label em { color: #c0392b; font-style: normal; }
.ahan-form input[type="text"], .ahan-form input[type="email"], .ahan-form textarea, .ahan-form select {
	width: 100%; padding: 13px 15px !important; border: 1.5px solid var(--ahan-line) !important; border-radius: 12px !important;
	background: #fff !important; color: var(--ahan-ink) !important; font-size: 16px !important; font-family: inherit; line-height: 1.4;
	transition: border-color .15s, box-shadow .15s; box-shadow: none; margin: 0; height: auto;
}
.ahan-form textarea { resize: vertical; min-height: 52px; }
.ahan-form #ahan-company { resize: none; overflow: hidden; }
.ahan-form input:focus, .ahan-form textarea:focus, .ahan-form select:focus {
	outline: none; border-color: var(--ahan-primary) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ahan-primary) 12%, transparent);
}
.ahan-field.is-invalid input, .ahan-field.is-invalid textarea, .ahan-field.is-invalid select { border-color: #d64545 !important; }
.ahan-select { position: relative; }
.ahan-select select { appearance: none; -webkit-appearance: none; padding-right: 40px !important; cursor: pointer; }
.ahan-select::after {
	content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
	border-right: 2px solid var(--ahan-muted); border-bottom: 2px solid var(--ahan-muted); transform: rotate(45deg); pointer-events: none;
}
.ahan-hint { color: var(--ahan-muted); font-size: 13px; }
.ahan-hint:empty { display: none; }
.ahan-hint--row { display: flex; justify-content: space-between; gap: 10px; }
.ahan-hint--row [data-reason-count].is-ok { color: #1e8a57; font-weight: 700; }
.ahan-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Suggest list */
.ahan-field--suggest { z-index: 3; }
.ahan-suggest {
	position: absolute; left: 0; right: 0; top: calc(100% - 22px); z-index: 5; list-style: none; margin: 0 !important; padding: 6px !important;
	background: #fff; border: 1px solid var(--ahan-line); border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35);
	max-height: 280px; overflow-y: auto;
}
.ahan-suggest li { margin: 0 !important; padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 15px; list-style: none; }
.ahan-suggest li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ahan-accent); flex: none; }
.ahan-suggest li.is-active, .ahan-suggest li:hover { background: color-mix(in srgb, var(--ahan-primary) 8%, #fff); }
.ahan-suggest mark { background: none; color: var(--ahan-primary); font-weight: 800; padding: 0; }
.ahan-suggest li.ahan-suggest__new { color: var(--ahan-muted); font-size: 14px; }
.ahan-suggest li.ahan-suggest__new::before { background: var(--ahan-line); }

.ahan-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ahan-error { padding: 12px 14px; border-radius: 12px; background: #fdecec; color: #9b1c1c; font-size: 14px; }
.ahan-legal { margin: 0; text-align: center; font-size: 12px; color: var(--ahan-muted); }
.ahan-btn .ahan-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: ahanSpin .7s linear infinite; }

/* Success */
.ahan-success { text-align: center; padding: 6px 0 4px; animation: ahanFade .3s ease; }
.ahan-success__badge {
	width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
	background: color-mix(in srgb, var(--ahan-accent) 18%, #fff); animation: ahanPop .4s cubic-bezier(.2,.9,.3,1.4);
}
.ahan-success__badge svg { width: 36px; height: 36px; fill: var(--ahan-primary); }
.ahan-success h3 { font-size: 22px; color: var(--ahan-primary); margin-bottom: 8px; }
.ahan-success p { color: var(--ahan-muted); margin: 0 0 10px; }
.ahan-success__summary { color: var(--ahan-ink) !important; font-weight: 600; }
.ahan-success__actions { display: grid; gap: 10px; margin: 20px 0 18px; }
.ahan-share { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: var(--ahan-muted); border-top: 1px solid var(--ahan-line); padding-top: 16px; }
.ahan-share a, .ahan-share button {
	padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ahan-line); background: #fff; color: var(--ahan-ink) !important;
	font-size: 13px; font-weight: 600; text-decoration: none !important; cursor: pointer; font-family: inherit; line-height: 1.4;
}
.ahan-share a:hover, .ahan-share button:hover { border-color: var(--ahan-primary); background: #fff; }

body.ahan-lock { overflow: hidden; }

@keyframes ahanFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes ahanPop { from { opacity: 0; transform: translateY(14px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes ahanSpin { to { transform: rotate(360deg) } }

@container ahan (max-width: 760px) {
	.ahan-gallery, .ahan-gallery--n6 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
	.ahan-gallery--n6 .ahan-gallery__item--5 { grid-column: span 2; }
}
@container ahan (max-width: 680px) {
	.ahan-how { grid-template-columns: 1fr; }
	.ahan-search { flex-basis: 100%; }
	.ahan-countdown__units span { min-width: 64px; }
}
@media (max-width: 720px) {
	.ahan-row { grid-template-columns: 1fr; }
	.ahan-modal { padding: 0; align-items: end; }
	.ahan-dialog { border-radius: 22px 22px 0 0; max-height: 94vh; }
}
@media (prefers-reduced-motion: reduce) {
	.ahan *, .ahan *::before { animation: none !important; transition: none !important; }
}
