/* ==========================================================================
   القلم — Al-Qalam design layer (on top of Astra)
   ========================================================================== */

:root {
	--alq-ink: #1e1a17;
	--alq-ink-soft: #4a423c;
	--alq-muted: #7a6f66;
	--alq-terra: #b4532f;        /* brand primary (AA on white) */
	--alq-terra-light: #d97556;  /* original brand accent */
	--alq-gold: #a8894a;
	--alq-cream: #f7f1e8;
	--alq-sand: #ece1d1;
	--alq-line: #e4d9ca;
	--alq-white: #fffdf9;
	--alq-radius: 14px;
	--alq-radius-sm: 8px;
	--alq-shadow: 0 1px 2px rgba(30, 26, 23, .05), 0 8px 24px rgba(30, 26, 23, .07);
	--alq-shadow-lg: 0 2px 4px rgba(30, 26, 23, .06), 0 18px 48px rgba(30, 26, 23, .12);
	--alq-font: "TheMixArab", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
	--alq-font-display: "TheMixArab", "Amiri", "Times New Roman", serif;
	--alq-ease: cubic-bezier(.2, .7, .2, 1);
	/* 8-point star (khatam) pattern */
	--alq-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23b4532f' stroke-opacity='.10' stroke-width='1'%3E%3Cpath d='M40 8l9.4 22.6L72 40l-22.6 9.4L40 72l-9.4-22.6L8 40l22.6-9.4z'/%3E%3Cpath d='M17.4 17.4h45.2v45.2H17.4z' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base typography ---------- */
body,
button,
input,
select,
textarea,
.ast-button,
.ast-custom-button {
	font-family: var(--alq-font);
}

body {
	color: var(--alq-ink-soft);
	background: var(--alq-white);
	font-size: 17px;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title,
.wp-block-heading {
	font-family: var(--alq-font-display);
	color: var(--alq-ink);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
}

h1, .entry-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.15em; }

a { color: var(--alq-terra); text-underline-offset: .2em; transition: color .2s var(--alq-ease); }
a:hover, a:focus { color: var(--alq-ink); }

:focus-visible { outline: 3px solid var(--alq-terra-light); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--alq-terra-light); color: #fff; }

img { border-radius: var(--alq-radius-sm); }

/* ---------- Header ---------- */
.site-header .main-header-bar {
	background: rgba(255, 253, 249, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--alq-line);
}
.ast-primary-header-bar { min-height: 84px; }
.custom-logo-link img { max-height: 58px; width: auto; border-radius: 0; }
.main-header-menu .menu-link,
.ast-header-break-point .main-header-menu .menu-link {
	font-weight: 500;
	font-size: 16px;
	color: var(--alq-ink);
}
.main-header-menu > .menu-item > .menu-link { position: relative; }
.main-header-menu > .menu-item > .menu-link::after {
	content: "";
	position: absolute;
	inset-inline: 1em;
	bottom: 18px;
	height: 2px;
	background: var(--alq-terra);
	transform: scaleX(0);
	transition: transform .25s var(--alq-ease);
}
.main-header-menu > .menu-item:hover > .menu-link::after,
.main-header-menu > .current-menu-item > .menu-link::after,
.main-header-menu > .current-menu-ancestor > .menu-link::after { transform: scaleX(1); }
.main-header-menu .sub-menu {
	border-radius: var(--alq-radius-sm);
	border: 1px solid var(--alq-line) !important;
	box-shadow: var(--alq-shadow-lg);
	padding: 8px 0;
	min-width: 230px;
}
.main-header-menu .sub-menu .menu-link { font-size: 15px; padding: .55em 1.2em; }
.main-header-menu .sub-menu .menu-item:hover > .menu-link { background: var(--alq-cream); color: var(--alq-terra); }

.ast-site-header-cart .ast-cart-menu-wrap .count,
.ast-site-header-cart .ast-cart-menu-wrap .count::after { border-color: var(--alq-terra); color: var(--alq-terra); }
.ast-site-header-cart .ast-addon-cart-wrap .ast-icon-shopping-cart::after,
.ast-site-header-cart .ast-addon-cart-wrap i.astra-icon::after { background: var(--alq-terra); }

/* ---------- Buttons ---------- */
.wp-block-button__link,
.ast-button,
button,
input[type="submit"],
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.wpforms-submit {
	background: var(--alq-terra) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: .8em 1.8em !important;
	font-family: var(--alq-font) !important;
	font-weight: 600 !important;
	font-size: 16px !important;
	line-height: 1.4 !important;
	transition: background .2s var(--alq-ease), transform .2s var(--alq-ease), box-shadow .2s var(--alq-ease) !important;
}
.wp-block-button__link:hover,
.ast-button:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.wpforms-submit:hover {
	background: var(--alq-ink) !important;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(180, 83, 47, .25);
}
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-alq-ghost .wp-block-button__link {
	background: transparent !important;
	color: var(--alq-terra) !important;
	box-shadow: inset 0 0 0 2px var(--alq-terra);
}
.wp-block-button.is-style-alq-ghost .wp-block-button__link:hover { background: var(--alq-terra) !important; color: #fff !important; }
.wp-block-cover .wp-block-button.is-style-alq-ghost .wp-block-button__link { color: #fff !important; box-shadow: inset 0 0 0 2px #fff; }

/* ---------- Content blocks ---------- */
.entry-content > .alq-section + .alq-section { margin-top: clamp(2rem, 4vw, 3.5rem); }
.alq-title { position: relative; text-align: center; margin-bottom: .4em; }
.alq-title::after,
.is-style-alq-ornament::after {
	content: "";
	display: block;
	width: 84px;
	height: 14px;
	margin: .45em auto 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 14'%3E%3Cg fill='%23b4532f'%3E%3Cpath d='M42 0l5 7-5 7-5-7z'/%3E%3Crect x='0' y='6' width='32' height='2' rx='1'/%3E%3Crect x='52' y='6' width='32' height='2' rx='1'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
.alq-subtitle { text-align: center; color: var(--alq-muted); max-width: 46rem; margin-inline: auto; font-size: 1.08rem; }

.is-style-alq-pattern,
.alq-band {
	background-color: var(--alq-cream);
	background-image: var(--alq-pattern);
	background-size: 80px 80px;
	border-radius: var(--alq-radius);
	padding: clamp(1.5rem, 4vw, 3.5rem) !important;
}
.is-style-alq-card {
	background: #fff;
	border: 1px solid var(--alq-line);
	border-radius: var(--alq-radius);
	box-shadow: var(--alq-shadow);
	padding: 1.6rem !important;
	height: 100%;
}

.wp-block-cover { border-radius: 0; }
.wp-block-cover.alq-rounded { border-radius: var(--alq-radius); overflow: hidden; }
.wp-block-cover h1, .wp-block-cover h2, .wp-block-cover h3, .wp-block-cover p { color: #fff; }
.wp-block-cover .alq-title::after { filter: brightness(0) invert(1); opacity: .8; }

.alq-gallery img,
.wp-block-gallery img { border-radius: var(--alq-radius-sm); transition: transform .5s var(--alq-ease); }
.wp-block-gallery .wp-block-image { overflow: hidden; border-radius: var(--alq-radius-sm); }
.wp-block-gallery .wp-block-image:hover img { transform: scale(1.04); }

.wp-block-embed iframe { border-radius: var(--alq-radius); }

/* Stats */
.alq-stats-wrap { background: var(--alq-cream); border-radius: var(--alq-radius); padding: 1.6rem 1rem !important; }
.alq-stats { gap: 1rem !important; margin: 0 !important; }
.alq-stats .wp-block-column { text-align: center; }
.alq-stat-num { font-family: var(--alq-font-display); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); color: var(--alq-terra); line-height: 1.1; margin: 0 0 .2em !important; }
.alq-stat-label { color: var(--alq-ink-soft); font-weight: 500; margin: 0 !important; }

/* FAQ / details */
.wp-block-details,
.alq-faq {
	border: 1px solid var(--alq-line);
	border-radius: var(--alq-radius-sm);
	padding: 0 1.2rem;
	margin-bottom: .75rem;
	background: #fff;
	transition: box-shadow .2s var(--alq-ease);
}
.wp-block-details[open] { box-shadow: var(--alq-shadow); }
.wp-block-details summary {
	cursor: pointer;
	padding: 1rem 0;
	font-weight: 600;
	color: var(--alq-ink);
	list-style: none;
	position: relative;
	padding-inline-end: 2rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	position: absolute;
	inset-inline-end: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	color: var(--alq-terra);
	transition: transform .2s var(--alq-ease);
}
.wp-block-details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

/* Icon list / contact */
.alq-contact, .alq-icon-list { list-style: none; margin: 0; padding: 0; }
.alq-contact li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; }
.alq-contact .alq-ico { color: var(--alq-terra); flex: 0 0 auto; margin-top: .35em; }
.alq-social { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.alq-social a {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--alq-cream); color: var(--alq-terra);
	transition: background .2s var(--alq-ease), color .2s var(--alq-ease), transform .2s var(--alq-ease);
}
.alq-social a:hover { background: var(--alq-terra); color: #fff; transform: translateY(-2px); }
.alq-map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--alq-radius); filter: saturate(.85); }

.alq-wa-float {
	position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 999;
	width: 56px; height: 56px; border-radius: 50%;
	display: grid; place-items: center;
	background: #25d366; color: #fff !important;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
	transition: transform .2s var(--alq-ease);
}
.alq-wa-float:hover { transform: scale(1.06); }
.alq-wa-float .alq-ico { width: 28px; height: 28px; }

/* Team */
.alq-team { display: grid; grid-template-columns: repeat(var(--alq-cols, 4), minmax(0, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.alq-member { text-align: center; background: #fff; border: 1px solid var(--alq-line); border-radius: var(--alq-radius); padding: 1.2rem 1.2rem 1.4rem; transition: box-shadow .25s var(--alq-ease), transform .25s var(--alq-ease); }
.alq-member:hover { box-shadow: var(--alq-shadow-lg); transform: translateY(-3px); }
.alq-member__photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; width: 70%; margin: 0 auto 1rem; background: var(--alq-cream); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--alq-cream), 0 0 0 5px var(--alq-line); }
.alq-member__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.alq-member__initial { font-family: var(--alq-font-display); font-size: 3rem; color: var(--alq-terra); }
.alq-member__name { font-size: 1.15rem; margin: 0 0 .25rem; }
.alq-member__role { color: var(--alq-muted); font-size: .95rem; margin: 0; }
.alq-member__bio { text-align: start; margin-top: .8rem; font-size: .95rem; }
.alq-member__bio summary { cursor: pointer; color: var(--alq-terra); font-weight: 600; text-align: center; }

/* ---------- Page header (Astra title area) ---------- */
.page .entry-header,
.ast-archive-description {
	text-align: center;
	padding: clamp(2rem, 6vw, 4rem) 1rem clamp(1.5rem, 4vw, 2.5rem);
	margin-bottom: 2rem;
	background: var(--alq-cream) var(--alq-pattern);
	background-size: auto, 80px 80px;
	border-radius: 0 0 var(--alq-radius) var(--alq-radius);
}
.home.page .entry-header { display: none; }

/* ---------- WooCommerce ---------- */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	background: #fff;
	border: 1px solid var(--alq-line);
	border-radius: var(--alq-radius);
	padding: 0 0 1.2rem !important;
	overflow: hidden;
	transition: box-shadow .25s var(--alq-ease), transform .25s var(--alq-ease);
	text-align: center;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--alq-shadow-lg); transform: translateY(-3px); }
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap { background: var(--alq-cream); margin-bottom: .8rem; }
.woocommerce ul.products li.product img { border-radius: 0; aspect-ratio: 1; object-fit: contain; background: var(--alq-cream); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--alq-font); font-size: 1rem; font-weight: 600; color: var(--alq-ink); padding: 0 1rem; line-height: 1.6; }
.woocommerce ul.products li.product .ast-woo-product-category { color: var(--alq-muted); font-size: .85rem; }
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--alq-terra) !important; font-weight: 700; font-family: var(--alq-font); }
.woocommerce ul.products li.product .button { margin-top: .6rem; font-size: 14px !important; padding: .55em 1.3em !important; }
.woocommerce span.onsale { background: var(--alq-terra); border-radius: 999px; min-height: auto; min-width: auto; padding: .25em .8em; line-height: 1.5; }
.woocommerce div.product .product_title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.woocommerce div.product .woocommerce-product-gallery__image img { border-radius: var(--alq-radius); background: var(--alq-cream); }
.woocommerce div.product form.cart .variations select { border-radius: var(--alq-radius-sm); border-color: var(--alq-line); min-height: 46px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-family: var(--alq-font); }
.woocommerce table.shop_attributes th { color: var(--alq-ink); background: var(--alq-cream); }
.woocommerce .woocommerce-breadcrumb { color: var(--alq-muted); }
.woocommerce-store-notice, p.demo_store { background: var(--alq-terra); }
.ast-woocommerce-container .woocommerce-ordering select { border-radius: var(--alq-radius-sm); }
.alq-price-on-request { color: var(--alq-gold); font-weight: 600; }

/* Product category tiles (shortcode [product_categories]) */
.woocommerce ul.products li.product-category a img { aspect-ratio: 4/3; object-fit: cover; }
.woocommerce ul.products li.product-category .woocommerce-loop-category__title { font-family: var(--alq-font-display); font-size: 1.25rem; }
.woocommerce ul.products li.product-category mark { background: none; color: var(--alq-muted); }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], textarea, select {
	border: 1px solid var(--alq-line) !important;
	border-radius: var(--alq-radius-sm) !important;
	background: #fff !important;
	padding: .7em 1em !important;
	font-size: 16px !important;
}
input:focus, textarea:focus, select:focus { border-color: var(--alq-terra) !important; box-shadow: 0 0 0 3px rgba(217, 117, 86, .2) !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--alq-ink); color: #d9cfc4; }
.site-footer .site-above-footer-wrap,
.site-footer .site-primary-footer-wrap { background: var(--alq-ink) !important; border: 0 !important; }
.site-footer .site-below-footer-wrap { background: #15120f !important; border-top: 1px solid rgba(255, 255, 255, .08) !important; }
.site-footer h2, .site-footer h3, .site-footer .widget-title { color: #fff; font-size: 1.2rem; }
.site-footer a { color: #e8ddd2; }
.site-footer a:hover { color: var(--alq-terra-light); }
.site-footer .alq-contact .alq-ico { color: var(--alq-terra-light); }
.site-footer .alq-social a { background: rgba(255, 255, 255, .08); color: #fff; }
.site-footer .alq-social a:hover { background: var(--alq-terra); }
.site-footer .widget ul { list-style: none; margin: 0; }
.site-footer .widget ul li { margin-bottom: .45rem; }
.site-footer .ast-footer-copyright { color: #a89a8d; font-size: .9rem; }
.alq-footer-brand img { max-width: 200px; filter: brightness(0) invert(1); opacity: .95; border-radius: 0; }

/* ---------- Home ---------- */
.alq-hero { min-height: min(86vh, 760px) !important; }
.alq-hero h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem); text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.alq-hero .alq-lead { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); max-width: 40rem; margin-inline: auto; opacity: .95; }
.alq-eyebrow { display: inline-block; font-size: .9rem; font-weight: 600; letter-spacing: .02em; color: var(--alq-terra); background: rgba(217, 117, 86, .12); padding: .25em 1em; border-radius: 999px; margin-bottom: .8rem !important; }
.wp-block-cover .alq-eyebrow { color: #fff; background: rgba(255, 255, 255, .16); }
.alq-pillars .wp-block-column { text-align: center; }
.alq-pillars .wp-block-image img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--alq-radius); }
.alq-pillar-link { font-weight: 600; text-decoration: none; }
.alq-pillar-link::after { content: " ←"; }
.alq-partners .wp-block-gallery img { filter: grayscale(1); opacity: .75; object-fit: contain !important; background: #fff; padding: .6rem; transition: filter .3s, opacity .3s; }
.alq-partners .wp-block-gallery img:hover { filter: none; opacity: 1; }
.alq-quote { font-family: var(--alq-font-display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); color: var(--alq-ink); text-align: center; max-width: 44rem; margin-inline: auto; line-height: 1.7; }
.alq-testimonial { background: #fff; border: 1px solid var(--alq-line); border-radius: var(--alq-radius); padding: 1.6rem; height: 100%; }
.alq-testimonial p:first-child::before { content: "”"; display: block; font-family: var(--alq-font-display); font-size: 3.5rem; line-height: .6; color: var(--alq-terra-light); margin-bottom: .4rem; }

/* Reveal on scroll (progressive enhancement; JS adds .alq-js on <html>) */
.alq-js .alq-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--alq-ease), transform .7s var(--alq-ease); }
.alq-js .alq-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.alq-js .alq-reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 921px) {
	.alq-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
	.ast-primary-header-bar { min-height: 70px; }
	.custom-logo-link img { max-height: 46px; }
}
@media (max-width: 544px) {
	body { font-size: 16px; }
	.alq-team { grid-template-columns: 1fr 1fr; }
	.alq-member { padding: .9rem; }
	.alq-map iframe { height: 300px; }
}

/* ---------- Hub cards ---------- */
.alq-cards { display: grid; grid-template-columns: repeat(var(--alq-cols, 3), minmax(0, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.alq-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--alq-line); border-radius: var(--alq-radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .25s var(--alq-ease), transform .25s var(--alq-ease); }
.alq-card:hover { box-shadow: var(--alq-shadow-lg); transform: translateY(-4px); color: inherit; }
.alq-card__media { display: block; aspect-ratio: 4/3; background: var(--alq-cream) var(--alq-pattern); background-size: 80px; overflow: hidden; }
.alq-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .6s var(--alq-ease); }
.alq-card:hover .alq-card__media img { transform: scale(1.05); }
.alq-card__body { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem 1.3rem 1.4rem; flex: 1; }
.alq-card__title { font-family: var(--alq-font-display); font-size: 1.3rem; font-weight: 700; color: var(--alq-ink); line-height: 1.4; }
.alq-card__text { color: var(--alq-muted); font-size: .95rem; line-height: 1.75; }
.alq-card__more { margin-top: auto; padding-top: .4rem; color: var(--alq-terra); font-weight: 600; font-size: .95rem; }
.alq-card__more::after { content: " ←"; }
@media (max-width: 921px) { .alq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 544px) { .alq-cards { grid-template-columns: 1fr; } }
.alq-card__meta { display: flex; gap: .6rem; align-items: center; color: var(--alq-muted); font-size: .88rem; }
.alq-badge { background: rgba(217, 117, 86, .14); color: var(--alq-terra); font-weight: 600; padding: .1em .7em; border-radius: 999px; }

/* ---------- Home: split hero ---------- */
.alq-hero-split { background: var(--alq-cream) var(--alq-pattern); background-size: auto, 80px 80px; padding: clamp(2.5rem, 7vw, 6rem) 0 !important; margin-top: 0 !important; overflow: hidden; }
.alq-hero-split .wp-block-columns { align-items: center !important; gap: clamp(1.5rem, 5vw, 4rem) !important; max-width: 1240px; margin-inline: auto !important; padding-inline: 20px; }
.alq-hero-split h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); line-height: 1.25; margin-bottom: .4em; }
.alq-hero-split h1 em { font-style: normal; color: var(--alq-terra); }
.alq-hero-split .alq-lead { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: var(--alq-ink-soft); max-width: 34rem; }
.alq-hero-split .wp-block-buttons { justify-content: flex-start !important; margin-top: 1.6rem; }
.alq-hero-art { position: relative; }
.alq-hero-art .wp-block-image img { border-radius: 200px 200px var(--alq-radius) var(--alq-radius); box-shadow: var(--alq-shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.alq-hero-art .alq-orn { position: absolute; width: 38%; inset-inline-start: -14%; bottom: -8%; pointer-events: none; }
.alq-hero-art .alq-orn img { border-radius: 50%; box-shadow: none; aspect-ratio: 1; mix-blend-mode: multiply; animation: alq-spin 90s linear infinite; }
@keyframes alq-spin { to { transform: rotate(360deg); } }
.alq-hero-meta { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 2rem; color: var(--alq-muted); font-size: .95rem; }
.alq-hero-meta strong { display: block; font-family: var(--alq-font-display); font-size: 1.7rem; color: var(--alq-ink); line-height: 1.2; }
.alq-home-section { padding-block: clamp(2.5rem, 6vw, 5rem) !important; }
.alq-home-section.is-cream { background: var(--alq-cream); }
.alq-section-head { text-align: center; max-width: 44rem; margin: 0 auto 2.2rem; }
.alq-section-head .alq-eyebrow { margin-bottom: .6rem !important; }
.alq-section-head h2 { margin-bottom: .3em; }
.alq-section-head p { color: var(--alq-muted); }
.alq-split-media img { border-radius: var(--alq-radius); box-shadow: var(--alq-shadow); }
.alq-checklist { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.alq-checklist li { position: relative; padding-inline-start: 1.8rem; margin-bottom: .55rem; }
.alq-checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 12px; height: 12px; background: var(--alq-terra); transform: rotate(45deg); border-radius: 2px; }
@media (max-width: 781px) {
	.alq-hero-art { max-width: 420px; margin-inline: auto; }
	.alq-hero-split .wp-block-buttons { justify-content: center !important; }
	.alq-hero-split .wp-block-column:first-child { text-align: center; }
	.alq-hero-split .alq-lead { margin-inline: auto; }
	.alq-hero-meta { justify-content: center; }
}

/* Header utility buttons keep Astra's minimal look (not brand pill buttons) */
.site-header button.menu-toggle,
.site-header .ast-mobile-menu-trigger-minimal,
.site-header .ast-button-wrap .menu-toggle,
.ast-mobile-popup-drawer button.menu-toggle-close,
.site-header .ast-search-menu-icon button,
.ast-search-box button,
.woocommerce-product-gallery__trigger,
.wp-block-search__button,
button.ast-menu-toggle,
.pswp button {
	background: transparent !important;
	color: var(--alq-ink) !important;
	box-shadow: none !important;
	padding: .4em !important;
	border-radius: 8px !important;
	transform: none !important;
}
.site-header button.menu-toggle .ast-mobile-svg,
.site-header button.menu-toggle svg { fill: var(--alq-ink); width: 26px; height: 26px; }
.site-header button.menu-toggle:hover { background: var(--alq-cream) !important; }
.ast-mobile-popup-drawer .ast-mobile-popup-inner { background: var(--alq-white); }
.ast-mobile-popup-drawer .main-header-menu .menu-link { font-size: 17px; padding-block: .75em; border-bottom: 1px solid var(--alq-line); }
.ast-mobile-popup-drawer .main-header-menu > .menu-item > .menu-link::after,
.ast-header-break-point .main-header-menu > .menu-item > .menu-link::after { display: none; }
.ast-mobile-popup-drawer .main-header-menu,
.ast-mobile-popup-drawer .main-header-menu .menu-item,
.ast-mobile-popup-drawer .main-header-menu .sub-menu { background: transparent !important; box-shadow: none; border: 0 !important; }
.ast-mobile-popup-drawer .main-header-menu .current-menu-item > .menu-link { color: var(--alq-terra); }

/* ==========================================================================
   UX pass (2026-10-21): reading panels, tables, cart, shop filters
   ========================================================================== */
:root { --alq-panel: #fffdf9; --alq-head: #f3ebdf; }

/* Hero headline: TheMixArab marks (tanween, shadda) need room between lines */
.alq-hero-split h1 { line-height: 1.6; }
h1, h2, .entry-title { line-height: 1.5; }

/* Text sits on a lighter panel on inner pages; image-only sections stay on the background */
body:not(.home) .entry-content > .alq-section:has(> p, > ul, > ol, > h3, > .wp-block-columns p, > .wp-block-columns li),
body.page:not(.home):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .entry-content:not(:has(> .alq-section)):has(> p, > ul, > ol),
.single-alq_member .entry-content,
.single-product .woocommerce-tabs .panel,
.alq-school-contact {
	background: var(--alq-panel);
	border: 1px solid var(--alq-line);
	border-radius: var(--alq-radius);
	box-shadow: var(--alq-shadow);
	padding: clamp(1.25rem, 3vw, 2.5rem) !important;
}
body:not(.home) .entry-content > .alq-section + .alq-section { margin-top: clamp(1.25rem, 3vw, 2rem); }
.entry-content > .alq-section > :last-child { margin-bottom: 0; }

/* Tables (product specs, cart, checkout, account) */
.woocommerce table.shop_attributes,
.woocommerce table.shop_table {
	border: 1px solid var(--alq-line) !important;
	border-collapse: separate !important;
	border-spacing: 0;
	border-radius: var(--alq-radius-sm);
	overflow: hidden;
	background: var(--alq-panel);
	width: 100%;
}
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border: 0 !important;
	border-top: 1px solid var(--alq-line) !important;
	font-style: normal !important;
	padding: .85em 1.1em !important;
	line-height: 1.8;
	vertical-align: middle;
}
.woocommerce table.shop_attributes tr:first-child th,
.woocommerce table.shop_attributes tr:first-child td,
.woocommerce table.shop_table thead th { border-top: 0 !important; }
.woocommerce table.shop_attributes th { width: 32%; background: var(--alq-head); color: var(--alq-ink); font-weight: 600; border-inline-end: 1px solid var(--alq-line) !important; }
.woocommerce table.shop_attributes td p { margin: 0; padding: 0; }
.woocommerce table.shop_attributes tr:nth-child(even) td { background: #fbf7f0; }
.woocommerce table.shop_table thead th,
.woocommerce .cart_totals h2,
.woocommerce-checkout #order_review_heading { background: var(--alq-head); color: var(--alq-ink); font-weight: 600; }
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals { border: 1px solid var(--alq-line) !important; border-radius: var(--alq-radius); background: var(--alq-panel); overflow: hidden; }
.woocommerce .cart-collaterals .cart_totals h2 { font-size: 1.35rem; margin: 0; padding: .9em 1.1em; border-bottom: 1px solid var(--alq-line); }
.woocommerce .cart-collaterals .cart_totals table.shop_table { border: 0 !important; border-radius: 0; }
.woocommerce .cart_totals .wc-proceed-to-checkout { padding: 0 1.1em 1.1em; }
.woocommerce table.cart td.actions { background: #fbf7f0; }
.woocommerce table.cart td.actions .coupon .input-text { min-width: 200px; }

/* Shipping choice: pickup has no destination, so hide "shipping to …" and the address calculator */
.woocommerce-shipping-methods li { margin-bottom: .5em !important; line-height: 1.7; }
.woocommerce-shipping-totals:has(input[value^="local_pickup"]:checked) .woocommerce-shipping-destination,
.woocommerce-shipping-totals:has(input[value^="local_pickup"]:checked) .woocommerce-shipping-calculator { display: none; }

/* Cart updates itself when quantities change (see main.js) */
.alq-js .woocommerce-cart-form button[name="update_cart"] { display: none !important; }

/* Shop filters sidebar */
.woocommerce #secondary .widget,
.woocommerce-page #secondary .widget {
	background: var(--alq-panel);
	border: 1px solid var(--alq-line);
	border-radius: var(--alq-radius);
	padding: 1.2rem 1.3rem;
	margin-bottom: 1.2rem;
}
.woocommerce #secondary .widget-title,
.woocommerce #secondary .widget h2 { font-size: 1.1rem; margin-bottom: .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--alq-line); }
.woocommerce #secondary ul { list-style: none; margin: 0; padding: 0; }
.woocommerce #secondary ul li { padding: .25em 0; }
.woocommerce #secondary ul.children { padding-inline-start: 1em; }
.woocommerce #secondary a { color: var(--alq-ink-soft); text-decoration: none; }
.woocommerce #secondary a:hover,
.woocommerce #secondary .current-cat > a,
.woocommerce #secondary .chosen a { color: var(--alq-terra); }
.woocommerce #secondary .count { color: var(--alq-muted); font-size: .85em; }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background-color: var(--alq-terra); }
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content { background-color: var(--alq-sand); }
.woocommerce .widget_price_filter .price_slider_amount .button { font-size: 14px !important; padding: .45em 1.2em !important; }
@media (min-width: 922px) {
	.woocommerce #secondary { padding-top: 1rem; }
	.woocommerce.ast-right-sidebar #secondary,
	.woocommerce.ast-left-sidebar #secondary { border: 0 !important; }
	.woocommerce.ast-right-sidebar #primary,
	.woocommerce.ast-left-sidebar #primary { border: 0 !important; }
}

/* School page */
.alq-school-intro .wp-block-columns { align-items: center !important; }
.alq-school-intro .alq-school-logo img { max-width: 320px; margin-inline: auto; display: block; border-radius: var(--alq-radius); }
.alq-waqf-art img { max-width: 520px; width: 100%; margin-inline: auto; display: block; }
.alq-series .wp-block-image { background: var(--alq-panel); border: 1px solid var(--alq-line); border-radius: var(--alq-radius); overflow: hidden; margin: 0; transition: box-shadow .25s var(--alq-ease), transform .25s var(--alq-ease); }
.alq-series .wp-block-image:hover { box-shadow: var(--alq-shadow-lg); transform: translateY(-3px); }
.alq-series .wp-block-image img { border-radius: 0; aspect-ratio: 1; object-fit: cover; width: 100%; }
.alq-series .wp-element-caption { text-align: center; font-weight: 600; color: var(--alq-ink); padding: .7em; margin: 0; }
.woocommerce #secondary select:not(.select2-hidden-accessible),
.woocommerce #secondary .select2-container { width: 100% !important; max-width: 100%; }
.select2-hidden-accessible { width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; padding: 0 !important; border: 0 !important; }

/* Checkout: soft panels instead of brand-coloured borders */
.woocommerce-page.woocommerce-checkout form #order_review,
.woocommerce-page.woocommerce-checkout form #order_review_heading,
.woocommerce.woocommerce-checkout form #order_review,
.woocommerce.woocommerce-checkout form #order_review_heading {
	border-color: var(--alq-line) !important;
	background: var(--alq-panel);
}
.woocommerce-page.woocommerce-checkout form #order_review_heading { border-radius: var(--alq-radius) var(--alq-radius) 0 0; padding: .8em 1.1em !important; }
.woocommerce-page.woocommerce-checkout form #order_review { border-radius: 0 0 var(--alq-radius) var(--alq-radius); }
.woocommerce-checkout #payment { background: var(--alq-cream) !important; border-radius: var(--alq-radius-sm); }
.woocommerce-checkout #payment div.payment_box { background: var(--alq-panel) !important; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--alq-panel) !important; }
.woocommerce-info, .woocommerce-message { border-top-color: var(--alq-terra-light) !important; background: var(--alq-panel) !important; border-radius: var(--alq-radius-sm); }

/* Product cards: keep category/price inside the card edges */
.woocommerce ul.products li.product .ast-woo-product-category,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .ast-woo-shop-product-description { padding-inline: 1rem; display: block; }
@media (max-width: 544px) {
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .95rem; padding-inline: .7rem; }
	.woocommerce ul.products li.product .ast-woo-product-category,
	.woocommerce ul.products li.product .price { padding-inline: .7rem; font-size: .85rem; }
	.woocommerce ul.products li.product .button { font-size: 13px !important; padding: .5em 1em !important; }
}
