/* App Tapestry — site styles. Colors are sampled from the logo. */
:root {
  --navy: #13294a;
  --navy-2: #1c3a63;
  --blue: #2f7fc1;
  --blue-2: #5aa3dc;
  --sky: #e9f3fb;
  --ink: #142235;
  --muted: #55657a;
  --line: #dde6f0;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 41, 74, .06), 0 8px 24px rgba(19, 41, 74, .08);
  --wrap: 1120px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { font: 600 .8rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font: 600 .98rem/1 var(--head); padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font: 700 1.2rem/1 var(--head); letter-spacing: .01em; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav .btn, .nav .btn[aria-current] { color: #fff; padding: 11px 18px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1000px 500px at 85% 20%, var(--sky), transparent 70%), linear-gradient(180deg, #fff, var(--bg-soft)); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(47, 127, 193, .13) 1.2px, transparent 1.2px); background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 span { color: var(--blue); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art img { width: 100%; max-width: 480px; margin-left: auto; filter: drop-shadow(0 18px 30px rgba(19, 41, 74, .12)); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; gap: 24px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 300px; margin: 0 auto; }
}

/* Page header (inner pages) */
.page-head { background: linear-gradient(180deg, #fff, var(--bg-soft)); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 64px; padding-bottom: 56px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); }

/* Sections */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 760px) { .section { padding: 60px 0; } }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cddcec; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--blue); margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding-top: 64px; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--blue); color: var(--blue); font: 700 .95rem/1 var(--head); z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 46px; right: -18px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--line)); }
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 30px 66px; }
  .steps li:not(:last-child)::after { top: 46px; left: 22px; right: auto; bottom: 0; width: 2px; height: auto; background: var(--line); }
}

/* Navy band */
.band { background: var(--navy); color: #c9d6e6; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: var(--blue-2); }
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 24px; background: rgba(255, 255, 255, .03); }
.stat b { display: block; font: 700 2rem/1.1 var(--head); color: #fff; margin-bottom: 6px; }
.stat span { font-size: .95rem; }
@media (max-width: 860px) { .band .wrap { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 480px) { .stats { gap: 12px; } .stat { padding: 18px; } .stat b { font-size: 1.4rem; } }

/* CTA */
.cta { background: linear-gradient(120deg, var(--navy-2), var(--blue)); border-radius: 20px; padding: 56px; color: #e3eef8; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .25em; }
.cta p { margin: 0; }
@media (max-width: 620px) { .cta { padding: 36px 26px; } }

/* About */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.split aside img { max-width: 340px; margin: 0 auto; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split aside { order: -1; } .split aside img { max-width: 220px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 14px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7fc1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form { padding: 22px; } .form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s, background .15s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47, 127, 193, .15); }
.hp { position: absolute; left: -9999px; }
.notice { border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; font-size: .96rem; }
.notice.error { background: #fdecec; color: #8a1f1f; border: 1px solid #f5c6c6; }
.form .btn { width: 100%; justify-content: center; }

/* Footer */
.site-foot { background: var(--navy); color: #9fb2c8; font-size: .95rem; margin-top: 0; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-foot .brand { color: #fff; margin-bottom: 14px; }
.site-foot .brand img { height: 32px; }
.site-foot h4 { font: 600 .8rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 6px 0 16px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: #c9d6e6; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot .wrap.legal { display: block; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 20px; font-size: .88rem; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* Simple centered pages (thanks, 404) */
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.center-page img { width: 107px; margin: 0 auto 24px; }

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