/* findur.eu — the Findur company page.
 *
 * Follows the VetNära brand (Direction A, "calm editorial"): Lora for headings,
 * Inter Tight for everything else, oat paper, spruce green as the accent, the
 * Drench green bar and footer, and an automatic dark theme. The colour values
 * mirror the `--color-a-*` tokens in `frontend/src/app/globals.css`; this page is
 * a build-free static asset and cannot import them, so a brand colour change
 * there must be copied here by hand.
 *
 * Generated pages share this one file. Edit the copy in
 * `holding/build-findur.mjs`, never the generated HTML.
 */

@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/InterTight-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/fonts/Lora-latin-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fbf9f5; /* --color-a-paper */
  --band-top: #e7f0e9; /* --color-a-band-fade-top */
  --ink: #1a1f1c; /* --color-a-ink */
  --ink-2: #4a524d; /* --color-a-ink-2 */
  --ink-3: #5f675d; /* --color-a-ink-3 */
  --rule: #e3ddd3; /* --color-a-rule */
  --rule-strong: #cfc7b8; /* --color-a-rule-strong */
  --green: #247548; /* --color-a-green */
  --green-soft: #dde7df; /* --color-a-green-soft */
  --phrase: #1f6440; /* --color-a-hero-phrase */
  --drench: #143826; /* --color-a-drench, theme-invariant */
  --drench-ink: #fbf9f5; /* fixed cream on the fixed Drench fill */
  --drench-ink-2: rgba(234, 245, 238, 0.82);
  --drench-rule: rgba(255, 255, 255, 0.14);
  --focus: #247548;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 68rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f231a; /* deep pine ground */
    --band-top: #16321f;
    --ink: #f2ede3;
    --ink-2: #c3ccc2;
    --ink-3: #9fae9f;
    --rule: rgba(242, 237, 227, 0.14);
    --rule-strong: rgba(242, 237, 227, 0.26);
    --green: #7fc9a0;
    --green-soft: #1f4331;
    --phrase: #7fc9a0;
    --focus: #7fc9a0;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px; /* rounded.small */
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  padding: 0.5rem 0.9rem;
  background: var(--drench-ink);
  color: var(--drench);
  border-radius: 10px; /* rounded.button */
  font-weight: 600;
  z-index: 10;
}
.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Brand bar ─────────────────────────────────────────────────────────── */

.bar {
  background: var(--drench);
  color: var(--drench-ink);
  border-bottom: 1px solid var(--drench-rule);
}
.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--drench-ink);
  line-height: 1;
}

.langs {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}
.langs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding-inline: 0.5rem;
  border-radius: 10px; /* rounded.button */
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--drench-ink-2);
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.langs a:hover {
  color: var(--drench-ink);
  background: rgba(255, 255, 255, 0.08);
}
.langs a[aria-current='page'] {
  color: var(--drench-ink);
  background: rgba(255, 255, 255, 0.16); /* --color-a-drench-scrim */
}
.langs a:focus-visible {
  outline-color: var(--drench-ink);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

main {
  flex: 1;
}

.hero {
  background: linear-gradient(180deg, var(--band-top) 0%, var(--bg) 78%);
  padding-top: clamp(2.5rem, 7vw, 5rem);
  overflow: hidden;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.35rem, 6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--phrase);
}
/* Wide screens: the green clause gets its own line, as on the VetNära hero. */
@media (min-width: 40rem) {
  .hero h1 em {
    display: block;
  }
}
.lede {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 40rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.scene {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  /* The drawing's floor line runs edge to edge; bleed it past the gutter. */
  margin-inline: calc(var(--gutter) * -1);
}
.scene img {
  display: block;
  width: 100%;
  max-width: 64rem;
  height: auto;
  margin-inline: auto;
  /* The source frame (1280 x 350) is empty in its top ~40%: it is the last
     frame of the VetNära landing animation, whose upper half the animals walk
     through. Crop to the sleeping pair and the floor line. */
  aspect-ratio: 1280 / 205;
  object-fit: cover;
  object-position: center bottom;
}
/* Phones: the pair fills only a third of the frame, so zoom in and let the
   floor line run off both edges (the hero clips the overflow). */
@media (max-width: 40rem) {
  .scene img {
    width: 170%;
    max-width: none;
    margin-inline: -35%;
  }
}

/* ── Services ──────────────────────────────────────────────────────────── */

.section {
  padding-block: clamp(3rem, 7vw, 5rem);
}
.section + .section {
  padding-top: 0;
}

.split {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 52rem) {
  .split {
    grid-template-columns: minmax(14rem, 1fr) 2fr;
    gap: 3rem;
    align-items: start;
  }
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-note {
  margin-top: 0.6rem;
  color: var(--ink-3);
  font-size: 0.975rem;
  max-width: 22rem;
}

.services {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}
.services li {
  border-bottom: 1px solid var(--rule);
}
.service {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.25rem 1.25rem;
  padding: 1.15rem 0.25rem;
  text-decoration: none;
  color: var(--ink);
}
.service-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  line-height: 1.2;
  color: var(--green);
}
.service-meta {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.6rem;
  font-size: 0.9375rem;
  color: var(--ink-3);
}
.service-meta .country {
  color: var(--ink-2);
  font-weight: 500;
}
.service-meta .host::before {
  content: '·';
  margin-right: 0.6rem;
  color: var(--rule-strong);
}
.service-features {
  grid-column: 1;
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.service-go {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  color: var(--green);
  transition:
    background-color 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    transform 260ms var(--ease-out);
}
.service-go svg {
  width: 1.1rem;
  height: 1.1rem;
}
.service:hover .service-name,
.service:focus-visible .service-name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.service:hover .service-go {
  background: var(--green-soft);
  border-color: transparent;
  transform: translateX(3px);
}

/* ── How we work ───────────────────────────────────────────────────────── */

.principles {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 40rem) {
  .principles {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
.principles h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
}
.principles p {
  margin-top: 0.4rem;
  color: var(--ink-2);
  max-width: 34rem;
  text-wrap: pretty;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.foot {
  background: var(--drench);
  color: var(--drench-ink-2);
  border-top: 1px solid var(--drench-rule);
  font-size: 0.9375rem;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2.25rem;
}
.foot .wordmark {
  font-size: 1.35rem;
}
.foot p {
  line-height: 1.5;
}
.foot a {
  color: var(--drench-ink);
  font-weight: 500;
  text-underline-offset: 0.18em;
}
.foot a:focus-visible {
  outline-color: var(--drench-ink);
}

/* ── Load motion ───────────────────────────────────────────────────────── */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero h1 {
  animation: rise 700ms var(--ease-out) both;
}
.lede {
  animation: rise 700ms var(--ease-out) 90ms both;
}
.scene img {
  animation: settle 900ms var(--ease-out) 200ms both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
