/* ===========================================================
   Chinook Software — site styles
   Modern, professional. Blue palette with a teal accent.
   =========================================================== */

:root {
  --navy: #0f2440;
  --blue: #2e5a88;
  --blue-dark: #1b3a5c;
  --blue-light: #5b86b5;
  --accent: #18b6b1;        /* teal */
  --accent-dark: #0f8f8b;
  --ink: #1a2330;
  --body: #41506a;
  --muted: #6b7a93;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --bg-deep: #0f2440;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(15,36,64,.08), 0 1px 2px rgba(15,36,64,.06);
  --shadow: 0 10px 30px rgba(15,36,64,.10);
  --shadow-lg: 0 24px 60px rgba(15,36,64,.16);
  --maxw: 1140px;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1rem; }
ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
li { margin-bottom: .4rem; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: #c9d6e8; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .9rem;
}
.section--deep .eyebrow { color: var(--accent); }
.section--deep h2 { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #06302e; box-shadow: 0 6px 18px rgba(24,182,177,.35); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-dark); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--blue-dark); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--lg { padding: .95rem 1.9rem; font-size: 1.05rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand small { display:block; font-family: var(--font-body); font-weight: 500; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: var(--ink); }
.nav-links a:hover, .nav-links a.active { color: var(--accent-dark); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(24,182,177,.18), transparent 60%),
    linear-gradient(160deg, #0f2440 0%, #1b3a5c 55%, #25507e 100%);
  color: #e8eef7;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 380px at 75% 10%, #000, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 96px 0 100px; }
.hero h1 { color: #fff; }
.hero h1 .grad { background: linear-gradient(90deg, #4fe0d9, #7fb6ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: #b8c6dc; font-size: 1.2rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-trust { margin-top: 2.6rem; color: #8ea2bf; font-size: .9rem; }
.hero-trust strong { color: #d6e2f2; }

/* hero art card */
.hero-art {
  background: linear-gradient(165deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.hero-art .code-row { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.hero-art .dot { width: 11px; height: 11px; border-radius: 50%; background: #ffffff35; }
.hero-art .dot:nth-child(1){ background:#ff5f57; } .hero-art .dot:nth-child(2){ background:#febc2e; } .hero-art .dot:nth-child(3){ background:#28c840; }
.hero-art pre { margin: 0; font-family: "Consolas", ui-monospace, monospace; font-size: .82rem; line-height: 1.7; color: #cfe6ff; white-space: pre-wrap; }
.hero-art .k { color: #4fe0d9; } .hero-art .s { color: #ffd28a; } .hero-art .c { color: #7d92b3; }

/* ---------- service / feature cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0d9; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(150deg, #e8f8f7, #d3f1ef);
  color: var(--accent-dark);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 0; }

/* feature list rows (services page) */
.feature {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
}
.feature .icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(150deg,#e8f8f7,#d3f1ef); color: var(--accent-dark); display:grid; place-items:center; }
.feature .icon svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: .35rem; }
.feature p { margin-bottom: .6rem; color: var(--muted); }
.feature ul { color: var(--body); font-size: .96rem; margin-bottom: 0; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: #fff; line-height: 1; }
.stat .lbl { color: #95a8c6; font-size: .92rem; margin-top: .4rem; }

/* ---------- process steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.step { position: relative; padding-top: 14px; }
.step::before {
  counter-increment: step; content: counter(step,decimal-leading-zero);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--accent-dark); background: #e8f8f7; width: 44px; height: 44px;
  border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  border-radius: 22px; padding: 56px; color: #fff; text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdddf0; max-width: 560px; margin-inline: auto; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display:block; font-family: var(--font-head); font-weight:500; font-size:.9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(24,182,177,.18);
}
.field textarea { min-height: 140px; resize: vertical; }
.contact-info { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-info .row svg { width: 22px; height: 22px; color: var(--accent-dark); flex: none; margin-top: 3px; }
.contact-info .row strong { display:block; color: var(--ink); font-family: var(--font-head); }
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(160deg,#0f2440,#1f4775); color:#fff; padding: 72px 0 64px; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { color:#fff; margin-bottom:.4rem; }
.page-hero p { color:#bcccE2; max-width: 620px; margin: 0; font-size: 1.15rem; }
.breadcrumb { color:#8ea2bf; font-size:.85rem; margin-bottom: 1rem; }
.breadcrumb a { color:#bcccE2; }

/* ---------- footer ---------- */
.site-footer { background: #0b1c33; color: #93a4be; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 1rem; }
.site-footer a { color: #93a4be; display: block; margin-bottom: .55rem; font-size: .95rem; }
.site-footer a:hover { color: var(--accent); }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { font-size: .95rem; max-width: 320px; }
.footer-bottom { border-top: 1px solid #1c3252; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.center.section-head { margin-inline: auto; }
.tag { display:inline-block; background:#e8f8f7; color:var(--accent-dark); font-size:.78rem; font-weight:600; font-family:var(--font-head); padding:.25rem .7rem; border-radius:999px; }

/* ---------- projects ---------- */
.project { align-items: stretch; }
.project .icon { align-self: start; }
.project-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: .1rem 0 1rem; }
.project-tags .tag { background: #eef3fa; color: var(--blue-dark); }
.project-link { margin-top: 1.1rem; }
.project-link a { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 600; font-size: .96rem; }
.project-link svg { width: 16px; height: 16px; }
.project-empty { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 30px; text-align: center; color: var(--muted); background: var(--bg-alt); }

/* project screenshot */
.project-shot { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 14px 34px rgba(15, 36, 64, .14); margin-bottom: 1.3rem; }
.browser-bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; background: #0f2440; }
.browser-bar .b-dot { width: 10px; height: 10px; border-radius: 50%; background: #34507a; }
.browser-bar .b-dot:nth-child(1) { background: #ff6b6b; }
.browser-bar .b-dot:nth-child(2) { background: #ffbf47; }
.browser-bar .b-dot:nth-child(3) { background: #2ecc71; }
.browser-bar .b-url { margin-left: .55rem; font-size: .8rem; color: #c8d7ec; background: #16304f; padding: .26rem .8rem; border-radius: 20px; }
.project-shot img { display: block; width: 100%; height: auto; }
.project-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 1.3rem; }
.project-thumbs img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 20px rgba(15, 36, 64, .10); }
.project-thumbs--single { grid-template-columns: 1fr; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 70px 0; }
  .hero-art { display: none; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); row-gap: 34px; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px; box-shadow: var(--shadow);
  }
  .site-header.open .nav-links li { width: 100%; border-top: 1px solid var(--line); }
  .site-header.open .nav-links a { display: block; padding: 14px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } html { scroll-behavior:auto; } }
