/* Tjenester og løsninger, /tjenester/ (sak 27025, 2026-10-25). Mørk hero med søk, hovedtjenestene som store kort med
 * ikon, og alle tjenestene i et rutenett som filtreres når man skriver (/assets/js/tjenester-side.js). */

.tjo-hero { position: relative; overflow: hidden; overflow: clip; isolation: isolate; padding: 9.5rem 0 4.5rem; }
@media (max-width: 991.98px) { .tjo-hero { padding: 8rem 0 3rem; } }
.tjo-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(50% 70% at 50% 0%, rgba(255,106,61,.16), transparent 70%), radial-gradient(35% 50% at 88% 85%, rgba(122,60,255,.18), transparent 70%), radial-gradient(30% 45% at 8% 80%, rgba(82,140,255,.12), transparent 70%); }
.tjo-hero .tjo-stov { filter: blur(.7px); }
.tjo-hero > .container { position: relative; z-index: 1; }
.tjo-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(255,181,71); margin: 0 0 1rem; }
.tjo-h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 0 0 1.1rem; }
.tjo-lead { font-size: 1.15rem; line-height: 1.6; color: rgba(255,255,255,.8); max-width: 40rem; margin: 0 auto 2rem; }
.tjo-sok { position: relative; max-width: 560px; margin: 0 auto; }
.tjo-sok svg { position: absolute; left: 1.1rem; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: rgba(255,255,255,.6); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.tjo-sok input { width: 100%; height: 56px; padding: 0 1.2rem 0 3.1rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07);
    color: rgb(255,255,255); font-size: 1.05rem; outline: none; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.tjo-sok input::placeholder { color: rgba(255,255,255,.55); }
.tjo-sok input:focus { border-color: rgba(255,181,71,.7); background: rgba(255,255,255,.1); box-shadow: 0 0 0 4px rgba(255,140,60,.18); }
.tjo-sok input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }

.tjo-seksjon { padding: 4.5rem 0 1rem; }
.tjo-seksjon + .tjo-seksjon { padding-top: 2.5rem; }
.tjo-h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.6rem; font-weight: 800; margin: 0 0 1.6rem; }
.tjo-h2::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, rgb(255,181,71), rgb(255,61,139)); }
.tjo-h2 small { font-size: 1rem; font-weight: 600; color: rgb(107,114,128); }

/* Hovedtjenestene */
.tjo-hoved { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 991.98px) { .tjo-hoved { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .tjo-hoved { grid-template-columns: 1fr; } }
.tjo-hoved a.tjo-kort { position: relative; display: flex; align-items: flex-start; gap: 1rem; padding: 1.4rem 1.3rem; border-radius: 16px; color: rgb(31,41,55); background: rgb(255,255,255);
    box-shadow: 0 0 0 1px rgba(17,24,39,.07), 0 18px 40px -32px rgba(17,24,39,.45); transition: transform .3s ease, box-shadow .3s ease; }
.tjo-hoved a.tjo-kort:hover { color: rgb(31,41,55); text-decoration: none; transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(204,74,21,.25), 0 24px 50px -28px rgba(17,24,39,.45); }
.tjo-ikon { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; color: rgb(204,74,21);
    background: linear-gradient(135deg, rgba(255,181,71,.22), rgba(255,61,139,.14)); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.tjo-ikon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tjo-hoved a.tjo-kort:hover .tjo-ikon { transform: rotate(-6deg) scale(1.06); }
.tjo-tekst { flex: 1; min-width: 0; }
.tjo-tekst b { display: block; font-size: 1.08rem; line-height: 1.3; margin-bottom: .2rem; }
.tjo-tekst span { display: block; font-size: .95rem; line-height: 1.5; color: rgb(107,114,128); }
.tjo-pil { flex: none; align-self: center; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-size: .95rem;
    color: rgb(204,74,21); background: rgb(250,243,239); transition: transform .3s ease, background .3s ease, color .3s ease; }
.tjo-hoved a.tjo-kort:hover .tjo-pil { transform: translateX(3px); color: rgb(255,255,255); background: linear-gradient(100deg, rgb(255,106,61), rgb(255,61,139)); }

/* Alle tjenestene */
.tjo-alle { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
@media (max-width: 991.98px) { .tjo-alle { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .tjo-alle { grid-template-columns: 1fr; } }
.tjo-alle a.tjo-liten { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem .7rem .7rem; border-radius: 12px; color: rgb(31,41,55); background: rgb(255,255,255);
    box-shadow: 0 0 0 1px rgba(17,24,39,.07); transition: box-shadow .25s ease, transform .25s ease; }
.tjo-alle a.tjo-liten:hover { color: rgb(31,41,55); text-decoration: none; transform: translateX(3px); box-shadow: 0 0 0 1px rgba(204,74,21,.3), 0 12px 28px -20px rgba(17,24,39,.45); }
.tjo-liten img { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.tjo-liten span { flex: 1; min-width: 0; }
.tjo-liten b { display: block; font-size: .95rem; line-height: 1.3; }
.tjo-liten small { display: block; font-size: .8rem; line-height: 1.35; color: rgb(107,114,128); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tjo-ingen { padding: 1.4rem 1.3rem; border-radius: 14px; background: rgb(250,243,239); font-weight: 600; }
.tjo-skjult { display: none !important; }
@media (prefers-reduced-motion: reduce) { .tjo-hoved a.tjo-kort, .tjo-alle a.tjo-liten, .tjo-ikon, .tjo-pil { transition: none; } .tjo-hoved a.tjo-kort:hover, .tjo-alle a.tjo-liten:hover { transform: none; } }
