/* Dyde Technology — base styles */

:root {
	--ink: #101828;
	--ink-soft: #475467;
	--ink-faint: #98a2b3;
	--bg: #ffffff;
	--bg-alt: #f6f8fb;
	--border: #e4e8ef;
	--accent: #2952e3;
	--accent-dark: #1d3fb8;
	--accent-soft: #eaefff;
	--radius: 14px;
	--container: 1120px;
	--shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
	font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 0.5em;
	letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

img, svg { display: block; max-width: 100%; }

/* Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85em 1.6em;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
	background: var(--accent);
	color: #fff;
}
.btn--primary:hover { background: var(--accent-dark); color: #fff; }

.btn--ghost {
	background: transparent;
	border-color: var(--border);
	color: var(--ink);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--on-dark { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn--on-dark:hover { border-color: #fff; color: #fff; }

.btn--full { width: 100%; }

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--accent);
	margin: 0 0 0.75em;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255,255,255,0.9);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 72px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-weight: 800;
	font-size: 1.05rem;
	margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; border-radius: 6px; }

.site-nav {
	display: flex;
	gap: 28px;
}
.site-nav a {
	color: var(--ink-soft);
	font-weight: 600;
	font-size: 0.95rem;
}
.site-nav a:hover { color: var(--ink); }

.header-phone {
	font-weight: 700;
	color: var(--ink);
	white-space: nowrap;
}
.header-phone:hover { color: var(--accent); }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0;
}
.nav-toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--ink);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */

.hero {
	background: var(--ink);
	padding: 96px 0 72px;
}
.hero__inner { max-width: 760px; }
.hero .eyebrow { color: #8fa5ff; }
.hero h1 { color: #fff; }
.hero__lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.75); }
.hero__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 8px;
}

/* Highlights */

.highlights { padding: 56px 0 8px; }
.highlights__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.highlight-card svg {
	width: 30px;
	height: 30px;
	color: var(--accent);
	margin-bottom: 14px;
}
.highlight-card p { margin-bottom: 0; }

/* Section shell */

.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-lead { font-size: 1.05rem; }

#services .section-head { max-width: none; }
#services .section-head h2 { white-space: nowrap; }

/* Services */

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.service-card {
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg);
}
.service-card svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }
.service-card p { margin-bottom: 0; font-size: 0.95rem; }

.service-card--flagship {
	grid-column: span 3;
	background: var(--ink);
	border-color: var(--ink);
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	column-gap: 24px;
	padding: 32px;
}
.service-card--flagship svg { grid-row: span 2; margin-bottom: 0; color: #fff; width: 40px; height: 40px; }
.service-card--flagship h3 { color: #fff; margin-bottom: 8px; }
.service-card--flagship p { color: rgba(255,255,255,0.75); margin-bottom: 0; }

/* Approach / steps */

.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.step__num {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 800;
	color: var(--accent);
	border: 1px solid var(--accent-soft);
	background: var(--accent-soft);
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 14px;
}

/* CTA */

.cta {
	background: var(--ink);
	padding: 72px 0;
	text-align: center;
}
.cta h2 { color: #fff; }
.cta__inner { max-width: 640px; margin: 0 auto; }
.cta .hero__actions { justify-content: center; }

/* Contact */

.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 56px;
	align-items: start;
}

.contact__details {
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.contact__label {
	display: block;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-faint);
	margin-bottom: 3px;
}
.contact__details a,
.contact__details span:last-child {
	color: var(--ink);
	font-weight: 600;
}

.contact-form {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 700; font-size: 0.9rem; }
.form-row .optional { font-weight: 400; color: var(--ink-faint); }
.form-row input,
.form-row textarea {
	font: inherit;
	padding: 0.7em 0.9em;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
}
.form-row input:focus,
.form-row textarea:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
	border-color: var(--accent);
}
.form-row textarea { resize: vertical; }

.form-row--honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.form-status {
	margin: 0;
	font-weight: 600;
	font-size: 0.92rem;
	min-height: 1.2em;
}
.form-status.is-success { color: #067647; }
.form-status.is-error { color: #b42318; }

.form-status-detail {
	margin: 4px 0 0;
	font-size: 0.78rem;
	color: var(--ink-faint);
}

/* Footer */

.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.site-footer p { margin: 0; color: var(--ink-faint); font-size: 0.9rem; }
.site-footer a { color: var(--ink-faint); }
.site-footer a:hover { color: var(--accent); }

/* Responsive */

@media (max-width: 900px) {
	.highlights__grid,
	.services-grid,
	.steps { grid-template-columns: 1fr; }
	.service-card--flagship { grid-column: span 1; grid-template-columns: 1fr; }
	.service-card--flagship svg { grid-row: auto; margin-bottom: 14px; }
	.contact__grid { grid-template-columns: 1fr; }
	#services .section-head h2 { white-space: normal; }
}

@media (max-width: 760px) {
	.site-nav {
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		flex-direction: column;
		gap: 0;
		padding: 8px 24px 16px;
		display: none;
	}
	.site-nav.is-open { display: flex; }
	.site-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
	.site-nav a:last-child { border-bottom: none; }
	.header-phone { display: none; }
	.nav-toggle { display: flex; }
	.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
	.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.hero { padding: 64px 0 48px; }
	.section { padding: 64px 0; }
}
