/* ==========================================================================
   Meezab Gate — base theme styles (brand tokens, fallback header/footer,
   blog/404 templates). Page layouts are built in Elementor.
   ========================================================================== */

:root {
	--mg-red: #B72226;
	--mg-red-dark: #8E1A1D;
	--mg-blue: #4651C2;
	--mg-blue-dark: #2E3690;
	--mg-cream: #F7F4EE;
	--mg-ink: #1F1F24;
	--mg-grey: #6B6B72;
	--mg-line: #E6E6EA;
	--mg-font: "Poppins", Arial, sans-serif;
	--mg-radius: 8px;
	--mg-radius-lg: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--mg-cream);
	color: var(--mg-ink);
	font-family: var(--mg-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--mg-blue); }
a:hover { color: var(--mg-blue-dark); }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.mg-skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	z-index: 100000;
	top: 8px;
	left: 8px;
	padding: 10px 16px;
	background: #FFFFFF;
	color: var(--mg-ink);
	border-radius: var(--mg-radius);
}

.mg-container {
	width: 100%;
	max-width: 1288px;
	margin: 0 auto;
	padding: 0 24px;
}

.mg-kicker {
	display: inline-block;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--mg-red);
}

/* Buttons used by fallback templates */
.mg-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 22px;
	border: 1.5px solid var(--mg-red);
	border-radius: var(--mg-radius);
	background: var(--mg-red);
	color: #FFFFFF;
	font: 500 15px var(--mg-font);
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mg-button:hover { background: var(--mg-red-dark); border-color: var(--mg-red-dark); color: #FFFFFF; }
.mg-button--outline { background: #FFFFFF; border-color: var(--mg-blue); color: var(--mg-blue); }
.mg-button--outline:hover { background: var(--mg-blue); border-color: var(--mg-blue); color: #FFFFFF; }

/* Fallback header & footer (only shown without an Elementor template) */
.mg-fallback-header { padding: 28px 0 0; }
.mg-fallback-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mg-fallback-header__logo { display: block; width: 150px; height: auto; }
.mg-fallback-footer { padding: 40px 0 48px; font-size: 13px; color: var(--mg-grey); }
.mg-fallback-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mg-fallback-footer img { display: block; width: 124px; height: auto; }

/* Elementor header helpers (classes used in the imported header template) */
.mg-header-divider { width: 1px; height: 36px; background: #D9D6CF; }
.mg-btn-outline .elementor-button { transition: background .2s ease, color .2s ease; }
.mg-btn-icon .elementor-button { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0 !important; border-radius: 50% !important; }
.mg-btn-icon .elementor-button-content-wrapper { display: flex; align-items: center; justify-content: center; }
.mg-btn-icon .elementor-button .elementor-button-text { display: none; }
.mg-btn-icon .elementor-button-icon { margin: 0 !important; font-size: 20px; }

/* Hero card */
.mg-hero-card { position: relative; overflow: hidden; }
.mg-hero-section { overflow: hidden; }

/* Plain templates (blog, pages not built with Elementor, 404) */
.mg-content-area { padding-top: 64px; padding-bottom: 80px; }
.mg-page-title { margin: 0 0 24px; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
.mg-entry { max-width: 760px; }
.mg-entry > * + * { margin-top: 1em; }
.mg-featured { margin-bottom: 32px; border-radius: var(--mg-radius-lg); overflow: hidden; }
.mg-post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.mg-post-card { background: #FFFFFF; border: 1.5px solid #ECE9E2; border-radius: var(--mg-radius-lg); overflow: hidden; }
.mg-post-card__thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mg-post-card__body { padding: 24px; }
.mg-post-card__title { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.mg-post-card__title a { color: var(--mg-ink); text-decoration: none; }
.mg-post-card__excerpt { color: var(--mg-grey); font-size: 15px; }
.mg-404 { text-align: center; max-width: 720px; }
.mg-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.nav-links { display: flex; gap: 8px; margin-top: 40px; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: var(--mg-radius); background: #FFFFFF; text-decoration: none; }
.nav-links .current { background: var(--mg-red); color: #FFFFFF; }

/* Floating WhatsApp (theme setting) */
.mg-float-wa {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 999;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25D366;
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35);
	transition: transform .2s ease;
}
.mg-float-wa:hover { color: #FFFFFF; transform: scale(1.06); }
