/* ============================================================
   Øernes Psykoedukation — designsystem
   Serif: Cormorant Garamond · Sans: Jost
   Palet: cremehvid · blæk-sort · varm taupe
   ============================================================ */

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

:root {
  --paper:    #FBF8F3;   /* sidebaggrund, varm hvid */
  --cream:    #F2ECE2;   /* sektionsbaggrund */
  --sand:     #E8DFD0;   /* kort / blød flade */
  --ink:      #1C1A17;   /* nær-sort tekst */
  --ink-soft: #514B43;   /* brødtekst */
  --ink-mute: #8A8175;   /* dæmpet */
  --taupe:    #9C8A72;   /* accent */
  --taupe-dk: #6E5E48;   /* mørk accent */
  --line:     rgba(28,26,23,0.10);
  --line-2:   rgba(28,26,23,0.06);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --gut: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --t: .45s var(--ease);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--taupe-dk); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--ink); }

::selection { background: var(--taupe); color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ── Typografi ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.08; letter-spacing: .002em; }
.eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: .72rem;
  letter-spacing: .34em; text-transform: uppercase; color: var(--taupe);
  display: inline-block; margin-bottom: 1.3rem;
}
.lead { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--ink-soft); font-weight: 300; }

/* ── Layout-hjælpere ───────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: clamp(4.5rem, 10vw, 9rem) 0; }
.section.tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.bg-cream { background: var(--cream); }
.bg-ink   { background: var(--ink); }
.center { text-align: center; }
.measure { max-width: 60ch; }
.measure.center { margin-inline: auto; }

/* ── Knapper ───────────────────────────────────────────── */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 400; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .95rem 1.7rem; border: 1px solid var(--bg); border-radius: 100px;
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
.btn .arrow { transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { --bg: var(--paper); --fg: var(--ink); }
.btn-light:hover { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.5); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ── Brand / monogram ──────────────────────────────────── */
.brand-mark {
  font-family: var(--serif); font-weight: 500; font-size: 1.55rem; color: var(--ink);
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  line-height: 1; transition: color var(--t), border-color var(--t);
}
.brand-mark.big { width: 64px; height: 64px; font-size: 2.2rem; margin-bottom: 1.1rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gut);
  height: 86px; display: flex; align-items: center; justify-content: space-between;
}
.nav.scrolled {
  background: rgba(251,248,243,.88); backdrop-filter: blur(14px);
  border-bottom-color: var(--line); box-shadow: 0 8px 30px -24px rgba(28,26,23,.5);
}
.nav.scrolled .nav-inner { height: 70px; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--ink); }
.brand-sub { font-family: var(--sans); font-size: .58rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--taupe); margin-top: .28rem; }

/* hvid tekst når nav ligger over mørk hero (top, ikke scrollet) */
.has-hero .nav:not(.scrolled) .brand-name,
.has-hero .nav:not(.scrolled) .brand-mark { color: var(--paper); }
.has-hero .nav:not(.scrolled) .brand-mark { border-color: rgba(255,255,255,.4); }
.has-hero .nav:not(.scrolled) .nav-links a { color: rgba(251,248,243,.82); }
.has-hero .nav:not(.scrolled) .nav-links a:hover,
.has-hero .nav:not(.scrolled) .nav-links a.is-active { color: var(--paper); }
.has-hero .nav:not(.scrolled) .nav-toggle span { background: var(--paper); }

.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a {
  font-size: .82rem; font-weight: 400; letter-spacing: .04em; color: var(--ink-soft);
  position: relative; padding: .3rem 0;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: currentColor; transition: width var(--t);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.is-active:not(.nav-cta)::after { width: 100%; }
.nav-cta {
  background: var(--ink); color: var(--paper) !important;
  padding: .6rem 1.3rem; border-radius: 100px; border: 1px solid var(--ink);
  text-transform: uppercase; font-size: .72rem; letter-spacing: .12em;
  transition: background var(--t), color var(--t);
  margin-left: .6rem;
}
.nav-cta:hover { background: transparent; color: var(--ink) !important; }
.has-hero .nav:not(.scrolled) .nav-cta { background: var(--paper); color: var(--ink) !important; border-color: var(--paper); }
.has-hero .nav:not(.scrolled) .nav-cta:hover { background: transparent; color: var(--paper) !important; border-color: rgba(255,255,255,.5); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; background: none; border: 0; cursor: pointer; padding: 6px 0; }
.nav-toggle span { display: block; height: 1.5px; width: 100%; background: var(--ink); transition: transform var(--t), opacity var(--t); }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90; background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: .4rem;
  padding: var(--gut); transform: translateY(-100%); transition: transform .55s var(--ease);
}
body.menu-open .nav-mobile { transform: translateY(0); }
.nav-mobile a { font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); color: var(--ink); font-weight: 500; }
.nav-mobile a.is-active { color: var(--taupe); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--ink); color: var(--paper); overflow: hidden;
  padding-top: 86px;
}
.hero::before {
  content: 'N'; position: absolute; right: -2vw; bottom: -14vh;
  font-family: var(--serif); font-weight: 500; font-size: 78vh; line-height: .7;
  color: rgba(251,248,243,.04); pointer-events: none; user-select: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 80% 10%, rgba(156,138,114,.18), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 60rem; }
.hero .eyebrow { color: var(--taupe); }
.hero h1 {
  color: var(--paper); font-weight: 500;
  font-size: clamp(2.8rem, 7.5vw, 6rem); line-height: 1.02; letter-spacing: -.01em;
  margin-bottom: 1.6rem;
}
.hero h1 em { font-style: italic; color: var(--sand); }
.hero .lead { color: rgba(251,248,243,.82); max-width: 44ch; margin-bottom: 2.4rem; }
.hero .scroll-cue {
  position: absolute; bottom: 2rem; left: var(--gut); z-index: 2;
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(251,248,243,.5);
  display: flex; align-items: center; gap: .8rem;
}
.hero .scroll-cue::before { content: ''; width: 46px; height: 1px; background: rgba(251,248,243,.4); }

/* ── Page-hero (indersider) ────────────────────────────── */
.page-hero { padding: calc(86px + clamp(3.5rem,8vw,7rem)) 0 clamp(2.5rem,5vw,4rem); background: var(--cream); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 1.2rem; }
.page-hero .lead { max-width: 52ch; }

/* ============================================================
   SEKTIONER — generelt
   ============================================================ */
.section-head { max-width: 52ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1.1rem; }

/* Intro: stort tekstcitat */
.statement { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.32; color: var(--ink); max-width: 24ch; }
.section .statement { max-width: min(100%, 52ch); }
.statement em { font-style: italic; color: var(--taupe-dk); }

/* Split (tekst + aside) */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split.alt { grid-template-columns: .9fr 1.1fr; }

/* Tal/erfaring */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem,4vw,3rem); }
.stat .num { font-family: var(--serif); font-size: clamp(2.6rem,6vw,4rem); color: var(--ink); line-height: 1; }
.stat .lbl { font-size: .82rem; letter-spacing: .04em; color: var(--ink-mute); margin-top: .5rem; }

/* ── Ydelses-kort ──────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card {
  background: var(--paper); padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex; flex-direction: column; gap: .9rem; min-height: 16rem;
  transition: background var(--t), transform var(--t);
}
.card:hover { background: var(--cream); }
.card .card-tag { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); }
.card h3 { font-size: 1.55rem; }
.card p { font-size: .96rem; }
.card .card-no { margin-top: auto; font-family: var(--serif); color: var(--ink-mute); font-size: 1rem; }

/* ── Listede ydelser (ydelser.php) ─────────────────────── */
.service-list { display: flex; flex-direction: column; }
.service-item {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem,5vw,4rem);
  padding: clamp(2rem,4vw,3.2rem) 0; border-top: 1px solid var(--line);
}
.service-item:last-child { border-bottom: 1px solid var(--line); }
.service-item .idx { font-family: var(--serif); font-size: 1.4rem; color: var(--taupe); }
.service-item .tag { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); display: block; margin-bottom: .7rem; }
.service-item h3 { font-size: clamp(1.5rem,3vw,2.1rem); margin-bottom: .8rem; }
.service-item p { max-width: 62ch; }

/* ── Tilgang: nummererede trin ─────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--paper); padding: clamp(1.8rem,3.5vw,2.8rem); }
.step .step-no { font-family: var(--serif); font-size: 1.1rem; color: var(--taupe); letter-spacing: .1em; }
.step h3 { font-size: 1.4rem; margin: .7rem 0 .6rem; }
.step p { font-size: .96rem; }

/* ── Profil (om.php) ───────────────────────────────────── */
.profile-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(2rem,4vw,3rem); text-align: center; }
.profile-card .pmark { width: 92px; height: 92px; margin: 0 auto 1.4rem; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 3rem; color: var(--ink); }
.profile-card h3 { font-size: 1.8rem; }
.profile-card .prole { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); margin-top: .5rem; }
.profile-card .pmeta { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: .92rem; }

/* ── Værdiliste / tjek ─────────────────────────────────── */
.ticks { list-style: none; display: grid; gap: 1.1rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 1px; background: var(--taupe); }
.ticks li strong { color: var(--ink); font-weight: 500; }

/* ── CTA-bånd ──────────────────────────────────────────── */
.cta-band { background: var(--ink); color: var(--paper); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: 'N'; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-family: var(--serif); font-size: 42vh; color: rgba(251,248,243,.04); pointer-events: none; }
.cta-band h2 { color: var(--paper); font-size: clamp(2rem,5vw,3.6rem); position: relative; }
.cta-band p { color: rgba(251,248,243,.78); position: relative; margin: 1rem auto 2rem; max-width: 46ch; }
.cta-band .btn-row { justify-content: center; position: relative; }

/* ── Kontakt ───────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); }
.contact-info dl { display: grid; gap: 1.6rem; }
.contact-info dt { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); margin-bottom: .3rem; }
.contact-info dd { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }
.contact-info dd a { color: var(--ink); }
.contact-info dd a:hover { color: var(--taupe-dk); }
.contact-info .hours-line { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); display: flex; justify-content: space-between; max-width: 22rem; padding: .4rem 0; border-bottom: 1px solid var(--line-2); }

.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; font-weight: 300; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1rem; transition: border-color var(--t), background var(--t);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--taupe); background: #fff; }
.field textarea { resize: vertical; min-height: 9rem; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .82rem; color: var(--ink-mute); }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .95rem; }
.alert.ok { background: #E7EEE6; color: #2F5233; border: 1px solid #c7dac6; }
.alert.err { background: #F3E4DE; color: #7a3922; border: 1px solid #e3c6ba; }

/* ── Footer ────────────────────────────────────────────── */
.footer { background: var(--cream); color: var(--ink-soft); border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--wrap); margin-inline: auto; padding: clamp(3.5rem,7vw,5.5rem) var(--gut) 2.5rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(1.8rem,4vw,3rem); }
.footer-name { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }
.footer-tag { font-size: .82rem; color: var(--taupe); letter-spacing: .04em; }
.footer-col h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; margin-bottom: 1.1rem; }
.footer-col p { font-size: .95rem; margin-bottom: .5rem; }
.footer-col p span { display: block; color: var(--ink); }
.footer-note { font-size: .82rem !important; color: var(--ink-mute); margin-top: .8rem; }
.footer-bottom { max-width: var(--wrap); margin-inline: auto; padding: 1.4rem var(--gut); border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: .78rem; letter-spacing: .06em; color: var(--ink-mute); }

/* ============================================================
   SCROLL-REVEAL
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease) var(--d,0ms), transform .8s var(--ease) var(--d,0ms); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVT
   ============================================================ */
@media (max-width: 900px) {
  .split, .split.alt, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .service-item { grid-template-columns: 1fr; gap: .4rem; }
  .service-item .idx { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
