/* أكاديمية بدر منير — site styles */
:root {
	--bm-green: #0F5B4E;
	--bm-green-dark: #0B4339;
	--bm-gold: #C9A14A;
	--bm-gold-dark: #A9832F;
	--bm-cream: #FBF8F1;
	--bm-sand: #F3EDE0;
	--bm-ink: #1F2A27;
	--bm-muted: #56645F;
	--bm-line: #E4DDCC;
	--bm-radius: 14px;
	--bm-shadow: 0 6px 24px rgba(15, 91, 78, .08);
}

body { font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif; color: var(--bm-ink); }
h1, h2, h3, h4, h5, h6 { font-family: "Tajawal", sans-serif; }
.site-branding .site-title { font-family: "Amiri", serif !important; }

/* ---------- Buttons ---------- */
.bm-btn,
.bm-btn:visited {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .7em 1.6em; border-radius: 10px;
	font-weight: 700; font-size: 1.05rem; line-height: 1.2; text-decoration: none;
	border: 2px solid transparent; transition: background .2s, color .2s, transform .15s;
	cursor: pointer;
}
.bm-btn:hover { transform: translateY(-1px); }
.bm-btn--gold { background: var(--bm-gold); color: #1B1B1B; }
.bm-btn--gold:hover { background: var(--bm-gold-dark); color: #fff; }
.bm-btn--green { background: var(--bm-green); color: #fff; }
.bm-btn--green:hover { background: var(--bm-green-dark); color: #fff; }
.bm-btn--outline { background: transparent; color: var(--bm-green); border-color: var(--bm-green); }
.bm-btn--outline:hover { background: var(--bm-green); color: #fff; }
.bm-on-dark .bm-btn--outline { color: #fff; border-color: rgba(255,255,255,.8); }
.bm-on-dark .bm-btn--outline:hover { background: #fff; color: var(--bm-green); }
.bm-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Sections ---------- */
.bm-section { padding: clamp(48px, 7vw, 88px) 16px; }
.bm-section > .bm-inner, .bm-inner { max-width: 1140px; margin-inline: auto; }
.bm-section--cream { background: var(--bm-cream); }
.bm-section--sand { background: var(--bm-sand); }
.bm-section--green { background: var(--bm-green); color: #fff; }
.bm-section--green h2, .bm-section--green h3 { color: #fff; }
.bm-eyebrow { color: var(--bm-gold-dark); font-weight: 700; letter-spacing: .02em; margin: 0 0 .4em; text-align: center; }
.bm-section--green .bm-eyebrow { color: var(--bm-gold); }
.bm-title { text-align: center; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; color: var(--bm-green); margin: 0 0 .5em; }
.bm-lead { text-align: center; color: var(--bm-muted); font-size: 1.12rem; line-height: 1.9; max-width: 720px; margin: 0 auto 2.2em; }
.bm-section--green .bm-lead { color: #DDEAE6; }

/* ---------- Hero ---------- */
.bm-hero {
	background:
		radial-gradient(circle at 12% 20%, rgba(201,161,74,.16), transparent 42%),
		radial-gradient(circle at 88% 85%, rgba(15,91,78,.10), transparent 45%),
		var(--bm-cream);
	text-align: center; padding: clamp(56px, 9vw, 120px) 16px;
}
.bm-verse { font-family: "Amiri Quran", "Amiri", serif; color: var(--bm-green); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 2.2; margin: 0 0 .3em; }
.bm-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: var(--bm-green); line-height: 1.35; margin: 0 0 .45em; }
.bm-hero p.bm-hero__sub { color: var(--bm-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.9; max-width: 700px; margin: 0 auto 1.8em; }
.bm-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; list-style: none; padding: 0; margin: 2em 0 0; color: var(--bm-green); font-weight: 600; }
.bm-trust li::before { content: "✓"; color: var(--bm-gold-dark); margin-inline-end: .4em; font-weight: 800; }

/* ---------- Cards ---------- */
.bm-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.bm-card {
	background: #fff; border: 1px solid var(--bm-line); border-radius: var(--bm-radius);
	padding: 28px 24px; box-shadow: var(--bm-shadow); height: 100%;
}
.bm-card h3 { color: var(--bm-green); font-size: 1.3rem; margin: .2em 0 .5em; }
.bm-card p { color: var(--bm-muted); line-height: 1.85; margin: 0 0 1em; }
.bm-card p:last-child { margin-bottom: 0; }
.bm-icon {
	width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
	background: var(--bm-cream); color: var(--bm-green); font-size: 1.6rem; margin-bottom: 10px;
}
.bm-card--program { display: flex; flex-direction: column; }
.bm-card--program .bm-card__link { margin-top: auto; font-weight: 700; color: var(--bm-green); text-decoration: none; }
.bm-card--program .bm-card__link::after { content: " ←"; }

/* ---------- Steps ---------- */
.bm-steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.bm-steps li { counter-increment: s; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: var(--bm-radius); padding: 26px 22px; }
.bm-steps li::before {
	content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--bm-gold); color: #1B1B1B; font-weight: 800; font-size: 1.2rem; margin-bottom: 12px;
}
.bm-steps h3 { font-size: 1.2rem; margin: 0 0 .4em; }
.bm-steps p { margin: 0; color: #DDEAE6; line-height: 1.8; }

/* ---------- Pricing ---------- */
.bm-prices { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.bm-price {
	position: relative; background: #fff; border: 1px solid var(--bm-line); border-radius: 18px;
	padding: 32px 26px; text-align: center; display: flex; flex-direction: column; box-shadow: var(--bm-shadow);
}
.bm-price--featured { border: 2px solid var(--bm-gold); transform: translateY(-6px); }
.bm-price__badge {
	position: absolute; top: -14px; inset-inline: 0; margin: auto; width: max-content;
	background: var(--bm-gold); color: #1B1B1B; font-weight: 800; font-size: .9rem; padding: 4px 14px; border-radius: 999px;
}
.bm-price h3 { color: var(--bm-green); font-size: 1.35rem; margin: .2em 0; }
.bm-price__amount { font-size: 2.8rem; font-weight: 800; color: var(--bm-ink); line-height: 1.1; margin: .3em 0 0; }
.bm-price__amount small { font-size: 1rem; font-weight: 600; color: var(--bm-muted); }
.bm-price__meta { color: var(--bm-muted); margin: .3em 0 1.2em; }
.bm-price ul { list-style: none; padding: 0; margin: 0 0 1.6em; text-align: start; }
.bm-price li { padding: .45em 0; border-bottom: 1px dashed var(--bm-line); color: var(--bm-ink); }
.bm-price li::before { content: "✓"; color: var(--bm-green); font-weight: 800; margin-inline-end: .5em; }
.bm-price .bm-btn { margin-top: auto; width: 100%; }
.bm-note { text-align: center; color: var(--bm-muted); margin: 1.6em auto 0; max-width: 720px; line-height: 1.9; }

/* ---------- FAQ ---------- */
.bm-faq { max-width: 820px; margin: 0 auto; }
.bm-faq details {
	background: #fff; border: 1px solid var(--bm-line); border-radius: 12px; margin-bottom: 12px; padding: 0 20px;
}
.bm-faq summary {
	cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--bm-green); font-size: 1.08rem;
	display: flex; justify-content: space-between; gap: 12px;
}
.bm-faq summary::-webkit-details-marker { display: none; }
.bm-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--bm-gold-dark); }
.bm-faq details[open] summary::after { content: "−"; }
.bm-faq details p { margin: 0 0 18px; color: var(--bm-muted); line-height: 1.9; }

/* ---------- CTA band ---------- */
.bm-cta { text-align: center; }
.bm-cta h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin: 0 0 .4em; }
.bm-cta p { color: #DDEAE6; font-size: 1.1rem; margin: 0 0 1.6em; }

/* ---------- Content pages ---------- */
.bm-page { max-width: 860px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) 16px; line-height: 1.95; font-size: 1.08rem; }
.bm-page h2 { color: var(--bm-green); font-size: 1.45rem; margin: 1.6em 0 .5em; }
.bm-page h3 { color: var(--bm-green); font-size: 1.2rem; margin: 1.3em 0 .4em; }
.bm-page ul li { margin-bottom: .35em; }
.bm-page-hero { background: var(--bm-cream); text-align: center; padding: clamp(40px, 6vw, 72px) 16px; }
.bm-page-hero h1 { color: var(--bm-green); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 .3em; }
.bm-page-hero p { color: var(--bm-muted); font-size: 1.12rem; max-width: 680px; margin: 0 auto; line-height: 1.9; }
.bm-box { background: var(--bm-cream); border-inline-start: 4px solid var(--bm-gold); border-radius: 10px; padding: 18px 20px; margin: 1.4em 0; }

/* ---------- Trial form ---------- */
.bm-form { background: #fff; border: 1px solid var(--bm-line); border-radius: 18px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--bm-shadow); max-width: 820px; margin: 0 auto; }
.bm-form__grid { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bm-form p { margin: 0 0 16px; }
.bm-form label { display: block; font-weight: 700; color: var(--bm-green); margin-bottom: 6px; }
.bm-form label span { color: #B3261E; }
.bm-form input, .bm-form select, .bm-form textarea {
	width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #CFC7B4; border-radius: 10px;
	background: #fff; color: var(--bm-ink); min-height: 48px;
}
.bm-form input:focus, .bm-form select:focus, .bm-form textarea:focus { outline: 2px solid var(--bm-gold); border-color: var(--bm-gold); }
.bm-form input[dir="ltr"] { text-align: right; }
.bm-form__submit .bm-btn { width: 100%; font-size: 1.15rem; }
.bm-form__note { text-align: center; color: var(--bm-muted); font-size: .95rem; margin: 0 !important; }
.bm-form__error { background: #FCEDEB; color: #8A1C14; border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.bm-form:has(#bm-student option[value="adult"]:checked) .bm-age { display: none; }
.bm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Floating WhatsApp ---------- */
.bm-wa-float {
	position: fixed; bottom: 20px; left: 20px; z-index: 999; width: 58px; height: 58px; border-radius: 50%;
	background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2);
	transition: transform .2s;
}
.bm-wa-float:hover { transform: scale(1.07); }

/* ---------- Header / footer tweaks ---------- */
.site-header .header-button { font-weight: 700; }
.site-footer .footer-widget-area h2, .site-footer .widget-title { color: #fff; font-size: 1.1rem; }
.site-footer a { color: #E9DFC4; }
.site-footer a:hover { color: #fff; }
.bm-footer-links { list-style: none; padding: 0; margin: 0; line-height: 2.1; }

@media (max-width: 600px) {
	.bm-price--featured { transform: none; }
	.bm-actions .bm-btn { width: 100%; }
	.bm-wa-float { bottom: 14px; left: 14px; width: 54px; height: 54px; }
}

/* ---------- Fixes after first review ---------- */
.bm-hero .bm-trust { margin: 28px 0 0 !important; padding: 0 !important; }
.bm-price ul { padding: 0 !important; margin: 0 0 1.6em !important; }
.bm-prices + .bm-note { margin-top: 28px; }
.site-footer .footer-html, .site-footer .footer-html p { color: #DDEAE6; margin: 0; }
.bm-footer-links { padding: 0 !important; }

/* ---------- Mobile drawer ---------- */
#mobile-drawer .drawer-inner { background: #0B4339; }
#mobile-drawer .mobile-navigation ul li a,
#mobile-drawer .mobile-navigation ul li .drawer-nav-drop-wrap { color: #fff; }
#mobile-drawer .mobile-navigation ul li > a:hover,
#mobile-drawer .mobile-navigation ul li.current-menu-item > a { color: var(--bm-gold); }
#mobile-drawer .mobile-header-button-wrap .button { background: var(--bm-gold); color: #1B1B1B; border-radius: 10px; font-weight: 700; }
#mobile-drawer .drawer-toggle { color: #fff; }
