/*
Theme Name: Innosynch
Description: Lightweight one-page theme for Innosynch — IT consulting, web development and ERP integration.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: innosynch
*/

:root {
	--bg: #fbfbfa;
	--surface: #ffffff;
	--surface-2: #f3f4f2;
	--text: #15171b;
	--muted: #5d636e;
	--line: #e4e6e8;
	--accent: #2e4059;
	--accent-soft: #e7ecf3;
	--accent-text: #ffffff;
	--danger: #b42318;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
	--max: 1120px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0e1013;
		--surface: #15181d;
		--surface-2: #1b1f25;
		--text: #eceef1;
		--muted: #9aa1ad;
		--line: #262b33;
		--accent: #9fb6d6;
		--accent-soft: #1d2735;
		--accent-text: #0e1013;
		--danger: #f97066;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
	}
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 85%, transparent);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { height: 22px; width: auto; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
	.brand .logo-light { display: none; }
	.brand .logo-dark { display: block; }
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .btn { color: var(--accent-text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }

@media (max-width: 820px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		position: absolute; top: 68px; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--bg); border-bottom: 1px solid var(--line);
		padding: 8px 24px 20px;
		display: none;
	}
	.nav.is-open { display: flex; }
	.nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.nav .btn { margin-top: 14px; text-align: center; border: 0; }
}

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.nav .lang-switch a { padding: 4px 9px; font-size: .78rem; font-weight: 600; color: var(--muted); border: 0; }
.nav .lang-switch a.is-active { background: var(--accent); color: var(--accent-text); }
.nav .lang-switch a:hover { text-decoration: none; }
@media (max-width: 820px) { .lang-switch { align-self: flex-start; margin-top: 14px; } .nav .lang-switch a { padding: 6px 12px; } }

/* Consent banner */
.consent {
	position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 18px 20px; font-size: .9rem;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; color: var(--muted); }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media print { .consent { display: none !important; } }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border-radius: 10px;
	background: var(--accent); color: var(--accent-text);
	font-weight: 600; font-size: .95rem; border: 1px solid var(--accent);
	cursor: pointer; transition: transform .15s ease, opacity .15s ease;
	font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); opacity: .92; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--small { padding: 8px 14px; font-size: .88rem; }

/* Sections */
.section { padding: 96px 0; }
.section--alt { background: var(--surface-2); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.eyebrow {
	display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); }

/* Hero */
.hero { padding: 112px 0 96px; position: relative; overflow: hidden; }
.hero h1 span { color: var(--accent); }
.hero .lead { max-width: 640px; font-size: 1.22rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; max-width: 720px; }
.hero-tags li {
	padding: 6px 12px; border-radius: 8px; font-size: .85rem; font-weight: 600;
	background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

/* Earlier projects */
.past-list { list-style: none; margin: 0; padding: 8px 28px; }
.past-list > li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.past-list > li:last-child { border-bottom: 0; }
.past-list h4 { margin: 0 0 2px; font-size: 1.05rem; }
.past-list p { color: var(--muted); margin: 6px 0 10px; font-size: .95rem; }
.past-year { font-family: var(--mono); font-size: .85rem; color: var(--accent); padding-top: 3px; }
.past-ctx { font-size: .85rem; }
@media (max-width: 640px) { .past-list { padding: 4px 20px; } .past-list > li { grid-template-columns: 1fr; gap: 4px; } }

/* Partners */
.partners-section { border-top: 1px solid var(--line); }
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.partner {
	display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; text-align: center;
	min-height: 120px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
	color: var(--text); transition: border-color .2s ease, box-shadow .2s ease;
}
a.partner:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); }
.partner-name { font-weight: 700; font-size: 1.1rem; }
.partner-meta { font-size: .85rem; color: var(--muted); }
.partner-logo { max-height: 56px; width: auto; object-fit: contain; }

/* Carpets */
.carpet { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.carpet-img { aspect-ratio: 4 / 5; background: var(--surface-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.carpet-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.carpet:hover .carpet-img img { transform: scale(1.03); }
.carpet-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.carpet-body h3 { margin-bottom: 4px; }
.carpet-body .meta { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.carpet-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.carpet-foot span { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.carpet-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.carpet-empty p { margin: 0; color: var(--muted); }

.site-shot-empty {
	display: grid; place-items: center; height: 100%; font-weight: 700; font-size: 1.1rem; letter-spacing: .02em;
	color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
}
.site-card .chips--small { margin-top: 12px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 48px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-sync { position: absolute; right: 24px; top: 300px; width: 180px; border-radius: 22px; opacity: .1; pointer-events: none; }
@media (max-width: 1200px) { .hero-sync { display: none; } }
@media (max-width: 820px) { .hero { padding: 72px 0 64px; } .hero-sync { display: none; } }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card p { color: var(--muted); margin-bottom: 0; }
.card .icon {
	width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
	background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li {
	padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
	font-size: .92rem; font-weight: 500;
}
.chips--small li { padding: 4px 10px; font-size: .8rem; background: var(--surface-2); }

/* Process */
.steps { counter-reset: step; }
.steps .card { position: relative; }
.steps .card::before {
	counter-increment: step; content: "0" counter(step);
	display: block; font-family: var(--mono); font-size: .85rem; color: var(--accent); margin-bottom: 10px;
}

/* Projects */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.product + .product { margin-top: 24px; }
.product-media { background: var(--surface-2); min-height: 280px; display: grid; place-items: center; border-right: 1px solid var(--line); }
.product-media img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.product-media .placeholder { color: var(--accent); opacity: .5; }
.product-body { padding: 36px; display: flex; flex-direction: column; }
.product-body .tagline { color: var(--accent); font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.product-body h3 { font-size: 1.6rem; }
.features { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 8px; }
.features li { position: relative; padding-left: 26px; color: var(--muted); font-size: .97rem; }
.features li::before {
	content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
	border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.product-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 820px) {
	.product { grid-template-columns: 1fr; }
	.product-media { border-right: 0; border-bottom: 1px solid var(--line); min-height: 200px; }
	.product-body { padding: 26px; }
}

.site-card { display: flex; flex-direction: column; }
.site-card h3 { margin-bottom: .3em; }
.site-card .meta { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.site-card .links { margin-top: auto; padding-top: 16px; display: flex; gap: 16px; font-size: .92rem; font-weight: 600; }

.subhead { margin: 72px 0 24px; }

/* Testimonials */
.quote { display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 20px; font-size: 1.05rem; line-height: 1.6; color: var(--text); }
.quotes { columns: 2 340px; column-gap: 20px; }
.quotes .quote { break-inside: avoid; margin: 0 0 20px; }
.quote blockquote p { margin-bottom: .8em; }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote .stars { color: #f5a623; letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 12px; }
.quote figcaption { margin-top: auto; font-size: .92rem; display: flex; align-items: center; gap: 12px; }
.quote figcaption strong { display: block; color: var(--text); }
.quote figcaption span { color: var(--muted); }
.quote .avatar {
	width: 40px; height: 40px; border-radius: 10px; flex: none;
	display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-weight: 700;
}

.site-card { padding: 0; overflow: hidden; }
.site-card .site-shot { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.site-card .site-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.site-card .site-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }

.product-media img.brand-mark { width: 120px; height: 120px; object-fit: contain; border-radius: 16px; opacity: .9; }
.footer-logo { height: 16px; width: auto; display: block; margin-bottom: 6px; }
.footer-logo.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .footer-logo.logo-light { display: none; } .footer-logo.logo-dark { display: block; } }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; gap: 32px; } }
.contact-notes { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; color: var(--muted); }
.contact-notes strong { color: var(--text); display: block; font-size: .95rem; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
	width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
	background: var(--bg); color: var(--text); font: inherit; font-size: .97rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.notice { padding: 14px 16px; border-radius: 10px; font-size: .95rem; margin-bottom: 8px; }
.notice--ok { background: var(--accent-soft); color: var(--text); border: 1px solid var(--accent); }
.notice--error { border: 1px solid var(--danger); color: var(--danger); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: .9rem; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.footer-social { display: inline-flex; align-items: center; gap: 6px; }

/* Exposé (single project) */
.expose { padding: 64px 0 96px; }
.expose-back { font-size: .92rem; display: inline-block; margin-bottom: 32px; }
.expose-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
@media (max-width: 820px) { .expose-head { grid-template-columns: 1fr; gap: 20px; } }
.expose-facts { display: grid; gap: 14px; margin: 0; }
.expose-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: .95rem; }
.expose-facts dt { color: var(--muted); }
.expose-facts dd { margin: 0; font-weight: 500; }
.expose-hero { margin: 40px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.expose-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin-top: 40px; }
@media (max-width: 820px) { .expose-body { grid-template-columns: 1fr; } }
.expose-body h2 { font-size: 1.35rem; margin-top: 0; }
.entry-content > * + * { margin-top: 1em; }
.entry-content img { border-radius: 10px; border: 1px solid var(--line); }
.expose-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.gallery { margin-top: 64px; }
.gallery h2 { font-size: 1.35rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 720px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
@media print { .gallery-grid { grid-template-columns: 1fr 1fr; } .gallery figure { break-inside: avoid; } }

/* Generic page */
.page-wrap { padding: 72px 0 96px; max-width: 760px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.btn, .card { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Print: exposé saves cleanly as PDF */
@media print {
	:root { --bg: #fff; --surface: #fff; --surface-2: #fff; --text: #000; --muted: #444; --line: #ccc; --accent: #0f766e; }
	.site-header, .site-footer, .expose-back, .expose-actions, .no-print { display: none !important; }
	body { font-size: 11pt; }
	.expose { padding: 0; }
	.reveal { opacity: 1 !important; transform: none !important; }
	.card { box-shadow: none; break-inside: avoid; }
	a { color: #000; }
}
