/* Arcwell Systems — site styles
   Modern minimalist, light theme, responsive. No external dependencies. */

:root {
  --brand: #2f5fe0;
  --brand-dark: #1f47b3;
  --brand-light: #5b8cff;
  --ink: #10203f;
  --ink-soft: #3a4d74;
  --muted: #6a7891;
  --line: #e3e9f4;
  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --bg-tint: #eef3ff;
  --success: #1f9d8f;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 63, .06), 0 1px 3px rgba(16, 32, 63, .04);
  --shadow-md: 0 6px 20px rgba(16, 32, 63, .08);
  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin: .35em 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  color: var(--ink-soft); font-weight: 500; font-size: .98rem;
}
.nav-links a:hover { background: var(--bg-tint); color: var(--brand-dark); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--brand); background: var(--bg-tint); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: background .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--bg-tint); color: var(--brand-dark); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-tint), #fff 70%);
  padding: 72px 0 56px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); background: #fff;
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-figure img { border-radius: var(--radius); }

.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-tint { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { display: inline-block; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-top: 14px; }
.card p { color: var(--ink-soft); margin-bottom: 0; }

.icon-badge {
  width: 48px; height: 48px; border-radius: 12px; background: var(--bg-tint);
  display: inline-flex; align-items: center; justify-content: center; color: var(--brand);
}
.icon-badge svg { width: 26px; height: 26px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.stat .label { color: var(--muted); font-size: .98rem; }

/* ---------- Article cards ---------- */
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card .thumb { aspect-ratio: 3 / 2; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand); text-decoration: none; }
.post-card p { color: var(--ink-soft); margin-bottom: 16px; }
.post-card .meta { margin-top: auto; color: var(--muted); font-size: .85rem; }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--brand-dark); background: var(--bg-tint);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}

/* ---------- Article body ---------- */
.article { padding: 56px 0; }
.article-header { max-width: 760px; margin: 0 auto 28px; }
.article-header h1 { margin-bottom: 12px; }
.article-meta { color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.article-figure { max-width: 920px; margin: 0 auto 36px; }
.article-figure img { border-radius: var(--radius); width: 100%; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 22px; border-left: 4px solid var(--brand);
  color: var(--ink-soft); font-style: italic; background: var(--bg-soft); border-radius: 0 8px 8px 0;
}
.prose code {
  background: var(--bg-tint); padding: 2px 6px; border-radius: 6px; font-size: .92em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.prose figure { margin: 1.8em 0; }
.prose figcaption { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 8px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .9rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { margin: 0 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand), var(--brand-light));
  color: #fff; border-radius: var(--radius); padding: 48px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 52ch; margin: 0 auto 24px; }

/* ---------- Feature list ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 32px; margin: .6em 0; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
  background: var(--bg-tint); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23eef3ff'/%3E%3Cpath d='M6 10.5l2.5 2.5 5-5.5' stroke='%232f5fe0' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Service detail ---------- */
.service-block { padding: 48px 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 95, 224, .15);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .88rem; color: var(--muted); }
.contact-info dt { font-weight: 700; margin-top: 16px; color: var(--ink); }
.contact-info dd { margin: 2px 0 0; color: var(--ink-soft); }

.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.form-status.show { display: block; }
.form-status.ok { background: #e9f7f4; color: #14695f; border: 1px solid #b9e7df; }

/* ---------- Footer ---------- */
.site-footer { background: #0d1a33; color: #c4d0e6; padding: 56px 0 28px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #c4d0e6; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: .5em 0; }
.footer-brand img { height: 34px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { color: #93a3c2; max-width: 34ch; font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid #1d2c4c; margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: #8294b5; font-size: .88rem;
}
.footer-bottom a { color: #8294b5; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 96px 0; }
.error-page .code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -.03em; }

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Animations (minimal) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .hero-figure { order: -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px; gap: 2px;
    box-shadow: var(--shadow-md); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .hero { padding: 48px 0 40px; }
  .cta-band { padding: 32px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}
