/* Colibri Software: one stylesheet for the whole site. Mobile first. */
:root {
  --blue: #6ec1e4;        /* headings, accents (from the old site) */
  --blue-dark: #2b7fa8;
  --teal: #1f6f8b;        /* logo */
  --green: #4cbb6c;       /* buttons */
  --green-dark: #3a9a56;
  --ink: #2f3337;         /* body text */
  --muted: #5f6670;
  --line: #e3e7ee;
  --tint: #f1f4fb;        /* light section background */
  --tint2: #e9edf9;
  --wrap: 1140px;
  --radius: 10px;
  --heading: "Poppins", system-ui, sans-serif;
  --body: "Roboto", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.7 var(--body); color: var(--ink); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: .5em 1em; }

/* Buttons */
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font: 500 .85rem/1 var(--body); padding: 1em 1.8em; border-radius: 3px; transition: background .2s; }
.btn:hover, .btn:focus-visible { background: var(--green-dark); }
.btn-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.center { text-align: center; }
.center .btn-row { justify-content: center; }

/* Header and menu */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo img { width: 52px; height: auto; }
.menu-toggle { display: none; background: none; border: 0; padding: 12px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: .3rem; align-items: center; }
.site-nav a, .sub-toggle { display: block; padding: .6em .8em; color: var(--muted); text-decoration: none; font: 400 .98rem var(--heading); background: none; border: 0; cursor: pointer; }
.site-nav a:hover, .sub-toggle:hover, .site-nav a[aria-current] { color: var(--blue); }
.sub-toggle::after { content: ""; display: inline-block; margin-left: .4em; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.has-sub { position: relative; }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); border-radius: 6px; padding: .4rem 0; }
.has-sub.open .sub, html:not(.js) .has-sub:hover .sub { display: block; }

@media (max-width: 860px) {
  .js .menu-toggle { display: block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.1); }
  .js .nav-open .site-nav { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; padding: .5rem 0 1rem; }
  .site-nav a, .sub-toggle { padding: .8em 20px; width: 100%; text-align: left; font-size: 1.05rem; }
  .sub { position: static; box-shadow: none; padding: 0 0 0 1rem; }
  .nav-open .bars { background: transparent; }
  .nav-open .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .bars::after { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero banners */
.hero { position: relative; color: #fff; background: #333 var(--hero-img) center / cover no-repeat; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-inner { position: relative; padding: clamp(5rem, 16vw, 11rem) 20px; }
.hero-small .hero-inner { padding: clamp(4rem, 11vw, 7rem) 20px; }
.hero h1 { color: #fff; text-transform: none; max-width: 22ch; margin-left: auto; margin-right: auto; }
.hero .hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 300; max-width: 46ch; margin: 0 auto 1.6rem; }
.kicker { text-transform: uppercase; letter-spacing: .3em; font-size: .85rem; opacity: .9; }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section.tint { background: var(--tint); }
.section-title { color: var(--blue); text-align: center; margin-bottom: 2rem; }
.lead { font-size: 1.12rem; color: var(--muted); }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Cards and grids */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border-radius: var(--radius); padding: 2rem 1.6rem; box-shadow: 0 6px 24px rgba(31, 51, 90, .08); }
.card img.icon { width: 64px; height: 64px; margin-bottom: 1rem; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(31, 51, 90, .14); }
.project-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-card .thumb { aspect-ratio: 4 / 3; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 1.2rem; }
.project-card .body { padding: 1.3rem 1.4rem 1.6rem; }
.project-card .more { display: inline-block; margin-top: .8rem; color: var(--blue-dark); font-weight: 500; }

/* Two-column feature rows */
.feature { display: grid; gap: 2rem; align-items: center; }
.feature + .feature { margin-top: clamp(2.5rem, 7vw, 4.5rem); }
.feature img { border-radius: var(--radius); box-shadow: 0 12px 34px rgba(0,0,0,.12); }
@media (min-width: 860px) { .feature { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .feature.flip > :first-child { order: 2; } }
.feature h2 { color: var(--blue); }

/* Logos strip */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem 3rem; margin: 1.5rem 0 2rem; }
.logos img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .8; }

/* Testimonials */
.quote { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 6px 24px rgba(31, 51, 90, .08); }
.quote h3 { font-family: var(--body); font-weight: 400; color: var(--ink); }
.quote blockquote { margin: 0 0 1rem; color: var(--muted); font-size: .98rem; }
.quote cite { font-style: normal; font-size: .9rem; }
.quote cite strong { display: block; color: var(--ink); }

/* Location band */
.location { display: grid; background: var(--blue); color: #fff; }
.location .photo { min-height: 260px; background: var(--photo) center / cover no-repeat; }
.location .text { padding: clamp(2.5rem, 7vw, 4.5rem) clamp(20px, 6vw, 4rem); }
.location h2 { color: #fff; font-size: clamp(2rem, 5vw, 2.8rem); }
@media (min-width: 860px) { .location { grid-template-columns: 1fr 1fr; } }

/* Steps (About) */
.steps { counter-reset: step; }
.step .num { font: 600 .9rem var(--heading); color: var(--blue); letter-spacing: .1em; }
.pills { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.pills li { background: var(--tint2); border-radius: 999px; padding: .4em 1em; font-size: .95rem; }

/* Articles (case studies, blog) */
.article { max-width: 780px; margin: 0 auto; }
.article h2 { color: var(--blue); margin-top: 2rem; }
.article img { border-radius: var(--radius); margin: 1.5rem auto; }
.article figure { margin: 1.5rem 0; }
.article blockquote { border-left: 4px solid var(--blue); margin: 1.5rem 0; padding: .5rem 1.2rem; color: var(--muted); background: var(--tint); border-radius: 0 var(--radius) var(--radius) 0; }
.article pre { background: #1f2430; color: #e6e6e6; padding: 1rem 1.2rem; border-radius: 8px; overflow-x: auto; font-size: .9rem; line-height: 1.5; }
.article code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.article :not(pre) > code { background: var(--tint2); padding: .1em .35em; border-radius: 4px; }
.article table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.article td, .article th { border: 1px solid var(--line); padding: .4em .6em; }
.meta { color: var(--muted); font-size: .95rem; }
.post-list { display: grid; gap: 1.5rem; }
.post-list h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--blue-dark); }
.project-hero-img { max-width: 320px; margin: 0 auto 1.5rem; }

/* Call to action band */
.cta { background: var(--tint); text-align: center; }
.cta h2 { color: var(--ink); }

/* Contact */
.contact-cards { margin-top: 2rem; }
.contact-cards .card { text-align: center; }
.contact-cards a { font-size: 1.1rem; }

/* Footer */
.site-footer { background: #f0f1f3; color: var(--muted); padding: 3rem 0 1rem; font-size: .97rem; }
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.footer-brand img { width: 56px; margin-bottom: .6rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-nav a, .footer-contact a { color: var(--ink); text-decoration: none; line-height: 2; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--blue-dark); }
.footer-contact { font-style: normal; }
.social { display: flex; gap: 1rem; margin-top: .6rem; }
.social a { color: var(--blue-dark); font-weight: 500; }
.copyright { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #dfe2e6; font-size: .85rem; }
