/* Searchers International. Fælles stylesheet for hele sitet. */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #12233a;
  --navy: #1f3a5f;
  --navy-soft: #2c4c76;
  --paper: #f4f6f8;
  --white: #ffffff;
  --mist: #d5dde6;
  --muted: #546171;
  --brass: #c4923f;
  --brass-light: #e3b86a;
  --header: #263f6a;

  /* Samme skrifttyper som det tidligere searchers.dk: Palatino til overskrifter, Open Sans til tekst */
  --font: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wordmark: "Montserrat", "Open Sans", sans-serif;
  --serif: "Palatino Linotype", "Palatino", "Book Antiqua", "URW Palladio L", "TeX Gyre Pagella", Georgia, serif;
  --measure: 62ch;
  --page: 1120px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(4rem, 9vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4.6vw + 0.8rem, 4.4rem); letter-spacing: -0.01em; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.6rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: clamp(1.2rem, 0.6vw + 1.05rem, 1.4rem); line-height: 1.5; color: var(--muted); max-width: 54ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 10; }

/* Knapper */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  background: var(--navy); color: var(--white);
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.on-dark .btn { background: var(--brass); color: var(--ink); }
.on-dark .btn:hover { background: var(--brass-light); color: var(--ink); }
.on-dark .btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.on-dark .btn-ghost:hover { background: rgba(255,255,255,.1); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Header: samme udtryk som det tidligere searchers.dk, navy bånd med logo, hvid streg og navnet i to linjer */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--header); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 6rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
/* Logoets cirkel sidder i den øverste del af billedet, så billedet skubbes ned, til cirklen står midt ud for stregen og navnet */
.brand img { height: 56px; width: auto; position: relative; top: 9px; }
.brand-text { display: flex; flex-direction: column; justify-content: center; padding-left: .95rem; border-left: 1px solid rgba(255,255,255,.85); min-height: 64px; font-family: var(--wordmark); }
.brand-name { font-size: 1.15rem; font-weight: 500; line-height: 1.25; letter-spacing: .005em; }
.brand-by { font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: .3rem; }
@media (max-width: 520px) { .brand img { height: 46px; top: 7px; } .brand { gap: .7rem; } .brand-text { min-height: 54px; padding-left: .75rem; } .brand-name { font-size: 1rem; } .site-header .wrap { min-height: 5rem; } }

.nav-list { display: flex; list-style: none; align-items: center; }
.nav-desktop .nav-list li + li::before { content: "|"; color: rgba(255,255,255,.55); margin: 0 1.1rem; }
.nav-list a { text-decoration: none; color: var(--white); font-size: 1rem; font-weight: 400; padding: .4rem 0; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--brass); }
.nav-phone { font-variant-numeric: tabular-nums; }

.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 1rem; padding: .5rem .9rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); color: var(--white); }
.menu summary::-webkit-details-marker { display: none; }

@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .menu { display: block; }
  .menu[open] .nav-list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--header); border-top: 1px solid rgba(255,255,255,.2);
    padding: .5rem var(--gutter) 1rem;
  }
  .menu[open] .nav-list a { display: block; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .menu[open] .nav-list li:last-child a { border-bottom: 0; }
}

/* Hero med radar */
.hero { background: var(--ink); color: var(--white); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}
.hero h1 { max-width: 17ch; }
.hero .lede { color: #b9c6d6; margin-top: 1.5rem; }
.hero-note { margin-top: 2.5rem; font-size: .95rem; color: #9fb0c4; max-width: 46ch; }

.radar { width: 100%; max-width: 440px; justify-self: end; aspect-ratio: 1; }
.radar .ring { fill: none; stroke: #3a5578; stroke-width: 1; }
.radar .axis { stroke: #2b4466; stroke-width: 1; }
.radar .other { fill: #5d7595; }
.radar .sweep { transform-origin: 200px 200px; transform-box: view-box; animation: sweep 2.6s cubic-bezier(.3,.1,.25,1) .3s both; }
.radar .hit { fill: var(--brass); opacity: 0; animation: appear .4s ease-out 2.45s forwards; }
.radar .pulse { fill: none; stroke: var(--brass); stroke-width: 1.5; opacity: 0; transform-origin: 281px 129px; transform-box: view-box; animation: pulse 1.6s ease-out 2.55s forwards; }
.radar .label { fill: var(--brass-light); font: italic 400 15px var(--serif); opacity: 0; animation: appear .5s ease-out 2.9s forwards; }

@keyframes sweep {
  0% { transform: rotate(-200deg); opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: rotate(0deg); opacity: 0; }
}
@keyframes appear { to { opacity: 1; } }
@keyframes pulse {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(3.2); }
}
@media (prefers-reduced-motion: reduce) {
  .radar .sweep { animation: none; opacity: 0; }
  .radar .hit, .radar .label { animation: none; opacity: 1; }
  .radar .pulse { animation: none; }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .radar { max-width: 300px; justify-self: start; order: -1; margin-bottom: -.5rem; }
}

/* Sektioner */
.section { padding: var(--space) 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .lede, .section-dark p { color: #d3dde9; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { margin-top: 1rem; }

/* Tre veje ind: rækker */
.paths { list-style: none; border-top: 2px solid var(--ink); }
.path {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 11rem;
  gap: 1rem 2.5rem; align-items: start;
  padding: 2rem 0; border-bottom: 1px solid var(--mist);
}
.path h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.55rem); }
.path .who { display: block; font-family: var(--font); font-size: .95rem; font-weight: 600; color: var(--muted); margin-bottom: .4rem; }
.path p { color: var(--muted); }
.path a.more { font-weight: 700; white-space: nowrap; justify-self: end; }
@media (max-width: 760px) { .path a.more { justify-self: start; } }
@media (max-width: 760px) { .path { grid-template-columns: 1fr; } }

/* Kanaler */
.channels { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.channels li { background: var(--navy); padding: 1.5rem 1.25rem 1.75rem; }
.channels h3 { font-size: 1.1rem; margin-bottom: .6rem; color: var(--white); }
.channels p { font-size: .98rem; line-height: 1.5; }
.channels .hidden-share { display: block; margin-top: 1rem; font-size: .9rem; color: var(--brass-light); font-weight: 600; }
@media (max-width: 960px) { .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .channels { grid-template-columns: 1fr; } }

/* Fakta i prosa */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; list-style: none; margin-top: 3rem; }
.facts strong { display: block; font-size: clamp(2rem, 2vw + 1.2rem, 2.8rem); line-height: 1; color: var(--navy); margin-bottom: .6rem; font-family: var(--serif); font-weight: 400; }
.facts span { color: var(--muted); font-size: 1rem; display: block; max-width: 28ch; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; gap: 1.5rem; } }

/* To kolonner */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Proces: rigtig sekvens, derfor nummereret */
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--mist); }
.steps li::before { content: counter(step); font-family: var(--serif); font-weight: 400; font-size: 1.8rem; line-height: 1.1; color: var(--brass); font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--muted); }

/* Spor */
.tracks { list-style: none; display: grid; gap: 2.5rem; }
.tracks li { padding-left: 1.5rem; border-left: 3px solid var(--brass); }
.tracks h3 { margin-bottom: .5rem; }
.tracks p { color: var(--muted); }

/* Simpel liste */
.ticks { list-style: none; display: grid; gap: .75rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--brass); }

/* Sidetop på undersider */
.page-head { background: var(--ink); color: var(--white); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.page-head h1 { max-width: 18ch; font-size: clamp(2.2rem, 3.8vw + 0.8rem, 3.8rem); }
.page-head .lede { color: #b9c6d6; margin-top: 1.25rem; }

/* Kontaktbånd */
.contact-band .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
.contact-band .phone { display: inline-block; font-size: clamp(2.2rem, 3vw + 1.2rem, 3.6rem); font-family: var(--serif); font-weight: 400; color: var(--white); text-decoration: none; line-height: 1; font-variant-numeric: tabular-nums; }
.contact-band .phone:hover { color: var(--brass-light); }
.contact-lines { list-style: none; display: grid; gap: .4rem; color: #d3dde9; }
.contact-lines a { color: var(--white); }
@media (max-width: 760px) { .contact-band .wrap { grid-template-columns: 1fr; gap: 2rem; } }

/* Kontaktside */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.contact-grid h2 { font-size: 1.3rem; margin-bottom: .75rem; }
.contact-grid p, .contact-grid address { font-style: normal; color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Juridisk tekst */
.prose h2 { font-size: 1.5rem; margin: 2.75rem 0 .9rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; max-width: var(--measure); }
.prose li { margin-bottom: .35rem; }
.prose .updated { color: var(--muted); font-size: 1rem; }

/* Footer */
.site-footer { background: var(--ink); color: #9fb0c4; padding: 3rem 0 2.5rem; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.site-footer a { color: #d3dde9; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer address { font-style: normal; }
