/* RainLab. Palette is taken from the logo. */
:root {
  --ink: #1d2434;
  --ink-2: #2b3550;
  --deep: #2a3fa0;
  --rain: #1fcfcf;
  --rain-dark: #0b8f94;   /* cyan darkened for text on light backgrounds */
  --mint: #3ee0b0;
  --paper: #ffffff;
  --mist: #f1f8fa;
  --line: #d9e6ea;
  --text: #1d2434;
  --muted: #53607a;
  --radius: 6px;
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--deep); text-underline-offset: 3px; }
a:hover { color: var(--rain-dark); }
:focus-visible { outline: 3px solid var(--rain); outline-offset: 3px; border-radius: 2px; }
code { background: var(--mist); padding: .1em .4em; border-radius: 4px; font-size: .9em; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--rain); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
.h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.lead { font-size: 1.2rem; max-width: 56ch; }
.muted { color: var(--muted); }
.prose { max-width: 62ch; }
.prose p, p.prose { margin: 0 0 1.1em; }

/* Buttons */
.btn { display: inline-block; font: 600 1rem var(--body); text-decoration: none; background: var(--rain); color: var(--ink);
  padding: .85rem 1.5rem; border-radius: var(--radius); border: 2px solid var(--rain); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.btn-small { padding: .5rem 1rem; font-size: .95rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--deep); border-color: var(--deep); color: #fff; }

/* Header */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.08); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand img { width: 36px; height: auto; }
.wordmark { font: 300 1.5rem var(--display); color: #bff6f8; letter-spacing: -.01em; }
.wordmark b { font-weight: 700; color: #e6fdff; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: #d6e4ee; text-decoration: none; font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--rain); }
.nav a.btn { color: var(--ink); border-bottom: 2px solid var(--rain); padding: .5rem 1rem; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; font: 500 .95rem var(--body); padding: .45rem .9rem; border-radius: var(--radius); }

/* Hero: the one memorable moment */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
#rain { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 2rem; padding-block: clamp(3rem, 8vw, 6.5rem); }
.hero h1 { color: #fff; }
.hero .lead { color: #c9d8e6; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-mark { width: 100%; max-width: 380px; justify-self: center; mix-blend-mode: lighten; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.tint { background: var(--mist); }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.page-head { background: var(--ink); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 4px solid var(--rain); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .4em; }
.page-head .lead { color: #c9d8e6; margin: 0; }

/* Rows (services list, values) */
.rows { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.row h3, .row p { margin: 0; }
.row p { color: var(--muted); }
.rows.tight { margin: 0; }
.rows.tight .row { grid-template-columns: 1fr; gap: .4rem; }
.more { margin-top: 1.5rem; font-weight: 600; }

/* Process (a real sequence, so it is numbered) */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.6rem 3.2rem; border-left: 2px solid var(--line); margin-left: 1rem; }
.steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
.steps li::before { content: counter(step); position: absolute; left: -1.05rem; top: -.1rem; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--ink); color: var(--rain); display: grid; place-items: center; font: 700 .9rem var(--display); }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); }

/* Services page */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.service:first-child { padding-top: 0; }
.service h2 { font-size: 1.6rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: .45rem 0 .45rem 1.6rem; position: relative; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .7rem; height: .7rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg, var(--rain), var(--deep)); }

/* Work */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters a { text-decoration: none; padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-weight: 500; }
.filters a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.work-list { display: grid; gap: 2.5rem; margin-top: 1.5rem; }
.work { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; }
.work:nth-child(even) .work-visual { order: 2; }
.work-visual { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background: linear-gradient(135deg, var(--ink), var(--deep) 60%, #127f95); color: #bff6f8; font: 300 1.3rem var(--display); }
.work-visual.has-img img { width: 100%; height: 100%; object-fit: cover; }
.work-body h3 { font-size: 1.5rem; }
.work-body h3 a { color: var(--text); text-decoration: none; }
.work-body h3 a:hover { color: var(--deep); }
.meta { color: var(--muted); font-size: .95rem; }
.detail-img { border-radius: var(--radius); margin-bottom: 1.5rem; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta h2 { color: #fff; max-width: 22ch; }
.cta p { color: #c9d8e6; max-width: 52ch; margin: 0 0 1.5rem; }

/* Forms */
.form { display: grid; gap: 1.2rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid #aebdc6; border-radius: var(--radius); background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--rain); outline-offset: 0; border-color: var(--rain-dark); }
.error { color: #b3261e; margin: .3rem 0 0; font-size: .95rem; }
.errorlist { list-style: none; padding: 0; margin: 0; color: #b3261e; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form .btn { justify-self: start; }
.messages { margin-top: 1rem; }
.msg { margin: 0; padding: .9rem 1.1rem; border-radius: var(--radius); background: #e5fbf4; border: 1px solid var(--mint); }
.msg-error { background: #fdecea; border-color: #e5a29c; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d8e6; padding-block: 3rem 2.5rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot nav { display: grid; gap: .5rem; align-content: start; }
.site-footer a { color: #e6fdff; text-decoration: none; }
.site-footer a:hover { color: var(--rain); text-decoration: underline; }
.foot-note { max-width: 32ch; margin: 1rem 0 0; font-size: .95rem; }
.copy { font-size: .9rem; margin-top: 1.5rem; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1rem;
    background: var(--ink); padding: 1.25rem 1.25rem 1.75rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav.is-open { display: flex; }
  .hero-grid, .split, .service, .row, .work, .foot { grid-template-columns: 1fr; }
  .hero-mark { max-width: 220px; justify-self: start; order: -1; }
  .work:nth-child(even) .work-visual { order: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
