/* ==========================================================================
   Sol Manufacturing Excellence – main stylesheet
   ========================================================================== */

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter Tight";
	src: url("../fonts/inter-tight.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #0b1b2b;
	--ink-2: #12283d;
	--ink-3: #1b3550;
	--paper: #ffffff;
	--tint: #f4f2ed;
	--line: #e3e0d8;
	--text: #22313f;
	--muted: #5d6b78;
	--sun: #f4a52b;
	--sun-2: #ffc35c;
	--sun-ink: #2a1a00;
	--on-dark: #e9eef3;
	--on-dark-muted: #9fb0c0;

	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--display: "Inter Tight", "Inter", system-ui, sans-serif;

	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 1px 2px rgba(11, 27, 43, .06), 0 10px 30px -12px rgba(11, 27, 43, .18);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(72px, 10vw, 128px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--sun); color: var(--sun-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
	padding: 16px 26px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
	transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--accent { background: var(--sun); color: var(--sun-ink); box-shadow: 0 8px 24px -10px rgba(244, 165, 43, .7); }
.btn--accent:hover { background: var(--sun-2); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn--sm { padding: 11px 18px; font-size: 14.5px; }
.btn--block { width: 100%; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font: 600 13px/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase;
	color: #b06d00; margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--sun); }

/* Header ----------------------------------------------------------------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.site-header.is-scrolled,
body:not(.home) .site-header {
	background: rgba(11, 27, 43, .92);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand__mark { color: var(--sun); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font: 800 22px/1 var(--display); letter-spacing: -.02em; }
.brand__text span { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 4px; }
.custom-logo { max-height: 48px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 28px; }
.nav__list a {
	color: var(--on-dark); text-decoration: none; font-size: 15px; font-weight: 500;
	position: relative; padding: 6px 0;
}
.nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sun);
	transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__list a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: #fff; margin: 6px 0; transition: transform .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.nav {
		position: fixed; inset: 80px 0 auto; flex-direction: column; align-items: stretch; gap: 8px;
		background: var(--ink); padding: 16px var(--gutter) 28px;
		box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
		transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s var(--ease);
	}
	.nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 17px; }
	.nav__list a::after { display: none; }
	.nav__cta { margin-top: 12px; }
	.site-header.menu-open { background: var(--ink); }
}

/* Hero ------------------------------------------------------------------- */
.hero {
	position: relative; overflow: hidden; color: var(--on-dark);
	background:
		radial-gradient(1200px 600px at 85% -10%, rgba(244, 165, 43, .18), transparent 60%),
		linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
	padding: clamp(140px, 18vw, 200px) 0 clamp(80px, 10vw, 120px);
}
.hero::after {
	/* subtle engineering grid */
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero__sun {
	position: absolute; right: -180px; top: 120px; width: 620px; height: 620px; border-radius: 50%;
	background: radial-gradient(circle at 40% 40%, rgba(255, 195, 92, .55), rgba(244, 165, 43, .15) 45%, transparent 70%);
	filter: blur(10px); opacity: .55; pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: end; }
.hero__title { color: #fff; font-size: clamp(42px, 6.4vw, 84px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 28px; }
.hero__line { display: block; }
.hero__line--accent {
	background: linear-gradient(90deg, var(--sun-2), var(--sun));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__subtitle { font: 600 clamp(19px, 2vw, 23px)/1.35 var(--display); color: #fff; margin-bottom: 14px; }
.hero__intro { color: var(--on-dark-muted); max-width: 560px; font-size: 17.5px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__pillars {
	display: grid; gap: 14px; padding: 22px;
	background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
	border-radius: var(--radius-lg);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pillar { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .035); }
.pillar strong { display: block; font: 700 19px/1.2 var(--display); color: #fff; margin-bottom: 3px; }
.pillar span:last-child { color: var(--on-dark-muted); font-size: 15px; line-height: 1.4; }
.pillar__icon {
	flex: 0 0 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
	background: rgba(244, 165, 43, .14); color: var(--sun);
}
.pillar__icon .icon { width: 26px; height: 26px; }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__sun { width: 420px; height: 420px; right: -200px; top: 60px; }
}

/* Experience strip --------------------------------------------------------- */
.experience { background: var(--ink-2); color: var(--on-dark-muted); padding: 44px 0 52px; border-top: 1px solid rgba(255, 255, 255, .06); }
.experience__title { font: 600 13px/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 10px; }
.experience__text { max-width: 820px; font-size: 15.5px; margin-bottom: 26px; }
.experience__list { display: flex; flex-wrap: wrap; gap: 10px 40px; align-items: center; }
.experience__list li {
	font: 700 clamp(19px, 2vw, 24px)/1.2 var(--display); letter-spacing: -.01em;
	color: rgba(233, 238, 243, .72); transition: color .2s;
}
.experience__list li:hover { color: #fff; }

/* Sections ----------------------------------------------------------------- */
.section { padding: var(--section) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: var(--on-dark-muted); }
.section--dark .section__title, .section--dark h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__title { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.03em; }
.section__intro { font-size: 18.5px; color: var(--muted); }
.section--dark .section__intro { color: var(--on-dark-muted); }
.lead { font: 600 clamp(22px, 2.4vw, 28px)/1.3 var(--display); color: var(--ink); letter-spacing: -.015em; margin-bottom: 20px; }

/* About -------------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 96px); }
.about__body > p:not(.lead) { color: var(--muted); font-size: 18px; }
.approach { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; counter-reset: s; }
.approach__step { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, transform .2s var(--ease); }
.approach__step:hover { border-color: var(--sun); transform: translateY(-2px); }
.approach__num { font: 700 13px/1 var(--display); color: #b06d00; letter-spacing: .08em; }
.approach__step h3 { font-size: 21px; margin: 12px 0 6px; }
.approach__step p { color: var(--muted); font-size: 15.5px; margin: 0; }

@media (max-width: 860px) {
	.about__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.approach { grid-template-columns: 1fr; }
}

/* Cards -------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
	position: relative; display: flex; flex-direction: column;
	padding: clamp(26px, 3vw, 38px); border-radius: var(--radius-lg);
	background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
	transition: transform .3s var(--ease), box-shadow .3s;
	scroll-margin-top: 100px;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(11, 27, 43, .06), 0 24px 50px -20px rgba(11, 27, 43, .3); }
.card::before {
	content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 3px; border-radius: 0 3px 3px 0;
	background: var(--sun); transform: scaleY(0); transition: transform .3s var(--ease);
}
.card:hover::before, .card:target::before { transform: scaleY(1); }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 12px; }
.card__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: var(--ink); color: var(--sun); }
.card__icon .icon { width: 26px; height: 26px; }
.card__tag { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--tint); padding: 7px 12px; border-radius: 999px; }
.card__title { font-size: clamp(22px, 2.2vw, 26px); }
.card p { color: var(--muted); font-size: 16.5px; }
.card__link {
	margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px;
	font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none;
}
.card__link .icon { width: 17px; height: 17px; color: #b06d00; transition: transform .2s var(--ease); }
.card__link:hover .icon { transform: translateX(4px); }

.card--dark { background: var(--ink-2); border-color: rgba(255, 255, 255, .07); box-shadow: none; }
.card--dark:hover { box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6); }
.card--dark .card__icon { background: rgba(244, 165, 43, .14); }
.card--dark .card__tag { background: rgba(255, 255, 255, .06); color: var(--on-dark-muted); }
.card--dark p { color: var(--on-dark-muted); }
.card--dark .card__link { color: #fff; }
.card--dark .card__link .icon { color: var(--sun); }

@media (max-width: 760px) {
	.cards { grid-template-columns: 1fr; }
}

/* Interim roles ------------------------------------------------------------ */
.interim { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.roles { display: grid; gap: 14px; }
.role {
	display: flex; align-items: center; gap: 18px; padding: 22px 26px;
	font: 600 clamp(19px, 2vw, 22px)/1.25 var(--display); color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
	transition: border-color .2s, transform .2s var(--ease);
}
.role:hover { border-color: var(--sun); transform: translateX(4px); }
.role__check { flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--sun-ink); }
.role__check .icon { width: 18px; height: 18px; stroke-width: 2.4; }

@media (max-width: 860px) {
	.interim { grid-template-columns: 1fr; }
}

/* FAQ ---------------------------------------------------------------------- */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 6vw, 96px); }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; }
.faq__item summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
	content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
	border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .25s;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__item h3 { font-size: 19px; margin: 0; }
.faq__item p { color: var(--muted); padding-bottom: 22px; margin: 0; }

@media (max-width: 860px) {
	.faq { grid-template-columns: 1fr; }
}

/* Contact ------------------------------------------------------------------ */
.contact { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-3) 100%); color: var(--on-dark-muted); position: relative; overflow: hidden; }
.contact::before {
	content: ""; position: absolute; left: -200px; bottom: -260px; width: 560px; height: 560px; border-radius: 50%;
	background: radial-gradient(circle, rgba(244, 165, 43, .22), transparent 65%); pointer-events: none;
}
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .section__title { color: #fff; }
.contact__copy p { font-size: 18px; }
.contact__mail {
	display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
	color: #fff; font-weight: 600; text-decoration: none; word-break: break-all;
	border-bottom: 1px solid rgba(244, 165, 43, .5); padding-bottom: 4px;
}
.contact__mail .icon { color: var(--sun); flex: 0 0 auto; }

.form { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label span { color: #b06d00; }
.field input, .field textarea {
	font: 16px/1.4 var(--font); color: var(--ink); width: 100%;
	padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfaf8;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sun); background: #fff; box-shadow: 0 0 0 4px rgba(244, 165, 43, .18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c0392b; }
.form__hp { position: absolute; left: -9999px; }
.form__privacy { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form__privacy a { color: var(--ink); }
.form__notice { padding: 14px 18px; border-radius: 12px; font-weight: 500; margin-bottom: 20px; font-size: 15.5px; }
.form__notice--ok { background: #e7f6ec; color: #135c2c; }
.form__notice--err { background: #fdecea; color: #8a1f13; }

@media (max-width: 900px) {
	.contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.form__row { grid-template-columns: 1fr; gap: 0; }
}

/* Footer ------------------------------------------------------------------- */
.site-footer { background: #07131f; color: var(--on-dark-muted); padding: 72px 0 0; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer__name { font: 700 20px/1.2 var(--display); color: #fff; margin-bottom: 8px; }
.site-footer__heading { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--sun); margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer__contact { display: grid; gap: 10px; margin-top: 20px; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 10px; word-break: break-all; }
.site-footer__contact .icon { width: 18px; height: 18px; color: var(--sun); flex: 0 0 auto; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center;
	border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 24px; padding-bottom: 28px; font-size: 14px;
}
.site-footer__bottom p { margin: 0; }
.site-footer__menu { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer__menu li { margin: 0; }

@media (max-width: 760px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

/* Inner pages / blog ------------------------------------------------------- */
.page__hero { background: linear-gradient(180deg, var(--ink), var(--ink-2)); padding: 150px 0 64px; }
.page__title { color: #fff; font-size: clamp(34px, 5vw, 56px); margin: 0; }
.page__body { padding-top: 56px; padding-bottom: var(--section); }
.entry { font-size: 18px; }
.entry h2 { font-size: 32px; margin-top: 1.6em; }
.entry h3 { font-size: 24px; margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.3em; margin-bottom: 1em; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry a { color: #8a5500; }
.entry img { border-radius: var(--radius); }
.entry__image { margin-bottom: 32px; }
.entry__cta { margin-top: 56px; padding: 32px; border-radius: var(--radius-lg); background: var(--tint); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.entry__cta p { margin: 0; font-size: 20px; color: var(--ink); }
.post-list { display: grid; gap: 20px; }
.post-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.post-card__meta { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.post-card__title { font-size: 26px; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { color: #8a5500; }
.nav-links { display: flex; gap: 10px; margin-top: 32px; }
.nav-links .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.nav-links .current { background: var(--ink); color: #fff; }

/* Reveal animation --------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}
