/* =========================================================
   Omni Technology Systems — stylesheet
   ========================================================= */

:root {
  --color-bg: #faf9f6;
  --color-surface: #ffffff;
  --color-ink: #14181f;
  --color-ink-soft: #545c68;
  --color-ink-faint: #889099;
  --color-primary: #12324a;
  --color-primary-dark: #0b2233;
  --color-accent: #d9663b;
  --color-accent-dark: #c14f26;
  --color-line: #e6e2d8;
  --color-surface-alt: #f1eee6;
  --shadow-sm: 0 1px 2px rgba(20, 24, 31, 0.06), 0 1px 1px rgba(20, 24, 31, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 24, 31, 0.08);
  --shadow-lg: 0 20px 48px rgba(11, 34, 51, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container-w: 1120px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--color-ink-soft); }

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: var(--color-line);
  color: var(--color-primary);
}
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  flex-shrink: 0;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--color-ink);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--color-surface-alt); text-decoration: none; }
.main-nav a.active { color: var(--color-primary); background: var(--color-surface-alt); font-weight: 700; }
.main-nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .main-nav {
    /* Anchored (not fixed) to .site-header, which is itself the nearest
       positioned ancestor (position: sticky). Using "fixed" here would
       resolve its containing block to that same sticky header box —
       76px tall — and collapse this panel's height to almost nothing. */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 76px);
    background: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 32px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--color-line); border-radius: 0; }
  .main-nav .btn { margin: 12px 0 0; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy p.lead {
  font-size: 1.15rem;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-art { position: relative; }

.blob-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
}

/* ---------- Feature / value grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.value-card, .service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.value-card:hover, .service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--color-accent);
}
.card-icon svg { width: 24px; height: 24px; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-alt { background: var(--color-surface-alt); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.78); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 32px 0;
  background: var(--color-bg);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--color-ink-soft); font-size: 0.92rem; }
.footer-note { color: var(--color-ink-soft); font-size: 0.92rem; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--color-ink-soft); }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding: 64px 0 24px;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-line);
}
.page-hero p.lead { max-width: 60ch; }

/* ---------- About page ---------- */
.timeline {
  display: grid;
  gap: 20px;
}
.timeline-item {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.timeline-item h3 { margin-bottom: 4px; }
.timeline-org {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-surface-alt);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.role-list { display: grid; gap: 16px; margin-top: 10px; }
.role-item { padding-left: 18px; border-left: 3px solid var(--color-accent); }
.role-item h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1rem; color: var(--color-ink); }
.role-item p { margin: 0; font-size: 0.95rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 28px;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--color-primary);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-ink);
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(217, 102, 59, 0.15);
}
.field .hint { font-size: 0.82rem; color: var(--color-ink-faint); margin-top: 4px; }
.form-status {
  margin-top: 14px;
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: #e7f3ec; color: #1e6b46; }
.form-status.err { background: #fbeae5; color: #a83c1f; }

.contact-channels { display: grid; gap: 16px; }
.channel-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.channel-card .card-icon { margin-bottom: 0; flex-shrink: 0; }
.channel-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.channel-card p { margin: 0; font-size: 0.95rem; }

/* ---------- Blog placeholder ---------- */
.placeholder-block {
  text-align: center;
  padding: 60px 24px;
  background: var(--color-surface);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-lg);
  max-width: 640px;
  margin: 0 auto;
}
.placeholder-block .card-icon { margin: 0 auto 20px; }

/* ---------- Reveal-on-scroll ----------
   Only hidden pre-emptively once JS has confirmed it can run
   (html.js, set by an inline script in <head>) and IntersectionObserver
   is available — see script.js. Without JS this stays fully visible,
   so content never depends on scripting to be readable. */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
html.js.io-ok .reveal { opacity: 0; transform: translateY(16px); }
html.js.io-ok .reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html.js.io-ok .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Misc ---------- */
.list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; }
.list-check svg { flex-shrink: 0; margin-top: 3px; color: var(--color-accent); width: 20px; height: 20px; }
.list-check strong { color: var(--color-ink); }
