/*
Theme Name:  Astra Child
Theme URI:   https://wpastra.com/
Description: Astra child theme — with a fully custom-coded header and footer. The parent Astra theme’s content design and layout remain completely safe, while your custom styles are always applied correctly.
Author:      Astra Child
Author URI:  https://wpastra.com/
Template:    astra
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* =====================================================================
   ASTRA CHILD — CUSTOM HEADER & FOOTER STYLES
   ---------------------------------------------------------------------
   * Saari custom classes me "cst-" prefix hai, isliye ye styles
     Astra parent ke content/layout ko bilkul touch nahi karti.
   * Colors / sizes badalne ke liye neeche ":root" section dekho.
   * AAPNI extra styles "custom.css" me likho — wo file sabse
     last me load hoti hai, isliye wahan ki styles sabse strong hoti hain.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1) DESIGN TOKENS — colors / sizes yahan se badlo
   --------------------------------------------------------------------- */
:root {
	--cst-primary:        #2563eb;   /* brand color (buttons, links) */
	--cst-primary-dark:   #1d4ed8;
	--cst-header-bg:      #ffffff;   /* header background */
	--cst-header-text:    #0f172a;   /* header text color */
	--cst-header-muted:   #64748b;   /* tagline color */
	--cst-header-height:  76px;
	--cst-header-border:  rgba(15, 23, 42, 0.08);
	--cst-footer-bg:      #0f172a;   /* footer background */
	--cst-footer-text:    #cbd5e1;
	--cst-footer-muted:   #94a3b8;
	--cst-footer-heading: #ffffff;
	--cst-footer-border:  rgba(255, 255, 255, 0.12);
	--cst-footer-accent:  #60a5fa;   /* footer icons accent */
	--cst-container:      1200px;    /* header/footer ki max width */
}

.cst-header,
.cst-header *,
.cst-footer,
.cst-footer * {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------------
   2) CUSTOM HEADER
   --------------------------------------------------------------------- */
.cst-header {
	position: sticky;
	top: 0;
	z-index: 9999;
	background: var(--cst-header-bg);
	border-bottom: 1px solid var(--cst-header-border);
	transition: box-shadow 0.25s ease;
}

/* WP admin bar ho to offset */
body.admin-bar .cst-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .cst-header { top: 46px; }
}

/* Scroll karne pe soft shadow (class JS lagata hai) */
.cst-header.cst-scrolled {
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
}

.cst-container {
	width: 100%;
	max-width: var(--cst-container);
	margin: 0 auto;
	padding: 0 24px;
}

.cst-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--cst-header-height);
}

/* --- Branding: logo ya site title --- */
.cst-branding {
	display: flex;
	flex-direction: column;
}
.cst-header .custom-logo {
	height: 48px;
	width: auto;
}
.cst-site-title {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--cst-header-text);
	text-decoration: none;
}
.cst-site-tagline {
	margin: 0;
	font-size: 0.72rem;
	color: var(--cst-header-muted);
}

/* --- Primary nav menu --- */
.cst-nav {
	display: flex;
	align-items: center;
	margin-left: auto;
}
.cst-menu,
.cst-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.cst-menu {
	display: flex;
	align-items: center;
	gap: 2px;
}
.cst-menu li {
	position: relative;
}
.cst-menu > li > a {
	display: block;
	padding: 10px 14px;
	border-radius: 8px;
	color: var(--cst-header-text);
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease;
}
.cst-menu > li > a:hover,
.cst-menu > li > a:focus-visible {
	color: var(--cst-primary);
	background: rgba(37, 99, 235, 0.06);
}
.cst-menu > .current-menu-item > a,
.cst-menu > .current_page_item > a {
	color: var(--cst-primary);
}

/* Dropdown (2nd level) */
.cst-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 220px;
	padding: 8px;
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.06);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.cst-menu li:hover > .sub-menu,
.cst-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(4px);
}
.cst-menu .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--cst-header-text);
	font-size: 0.9rem;
	text-decoration: none;
}
.cst-menu .sub-menu a:hover,
.cst-menu .sub-menu a:focus-visible {
	color: var(--cst-primary);
	background: rgba(37, 99, 235, 0.06);
}

/* --- Header actions: CTA button + hamburger --- */
.cst-header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}
.cst-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.cst-btn-primary {
	background: var(--cst-primary);
	color: #ffffff;
}
.cst-btn-primary:hover,
.cst-btn-primary:focus-visible {
	background: var(--cst-primary-dark);
	color: #ffffff;
	transform: translateY(-1px);
}

.cst-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 1px solid var(--cst-header-border);
	border-radius: 10px;
	background: transparent;
	cursor: pointer;
	line-height: 1;
}
.cst-nav-toggle .cst-burger {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 20px;
}
.cst-nav-toggle .cst-burger span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--cst-header-text);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
}
.cst-nav-toggle.cst-active .cst-burger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.cst-nav-toggle.cst-active .cst-burger span:nth-child(2) {
	opacity: 0;
}
.cst-nav-toggle.cst-active .cst-burger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------------------
   3) CUSTOM FOOTER
   --------------------------------------------------------------------- */
.cst-footer {
	background: var(--cst-footer-bg);
	color: var(--cst-footer-text);
	font-size: 0.95rem;
	
}
.cst-footer .custom-logo {
	height: 40px;
	width: auto;
}

.cst-footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 40px;
	padding: 64px 0 48px;
}

.cst-footer-title {
	margin: 0 0 18px;
	color: var(--cst-footer-heading);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.cst-footer-logo {
	display: inline-block;
	margin-bottom: 14px;
	color: #ffffff;
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
}
.cst-footer-desc {
	margin: 0 0 20px;
	max-width: 300px;
	line-height: 1.7;
	color: var(--cst-footer-muted);
}

.cst-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.cst-footer-menu li {
	margin-bottom: 10px;
}
.cst-footer-menu a {
	color: var(--cst-footer-text);
	text-decoration: none;
	transition: color 0.2s ease;
}
.cst-footer-menu a:hover,
.cst-footer-menu a:focus-visible,
.cst-contact-list a:hover,
.cst-contact-list a:focus-visible {
	color: #ffffff;
}

/* Contact column */
.cst-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.cst-contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
}
.cst-contact-list a {
	color: var(--cst-footer-text);
	text-decoration: none;
}
.cst-contact-list svg {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	color: var(--cst-footer-accent);
}

/* Social icons */
.cst-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.cst-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--cst-footer-text);
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.cst-social a:hover,
.cst-social a:focus-visible {
	background: var(--cst-primary);
	color: #ffffff;
	transform: translateY(-2px);
}
.cst-social svg {
	width: 18px;
	height: 18px;
}

/* Bottom bar */
.cst-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 20px 0;
	border-top: 1px solid var(--cst-footer-border);
	font-size: 0.875rem;
	color: var(--cst-footer-muted);
}
.cst-copyright {
	margin: 0;
}
.cst-top-link {
	color: var(--cst-footer-muted);
	font-weight: 600;
	text-decoration: none;
}
.cst-top-link:hover,
.cst-top-link:focus-visible {
	color: #ffffff;
}

/* ---------------------------------------------------------------------
   4) ACCESSIBILITY
   --------------------------------------------------------------------- */
.cst-header a:focus-visible,
.cst-footer a:focus-visible,
.cst-nav-toggle:focus-visible {
	outline: 2px solid var(--cst-primary);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   5) RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 920px) {

	/* Mobile: CTA chhupa do (dikhana ho to ye rule hata do) */
	.cst-header-actions .cst-btn {
		display: none;
	}
	.cst-nav-toggle {
		display: inline-flex;
	}

	/* Mobile: menu header ke neeche slide-down hota hai */
	.cst-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		background: var(--cst-header-bg);
		border-bottom: 1px solid var(--cst-header-border);
		box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
		padding: 12px 24px 20px;
	}
	.cst-nav.cst-open {
		display: block;
	}
	.cst-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}
	.cst-menu > li > a {
		padding: 12px 10px;
		font-size: 1rem;
	}
	.cst-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		box-shadow: none;
		padding: 0 0 0 14px;
		min-width: 0;
	}

	.cst-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 36px;
		padding: 48px 0 36px;
	}
}

@media (max-width: 600px) {
	.cst-footer-grid {
		grid-template-columns: 1fr;
	}
	.cst-footer-bottom {
		flex-direction: column;
		text-align: center;
	}
	.cst-site-tagline {
		display: none;
	}
}











