/* ==========================================================================
   SobinfoTech public site — used only by protected/views/layouts/site.php
   (admin screens keep css/style.css via layouts/main.php)
   ========================================================================== */

:root {
	--paper: #f7f4ee;
	--paper-2: #efeae1;
	--card: #ffffff;
	--ink: #16222e;
	--ink-2: #3c4854;
	--muted: #6b7480;
	--rule: #e1dacd;
	--navy: #0f2a3f;
	--navy-2: #173a55;
	--blue: #1f5d8f;
	--orange: #d9531e;
	--orange-dark: #b8441a;
	--on-dark: #e9eef2;
	--on-dark-muted: #a6b4c0;

	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--mono: "IBM Plex Mono", Consolas, "Courier New", monospace;

	--wrap: 1160px;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(22, 34, 46, .05), 0 8px 24px -12px rgba(22, 34, 46, .18);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink-2);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 600;
	color: var(--ink);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 560; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }

p { margin: 0 0 1em; }

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

.skip-link {
	position: absolute; left: -9999px; top: 8px;
	background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; color: #fff; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--mono); font-size: .78rem; font-weight: 500;
	letter-spacing: .08em; text-transform: uppercase;
	color: var(--orange); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }

.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 24px; border-radius: 999px;
	font: 600 .98rem/1 var(--sans); text-decoration: none;
	border: 1.5px solid transparent; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
	font-weight: 600; color: var(--ink); text-decoration: none;
	border-bottom: 1.5px solid var(--orange); padding-bottom: 2px;
}
.text-link:hover { color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(247, 244, 238, .92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--rule);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.brand {
	display: inline-flex; align-items: baseline; gap: 1px;
	font-family: var(--serif); font-size: 1.55rem; font-weight: 650;
	color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand .brand-accent { color: var(--orange); }
.brand .brand-tag {
	font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .06em;
	color: var(--muted); margin-left: 8px; text-transform: uppercase;
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
	position: relative; padding: 8px 12px; border-radius: 8px;
	font-size: .95rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.main-nav a:hover { color: var(--ink); background: var(--paper-2); }
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
	height: 2px; background: var(--orange); border-radius: 2px;
}
.main-nav .nav-cta { margin-left: 10px; padding: 10px 18px; background: var(--ink); color: var(--paper); border-radius: 999px; }
.main-nav .nav-cta:hover, .main-nav .nav-cta.active { background: var(--orange); color: #fff; }
.main-nav .nav-cta.active::after { display: none; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--navy); color: var(--on-dark-muted); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 18em; }
.section-head p { margin: 0; max-width: 30em; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 88px 0 64px; border-bottom: 1px solid var(--rule); }
.page-hero h1 { max-width: 15em; margin-bottom: 20px; }
.page-hero .lead { margin: 0; }

/* ---------- Home hero ---------- */
.hero { padding: 96px 0 104px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--orange); font-weight: 500; }
.hero .lead { margin: 26px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; }
.code-card {
	position: relative;
	background: var(--navy); color: var(--on-dark);
	border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(15, 42, 63, .55);
	font-family: var(--mono); font-size: .86rem; line-height: 1.75;
	transform: rotate(1.2deg);
}
.code-card-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.code-card-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.code-card-bar span { margin-left: auto; font-size: .74rem; color: var(--on-dark-muted); }
.code-card pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; white-space: pre; }
.code-card .c { color: #7f93a5; }
.code-card .k { color: #ff9a6b; }
.code-card .s { color: #9fd8a8; }
.code-card .f { color: #8ec5ff; }
.code-badge {
	position: absolute; left: -22px; bottom: -22px;
	background: var(--card); color: var(--ink);
	font-family: var(--sans); font-size: .85rem; line-height: 1.35;
	padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow);
	transform: rotate(-1.2deg);
}
.code-badge strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--orange); line-height: 1; margin-bottom: 4px; }

/* ---------- Fact strip ---------- */
.facts { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 30px 24px; border-left: 1px solid var(--rule); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.fact span { font-size: .92rem; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
	background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
	padding: 32px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3cab9; color: inherit; }

.card-num { font-family: var(--mono); font-size: .78rem; color: var(--orange); margin-bottom: 26px; display: block; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag {
	font-family: var(--mono); font-size: .72rem; letter-spacing: .02em;
	padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2);
}
.card-featured { background: var(--navy); border-color: var(--navy); color: var(--on-dark-muted); }
.card-featured h3 { color: #fff; }
.card-featured .tag { background: rgba(255, 255, 255, .1); color: var(--on-dark); }
.card-featured .text-link { color: #fff; }

/* ---------- Work / portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.work-item { display: block; color: inherit; text-decoration: none; }
.work-item:hover { color: inherit; }
.work-thumb {
	aspect-ratio: 6 / 5; overflow: hidden; border-radius: var(--radius);
	background: var(--paper-2); border: 1px solid var(--rule);
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.work-item:hover .work-thumb img { transform: scale(1.04); }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.work-meta h3 { font-size: 1.12rem; margin: 0; }
.work-meta span { font-family: var(--mono); font-size: .74rem; color: var(--muted); text-align: right; }

/* ---------- Quotes ---------- */
.quote-feature { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
.quote-mark { font-family: var(--serif); font-size: 9rem; line-height: .7; color: var(--orange); }
.quote-feature blockquote { margin: 0; }
.quote-feature blockquote p { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.4; color: #fff; font-weight: 400; }
.quote-cite { font-style: normal; display: block; margin-top: 18px; color: var(--on-dark-muted); }
.quote-cite strong { color: #fff; font-weight: 600; }

.quotes { column-count: 2; column-gap: 24px; }
.quote-card {
	break-inside: avoid; -webkit-column-break-inside: avoid;
	background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
	padding: 30px 32px; margin: 0 0 24px;
}
.quote-card p { color: var(--ink-2); }
.quote-card footer { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); }
.avatar {
	flex: none; width: 42px; height: 42px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--paper-2); color: var(--blue);
	font-family: var(--serif); font-weight: 650; font-size: 1rem;
}
.quote-card cite { font-style: normal; line-height: 1.35; font-size: .95rem; }
.quote-card cite strong { display: block; color: var(--ink); }
.quote-card cite span { color: var(--muted); font-size: .88rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { padding: 0 28px 0 0; border-top: 1.5px solid var(--ink); padding-top: 22px; margin-right: 24px; }
.step:last-child { margin-right: 0; }
.step::before {
	counter-increment: step; content: "0" counter(step);
	display: block; font-family: var(--mono); font-size: .8rem; color: var(--orange); margin-bottom: 14px;
}
.step p { font-size: .96rem; margin: 0; }

/* ---------- Two-column prose ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.split-sticky { position: sticky; top: 110px; }
.prose p { font-size: 1.06rem; }
.prose h3 { margin-top: 1.8em; }
.prose h3:first-child { margin-top: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--rule); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
	content: ""; position: absolute; left: 2px; top: 22px;
	width: 14px; height: 8px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
	transform: rotate(-45deg);
}
.check-list strong { color: var(--ink); }

/* ---------- Feature modules (School Soft) ---------- */
.module-group h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.module-group h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
.module-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.module-list li {
	font-size: .9rem; padding: 6px 12px; border-radius: 8px;
	background: var(--paper); border: 1px solid var(--rule); color: var(--ink-2);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; align-items: center; gap: 24px;
	padding: 26px 0; font-family: var(--serif); font-size: 1.28rem; font-weight: 550; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center; border: 1px solid var(--rule);
	font-family: var(--sans); font-size: 1.2rem; color: var(--ink); transition: transform .25s, background-color .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq summary:hover { color: var(--orange); }
.faq .answer { padding: 0 64px 26px 0; }
.faq .answer p:last-child { margin: 0; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field label .required { color: var(--orange); margin-left: 2px; }
.field input[type="text"], .field input[type="email"], .field textarea {
	width: 100%; padding: 13px 15px;
	font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--paper); border: 1.5px solid var(--rule); border-radius: 10px;
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(31, 93, 143, .12); }
.field input.error, .field textarea.error { border-color: #c0392b; background: #fdf5f3; }
.field .errorMessage { color: #b0301f; font-size: .86rem; margin-top: 6px; }
.field .hint { font-size: .84rem; color: var(--muted); margin: 8px 0 0; }
.errorSummary { background: #fdf5f3; border: 1px solid #f0c9c0; color: #8f2a1a; border-radius: 10px; padding: 14px 18px; margin-bottom: 22px; }
.errorSummary ul { margin: 6px 0 0; padding-left: 20px; }

.captcha-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.captcha-row img { border-radius: 8px; border: 1px solid var(--rule); background: #fff; }
.captcha-row a { font-size: .88rem; }
.captcha-row input[type="text"] { max-width: 160px; }

.notice-success {
	display: flex; gap: 16px; align-items: flex-start;
	background: #eef6f0; border: 1px solid #cfe5d5; color: #1f5132; border-radius: 14px; padding: 22px 24px;
}
.notice-success::before { content: "\2713"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #2f7a4b; color: #fff; font-weight: 700; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.info-list li:first-child { padding-top: 0; }
.info-list li:last-child { border-bottom: 0; }
.info-list .label { display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.info-list address { font-style: normal; color: var(--ink); }

/* ---------- Partner ---------- */
.partner-card { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.partner-logo { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 44px 32px; display: grid; place-items: center; }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); color: var(--on-dark-muted); border-radius: 24px; padding: 64px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta::after {
	content: "<?php"; position: absolute; right: -10px; bottom: -40px;
	font-family: var(--mono); font-size: 9rem; font-weight: 600; color: rgba(255, 255, 255, .04); pointer-events: none;
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { margin: 0; font-size: 1.08rem; }
.cta .btn { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 80px 0 32px; font-size: .95rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.footer-title { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.site-footer address { font-style: normal; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: .86rem; }

/* ---------- Error page ---------- */
.error-page { padding: 120px 0; text-align: center; }
.error-code { font-family: var(--mono); font-size: .9rem; color: var(--orange); letter-spacing: .08em; }
.error-page h1 { margin: 12px auto 18px; }
.error-page .lead { margin: 0 auto 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.main-nav a { padding: 8px 9px; font-size: .92rem; }
	.brand .brand-tag { display: none; }
}

@media (max-width: 960px) {
	.section { padding: 80px 0; }
	.hero-grid, .split, .contact-grid, .partner-card { grid-template-columns: 1fr; gap: 48px; }
	.split-sticky { position: static; }
	.grid-3, .work-grid { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
	.step:nth-child(2n) { margin-right: 0; }
	.facts-grid { grid-template-columns: repeat(2, 1fr); }
	.fact:nth-child(3) { border-left: 0; padding-left: 0; }
	.fact:nth-child(n+3) { border-top: 1px solid var(--rule); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.cta { grid-template-columns: 1fr; padding: 48px; }
	.code-card { transform: none; max-width: 560px; }
	.code-badge { left: auto; right: 16px; }

	/* mobile nav */
	.nav-toggle-label {
		display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
		cursor: pointer; border-radius: 10px;
	}
	.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
		display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s, background-color .25s;
	}
	.nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; left: 0; }
	.nav-toggle-label span::before { top: -7px; }
	.nav-toggle-label span::after { top: 7px; }
	.nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid var(--orange); }
	.nav-toggle:checked + .nav-toggle-label span { background: transparent; }
	.nav-toggle:checked + .nav-toggle-label span::before { transform: translateY(7px) rotate(45deg); }
	.nav-toggle:checked + .nav-toggle-label span::after { transform: translateY(-7px) rotate(-45deg); }

	.main-nav {
		display: none; position: absolute; top: 76px; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--paper); border-bottom: 1px solid var(--rule);
		padding: 8px 24px 24px; box-shadow: 0 20px 30px -20px rgba(22, 34, 46, .25);
	}
	.nav-toggle:checked ~ .main-nav { display: flex; }
	.main-nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
	.main-nav a:hover { background: transparent; }
	.main-nav a.active::after { left: -24px; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
	.main-nav .nav-cta { margin: 18px 0 0; text-align: center; justify-content: center; padding: 14px; border-bottom: 0; border-radius: 999px; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.section { padding: 64px 0; }
	.page-hero { padding: 56px 0 44px; }
	.hero { padding: 56px 0 72px; }
	.main-nav { padding: 8px 16px 20px; }
	.main-nav a.active::after { left: -16px; }
	.grid-3, .grid-2, .work-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; }
	.step { margin-right: 0; }
	.quotes { column-count: 1; }
	.quote-feature { grid-template-columns: 1fr; gap: 0; }
	.quote-mark { font-size: 6rem; }
	.section-head { margin-bottom: 36px; }
	.card, .form-card { padding: 24px; }
	.cta { padding: 36px 24px; border-radius: 18px; }
	.cta::after { font-size: 5rem; bottom: -20px; }
	.faq summary { font-size: 1.1rem; }
	.faq .answer { padding-right: 0; }
	.code-card { font-size: .76rem; }
	.code-badge { position: static; transform: none; margin: 16px 0 0; display: inline-block; }
	.hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* keep in-page anchors clear of the sticky header */
[id] { scroll-margin-top: 100px; }

/* dark surfaces: links and card text must stay legible */
a.card.card-featured, a.card.card-featured:hover { color: var(--on-dark-muted); }
.section-dark .text-link, .card-featured .text-link { color: #fff; }
.section-dark .text-link:hover { color: var(--orange); }

/* grid children may shrink below their content (stops the code sample widening the page) */
.hero-grid > *, .split > *, .contact-grid > *, .partner-card > *, .cta > * { min-width: 0; }

/* ---------- Top bar ---------- */
.top-bar { background: var(--ink); color: var(--on-dark-muted); font-size: .82rem; }
.top-bar-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.top-bar span { font-family: var(--serif); font-style: italic; color: var(--on-dark); }
.top-bar a { color: var(--on-dark); text-decoration: none; }
.top-bar a:hover { color: var(--orange); }

/* ---------- SOBINFOTECH acrostic ---------- */
.acrostic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.acrostic li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--on-dark); }
.acrostic-letter { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--orange); }

/* ---------- Technology logos ---------- */
.logo-row { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: 32px; margin-top: 56px; padding: 32px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); }
.logo-row img { max-height: 64px; width: auto; }

/* ---------- Featured projects ---------- */
.featured-list { display: grid; gap: 56px; }
.featured-item { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.featured-item:nth-child(even) > .work-thumb { order: 2; }
.featured-item > * { min-width: 0; }
.featured-url { font-family: var(--mono); font-size: .85rem; color: var(--orange); margin-top: -4px; }

/* ---------- School Soft modules ---------- */
.module-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.module-grid li { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px 12px 34px; position: relative; font-size: .94rem; color: var(--ink); }
.module-grid li::before { content: ""; position: absolute; left: 14px; top: 19px; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }

/* ---------- Services list ---------- */
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
.service-list li:nth-last-child(2) { border-bottom: 0; }

/* ---------- Footer social ---------- */
.social { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: .84rem; }
.social a:hover { border-color: var(--orange); }

.extras .card { display: flex; flex-direction: column; }
.extras .partner-logo { flex: 1; }

@media (max-width: 1180px) {
	.main-nav a { padding: 8px 8px; font-size: .9rem; }
	.main-nav .nav-cta { margin-left: 6px; padding: 10px 14px; }
}
@media (max-width: 960px) {
	.acrostic { grid-template-columns: 1fr; }
	.featured-item { grid-template-columns: 1fr; gap: 24px; }
	.featured-item:nth-child(even) > .work-thumb { order: 0; }
	.module-grid { grid-template-columns: repeat(2, 1fr); }
	.main-nav { top: 76px; }
}
@media (max-width: 640px) {
	.top-bar span { display: none; }
	.top-bar-row { justify-content: center; }
	.service-list { grid-template-columns: 1fr; }
	.service-list li:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
	.module-grid { grid-template-columns: 1fr; }
	.logo-row { padding: 24px; gap: 24px; }
	.logo-row img { max-height: 48px; }
}

/* ---------- Logo image ---------- */
.brand img { display: block; width: auto; height: 50px; }
.site-footer .brand-footer { display: inline-block; background: #fff; padding: 10px 16px; border-radius: 12px; margin-bottom: 20px; }
.site-footer .brand-footer img { height: 44px; }
@media (max-width: 640px) {
	.site-header .brand img { height: 42px; }
}

/* ---------- Blue menu bar ---------- */
:root { --menu-blue: #1f5d8f; --menu-blue-dark: #184b74; }
.site-header { background: var(--menu-blue); border-bottom-color: var(--menu-blue-dark); -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header .brand { background: #fff; padding: 6px 12px; border-radius: 10px; }
.site-header .brand img { height: 44px; }
.main-nav a { color: rgba(255, 255, 255, .88); }
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.main-nav a.active { color: #fff; }
.main-nav a.active::after { background: #ffb08a; }
.main-nav .nav-cta { background: var(--orange); color: #fff; }
.main-nav .nav-cta:hover, .main-nav .nav-cta.active { background: #fff; color: var(--orange-dark); }
.site-header :focus-visible { outline-color: #fff; }

@media (max-width: 960px) {
	.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after { background: #fff; }
	.nav-toggle:checked + .nav-toggle-label span { background: transparent; }
	.main-nav { background: var(--menu-blue); border-bottom-color: var(--menu-blue-dark); }
	.main-nav a { border-bottom-color: rgba(255, 255, 255, .15); }
	.main-nav a:hover { background: transparent; }
}
@media (max-width: 640px) {
	.site-header .brand img { height: 38px; }
}

/* ---------- Back to top button ---------- */
.to-top {
	position: fixed; right: 16px; bottom: 16px; z-index: 95;
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	background: var(--orange); color: #fff; text-decoration: none;
	box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
	transition: opacity .25s, transform .25s, background-color .2s;
}
.to-top:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.to-top svg { width: 22px; height: 22px; }
.to-top.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
