/*
Theme Name: Mavelin
Theme URI: https://mavelin.in/
Author: Mavelin Trade and Consultancy Pvt Ltd
Description: Corporate theme for Mavelin Trade and Consultancy Pvt Ltd. Home, About, six service pages, Industries Served, Knowledge Centre and Contact, with a Customizer panel for contact details and a built-in enquiry and consultation form.
Version: 2.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mavelin
*/

/* ---------- Tokens ---------- */
:root {
	/* Palette taken from the Mavelin logo: navy #003E7C, cyan #009AD6, orange #FAB000 */
	--ink: #04203c;
	--ink-2: #0a3560;
	--teal: #003e7c;
	--cyan: #009ad6;
	--mist: #f0f5fa;
	--paper: #ffffff;
	--line: #d2dee9;
	--muted: #4b6075;
	--accent: #fab000;
	--accent-hover: #ffc233;
	--focus: #0070c0;
	--on-ink: #e6eef6;
	--on-ink-muted: #afc3d8;
	--hair-ink: rgba(255, 255, 255, 0.18);

	--spectrum: linear-gradient(90deg, #c8302a 0%, #e8832a 18%, #efd32e 36%, #5ca944 54%, #1d9a8a 68%, #1d6fa5 84%, #5b3f9a 100%);
	--spectrum-v: linear-gradient(to bottom, #c8302a 0%, #e8832a 18%, #efd32e 36%, #5ca944 54%, #1d9a8a 68%, #1d6fa5 84%, #5b3f9a 100%);

	--font-head: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

	--wrap: 1240px;
	--gutter: 28px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero :focus-visible, .phero :focus-visible, .sec--ink :focus-visible, .cta :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

h1, h2, h3 {
	font-family: var(--font-head);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}
h1 { font-weight: 300; font-size: clamp(2.8rem, 6.2vw, 5.4rem); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }

p { margin: 0 0 1em; }

.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }

.sr-only {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; color: #fff; }

.lede { font-size: 1.25rem; line-height: 1.6; color: var(--muted); max-width: 38em; }
.lede--light { color: var(--on-ink-muted); }

/* Ruler: graduated-cylinder divider that opens each section */
.ruler {
	height: 16px;
	margin-bottom: clamp(32px, 4vw, 52px);
	background:
		linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 1px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 64px) 0 100% / 100% 16px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 16px) 0 100% / 100% 8px no-repeat;
	opacity: 0.35;
}
.sec--ink .ruler { background:
		linear-gradient(#fff, #fff) 0 100% / 100% 1px no-repeat,
		repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 64px) 0 100% / 100% 16px no-repeat,
		repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 16px) 0 100% / 100% 8px no-repeat; opacity: 0.3; }

/* ---------- Buttons and links ---------- */
.btn {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.98rem;
	line-height: 1;
	letter-spacing: 0.01em;
	text-decoration: none;
	padding: 17px 28px;
	border: 1.5px solid var(--accent);
	background: var(--accent);
	color: var(--ink);
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--ink); }
.btn--outline { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--outline:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { color: #fff; }
.btn--dark:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--mist); border-color: var(--mist); color: var(--ink); }
.btn--small { padding: 13px 20px; font-size: 0.92rem; }

.textlink { font-weight: 600; color: var(--teal); text-decoration-thickness: 1.5px; }
.textlink:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.bar { display: flex; align-items: center; gap: 28px; min-height: 84px; }

.brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; line-height: 1; margin-right: auto; }
.brand-logo { height: 52px; width: auto; }
.brand .custom-logo { max-height: 52px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 24px; }
.primary-nav .menu, .primary-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu { display: flex; gap: 2px; }
.primary-nav .menu a {
	display: block; padding: 12px 13px; text-decoration: none; color: var(--ink);
	font-weight: 500; font-size: 0.97rem; border-bottom: 2px solid transparent;
}
.primary-nav .menu a:hover { border-bottom-color: var(--line); }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a { border-bottom-color: var(--teal); }

/* Services dropdown */
.menu-item-has-children { position: relative; }
.menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: 3px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.sub-menu {
	display: none; position: absolute; left: 0; top: 100%; min-width: 340px; z-index: 60;
	background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--ink);
	padding: 8px 0; box-shadow: 0 18px 40px rgba(7, 32, 42, 0.12);
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu,
.menu-item-has-children.is-open > .sub-menu { display: block; }
.sub-menu a { padding: 11px 22px !important; border-bottom: 0 !important; font-weight: 500; }
.sub-menu a:hover { background: var(--mist); }
.sub-menu .current-menu-item > a { color: var(--teal); font-weight: 600; }

.nav-toggle {
	display: none; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
	background: transparent; color: var(--ink); border: 1.5px solid var(--ink);
	border-radius: 2px; padding: 11px 18px; cursor: pointer;
}

/* ---------- Home hero ---------- */
.hero { background: radial-gradient(120% 90% at 85% 10%, var(--ink-2) 0%, var(--ink) 60%); color: var(--on-ink); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(56px, 8vw, 112px); }
.hero h1 { color: #fff; max-width: 9.5em; margin-bottom: 0.35em; }
.hero .lede { color: var(--on-ink-muted); font-size: 1.3rem; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; margin-bottom: 0; }

.hero-visual { position: relative; margin: 0; }
.hero-visual img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; opacity: 0.92; filter: saturate(0.85) contrast(1.05); }
.hero-scale { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--spectrum-v); animation: grow-down 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-visual figcaption { padding: 14px 0 0 20px; font-size: 0.92rem; color: var(--on-ink-muted); }

/* Indicator-colour strip, closing every dark header */
.spectrum { height: 6px; background: var(--spectrum); transform-origin: left; animation: grow-right 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@keyframes grow-right { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Frameworks strip ---------- */
.frameworks { border-bottom: 1px solid var(--line); background: var(--paper); }
.frameworks-inner { display: flex; align-items: center; gap: 24px 40px; padding-block: 28px; flex-wrap: wrap; }
.frameworks-title { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--muted); margin: 0; letter-spacing: 0; }
.frameworks-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0; }
.frameworks-list li { font-family: var(--font-head); font-size: 1.2rem; padding: 0 22px; border-left: 1px solid var(--line); }
.frameworks-list li:first-child { padding-left: 0; border-left: 0; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(64px, 9vw, 128px); }
.sec--tight { padding-block: clamp(56px, 7vw, 96px); }
.sec--mist { background: var(--mist); }
.sec--ink { background: var(--ink); color: var(--on-ink); }
.sec--ink h2 { color: #fff; }
.sec-head { max-width: 44em; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sec-head--row .lede { margin-bottom: 0; }
.sec-title { margin-bottom: clamp(28px, 3vw, 44px); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--statement { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.split--lead { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
.split--contact { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }

.statement { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.15; margin: 0; max-width: 20em; }
.statement--sm { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 0.6em; }
.prose p, .prose-p { color: var(--muted); font-size: 1.1rem; max-width: 36em; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.svc-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-card {
	display: flex; flex-direction: column; gap: 10px; padding: 32px 30px 28px;
	background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--ink);
	text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s;
}
.svc-card h3 { margin: 0; }
.svc-card p { margin: 0 0 auto; color: var(--muted); font-size: 1rem; }
.svc-card .more { margin-top: 18px; font-weight: 600; color: var(--teal); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.svc-card:hover { border-color: var(--ink); border-top-color: var(--cyan); color: var(--ink); transform: translateY(-2px); }
.svc-card:hover .more { color: var(--ink); }

/* ---------- Steps (a real sequence) ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.steps li { counter-increment: step; padding: 20px 24px 8px 0; border-top: 1px solid var(--ink); }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: var(--teal); margin-bottom: 16px; }
.steps h3 { font-size: 1.35rem; margin-bottom: 0.3em; }
.steps p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- Industries (dark) ---------- */
.ind-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair-ink); }
.ind-list a { display: flex; flex-direction: column; gap: 2px; padding: 22px 0; border-bottom: 1px solid var(--hair-ink); text-decoration: none; color: #fff; }
.ind-list a span:first-child { font-family: var(--font-head); font-size: 1.7rem; letter-spacing: -0.015em; }
.ind-note { color: var(--on-ink-muted); font-size: 0.98rem; }
.ind-list a:hover span:first-child { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.sec--ink .btn--outline { margin-top: 12px; }

/* ---------- Page header (dark) ---------- */
.phero { background: radial-gradient(120% 120% at 90% 0%, var(--ink-2) 0%, var(--ink) 62%); color: var(--on-ink); }
.phero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(56px, 7vw, 104px); }
.phero-grid--image, .phero-grid--scale { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.phero h1 { color: #fff; font-size: clamp(2.5rem, 5.2vw, 4.4rem); max-width: 13em; margin-bottom: 0.35em; }
.phero .h1--article { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 22em; }
.phero .lede { color: var(--on-ink-muted); margin-bottom: 0; }
.crumbs { font-size: 0.92rem; color: var(--on-ink-muted); margin-bottom: 28px; }
.crumbs a { color: var(--on-ink-muted); }
.crumbs a:hover { color: #fff; }
.tags { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { font-size: 0.88rem; padding: 7px 14px; border: 1px solid var(--hair-ink); border-radius: 999px; color: var(--on-ink); }
.phero-photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; filter: saturate(0.85) contrast(1.05); border-left: 8px solid transparent; border-image: var(--spectrum-v) 1; }
.phero-scale { height: 260px; width: 100%; max-width: 360px; justify-self: end;
	background:
		repeating-linear-gradient(to bottom, rgba(255,255,255,0.55) 0 1px, transparent 1px 16px) 0 0 / 28px 100% no-repeat,
		repeating-linear-gradient(to bottom, rgba(255,255,255,0.8) 0 1px, transparent 1px 80px) 0 0 / 56px 100% no-repeat,
		linear-gradient(90deg, rgba(255,255,255,0.8) 0 1px, transparent 1px) 0 0 / 1px 100% no-repeat; opacity: 0.55; }
.post-meta--light { color: var(--on-ink-muted); margin: 0; }

/* ---------- Capabilities (definition list) ---------- */
.caps { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); }
.caps > div { padding: 24px 0 26px; border-top: 1px solid var(--ink); }
.caps dt { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 8px; }
.caps dd { margin: 0; color: var(--muted); max-width: 32em; }
.caps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: clamp(32px, 4vw, 56px); }
.caps--stack { grid-template-columns: minmax(0, 1fr); }
.sec--mist .caps > div { border-top-color: var(--ink); }

.pledges { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pledges li { font-size: 0.95rem; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); }

/* Outcome checklist */
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair-ink); }
.checks li { position: relative; padding: 18px 0 18px 40px; border-bottom: 1px solid var(--hair-ink); font-size: 1.12rem; }
.checks li::before { content: ""; position: absolute; left: 6px; top: 22px; width: 8px; height: 15px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(40deg); }

/* ---------- Leadership ---------- */
.person { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; align-items: center; }
.person-photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; filter: saturate(0.9); }
.person h3 { margin-bottom: 0.1em; font-size: 1.8rem; }
.person-role { color: var(--muted); margin-bottom: 0.5em; }

/* ---------- Industries page ---------- */
.ind { margin-bottom: clamp(24px, 4vw, 48px); }
.ind:last-child { margin-bottom: 0; }
.linklist { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.linklist a { display: inline-block; padding: 9px 16px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 0.95rem; font-weight: 500; }
.linklist a:hover { background: var(--ink); color: #fff; }

/* ---------- Knowledge Centre ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); }
.filters a { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.filters a:hover { border-color: var(--ink); }
.filters a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.posts { display: grid; max-width: 820px; }
.post-row { padding-block: 32px; border-top: 1px solid var(--line); }
.post-row:last-child { border-bottom: 1px solid var(--line); }
.post-row--lead { border-top-color: var(--ink); }
.post-row--lead .post-title { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.post-meta { font-size: 0.92rem; color: var(--muted); margin-bottom: 8px; }
.post-title { font-size: 1.8rem; margin-bottom: 0.35em; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.15em; }

.kc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kc-card { padding: 28px 28px 20px; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--ink); }
.kc-card h3 { font-size: 1.45rem; }
.kc-card h3 a { color: var(--ink); text-decoration: none; }
.kc-card h3 a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.kc-card p:last-child { color: var(--muted); font-size: 1rem; }

.prose--article { max-width: 44rem; }
.prose--article p, .prose--article li { color: var(--ink); font-size: 1.12rem; }
.prose--article h2 { font-size: 1.9rem; margin-top: 1.9em; }
.prose--article h3 { margin-top: 1.5em; }
.prose--article ul, .prose--article ol { padding-left: 1.3em; }
.prose--article li { margin-bottom: 0.6em; }
.prose--article li::marker { color: var(--teal); }

.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 44rem; }
.navigation.pagination { margin-top: 32px; }
.navigation.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.navigation.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); text-decoration: none; }
.navigation.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- CTA band ---------- */
.cta { background: var(--ink); color: #fff; padding-block: clamp(56px, 7vw, 96px); border-top: 6px solid transparent; border-image: var(--spectrum) 1; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 36px; flex-wrap: wrap; }
.cta h2 { color: #fff; max-width: 16em; margin-bottom: 0.4em; }
.cta p { margin: 0; color: var(--on-ink-muted); max-width: 34em; }
.cta-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-phone { font-family: var(--font-head); font-size: 1.6rem; color: #fff; text-decoration: none; }
.cta-phone:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Forms ---------- */
.form p { margin-bottom: 20px; }
.form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="date"], .form select, .form textarea {
	width: 100%; font: inherit; color: var(--ink); background: var(--paper);
	border: 1.5px solid #8ea6af; border-radius: 2px; padding: 13px 14px;
}
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.form legend { font-weight: 600; font-size: 0.95rem; padding: 0; margin-bottom: 10px; }
.choice { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.choice legend { flex-basis: 100%; }
.form .choice label { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 0; cursor: pointer; }
.form .choice input { width: 20px; height: 20px; accent-color: var(--teal); }
.when { padding: 22px 22px 4px; background: var(--mist); border-left: 3px solid var(--ink); }
.hint { font-size: 0.92rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-left: 4px solid; margin-bottom: 24px; font-weight: 500; }
.notice--ok { background: #e6f4ea; border-color: #2e7d4f; }
.notice--error { background: #fdecea; border-color: #c0392b; }

.sec--contact { padding-bottom: clamp(40px, 5vw, 64px); }
.map { line-height: 0; border-top: 1px solid var(--line); background: var(--mist); }
.map iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-top: clamp(56px, 7vw, 96px); font-size: 1rem; border-top: 1px solid var(--hair-ink); }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer .btn--light, .site-footer .btn--light:hover { color: var(--ink); text-decoration: none; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.foot-brand { margin-bottom: 1.2em; }
.foot-logo { height: 62px; width: auto; }
.foot-about p { max-width: 24em; }
.foot-title { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 1em; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 8px; }
.site-footer address { font-style: normal; line-height: 1.9; }
.foot-legal { margin-top: clamp(40px, 5vw, 72px); padding-block: 24px; border-top: 1px solid var(--hair-ink); font-size: 0.92rem; }
.foot-legal p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
	.steps li:nth-child(4) { padding-left: 0; border-left: 0; }
	.svc-grid, .svc-grid--three, .kc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
	.nav-toggle { display: inline-block; }
	.primary-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 84px); overflow-y: auto;
		background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
	}
	.primary-nav.is-open { display: flex; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu a { padding: 15px 0; border-bottom: 1px solid var(--line); }
	.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { border-bottom-color: var(--teal); }
	.menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu { display: none; }
	.menu-item-has-children.is-open > .sub-menu { display: block; }
	.sub-menu { position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 0 16px; }
	.sub-menu a { padding: 13px 0 !important; border-bottom: 1px solid var(--line) !important; }
	.nav-cta { align-self: flex-start; margin-top: 20px; }
	.site-header { position: relative; }
}

@media (max-width: 860px) {
	.hero-grid, .split, .split--statement, .split--lead, .split--contact,
	.phero-grid--image, .phero-grid--scale { grid-template-columns: minmax(0, 1fr); }
	.hero-visual img { aspect-ratio: 4 / 3; }
	.phero-scale { display: none; }
	.caps, .caps--three { grid-template-columns: minmax(0, 1fr); }
	.steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
	.steps li, .steps li + li, .steps li:nth-child(4) { padding: 20px 0 22px; border-left: 0; }
	.svc-grid, .svc-grid--three, .kc-grid { grid-template-columns: minmax(0, 1fr); }
	.form-grid { grid-template-columns: minmax(0, 1fr); }
	.foot-top { grid-template-columns: minmax(0, 1fr); }
	.frameworks-list li { padding: 0 16px; font-size: 1.1rem; }
}

@media (max-width: 520px) {
	.brand-logo { height: 44px; }
	body { font-size: 1rem; }
	:root { --gutter: 20px; }
	.person { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; }
	.person-photo { width: 96px; height: 96px; }
	.btn { padding: 16px 22px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.spectrum, .hero-scale { animation: none; }
	.btn, .svc-card { transition: none; }
	.svc-card:hover { transform: none; }
}

.ind-photo { margin: 1.4rem 0 0; background: var(--mist); border-top: 3px solid var(--cyan); }
.ind-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
