/**
 * MeemClub site chrome — Astra Header/Footer Builder overrides.
 * Non-sticky header (documented in docs/design-system.md).
 */

/* Hide default Astra / WordPress theme credit */
.site-below-footer-wrap[data-section="section-below-footer-builder"],
.ast-footer-copyright,
.ast-footer-copyright a,
.site-footer-below-section-1 .ast-builder-html-element {
	display: none !important;
}

/* Marketing pages — hide duplicate Astra entry title when Elementor hero provides H1 */
body.meemclub-marketing-page .entry-header,
body.meemclub-home-elementor .entry-header {
	display: none;
}

/* Brand area */
.meemclub-site-brand {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	line-height: var(--mc-line-height-tight, 1.25);
}

.meemclub-site-brand__logo {
	display: block;
	width: 64px;
	height: 64px;
	margin-block-end: 0.5rem;
	object-fit: contain;
	/* Clear-space: never crop, recolor, or add effects to the approved mark. */
	background: transparent;
}

.meemclub-site-brand__name {
	font-size: 1.125rem;
	font-weight: 800;
	color: var(--mc-color-primary-dark, #044861);
	letter-spacing: -0.02em;
}

.meemclub-site-brand__tagline {
	font-size: 0.75rem;
	color: var(--mc-color-text-secondary, #475569);
}

/* Header CTAs — desktop in Header Builder right column; mobile in off-canvas */
.meemclub-header-ctas {
	display: none;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-inline-start: 0.75rem;
}

@media (min-width: 922px) {
	.meemclub-header-ctas:not(.meemclub-header-ctas--mobile) {
		display: inline-flex;
	}
}

.meemclub-header-ctas .meemclub-btn--primary {
	padding: 0.5rem 0.9rem;
	font-size: 0.8125rem;
}

/* Coral secondary — visibly secondary to primary discovery CTA */
.meemclub-header-ctas .meemclub-btn--accent {
	padding: 0.5rem 0.9rem;
	font-size: 0.8125rem;
	background: var(--meem-coral, #f6a46c);
	color: var(--meem-ink, #23303a);
	border: 1px solid var(--meem-coral, #f6a46c);
}

.meemclub-header-ctas .meemclub-btn--accent:hover {
	background: #e89355;
	border-color: #e89355;
	color: var(--meem-ink, #23303a);
}

.ast-header-break-point .meemclub-header-ctas:not(.meemclub-header-ctas--mobile) {
	display: none !important;
}

.site-header .custom-logo-link img,
.site-header .ast-site-identity img {
	max-height: 48px;
	width: auto;
}

/* Header brand: mark + Arabic name */
.meemclub-header-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none !important;
	color: var(--mc-color-primary-dark, #044861);
	line-height: 1.2;
}

.meemclub-header-brand__mark {
	display: block;
	width: 36px;
	height: 36px;
	max-height: 36px !important;
	object-fit: contain;
	flex: 0 0 auto;
}

.meemclub-header-brand__name {
	font-family: var(--mc-font-family);
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--mc-color-primary-dark, #044861);
}

@media (min-width: 48rem) {
	.meemclub-header-brand__mark {
		width: 40px;
		height: 40px;
		max-height: 40px !important;
	}

	.meemclub-header-brand__name {
		font-size: 1.125rem;
	}
}

/* Prefer our lockup over duplicate Astra site-title text when both appear */
.ast-site-identity .site-title,
.ast-site-identity .site-description {
	display: none;
}

.ast-site-identity .meemclub-header-brand + .site-title {
	display: none;
}

.main-header-menu > .menu-item > .menu-link {
	font-weight: 600;
	font-size: 0.95rem;
}

/* Mobile menu polish */
.ast-header-break-point .main-header-menu .menu-link {
	padding: 0.75rem 1rem;
}

.meemclub-header-ctas--mobile {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 100%;
	padding: 0.75rem 1rem 1rem;
	border-top: 1px solid var(--mc-color-border, #e2e8f0);
	margin-inline-start: 0;
}

.meemclub-header-ctas--mobile .meemclub-btn {
	width: 100%;
	justify-content: center;
}

/* Legal pages — sober readable presentation; single content H1 */
body.meemclub-legal-page .entry-header {
	display: none;
}

body.meemclub-legal-page .site-content,
body.meemclub-legal-page #content {
	font-family: var(--mc-font-family);
}

body.meemclub-legal-page .entry-content,
body.meemclub-legal-page .ast-article-single {
	max-width: 42rem;
	margin-inline: auto;
	padding: 1.75rem var(--mc-gutter, 1rem) 3rem;
	color: var(--mc-color-text, #0f172a);
	line-height: 1.7;
}

body.meemclub-legal-page .entry-content h1 {
	margin: 0 0 1rem;
	font-size: clamp(1.6rem, 2.5vw, 2rem);
	font-weight: 800;
	color: var(--mc-color-primary-dark, #044861);
	line-height: 1.25;
}

body.meemclub-legal-page .entry-content h2 {
	margin: 1.75rem 0 0.65rem;
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--mc-color-primary-dark, #044861);
}

body.meemclub-legal-page .entry-content h3 {
	margin: 1.25rem 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--mc-color-primary-dark, #044861);
}

body.meemclub-legal-page .entry-content p {
	margin: 0 0 0.9rem;
}

body.meemclub-legal-page .entry-content ul,
body.meemclub-legal-page .entry-content ol {
	margin: 0 0 1rem;
	padding-inline-start: 1.25rem;
}

body.meemclub-legal-page .entry-content li + li {
	margin-top: 0.4rem;
}

body.meemclub-legal-page .entry-content a {
	color: var(--meem-teal, #065573);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

body.meemclub-legal-page .entry-content a:hover {
	color: var(--mc-color-primary-dark, #044861);
}

/* Footer */
.meemclub-site-footer {
	background: var(--mc-color-secondary, var(--mc-color-secondary, #044861));
	color: var(--meem-warm-tint, #fff4ec);
	padding: clamp(2rem, 5vw, 3rem) var(--mc-gutter, 1rem);
	margin-top: var(--mc-section-spacing, 3rem);
}

.meemclub-site-footer a {
	color: #d7e8ef;
	text-decoration: none;
}

.meemclub-site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.meemclub-site-footer__grid {
	display: grid;
	gap: 1.5rem;
	max-width: var(--mc-page-max, 72rem);
	margin: 0 auto;
}

@media (min-width: 48rem) {
	.meemclub-site-footer__grid {
		grid-template-columns: 1.4fr repeat(3, 1fr);
	}
}

.meemclub-site-footer .meemclub-site-brand__name {
	color: #ffffff;
	font-size: 1.25rem;
	font-weight: 800;
}

.meemclub-site-footer .meemclub-site-brand__tagline {
	color: var(--meem-warm-tint, #fff4ec);
	font-weight: 600;
}

.meemclub-site-footer__brand p {
	margin: 0.5rem 0 0;
	font-size: var(--mc-font-small, 0.875rem);
	line-height: 1.6;
	color: #d1fae5;
	max-width: 22rem;
}

.meemclub-site-footer__heading {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--mc-color-surface-alt, #fff4ec);
	margin: 0 0 0.75rem;
}

.meemclub-site-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.meemclub-site-footer__menu a {
	font-size: 0.9375rem;
}

.meemclub-site-footer__bottom {
	max-width: var(--mc-page-max, 72rem);
	margin: 2rem auto 0;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 0.8125rem;
	color: #d1fae5;
	text-align: right;
}

@media (max-width: 47.99rem) {
	.meemclub-site-footer {
		padding-block: 1.5rem;
	}

	.meemclub-site-footer__grid {
		gap: 1rem;
	}

	.meemclub-site-footer__bottom {
		margin-top: 1.25rem;
		padding-top: 1rem;
	}
}

/* Remove duplicate footer legal nav from Astra default */
.meemclub-footer-legal-nav {
	display: none;
}

/* Elementor marketing page rhythm */
.elementor-page .elementor-section-wrap > .elementor-section {
	padding-inline: var(--mc-gutter, 1rem);
}

.elementor-widget-heading .elementor-heading-title {
	font-family: var(--mc-font-family);
}

/* Override Astra default form focus blue (#046bd2) with Meem Teal */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
	border-color: var(--meem-teal, #065573) !important;
}
