/*
 * Altamash site-wide design layer (all pages): the homepage design language
 * (Poppins, headings, buttons, forms, cards, motion) applied to every page
 * without changing page layouts. Loaded by includes/home.php.
 */
:root {
	--ams-ease: cubic-bezier(.22, 1, .36, 1);
	--ams-ink: #2A1B12;
	--ams-body: #5A4536;
	--ams-cream: #F7F1E4;
	--ams-line: #E5DACB;
	--ams-gold: #C6992F;
	--ams-green: #0E4A30;
}

/* ---------- One font everywhere (icons keep their own fonts) ---------- */
body,
body :is(h1, h2, h3, h4, h5, h6, p, a, li, span, div, label, td, th, strong, b, em, small, blockquote, figcaption, dt, dd, legend, summary, button, input, select, textarea, option):not(i):not([class*="icon"]):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.star-rating):not(.star-rating *):not(.dashicons):not([class^="dashicons"]) {
	font-family: "Poppins", -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ---------- Headings ---------- */
.amh-site :is(h1, h2, h3, h4, h5, h6, .elementor-heading-title) { font-weight: 600 !important; text-wrap: balance; }
.amh-site :is(h1, h2):not(.amh *),
.amh-site :is(.elementor-widget-heading h1, .elementor-widget-heading h2).elementor-heading-title { letter-spacing: -0.01em !important; }
.amh-site :is(.elementor-widget-text-editor, .woocommerce-product-details__short-description, .entry-content) p { text-wrap: pretty; }

/* ---------- Buttons (page content; header and footer keep theirs) ---------- */
.amh-site .elementor-widget-button:not(.amh-btn) .elementor-button:not(.elementor-location-header *):not(.elementor-location-footer *) {
	border-radius: 12px !important;
	font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none;
	transition: background-color .3s var(--ams-ease), color .3s var(--ams-ease), border-color .3s var(--ams-ease), transform .5s var(--ams-ease), box-shadow .5s var(--ams-ease) !important;
}
.amh-site .elementor-widget-button:not(.amh-btn) .elementor-button:not(.elementor-location-header *):not(.elementor-location-footer *):hover {
	transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(42, 27, 18, .45);
}
.amh-site .elementor-widget-button:not(.amh-btn) .elementor-button:active { transform: scale(.98); }
.amh-site :is(.elementor-button, .button, .wp-element-button, .wc-block-components-button):focus-visible {
	outline: 2px solid var(--ams-gold) !important; outline-offset: 2px;
}

/* WooCommerce buttons */
.amh-site.woocommerce-page :is(a.button, button.button, input.button, .wc-block-components-button:not(.is-link), .wp-element-button):not(.elementor-location-header *):not(.elementor-location-footer *),
.amh-site .woocommerce :is(a.button, button.button, input.button):not(.elementor-location-header *):not(.elementor-location-footer *) {
	border-radius: 12px !important; font-weight: 600 !important; letter-spacing: 0 !important;
	transition: background-color .3s var(--ams-ease), color .3s var(--ams-ease), transform .5s var(--ams-ease), box-shadow .5s var(--ams-ease);
}
.amh-site.woocommerce-page :is(a.button, button.button, input.button, .wc-block-components-button:not(.is-link)):not(:disabled):hover {
	transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(42, 27, 18, .45);
}

/* ---------- Forms ---------- */
.amh-site :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], textarea, select):not(.amh *) {
	border-radius: 12px; border-color: var(--ams-line);
	transition: border-color .3s var(--ams-ease), box-shadow .3s var(--ams-ease);
}
.amh-site :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], textarea, select):not(.amh *):focus {
	border-color: var(--ams-gold) !important; box-shadow: 0 0 0 3px rgba(198, 153, 47, .2) !important; outline: none;
}

/* ---------- Cards and images in page content ---------- */
.amh-site .elementor:not(.elementor-location-header):not(.elementor-location-footer) .e-grid > .e-con,
.amh-site .elementor:not(.elementor-location-header):not(.elementor-location-footer) .e-con.e-child.ams-card {
	transition: transform .5s var(--ams-ease), box-shadow .5s var(--ams-ease);
}
.amh-site .elementor:not(.elementor-location-header):not(.elementor-location-footer) .e-grid > .e-con:hover,
.amh-site .elementor:not(.elementor-location-header):not(.elementor-location-footer) .e-con.e-child.ams-card:hover {
	transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(74, 44, 20, .4);
}
.amh-site .woocommerce ul.products li.product { transition: transform .5s var(--ams-ease), box-shadow .5s var(--ams-ease); }
.amh-site .woocommerce ul.products li.product:hover { transform: translateY(-4px); }

/* ---------- Motion: sections and their pieces arrive as you scroll ---------- */
.ams-js .ams-st {
	opacity: 0; translate: 0 24px;
	transition: opacity .7s var(--ams-ease) calc(var(--i, 0) * 80ms + 60ms), translate .7s var(--ams-ease) calc(var(--i, 0) * 80ms + 60ms);
}
.ams-js .is-in > .ams-st, .ams-js .is-in .ams-st, .ams-js .ams-st.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
	.ams-js .ams-st { translate: none; transition: opacity .4s linear; }
	.amh-site .elementor-widget-button .elementor-button:hover,
	.amh-site .e-grid > .e-con:hover,
	.amh-site .woocommerce ul.products li.product:hover { transform: none; }
}

/* How to Use: stain-progress chips inside the dark card were cream on cream (am-shop.css rule order) */
.am-card--dark .am-progress li { color: var(--ams-ink) !important; }
