/* All About Material Theme 1.0.1 — quick hero search, photographic category fallbacks and premium directional icons. */

/* Hero: one global quick-search experience matching the header search behaviour. */
.aam-hero-quick-search {
	position: relative;
	z-index: 8;
	width: min(100%, 1080px);
	margin-top: 28px;
}
.aam-hero-quick-search-form {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 76px;
	padding: 9px 10px 9px 24px;
	border: 1px solid rgba(255,255,255,.62);
	border-radius: 20px;
	background: rgba(255,255,255,.98);
	box-shadow: 0 24px 70px rgba(0,0,0,.30), 0 0 0 1px rgba(255,255,255,.18) inset;
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.aam-hero-quick-search.is-open .aam-hero-quick-search-form,
.aam-hero-quick-search-form:focus-within {
	border-color: color-mix(in srgb, var(--aam-primary) 52%, #fff);
	box-shadow: 0 30px 78px rgba(0,0,0,.32), 0 0 0 5px color-mix(in srgb, var(--aam-primary) 13%, transparent);
	transform: translateY(-1px);
}
.aam-hero-search-icon {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	fill: none;
	stroke: #667085;
	stroke-width: 1.9;
	stroke-linecap: round;
}
.aam-hero-quick-search-form input[type="search"] {
	min-width: 0;
	width: 100%;
	height: 54px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	color: var(--aam-ink) !important;
	font: 500 16px/1.2 "DM Sans", sans-serif !important;
	box-shadow: none !important;
	-webkit-appearance: none;
}
.aam-hero-quick-search-form input[type="search"]::placeholder { color: #7b8491; opacity: 1; }
.aam-hero-search-submit {
	min-height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	flex: 0 0 auto;
	padding: 0 22px;
	border: 1px solid color-mix(in srgb, var(--aam-primary) 86%, #000);
	border-radius: 14px;
	background: var(--aam-primary);
	color: #fff;
	font: 700 14px/1 "DM Sans", sans-serif;
	cursor: pointer;
	box-shadow: 0 12px 28px color-mix(in srgb, var(--aam-primary) 24%, transparent);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.aam-hero-search-submit svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .2s ease;
}
.aam-hero-search-submit:hover {
	background: var(--aam-primary-dark);
	box-shadow: 0 15px 34px color-mix(in srgb, var(--aam-primary) 30%, transparent);
	transform: translateY(-1px);
}
.aam-hero-search-submit:hover svg { transform: translateX(3px); }
.aam-hero-live-search-results {
	top: calc(100% + 12px);
	right: 0;
	left: 0;
	z-index: 22;
	max-height: min(500px, 55vh);
	text-align: left;
}
.aam-hero-quick-search:not(.is-open) .aam-hero-live-search-results { display: none; }
.aam-hero-live-search-results .aam-search-quick > span { color: #7b8491; }
.aam-hero-live-search-results .aam-search-quick a { color: #344054; }

/* Category cards: actual architectural imagery as the empty-state visual, never abstract placeholder art. */
.aam-main-category-grid .aam-category-preview-grid {
	position: relative;
	overflow: hidden;
	background: #edf0f2 !important;
}
.aam-main-category-grid .aam-category-preview-grid::before,
.aam-main-category-grid .aam-category-preview-grid::after { content: none !important; display: none !important; }
.aam-main-category-grid .aam-category-fallback-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.72) contrast(.96) brightness(.96);
	transform: scale(1.015);
	transition: transform .45s cubic-bezier(.22,1,.36,1), filter .35s ease;
}
.aam-main-category-grid .aam-category-preview-shade {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(11,24,37,.02), rgba(11,24,37,.13));
}
.aam-main-category-grid .aam-category-card:hover .aam-category-fallback-image {
	filter: saturate(.84) contrast(1.02) brightness(.98);
	transform: scale(1.065);
}
.aam-main-category-grid .aam-category-preview-fallback,
.aam-main-category-grid .aam-material-placeholder-art { display: none !important; }

/* Premium directional icon language. */
.aam-category-arrow {
	width: 38px;
	height: 38px;
	border: 1px solid color-mix(in srgb, var(--aam-primary) 16%, transparent);
	background: color-mix(in srgb, var(--aam-primary) 9%, #fff);
	box-shadow: 0 8px 22px color-mix(in srgb, var(--aam-primary) 10%, transparent);
}
.aam-category-arrow svg,
.aam-premium-arrow-inline {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.aam-category-card:hover .aam-category-arrow {
	background: var(--aam-primary);
	border-color: var(--aam-primary);
	box-shadow: 0 10px 26px color-mix(in srgb, var(--aam-primary) 22%, transparent);
	transform: translateX(4px);
}
.aam-premium-arrow-inline {
	display: inline-block;
	flex: 0 0 auto;
	margin-left: 4px;
	vertical-align: -3px;
	transition: transform .2s cubic-bezier(.22,1,.36,1);
}
a:hover > .aam-premium-arrow-inline,
button:hover > .aam-premium-arrow-inline,
.aam-read-more:hover .aam-premium-arrow-inline,
.aam-text-link:hover .aam-premium-arrow-inline { transform: translateX(3px); }
.aam-premium-arrow-inline.is-left { margin-right: 4px; margin-left: 0; }
a:hover > .aam-premium-arrow-inline.is-left,
button:hover > .aam-premium-arrow-inline.is-left { transform: translateX(-3px); }

.aam-back-to-top-icon {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.aam-live-result-arrow {
	stroke-width: 1.7;
	transition: transform .18s ease, stroke .18s ease;
}
.aam-live-result:hover .aam-live-result-arrow { stroke: var(--aam-primary); transform: translateX(2px); }

@media (max-width: 780px) {
	.aam-hero-quick-search { margin-top: 24px; }
	.aam-hero-quick-search-form { min-height: 66px; padding: 7px 8px 7px 18px; border-radius: 16px; }
	.aam-hero-quick-search-form input[type="search"] { height: 50px !important; font-size: 15px !important; }
	.aam-hero-search-submit { min-height: 50px; padding: 0 17px; border-radius: 12px; }
	.aam-hero-search-submit span { display: none; }
	.aam-hero-search-submit svg { width: 20px; height: 20px; }
	.aam-hero-live-search-results { max-height: 48vh; }
}

@media (max-width: 520px) {
	.aam-hero-quick-search-form { gap: 10px; padding-left: 15px; }
	.aam-hero-search-icon { width: 21px; height: 21px; }
	.aam-hero-search-submit { width: 48px; padding: 0; }
}
