/* =========================================================
   Typingo Core — Header & Footer
   Har rule ".slk-header ..." se shuru hai taake theme ki CSS (jaise button styles) isay na badal sake.
   ========================================================= */

/* ================= HEADER ================= */
.slk-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 999;
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s ease, border-color .25s ease;
}
.slk-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, .08); border-bottom-color: var(--slk-border); }

.slk-header .slk-header__in {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 76px;
}
.slk-header .slk-header__logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.slk-header .slk-header__logo-text {
	font-size: 25px;
	font-weight: 700;
	color: var(--slk-primary);
	letter-spacing: -.02em;
	text-transform: none;
	line-height: 1;
	white-space: nowrap;
}

.slk-header .slk-header__panel {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.slk-header .slk-header__nav { flex: 1 1 auto; display: flex; justify-content: center; }
.slk-header .slk-header__hint { font-size: 13px; color: var(--slk-muted); border: 1px dashed var(--slk-muted); padding: 4px 10px; border-radius: 6px; }

/* Menu */
.slk-header .slk-menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.slk-header .slk-menu li { position: relative; margin: 0; padding: 0; list-style: none; }
.slk-header .slk-menu a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--slk-heading);
	border-radius: 8px;
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s, background-color .2s;
}
/* White header: hover / active = royal blue text + green underline */
.slk-header .slk-menu > li > a { position: relative; }
.slk-header .slk-menu > li > a:hover,
.slk-header .slk-menu > li.current-menu-item > a,
.slk-header .slk-menu > li.current-menu-ancestor > a { background: transparent; color: var(--slk-primary); }
.slk-header:not(.slk-header--dark) .slk-menu > li.current-menu-item > a::before,
.slk-header:not(.slk-header--dark) .slk-menu > li.current-menu-ancestor > a::before {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 2px;
	height: 2px;
	border-radius: 2px;
	background: var(--slk-accent);
}

/* Neeche wala chhota teer (sub menu wale items par) */
.slk-header .slk-menu .menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	margin-left: 2px;
}

/* Dropdown (desktop) */
.slk-header .slk-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	padding: 8px;
	margin: 0;
	background: var(--slk-white);
	border: 1px solid var(--slk-border);
	border-radius: 14px;
	box-shadow: var(--slk-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 10;
}
.slk-header .slk-menu .sub-menu .sub-menu { top: -8px; left: 100%; }
.slk-header .slk-menu li:hover > .sub-menu,
.slk-header .slk-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.slk-header .slk-menu .sub-menu a { padding: 10px 12px; font-size: 14px; }
.slk-header .slk-menu .sub-menu a:hover { background: var(--slk-soft); }
.slk-header .slk-menu .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); margin-left: auto; }

/* Desktop par yeh dono buttons kabhi nahi dikhte */
.slk-header button.slk-sub-toggle,
.slk-header button.slk-header__toggle { display: none; }

.slk-header .slk-header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.slk-header .slk-btn { min-height: 44px; padding: 10px 20px; font-size: 14px; }

/* Hamburger button (sirf mobile/tablet) */
.slk-header button.slk-header__toggle {
	margin: 0 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	min-height: 0;
	padding: 0;
	border: 1px solid var(--slk-border);
	border-radius: 12px;
	background: var(--slk-white);
	color: var(--slk-primary);
	box-shadow: none;
	cursor: pointer;
	line-height: 1;
}
.slk-header .slk-header__toggle .slk-icon { width: 22px; height: 22px; }
.slk-header .slk-header__toggle-open,
.slk-header .slk-header__toggle-close { display: inline-flex; }
.slk-header .slk-header__toggle-close { display: none; }
.slk-header.is-open .slk-header__toggle-open { display: none; }
.slk-header.is-open .slk-header__toggle-close { display: inline-flex; }

/* ---- Laptop (chhoti screen): menu thora compact ---- */
@media (max-width: 1366px) {
	.slk-header .slk-header__in { gap: 18px; min-height: 70px; }
	.slk-header .slk-menu a { padding: 9px 10px; font-size: 14.5px; }
	.slk-header .slk-btn { min-height: 42px; padding: 9px 16px; font-size: 13.5px; }
	.slk-header .slk-header__logo-text { font-size: 23px; }
}

/* ---- Tablet + Mobile: hamburger menu ---- */
@media (max-width: 1180px) {
	.slk-header .slk-header__in { min-height: 66px; flex-wrap: wrap; }
	.slk-header button.slk-header__toggle { display: inline-flex; }

	.slk-header .slk-header__panel {
		display: none;
		flex: 1 1 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 8px 0 20px;
		max-height: calc(100vh - 80px);
		overflow-y: auto;
	}
	.slk-header.is-open .slk-header__panel { display: flex; }

	.slk-header .slk-header__nav { justify-content: flex-start; }
	.slk-header .slk-menu { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
	.slk-header .slk-menu li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--slk-border); }
	.slk-header .slk-menu a { flex: 1 1 auto; padding: 14px 4px; border-radius: 0; font-size: 16px; }
	.slk-header .slk-menu > li > a:hover { background: transparent; }
	.slk-header .slk-menu > li.current-menu-item > a::before,
	.slk-header .slk-menu > li.current-menu-ancestor > a::before { display: none; }
	.slk-header .slk-menu .menu-item-has-children > a::after { display: none; }

	.slk-header .slk-menu .sub-menu,
	.slk-header .slk-menu .sub-menu .sub-menu {
		position: static;
		flex: 1 1 100%;
		display: none;
		min-width: 0;
		padding: 0 0 8px 14px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: transparent;
	}
	.slk-header .slk-menu li.is-sub-open > .sub-menu { display: block; }
	.slk-header .slk-menu .sub-menu li { border-bottom: 0; }
	.slk-header .slk-menu .sub-menu a { padding: 10px 4px; }

	.slk-header button.slk-sub-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		min-height: 0;
		border: 0;
		background: transparent;
		color: var(--slk-primary);
		box-shadow: none;
		cursor: pointer;
		padding: 0;
	}
	.slk-header .slk-sub-toggle .slk-icon { width: 20px; height: 20px; transition: transform .2s; }
	.slk-header li.is-sub-open > .slk-sub-toggle .slk-icon { transform: rotate(180deg); }

	.slk-header .slk-header__actions { flex-direction: column; align-items: stretch; }
	.slk-header .slk-header__actions .slk-btn { width: 100%; min-height: 48px; font-size: 15px; }
}
@media (max-width: 480px) {
	.slk-header .slk-header__logo-text { font-size: 21px; }
	.slk-header .slk-header__logo img { max-width: 150px; }
}
/* Logo text ke saath infinity nishan */
.slk-header__logo-text,
.slk-footer__logo-text { display: inline-flex; align-items: center; gap: 10px; }
.slk-logo-mark { width: 1.25em; height: 1.25em; color: var(--slk-accent); stroke-width: 2.6; }
.slk-header:not(.slk-header--dark) .slk-logo-mark { color: var(--slk-accent-2); }
/* "Typingo" ka aakhri "o" green (palette jaisa) */
.slk-logo-accent { color: var(--slk-accent); }
.slk-header:not(.slk-header--dark) .slk-logo-accent { color: var(--slk-accent-2); }

/* ---- Dark blue header (Header tab → "Dark blue header") ---- */
.slk-header--dark {
	background: rgba(30, 58, 138, .97);
	background: color-mix(in srgb, var(--slk-primary) 97%, transparent);
	border-bottom-color: rgba(255, 255, 255, .10);
}
.slk-header--dark.is-scrolled { border-bottom-color: rgba(255, 255, 255, .10); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.slk-header--dark .slk-header__logo-text { color: var(--slk-white); font-family: var(--slk-font-head); font-weight: 600; }
.slk-header--dark .slk-menu a { color: rgba(255, 255, 255, .82); }
.slk-header--dark .slk-menu > li > a:hover,
.slk-header--dark .slk-menu > li.current-menu-item > a,
.slk-header--dark .slk-menu > li.current-menu-ancestor > a { background: transparent; color: var(--slk-white); }
/* Active page ke neeche chhota lime dot */
.slk-header--dark .slk-menu > li.current-menu-item > a::before,
.slk-header--dark .slk-menu > li.current-menu-ancestor > a::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 2px;
	width: 5px;
	height: 5px;
	margin-left: -2.5px;
	border-radius: 50%;
	background: var(--slk-accent);
}
.slk-header--dark .slk-menu > li > a { position: relative; }
.slk-header--dark .slk-menu .sub-menu { background: var(--slk-primary-2); border-color: rgba(255, 255, 255, .1); }
.slk-header--dark .slk-menu .sub-menu a:hover { background: rgba(255, 255, 255, .06); color: var(--slk-accent); }
/* "Contact Us Now" outline button (dark header par white outline) */
.slk-header.slk-header--dark .slk-btn--outline { background: transparent; color: var(--slk-white); border-color: rgba(255, 255, 255, .55); }
.slk-header.slk-header--dark .slk-btn--outline:hover { background: var(--slk-white); color: var(--slk-primary); border-color: var(--slk-white); }
.slk-header.slk-header--dark button.slk-header__toggle { background: transparent; color: var(--slk-white); border-color: rgba(255, 255, 255, .25); }
.slk-header--dark .slk-header__hint { color: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .4); }
@media (max-width: 1180px) {
	.slk-header--dark .slk-menu li { border-bottom-color: rgba(255, 255, 255, .1); }
	.slk-header--dark .slk-menu .sub-menu { background: transparent; }
	.slk-header.slk-header--dark button.slk-sub-toggle { color: var(--slk-white); }
	.slk-header--dark .slk-menu > li.current-menu-item > a::before { display: none; }
}

/* ================= FOOTER ================= */
.slk-footer {
	position: relative;
	overflow: hidden;
	background: var(--slk-primary);
	color: rgba(255, 255, 255, .78);
	padding-top: clamp(56px, 7vw, 90px);
	font-size: 15px;
}

/* CTA patti */
.slk-footer__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(24px, 4vw, 40px);
	margin-bottom: clamp(48px, 6vw, 72px);
	background: var(--slk-accent-soft);
	color: var(--slk-heading);
	border-radius: var(--slk-radius-lg);
}
/* CTA band: green tint + dark text + green button (palette) */
.slk-footer .slk-footer__cta-title { font-size: clamp(22px, 3vw, 34px); font-weight: 700; line-height: 1.15; color: var(--slk-heading); }
.slk-footer .slk-footer__cta-text { margin-top: 6px; color: var(--slk-accent-ink); }

.slk-footer__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: clamp(28px, 4vw, 56px);
	padding-bottom: clamp(36px, 5vw, 56px);
}
.slk-footer__logo { display: inline-flex; margin-bottom: 18px; }
.slk-footer__logo-text { font-size: 28px; font-weight: 700; color: var(--slk-white); letter-spacing: -.02em; }
.slk-footer .slk-footer__about { max-width: 340px; margin-bottom: 22px; }
.slk-footer .slk-footer__product { margin: -8px 0 22px; font-weight: 700; color: var(--slk-white); }
.slk-footer .slk-footer__product a { color: var(--slk-accent); }
.slk-footer .slk-footer__product a:hover { text-decoration: underline; }

.slk-footer__social { display: flex; flex-wrap: wrap; gap: 10px; }
.slk-footer__social a {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: var(--slk-white);
	transition: background-color .2s, color .2s;
}
.slk-footer__social a:hover { background: var(--slk-accent); color: var(--slk-heading); }
.slk-footer__social .slk-icon { width: 18px; height: 18px; }

.slk-footer .slk-footer__title { font-size: 16px; font-weight: 700; color: var(--slk-white); margin-bottom: 18px; }
.slk-footer__menu { display: grid; gap: 10px; }
.slk-footer__menu a,
.slk-footer__contact a { transition: color .2s; }
.slk-footer__menu a:hover,
.slk-footer__contact a:hover { color: var(--slk-accent); }

.slk-footer__contact ul { display: grid; gap: 14px; }
.slk-footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.slk-footer__contact .slk-icon { width: 18px; height: 18px; margin-top: 3px; color: var(--slk-accent); }

.slk-footer__bottom {
	position: relative;
	z-index: 1;
	padding-top: 22px;
	padding-bottom: 22px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 14px;
	color: rgba(255, 255, 255, .6);
}

/* Bara watermark text */
.slk-footer__watermark {
	font-size: clamp(64px, 17vw, 260px);
	font-weight: 800;
	line-height: .8;
	letter-spacing: -.04em;
	text-align: center;
	white-space: nowrap;
	color: rgba(255, 255, 255, .05);
	user-select: none;
	pointer-events: none;
	margin-bottom: -.12em;
}

@media (max-width: 1024px) {
	.slk-footer__grid { grid-template-columns: 1fr 1fr; }
	.slk-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
	.slk-footer__cta { flex-direction: column; align-items: flex-start; }
	.slk-footer__grid { grid-template-columns: 1fr; }
}
