/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/

:root {
	--mw-red: #A5231B;
	--mw-red-dark: #8A1C15;
	--mw-blue: #3F6CB0;
	--mw-light: #F6F8FB;
}

/* Astra ke global button styles ko header/drawer mein neutralise karna */
.mw-btn-reset,
.mw-btn-reset:focus {
	background: transparent;
	border: 0;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	line-height: 1;
}
.mw-btn-reset:hover {
	background: transparent;
	color: var(--mw-red);
}

/* Black nav bar items */
.mw-nav-btn {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: 1rem 1.25rem;
	background: transparent;
	color: #fff;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.25;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
}
.mw-nav-btn:hover,
.mw-nav-btn:focus,
.mw-nav-btn.is-open {
	background: var(--mw-red);
	color: #fff;
}

/* Chevron rotate */
.mw-chev { transition: transform .2s ease; }
.mw-nav-btn.is-open .mw-chev,
.mw-acc[aria-expanded="true"] .mw-chev { transform: rotate(180deg); }

/* Search box */
.mw-search {
	display: flex;
	width: 100%;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: .375rem;
	overflow: hidden;
}
.mw-search:focus-within { border-color: var(--mw-blue); }
.mw-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: 0;
	background: #fff;
	color: #222;
	padding: .7rem 1rem;
	font-size: 1rem;
}
.mw-search button {
	background: var(--mw-red);
	color: #fff;
	border: 0;
	border-radius: 0;
	padding: 0 1rem;
	cursor: pointer;
}
.mw-search button:hover { background: var(--mw-red-dark); color: #fff; }

/* Mobile drawer scroll lock */
body.mw-lock { overflow: hidden; }

/* Logged-in admin bar ke saath sticky header */
.admin-bar .mw-header { top: 32px; }
.admin-bar .mw-drawer { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .mw-header,
	.admin-bar .mw-drawer { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .mw-header,
	.admin-bar .mw-drawer { top: 0; }
}



/* ---------- Home page: full width ---------- */
body.mw-home .ast-container {
	max-width: 100% !important;
	padding: 0 !important;
	display: block !important;
}

/* ---------- Hero animations ---------- */
.mw-rotator {
	display: inline-block;
	height: 1.2em;
	line-height: 1.2em;
	overflow: hidden;
	vertical-align: top;
}
.mw-rotator-track {
	display: flex;
	flex-direction: column;
	animation: mw-rotate 12s cubic-bezier(.77, 0, .18, 1) infinite;
}
.mw-rotator-track > span {
	display: block;
	height: 1.2em;
	line-height: 1.2em;
	white-space: nowrap;
}
@keyframes mw-rotate {
	0%, 20%   { transform: translateY(0); }
	25%, 45%  { transform: translateY(-1.2em); }
	50%, 70%  { transform: translateY(-2.4em); }
	75%, 95%  { transform: translateY(-3.6em); }
	100%      { transform: translateY(-4.8em); }
}

.mw-reveal {
	opacity: 0;
	transform: translateY(24px);
	animation: mw-fade-up .8s cubic-bezier(.2, .7, .2, 1) forwards;
	animation-delay: var(--d, 0s);
}
@keyframes mw-fade-up {
	to { opacity: 1; transform: none; }
}

.mw-img-in {
	opacity: 0;
	transform: translateX(40px) scale(.96);
	animation: mw-img-in 1s .3s cubic-bezier(.2, .7, .2, 1) forwards;
}
@keyframes mw-img-in {
	to { opacity: 1; transform: none; }
}

.mw-float { animation: mw-float 6s ease-in-out infinite; }
.mw-float-slow { animation: mw-float 9s ease-in-out infinite; }
.mw-float-delay { animation-delay: -3s; }
@keyframes mw-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-14px); }
}

.mw-spin-slow { animation: mw-spin 30s linear infinite; }
@keyframes mw-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.mw-reveal, .mw-img-in { animation: none; opacity: 1; transform: none; }
	.mw-float, .mw-float-slow, .mw-spin-slow, .mw-rotator-track { animation: none; }
}


/* ---------- Carousel helpers ---------- */
.mw-no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.mw-no-scrollbar::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
	.mw-fade-edges {
		-webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
		mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
	}
}

.mw-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 9999px;
	background: #fff;
	color: #111;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.mw-arrow:hover,
.mw-arrow:focus {
	background: var(--mw-red);
	border-color: var(--mw-red);
	color: #fff;
}

/* ---------- Scroll reveal ---------- */
.mw-js [data-mw-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--d, 0s);
}
.mw-js [data-mw-reveal].is-in {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.mw-js [data-mw-reveal] { opacity: 1; transform: none; transition: none; }
}


/* ---------- Container width (sab sections, header, footer) ---------- */
:root { --mw-container: 1460px; }

html body .max-w-screen-xl {
	max-width: var(--mw-container);
	padding-left: clamp(1rem, 2.5vw, 2rem);
	padding-right: clamp(1rem, 2.5vw, 2rem);
}

/* ---------- Newsletter form ---------- */
input.mw-sub-input[type="email"] {
	flex: 1;
	min-width: 0;
	height: 56px;
	padding: 0 1.25rem;
	background: #fff;
	color: #222;
	border: 1px solid #d9dee7;
	border-radius: .75rem;
	box-shadow: none;
	font-size: 1rem;
	outline: 0;
}
input.mw-sub-input[type="email"]:focus {
	border-color: var(--mw-blue);
	box-shadow: 0 0 0 3px rgba(63, 108, 176, .18);
}
button.mw-sub-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	height: 56px;
	padding: 0 1.75rem;
	background: var(--mw-red);
	color: #fff;
	border: 0;
	border-radius: .75rem;
	font-size: 1rem;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background .2s, transform .2s;
}
button.mw-sub-btn:hover,
button.mw-sub-btn:focus {
	background: var(--mw-red-dark);
	color: #fff;
}
button.mw-sub-btn:active { transform: scale(.98); }

/* ---------- Mega menu panel animation ---------- */
.mw-panel { animation: mw-panel-in .18s ease-out; }
@keyframes mw-panel-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

/* ---------- Fonts: Quicksand (headings), Inter (body), Exo 2 (menu + buttons) ---------- */
:root {
	--mw-font-heading: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mw-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mw-font-accent: 'Exo 2', 'Inter', system-ui, sans-serif;
}

/* Body text */
html body,
html body button,
html body input,
html body select,
html body textarea,
html body .woocommerce,
html body .woocommerce-page,
html body .elementor-widget,
html body .ast-button {
	font-family: var(--mw-font-body) !important;
}
html body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Headings */
html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6,
html body .entry-title,
html body .page-title,
html body .product_title,
html body .widget-title,
html body .woocommerce-loop-product__title,
html body .woocommerce-loop-category__title,
html body .woocommerce-products-header__title,
html body .elementor-heading-title {
	font-family: var(--mw-font-heading) !important;
}

/* Menu + buttons (ye rule last mein rehna chahiye) */
html body .mw-nav-btn,
html body button,
html body .button,
html body .ast-button,
html body input[type="submit"],
html body input[type="button"],
html body .woocommerce a.button,
html body .woocommerce button.button,
html body .woocommerce #respond input#submit,
html body .single_add_to_cart_button,
html body .add_to_cart_button,
html body .checkout-button,
html body .elementor-button {
	font-family: var(--mw-font-accent) !important;
}


/* ---------- Contact Form 7 ---------- */
.mw-cf-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.1rem;
}
@media (min-width: 640px) {
	.mw-cf-grid { grid-template-columns: 1fr 1fr; }
	.mw-cf-full { grid-column: 1 / -1; }
}
.mw-cf-grid label {
	display: block;
	margin-bottom: .4rem;
	font-size: .875rem;
	font-weight: 600;
	color: #1f2937;
}
.wpcf7 .wpcf7-form-control-wrap { display: block; }

.wpcf7 input.mw-field,
.wpcf7 textarea.mw-field {
	width: 100%;
	max-width: 100%;
	background: #fff;
	color: #222;
	border: 1px solid #d9dee7;
	border-radius: .75rem;
	padding: .85rem 1rem;
	font-size: 1rem;
	box-shadow: none;
	outline: 0;
	transition: border-color .2s, box-shadow .2s;
}
.wpcf7 input.mw-field { height: 54px; }
.wpcf7 textarea.mw-field { min-height: 150px; resize: vertical; }
.wpcf7 .mw-field:focus {
	border-color: var(--mw-blue);
	box-shadow: 0 0 0 3px rgba(63, 108, 176, .18);
}

.wpcf7 input.mw-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	padding: 0 2.25rem;
	background: var(--mw-red);
	color: #fff;
	border: 0;
	border-radius: 9999px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 10px 20px -8px rgba(165, 35, 27, .5);
	transition: background .2s, transform .2s;
}
.wpcf7 input.mw-submit:hover,
.wpcf7 input.mw-submit:focus {
	background: var(--mw-red-dark);
	color: #fff;
}
.wpcf7 input.mw-submit:active { transform: scale(.98); }
@media (max-width: 639px) {
	.wpcf7 input.mw-submit { width: 100%; }
}

.wpcf7 .wpcf7-not-valid-tip {
	margin-top: .3rem;
	font-size: .8rem;
	color: var(--mw-red);
}
.wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: .8rem 1rem;
	border-width: 1px;
	border-radius: .75rem;
	font-size: .9rem;
}
.wpcf7 form.sent .wpcf7-response-output {
	border-color: #16a34a;
	background: #f0fdf4;
	color: #166534;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	border-color: var(--mw-red);
	background: #fef2f2;
	color: var(--mw-red);
}