/*
Theme Name: Appendix Holding
Description: Lett tema for appendixholding.no. Forsiden er den offentlige siden fra Holding-appen (Public.jsx). Ansatte og konsulenter logger inn i appen.
Version: 1.2.1
Author: Appendix Holding AS
Text Domain: appendix
Requires at least: 6.5
Requires PHP: 8.1
*/

:root {
  --navy: #0f1b2d;
  --navy-2: #1a2a3d;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg-soft: #f8fafc;
  --amber: #fbbf24;
  --radius: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.skip, .skjult { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }
.felle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ramme { max-width: 80rem; margin: 0 auto; padding: 0 24px; }
.ramme.smal { max-width: 64rem; }

/* Topp */
.topp { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #f1f5f9; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.topp-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo img { display: block; height: 40px; width: auto; }
.meny { display: flex; gap: 28px; margin-left: auto; }
.meny a { text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; }
.meny a:hover { color: var(--ink); }

/* Knapper */
.knapp-mork, .knapp-ramme { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-radius: 12px; padding: 14px 28px; transition: background .15s, border-color .15s; }
.knapp-mork { background: var(--ink); color: #fff; border: 2px solid var(--ink); }
.knapp-mork:hover { background: #1e293b; }
.knapp-ramme { border: 2px solid #cbd5e1; color: var(--text); background: #fff; }
.knapp-ramme:hover { background: var(--bg-soft); }
.knapp-mork.liten { padding: 9px 16px; font-size: .9rem; border-radius: 10px; }

/* Hero */
.hero { padding: 96px 0 88px; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: .4em; }
.fagfelt { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 500; color: #475569; margin-bottom: 1.4em; }
.ingress { font-size: 1.15rem; color: #475569; max-width: 48rem; margin: 0 auto 2em; }
.hero-tekst { max-width: 52rem; margin: 0 auto 2.5em; color: var(--muted); }
.hero-tekst p { margin-bottom: 1.1em; }
.knapper { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* Seksjoner */
.seksjon { padding: 88px 0; }
.gra { background: var(--bg-soft); }
.gra-overgang { background: linear-gradient(to bottom, var(--bg-soft), #fff); }
.tittel { text-align: center; max-width: 44rem; margin: 0 auto 48px; }
.tittel h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; }
.tittel p { color: var(--muted); }
.strek { display: block; width: 80px; height: 4px; background: var(--ink); margin: 0 auto 24px; }

/* Logokort */
.rutenett { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.kort { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 150px; text-decoration: none; transition: box-shadow .2s, border-color .2s; }
a.kort:hover { box-shadow: 0 6px 18px rgba(15,23,42,.08); border-color: #cbd5e1; }
.kort img { max-height: 72px; max-width: 200px; width: auto; object-fit: contain; }
.kort img[alt="Expedition Invest"] { max-height: 120px; height: 120px; margin: -24px 0; }
.kort .tekst { font-size: .9rem; color: var(--muted); text-align: center; line-height: 1.45; }
.kort .adresse { font-size: .85rem; font-weight: 600; color: var(--ink); margin-top: auto; }
a.kort:hover .adresse { text-decoration: underline; }
.rutenett .kort { justify-content: flex-start; min-height: 250px; }
.rutenett .kort img { height: 72px; }
.kort .felt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; font-weight: 600; }
.logorad { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.kort.lite { width: 240px; min-height: 128px; background: var(--bg-soft); border-color: #f1f5f9; }
.kort.lite img { max-height: 64px; max-width: 170px; }

/* Partnere */
.partner-intro { text-align: center; font-weight: 500; color: #475569; margin: 48px auto 28px; max-width: 44rem; }
.partnere { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kort.partner { box-shadow: 0 1px 2px rgba(15,23,42,.05); border-color: #f1f5f9; }
.kort.partner img { max-height: 56px; }
.kort.partner span { font-size: .78rem; color: var(--muted); font-weight: 500; text-align: center; }

/* Kontakt */
.mork { background: var(--navy); color: #cbd5e1; }
.mork h2, .mork h3 { color: #fff; }
.mork a { color: #fff; }
.kontakt { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.kontakt h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.dempet { color: #94a3b8; margin-bottom: 2.2em; }
.kontaktinfo { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.kontaktinfo li { display: flex; align-items: center; gap: 16px; }
.kontaktinfo .ikon { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.kontaktinfo small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #64748b; font-weight: 600; }
.kontaktinfo a { text-decoration: none; }
.skjemaboks { background: var(--navy-2); border-radius: var(--radius); padding: 32px; }
.skjemaboks form { display: grid; gap: 14px; }
.skjemaboks input, .skjemaboks textarea { width: 100%; padding: 12px 16px; background: var(--navy); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: #fff; font: inherit; font-size: .95rem; }
.skjemaboks textarea { resize: vertical; }
.skjemaboks input::placeholder, .skjemaboks textarea::placeholder { color: #64748b; }
.skjemaboks input:focus, .skjemaboks textarea:focus { outline: none; border-color: rgba(255,255,255,.35); }
.skjemaboks button { background: var(--amber); color: var(--ink); font-weight: 600; font-size: .95rem; padding: 13px; border: 0; border-radius: 12px; cursor: pointer; }
.skjemaboks button:hover { background: #fcd34d; }
.skjemaboks button:disabled { opacity: .6; cursor: default; }
.feil { color: #fca5a5; margin: 0; font-size: .9rem; }
.liten-tekst { font-size: .8rem; color: #64748b; margin: 0; }
.takk h3 { margin-bottom: .3em; }

/* Bunn */
.bunn { background: var(--navy); border-top: 1px solid rgba(255,255,255,.1); color: #64748b; font-size: .9rem; padding: 48px 0 24px; }
.bunn-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 32px; }
.bunn h4 { color: #fff; font-size: .9rem; }
.bunn a { color: #94a3b8; text-decoration: none; }
.bunn a:hover { color: #fff; }
.bunn-logo { height: 32px; width: auto; margin-bottom: 16px; background: #fff; border-radius: 6px; padding: 4px 8px; box-sizing: content-box; }
.bunn-linje { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }

/* Vanlige sider (personvern) */
.side { max-width: 48rem; margin: 0 auto; padding: 64px 24px 88px; }
.side h1 { font-size: 2.2rem; }
.side h2 { font-size: 1.35rem; margin-top: 1.6em; }

@media (max-width: 900px) {
  .meny { display: none; }
  .topp-inner { justify-content: space-between; }
  .kontakt, .bunn-inner { grid-template-columns: 1fr; gap: 40px; }
  .partnere { grid-template-columns: 1fr; }
  .hero { padding: 64px 0; }
  .seksjon { padding: 64px 0; }
}
@media (max-width: 480px) {
  .ramme { padding: 0 16px; }
  .knapp-mork.liten { padding: 8px 12px; font-size: .82rem; }
  .logo img { height: 32px; }
}

/* Vevur-siden */
.side .tagline { font-size: 1.3rem; color: var(--ink); font-weight: 500; }
.side .vevur-logo { max-height: 64px; width: auto; margin-bottom: 24px; }

/* Slik henger det sammen */
.modell { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.ledd { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--text); }
a.ledd:hover { border-color: #cbd5e1; box-shadow: 0 6px 18px rgba(15,23,42,.08); }
.ledd h3 { font-size: 1.3rem; margin: .3em 0 .5em; }
.ledd p { margin: 0; font-size: .95rem; }
.ledd .steg { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; font-weight: 700; }
.pil { align-self: center; font-size: 1.6rem; color: #94a3b8; }
@media (max-width: 900px) { .modell { grid-template-columns: 1fr; } .pil { transform: rotate(90deg); justify-self: center; } }
