/* =========================================================
   SMT Jobs — site chrome (header / footer / mobile menu / modal)
   Extracted from ssmtkalyani.com HOME.html, namespaced with smt-.
   ========================================================= */

:root {
	--smt-ink: #0A2A2E;
	--smt-ink-soft: #3F5A5C;
	--smt-teal: #0F766E;
	--smt-teal-dark: #0B5A54;
	--smt-teal-deep: #073937;
	--smt-coral: #F2603B;
	--smt-mint: #E9F4F1;
	--smt-mint-2: #F4FAF8;
	--smt-paper: #FFFFFF;
	--smt-line: #D8E6E2;
	--smt-line-soft: #EAF2EF;
	--smt-radius: 18px;
	--smt-radius-sm: 12px;
	--smt-shadow-sm: 0 1px 2px rgba(10,42,46,.06), 0 2px 8px rgba(10,42,46,.05);
	--smt-shadow-md: 0 10px 30px rgba(10,42,46,.10);
	--smt-shadow-lg: 0 24px 60px rgba(10,42,46,.16);
	--smt-font-display: "Bricolage Grotesque", system-ui, sans-serif;
	--smt-font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- base (only on our full-shell job pages) ---------- */
.smt-body {
	margin: 0;
	font-family: var(--smt-font-body);
	color: var(--smt-ink);
	background: var(--smt-paper);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
.smt-body *, .smt-body *::before, .smt-body *::after { box-sizing: border-box; }
.smt-body img, .smt-body svg { max-width: 100%; display: block; }
.smt-body a { text-decoration: none; color: inherit; }
.smt-body h1, .smt-body h2, .smt-body h3, .smt-body h4 {
	font-family: var(--smt-font-display);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
	margin: 0;
}

.smt-shell {
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 40px);
}

/* buttons (shared with content/form) */
.smt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	font-family: var(--smt-font-body);
	font-weight: 600;
	font-size: .95rem;
	line-height: 1;
	padding: .85em 1.5em;
	border-radius: 999px;
	border: 1.5px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.smt-btn-primary {
	background: var(--smt-coral);
	color: #fff;
	box-shadow: 0 8px 22px rgba(242,96,59,.34);
}
.smt-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(242,96,59,.42);
	color: #fff;
}
.smt-btn-lg { font-size: 1.02rem; padding: 1em 1.9em; }
.smt-btn-block { width: 100%; }

/* ---------- topbar ---------- */
.smt-topbar { background: var(--smt-teal-deep); color: #cfeae5; font-size: .82rem; }
.smt-topbar .smt-shell {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 40px;
	flex-wrap: wrap;
}
.smt-topbar a { display: inline-flex; align-items: center; gap: 7px; color: #dff1ed; transition: color .15s; }
.smt-topbar a:hover { color: #fff; }
.smt-tb-left { display: flex; gap: 20px; flex-wrap: wrap; }
.smt-tb-right { display: flex; gap: 18px; align-items: center; }
.smt-badge {
	display: inline-flex; align-items: center; gap: 7px;
	background: rgba(255,255,255,.10); padding: 3px 11px; border-radius: 999px; font-weight: 500;
}
.smt-topbar svg { width: 14px; height: 14px; flex: 0 0 auto; opacity: .9; }

/* ---------- header / nav ---------- */
.smt-site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.97);
	border-bottom: 1px solid var(--smt-line-soft);
	transition: box-shadow .2s;
}
.smt-site-header.scrolled { box-shadow: var(--smt-shadow-sm); }
.smt-nav {
	display: flex; align-items: center; justify-content: space-between;
	gap: 18px; min-height: 72px;
}
.smt-brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.smt-brand-logo { height: 44px; width: auto; max-width: 170px; object-fit: contain; transition: transform .2s; }
.smt-brand:hover .smt-brand-logo { transform: scale(1.04); }
.smt-brand-txt b {
	font-family: var(--smt-font-display); font-weight: 800; font-size: 1rem;
	display: block; color: var(--smt-ink); line-height: 1.08; letter-spacing: -.01em; white-space: nowrap;
}
.smt-brand-txt > span { font-size: .7rem; color: var(--smt-ink-soft); white-space: nowrap; }

.smt-nav-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.smt-nav-links a {
	font-weight: 500; font-size: .95rem; padding: 9px 14px; border-radius: 10px;
	color: var(--smt-ink); transition: background .15s, color .15s;
}
.smt-nav-links a:hover, .smt-nav-links a[aria-current="page"] { color: var(--smt-teal); background: var(--smt-mint); }
.smt-nav-cta { display: flex; align-items: center; gap: 10px; }

.smt-hamburger {
	display: none; width: 46px; height: 46px; border: 1px solid var(--smt-line);
	background: #fff; border-radius: 12px; cursor: pointer;
	align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.smt-hamburger span { width: 20px; height: 2px; background: var(--smt-ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.smt-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.smt-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.smt-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- mobile off-canvas menu ---------- */
.smt-mobile-menu { position: fixed; inset: 0; z-index: 1000; display: none; }
.smt-mobile-menu.open { display: block; }
.smt-mm-backdrop { position: absolute; inset: 0; background: rgba(7,57,55,.5); }
.smt-mm-panel {
	position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 340px);
	background: #fff; box-shadow: -10px 0 40px rgba(10,42,46,.22);
	padding: 16px 18px calc(26px + env(safe-area-inset-bottom));
	display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
	transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.smt-mobile-menu.open .smt-mm-panel { transform: translateX(0); }
.smt-mm-head {
	display: flex; align-items: center; justify-content: space-between;
	padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--smt-line-soft);
}
.smt-mm-logo { height: 40px; width: auto; }
.smt-mm-close { position: relative; width: 42px; height: 42px; border: none; background: var(--smt-teal-deep); border-radius: 12px; cursor: pointer; padding: 0; }
.smt-mm-close::before, .smt-mm-close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 2.5px; background: #fff; border-radius: 2px; }
.smt-mm-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.smt-mm-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.smt-mm-panel > a { padding: 14px; border-radius: 12px; font-weight: 500; font-size: 1.05rem; color: var(--smt-ink); transition: background .15s, color .15s; }
.smt-mm-panel > a:hover { background: var(--smt-mint); color: var(--smt-teal); }
.smt-mm-panel > a.smt-btn { justify-content: center; color: #fff; font-weight: 600; }
body.smt-nav-lock { overflow: hidden; }

/* ---------- footer ---------- */
.smt-site-footer { background: var(--smt-teal-deep); color: #bcd9d4; }
.smt-foot-top {
	display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px;
	padding-block: clamp(46px, 6vw, 72px);
}
.smt-foot-logo-chip { display: inline-flex; background: #fff; padding: 10px 14px; border-radius: 14px; }
.smt-foot-logo-chip img { height: 42px; width: auto; }
.smt-foot-brand p { margin: 16px 0 0; font-size: .92rem; color: #a9cbc5; max-width: 36ch; }
.smt-foot-social { display: flex; gap: 10px; margin-top: 18px; }
.smt-foot-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s, transform .2s; }
.smt-foot-social a:hover { background: var(--smt-coral); transform: translateY(-2px); }
.smt-foot-social svg { width: 18px; height: 18px; color: #fff; }
.smt-foot-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; font-family: var(--smt-font-body); font-weight: 700; }
.smt-foot-col a { display: block; padding: 6px 0; font-size: .93rem; color: #a9cbc5; transition: color .15s, padding-left .15s; }
.smt-foot-col a:hover { color: #fff; padding-left: 5px; }
.smt-foot-bottom { border-top: 1px solid rgba(255,255,255,.10); padding-block: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .84rem; color: #8fb6b0; }
.smt-tagline { color: var(--smt-coral); font-family: var(--smt-font-display); font-style: italic; }

/* ---------- apply modal ---------- */
.smt-modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.smt-modal.open { display: block; }
.smt-modal-backdrop { position: absolute; inset: 0; background: rgba(7,57,55,.55); }
.smt-modal-card {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
	background: #fff; border-radius: 20px; box-shadow: var(--smt-shadow-lg);
	padding: clamp(24px, 4vw, 36px);
}
.smt-modal-x {
	position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
	border: 0; background: var(--smt-teal-deep); border-radius: 50%;
	cursor: pointer; z-index: 6; padding: 0;
	box-shadow: 0 2px 10px rgba(7,57,55,.28);
	transition: background .18s ease;
}
.smt-modal-x::before, .smt-modal-x::after {
	content: ""; position: absolute; top: 50%; left: 50%;
	width: 17px; height: 2.5px; background: #fff; border-radius: 2px;
}
.smt-modal-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.smt-modal-x::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.smt-modal-x:hover { background: var(--smt-coral); }

/* strip the form card's own frame when it sits inside the modal */
.smt-modal-card .smt-form-card,
.smt-modal-card .smt-success-card { border: 0; box-shadow: none; padding: 0; background: transparent; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) { .smt-brand-txt > span { display: none; } }
@media (max-width: 900px) {
	.smt-foot-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 760px) {
	.smt-nav-links, .smt-nav-cta .smt-btn { display: none; }
	.smt-hamburger { display: flex; }
	.smt-tb-left { display: none; }
	.smt-topbar .smt-shell { justify-content: center; }
	.smt-brand-txt { display: none; }
	.smt-brand-logo { height: 42px; }
	.smt-foot-top { grid-template-columns: 1fr; }
}
