/* Cluster Solutions Inc - site styles. Colors taken from the logo (navy wordmark, teal and green mark). */
:root {
	--navy: #16244f;
	--navy-soft: #3a4670;
	--teal: #1f8fb5;
	--green: #2fb84a;
	--ink: #1b2240;
	--muted: #55607f;
	--bg: #ffffff;
	--tint: #f3f7fa;
	--line: #dde4ec;
	--radius: 12px;
	--shadow: 0 6px 24px rgba(22, 36, 79, 0.08);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--navy); text-decoration: none; }
.brand-inc { font-weight: 500; color: var(--navy-soft); }
.brand-small { font-size: 0.95rem; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.site-nav a:hover { color: var(--teal); }
.site-nav .nav-cta { background: var(--navy); color: #fff; padding: 9px 16px; border-radius: 999px; }
.site-nav .nav-cta:hover { background: var(--teal); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); padding: 8px; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-primary { background: linear-gradient(90deg, var(--teal), var(--green)); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { border: 2px solid var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-large { padding: 15px 30px; font-size: 1.05rem; }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px); background: linear-gradient(180deg, var(--tint), var(--bg)); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--teal); margin-bottom: 0.8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media img, .split-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-tint { background: var(--tint); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-copy p { color: var(--muted); max-width: 36em; }

/* Service cards */
.cards { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.card-icon { width: 40px; height: 40px; padding: 8px; margin-bottom: 16px; border-radius: 10px; background: rgba(31, 143, 181, 0.1); fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Expertise */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; margin-top: 32px; }
.stack-group h3 { font-size: 1rem; margin-bottom: 0.8em; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: 0.92rem; color: var(--navy-soft); }
.section-tint .chips li { background: var(--bg); }
.chips-large li { font-size: 0.97rem; padding: 7px 15px; }

/* Contact */
.contact { background: var(--navy); color: #fff; text-align: center; }
.contact h2 { color: #fff; }
.contact p { color: #c9d2e8; }
.contact-inner { max-width: 640px; }
.contact .btn { margin-top: 12px; }
.contact-email { margin-top: 18px; font-size: 0.95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 26px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Tablet */
@media (max-width: 960px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.hero-inner, .split { grid-template-columns: 1fr; gap: 32px; }
	.split-reverse .split-media { order: -1; }
}

/* Phone */
@media (max-width: 720px) {
	body { font-size: 16px; }
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
	.site-nav.is-open { display: flex; }
	.site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
	.site-nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
	.cards { grid-template-columns: 1fr; }
	.hero-actions .btn { flex: 1 1 auto; text-align: center; }
}

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

/* Contact: form + email box */
.contact { text-align: left; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-intro p { color: #c9d2e8; }
.email-box { margin-top: 28px; padding: 22px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); }
.email-label { margin: 0 0 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: #9fb0d6; }
.email-address { margin: 0 0 16px; font-size: 1.15rem; font-weight: 600; color: #fff !important; word-break: break-all; }
.email-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-light { background: #fff; color: var(--navy); border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.btn-light:hover { background: #e8eef7; }
.btn-outline-light { border: 2px solid rgba(255, 255, 255, 0.45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.copy-status { min-height: 1.4em; margin: 10px 0 0; font-size: 0.9rem; }
.contact-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 143, 181, 0.18); }
.field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 600; margin-top: 4px; }
.contact-form .btn:disabled { opacity: 0.7; cursor: progress; }
.form-status { min-height: 1.4em; margin: 12px 0 0; font-size: 0.95rem; color: var(--muted) !important; }
.form-status.is-success { color: #1f7a35 !important; font-weight: 600; }
.form-status.is-error { color: #b42318 !important; font-weight: 600; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
