/*
Theme Name: Hittegodscentralen
Theme URI: https://hittegodscentralen.dk/
Author: Greydot
Author URI: https://greydot.dk/
Description: Letvægts standalone tema til Hittegodscentralen.dk – erstatter Divi. Ingen jQuery-afhængighed.
Version: 1.1.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: hittegodscentralen
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    /* Colors */
    --hg-bg: #eefdfc;
    --hg-bg-light: #f5fffe;
    --hg-primary: #2d658e;
    --hg-orange: #ce6949;
    --hg-green: #34aa9c;
    --hg-teal: #3093a4;
    --hg-dark: #333333;
    --hg-grey: #666666;
    --hg-grey-light: #999999;
    --hg-border: #d0d0d0;
    --hg-border-light: #e0e0e0;
    --hg-white: #ffffff;

    /* Typography */
    --hg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --hg-font-heading: "Abhaya Libre", Georgia, "Times New Roman", serif;
    --hg-font-size: 16px;
    --hg-line-height: 1.6;

    /* Layout */
    --hg-container: 1200px;
    --hg-container-narrow: 900px;
    --hg-header-height: 70px;
    --hg-radius: 8px;
    --hg-radius-lg: 16px;
    --hg-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --hg-shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --hg-transition: 0.2s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    font-size: var(--hg-font-size);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--hg-font);
    line-height: var(--hg-line-height);
    color: var(--hg-dark);
    background-color: var(--hg-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--hg-primary);
    text-decoration: none;
    transition: color var(--hg-transition);
}

a:hover {
    color: var(--hg-orange);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hg-font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--hg-dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

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

.screen-reader-text:focus {
    position: fixed;
    top: 5px;
    left: 5px;
    z-index: 100000;
    width: auto;
    height: auto;
    padding: 15px 23px 14px;
    clip: auto;
    background: var(--hg-white);
    color: var(--hg-dark);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    line-height: normal;
    border-radius: 3px;
    box-shadow: var(--hg-shadow-lg);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.hg-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hg-container {
    max-width: var(--hg-container);
    margin: 0 auto;
    padding: 0 20px;
}

.hg-container--narrow {
    max-width: var(--hg-container-narrow);
}

.hg-site-content {
    flex: 1;
}

.hg-page-content {
    padding: 40px 0;
}

.hg-page-header {
    text-align: center;
    padding: 40px 0 20px;
}

.hg-page-header h1 {
    font-size: 1.75rem;
    color: var(--hg-dark);
}

/* ==========================================================================
   Header
   ========================================================================== */

.hg-header {
    background: var(--hg-white);
    border-bottom: 1px solid var(--hg-border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--hg-header-height);
}

.hg-header .hg-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.hg-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--hg-dark);
    flex-shrink: 0;
}

.hg-logo:hover {
    color: var(--hg-dark);
}

.hg-logo__img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.hg-logo__brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.hg-logo__name {
    font-family: var(--hg-font);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hg-logo__tagline {
    font-family: var(--hg-font);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hg-grey);
}

/* Navigation */
.hg-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hg-nav__menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.hg-nav__menu li a {
    display: block;
    padding: 8px 16px;
    color: var(--hg-dark);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--hg-radius);
    transition: background var(--hg-transition), color var(--hg-transition);
}

.hg-nav__menu li a:hover {
    color: var(--hg-primary);
    background: rgba(45, 101, 142, 0.06);
}

/* User icon */
.hg-nav__user {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    color: var(--hg-dark);
    text-decoration: none;
    border-radius: var(--hg-radius);
    transition: background var(--hg-transition);
    margin-left: 4px;
}

.hg-nav__user:hover {
    background: rgba(45, 101, 142, 0.06);
    color: var(--hg-primary);
}

.hg-nav__user-icon {
    width: 24px;
    height: 24px;
}

.hg-nav__user-label {
    font-size: 0.8rem;
    font-weight: 500;
}

/* User dropdown (business users) */
.hg-nav__user-wrap {
    position: relative;
    margin-left: 4px;
}
.hg-nav__user--dropdown {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    margin-left: 0;
}
.hg-nav__chevron {
    transition: transform 0.2s;
}
.hg-nav__user-wrap.is-open .hg-nav__chevron {
    transform: rotate(180deg);
}
.hg-nav__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--hg-border, #e2e8f0);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 160px;
    z-index: 100;
    overflow: hidden;
}
.hg-nav__user-wrap.is-open .hg-nav__dropdown {
    display: block;
}
.hg-nav__dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--hg-dark, #1e293b);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.15s;
}
.hg-nav__dropdown-item:hover {
    background: var(--hg-bg-light, #f1f5f9);
    color: var(--hg-primary, #2d658e);
}
.hg-nav__dropdown-item + .hg-nav__dropdown-item {
    border-top: 1px solid var(--hg-border, #e2e8f0);
}

/* Hamburger */
.hg-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--hg-radius);
    transition: background var(--hg-transition);
}

.hg-hamburger:hover {
    background: rgba(45, 101, 142, 0.06);
}

.hg-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--hg-dark);
    border-radius: 2px;
    transition: transform var(--hg-transition), opacity var(--hg-transition);
}

.hg-hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hg-hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hg-hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.hg-mobile-nav {
    display: none;
    position: fixed;
    top: var(--hg-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hg-white);
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}

.hg-mobile-nav.is-active {
    display: block;
}

.hg-mobile-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hg-mobile-nav__menu li a {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--hg-dark);
    border-bottom: 1px solid var(--hg-border-light);
    text-decoration: none;
}

.hg-mobile-nav__menu li a:hover {
    color: var(--hg-primary);
}

.hg-mobile-nav__cta {
    margin-top: 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.hg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--hg-font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--hg-radius);
    cursor: pointer;
    transition: all var(--hg-transition);
    line-height: 1.4;
}

.hg-btn--primary {
    background: var(--hg-primary);
    color: var(--hg-white);
}

.hg-btn--primary:hover {
    background: #245576;
    color: var(--hg-white);
}

.hg-btn--outline {
    background: transparent;
    border-color: var(--hg-primary);
    color: var(--hg-primary);
}

.hg-btn--outline:hover {
    background: var(--hg-primary);
    color: var(--hg-white);
}

.hg-btn--full {
    width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.hg-footer {
    background: var(--hg-white);
    border-top: 1px solid var(--hg-border-light);
    margin-top: auto;
}

/* Footer top section */
.hg-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 0 30px;
    gap: 40px;
    flex-wrap: wrap;
}

.hg-footer__brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.hg-footer__logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hg-footer__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hg-footer__links a {
    color: var(--hg-primary);
    font-size: 0.95rem;
    text-decoration: underline;
}

.hg-footer__links a:hover {
    color: var(--hg-orange);
}

.hg-footer__contact {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.95rem;
}

.hg-footer__contact a {
    color: var(--hg-primary);
    text-decoration: underline;
}

.hg-footer__feedback {
    color: var(--hg-orange) !important;
}

/* Footer bottom section */
.hg-footer__bottom {
    border-top: 1px solid var(--hg-border-light);
    padding: 20px 0;
}

.hg-footer__social {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.hg-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--hg-dark);
    color: var(--hg-white);
    border-radius: 50%;
    transition: background var(--hg-transition);
}

.hg-footer__social a:hover {
    background: var(--hg-primary);
}

.hg-footer__social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.hg-footer__legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.hg-footer__legal-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hg-footer__legal-links a {
    color: var(--hg-dark);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.hg-footer__legal-links a:hover {
    color: var(--hg-primary);
}

.hg-footer__meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--hg-grey);
}

/* ==========================================================================
   Page content areas
   ========================================================================== */

.hg-entry-content {
    max-width: var(--hg-container-narrow);
    margin: 0 auto;
    padding: 20px;
}

.hg-entry-content h1,
.hg-entry-content h2,
.hg-entry-content h3,
.hg-entry-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.hg-entry-content h1:first-child,
.hg-entry-content h2:first-child {
    margin-top: 0;
}

.hg-entry-content ul,
.hg-entry-content ol {
    margin-bottom: 1em;
}

.hg-entry-content a {
    text-decoration: underline;
}

.hg-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.hg-entry-content th,
.hg-entry-content td {
    padding: 8px 12px;
    border: 1px solid var(--hg-border-light);
    text-align: left;
}

.hg-entry-content th {
    background: var(--hg-bg-light);
    font-weight: 600;
}

/* ==========================================================================
   Front page — full width, no title
   ========================================================================== */

.hg-front-page .hg-site-content {
    padding: 0;
}

/* ══════════════════════════════════════════════════════════
   HERO SLIDER — Full-width image carousel (v2 layout)
   Text left, CTA right, chalk bubble, no arrows
   ══════════════════════════════════════════════════════════ */
.hg-hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 520px;
    max-height: 750px;
    overflow: hidden;
}
.hg-hero-slider__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 700ms cubic-bezier(.4,0,.2,1);
}
.hg-hero-slider__slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}
.hg-hero-slider__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease;
}
.hg-hero-slider__slide.is-active .hg-hero-slider__bg {
    transform: scale(1.05);
}
.hg-hero-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10,20,30,0.7) 0%,
        rgba(10,20,30,0.4) 45%,
        rgba(10,20,30,0.15) 100%
    );
}

/* Fixed branding — centered in hero */
.hg-hero-slider__branding {
    position: absolute;
    top: clamp(14px, 4vh, 32px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    white-space: nowrap;
}
.hg-hero-slider__brand-name {
    font-family: var(--hg-font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin-bottom: clamp(2px, 0.5vh, 6px);
}
.hg-hero-slider__tagline {
    font-family: var(--hg-font);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hg-hero-slider__sub {
    font-family: var(--hg-font);
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

/* Slide content — left-aligned */
.hg-hero-slider__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    margin: 0;
    padding: 0 0 0 clamp(30px, 5vw, 80px);
    text-align: left;
}
.hg-hero-slider__title {
    font-family: var(--hg-font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.08;
    margin-bottom: 14px;
}
.hg-hero-slider__desc {
    font-family: var(--hg-font);
    font-size: clamp(0.95rem, 1.8vw, 1.12rem);
    color: rgba(255,255,255,0.78);
    max-width: 420px;
    line-height: 1.6;
}

/* CTA buttons — centered, high enough to show image focal points */
.hg-hero-slider__cta {
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: row;
    gap: 18px;
    align-items: center;
}
.hg-hero-slider__cta .hg-hero__btn {
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    font-size: 1rem;
    padding: 18px 32px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    min-width: 200px;
    text-align: center;
}
.hg-hero-slider__cta .hg-hero__btn--tabt {
    background: linear-gradient(135deg, #e87040 0%, #d35a2a 100%);
}
.hg-hero-slider__cta .hg-hero__btn--fundet {
    background: linear-gradient(135deg, #34c77d 0%, #28a060 100%);
}
.hg-hero-slider__cta .hg-hero__btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

/* Bottom row: [bubble] [søg ved virksomheder] [bubble] */
.hg-hero__bottom-row {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    max-width: 96vw;
}

.hg-hero__virk-link {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-family: var(--hg-font-heading); font-size: 0.95rem; font-weight: 600;
    color: rgba(255,255,255,0.92); text-decoration: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    padding: 10px 22px;
    border: 1.5px solid rgba(255,255,255,0.45);
    border-radius: 14px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}
.hg-hero__virk-link:hover { color: #fff; background: rgba(255,255,255,0.18); }
.hg-hero__virk-link svg { stroke: rgba(255,255,255,0.8); flex-shrink: 0; }

/* Speech bubbles */
.hg-hero__bubble {
    text-decoration: none; flex-shrink: 0;
}
.hg-hero__bubble:hover .hg-hero__bubble-text { background: rgba(255,255,255,0.18); }
.hg-hero__bubble-text {
    display: block; font-family: var(--hg-font-heading);
    font-size: 0.82rem; font-weight: 700; line-height: 1.4;
    color: rgba(255,255,255,0.92); text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    padding: 10px 14px; border: 1.5px solid rgba(255,255,255,0.45);
    border-radius: 14px; background: rgba(255,255,255,0.1);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hg-hero__bubble--left {
    pointer-events: none;
}
.hg-hero__bubble--right .hg-hero__bubble-text {
    text-align: left; font-size: 0.75rem;
}
.hg-hero__bubble--right strong {
    display: block; font-size: 0.82rem; color: #fff; margin-bottom: 3px;
}
.hg-hero__bubble--right em {
    display: block; font-size: 0.7rem; font-style: normal; opacity: 0.8; margin-bottom: 4px;
}
.hg-hero__bubble-list {
    display: block; font-size: 0.7rem; line-height: 1.5; font-weight: 400;
    color: rgba(255,255,255,0.85);
}

/* Smooth transition into content below */
.hg-front-page-content {
    margin-top: 0;
    border-top: 4px solid var(--hg-accent, #3a6b8a);
}

@media (max-width: 1200px) {
    .hg-hero-slider__content { max-width: 400px; }
    .hg-hero-slider__cta .hg-hero__btn { min-width: 170px; padding: 16px 24px; font-size: 0.9rem; }
    .hg-hero__bottom-row { gap: 10px; }
    .hg-hero__bubble-text { font-size: 0.72rem; padding: 8px 10px; }
    .hg-hero__bubble--right .hg-hero__bubble-text { font-size: 0.68rem; }
    .hg-hero__bubble--right strong { font-size: 0.72rem; }
    .hg-hero__bubble--right em,
    .hg-hero__bubble-list { font-size: 0.62rem; }
    .hg-hero__virk-link { font-size: 0.85rem; padding: 8px 16px; }
}

@media (max-width: 1024px) {
    .hg-hero-slider__content { max-width: 360px; }
    .hg-hero-slider__cta .hg-hero__btn { min-width: 150px; padding: 14px 20px; font-size: 0.85rem; }
    .hg-hero__bottom-row { gap: 8px; }
    .hg-hero__bubble-text { font-size: 0.65rem; padding: 6px 8px; }
    .hg-hero__bubble--right .hg-hero__bubble-text { font-size: 0.6rem; }
    .hg-hero__bubble--right strong { font-size: 0.65rem; }
    .hg-hero__bubble--right em,
    .hg-hero__bubble-list { font-size: 0.55rem; }
    .hg-hero__virk-link { font-size: 0.8rem; padding: 8px 14px; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .hg-hero-slider { height: 85vh; min-height: 520px; max-height: 700px; }
    .hg-hero-slider__overlay {
        background: linear-gradient(
            180deg,
            rgba(10,20,30,0.5) 0%,
            rgba(10,20,30,0.15) 35%,
            rgba(10,20,30,0.55) 100%
        );
    }
    .hg-hero-slider__branding { top: 10px; }
    .hg-hero-slider__brand-name { font-size: clamp(0.9rem, 4.5vw, 1.3rem); letter-spacing: 0.12em; }
    .hg-hero-slider__tagline { font-size: clamp(0.7rem, 3.5vw, 1rem); letter-spacing: 0.12em; }
    .hg-hero-slider__sub { font-size: 0.55rem; }
    .hg-hero-slider__content {
        padding: 0 24px;
        max-width: 100%;
        text-align: left;
        position: absolute;
        top: 22%;
    }
    .hg-hero-slider__title { font-size: clamp(1.4rem, 6vw, 2rem); }
    .hg-hero-slider__cta {
        bottom: 28%;
        gap: 10px;
    }
    .hg-hero-slider__cta .hg-hero__btn {
        padding: 14px 22px;
        font-size: 0.85rem;
        border-radius: 18px;
        min-width: auto;
    }
    .hg-hero__bottom-row {
        bottom: 3%;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 94vw;
    }
    .hg-hero__bubble-text { font-size: 0.58rem; padding: 5px 7px; line-height: 1.3; }
    .hg-hero__bubble--right .hg-hero__bubble-text { font-size: 0.54rem; }
    .hg-hero__bubble--right strong { font-size: 0.58rem; margin-bottom: 1px; }
    .hg-hero__bubble--right em { font-size: 0.5rem; margin-bottom: 1px; }
    .hg-hero__bubble-list { font-size: 0.5rem; line-height: 1.3; }
    .hg-hero__virk-link { font-size: 0.72rem; padding: 7px 12px; }
}

/* Original Hero section (kept for fallback) */
.hg-hero {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(180deg, var(--hg-bg) 0%, var(--hg-bg-light) 100%);
}

.hg-hero__title {
    font-family: var(--hg-font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--hg-dark);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.hg-hero__subtitle {
    font-family: var(--hg-font);
    font-size: 0.85rem;
    color: var(--hg-grey);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.hg-hero__cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.hg-hero__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 32px;
    border-radius: 24px;
    text-decoration: none;
    font-family: var(--hg-font);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.2;
}

.hg-hero__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    color: #fff;
}

.hg-hero__btn:active {
    transform: scale(0.97);
}

.hg-hero__btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    stroke: #fff;
    fill: none;
}

.hg-hero__btn--tabt {
    background: linear-gradient(135deg, #f1b289 0%, #d98250 100%);
}

.hg-hero__btn--fundet {
    background: linear-gradient(135deg, #9ccfae 0%, #5ca57c 100%);
}

@media (max-width: 480px) {
    .hg-hero__title { font-size: 1.4rem; }
    .hg-hero__cta { gap: 12px; }
    .hg-hero__btn { padding: 16px 20px; font-size: 0.9rem; border-radius: 18px; }
    .hg-hero__btn svg { width: 22px; height: 22px; }
}

/* ==========================================================================
   WooCommerce minimal support
   ========================================================================== */

.woocommerce .hg-container {
    padding-top: 20px;
    padding-bottom: 40px;
}

/* ==========================================================================
   404 page
   ========================================================================== */

.hg-404 {
    text-align: center;
    padding: 80px 20px;
}

.hg-404 h1 {
    font-size: 3rem;
    color: var(--hg-grey-light);
    margin-bottom: 16px;
}

.hg-404 p {
    font-size: 1.1rem;
    color: var(--hg-grey);
    margin-bottom: 24px;
}

/* ==========================================================================
   Search results
   ========================================================================== */

.hg-search-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.hg-search-results {
    max-width: var(--hg-container-narrow);
    margin: 0 auto;
    padding: 0 20px 40px;
}

.hg-search-result {
    padding: 20px 0;
    border-bottom: 1px solid var(--hg-border-light);
}

.hg-search-result h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.hg-search-result h2 a {
    text-decoration: none;
}

.hg-search-result p {
    color: var(--hg-grey);
    font-size: 0.95rem;
}

/* ==========================================================================
   WordPress Admin Bar offset
   ========================================================================== */

.admin-bar .hg-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .hg-header {
        top: 46px;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --hg-header-height: 60px;
    }

    .hg-nav__menu {
        display: none;
    }

    .hg-nav__user-label {
        display: none;
    }

    .hg-hamburger {
        display: flex;
    }

    /* Footer */
    .hg-footer__top {
        flex-direction: column;
        gap: 24px;
    }

    .hg-footer__contact {
        text-align: left;
    }

    .hg-footer__legal {
        flex-direction: column;
        align-items: flex-start;
    }

    .hg-footer__legal-links {
        gap: 16px;
    }

    .hg-footer__meta {
        flex-direction: column;
        gap: 4px;
    }

    /* Page content */
    .hg-page-header h1 {
        font-size: 1.4rem;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .hg-logo__name {
        font-size: 1rem;
    }

    .hg-logo__tagline {
        font-size: 0.55rem;
    }

    .hg-logo__img {
        width: 40px;
        height: 40px;
    }
}

/* ══════════════════════════════════════════════════════════
   VIRKSOMHEDER PAGE
   ══════════════════════════════════════════════════════════ */
.hg-virk-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(180deg, var(--hg-bg) 0%, #fff 100%);
}
.hg-virk-hero__title {
    font-family: var(--hg-font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--hg-dark);
    margin-bottom: 12px;
}
.hg-virk-hero__subtitle {
    font-family: var(--hg-font);
    font-size: 1rem;
    color: var(--hg-grey);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CTA Banner */
.hg-virk-cta-banner {
    padding: 0 20px;
    margin-bottom: 48px;
}
.hg-virk-cta-banner__inner {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #3a6b8a 0%, #2a4a5f 100%);
    border-radius: 20px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.hg-virk-cta-banner__text h2 {
    font-family: var(--hg-font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 6px;
}
.hg-virk-cta-banner__text p {
    font-family: var(--hg-font);
    font-size: 0.92rem;
    color: rgba(255,255,255,0.8);
}
.hg-virk-cta-banner__btn {
    display: inline-block;
    padding: 14px 28px;
    background: #e87040;
    color: #fff;
    font-family: var(--hg-font);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.hg-virk-cta-banner__btn:hover {
    background: #d35a2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Categories */
.hg-virk-categories {
    padding: 20px 20px 60px;
}
.hg-virk-categories__heading {
    font-family: var(--hg-font-heading);
    font-size: 1.6rem;
    color: var(--hg-dark);
    text-align: center;
    margin-bottom: 8px;
}
.hg-virk-categories__subheading {
    font-family: var(--hg-font);
    font-size: 0.92rem;
    color: var(--hg-grey);
    text-align: center;
    max-width: 500px;
    margin: 0 auto 36px;
}
.hg-virk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}
.hg-virk-card {
    background: #fff;
    border: 1px solid var(--hg-border, #e0e4e8);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.25s ease;
    cursor: default;
    position: relative;
}
.hg-virk-card:hover {
    border-color: var(--hg-accent, #3a6b8a);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.hg-virk-card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    color: var(--hg-accent, #3a6b8a);
}
.hg-virk-card__icon svg {
    width: 100%;
    height: 100%;
}
.hg-virk-card__title {
    font-family: var(--hg-font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hg-dark);
    margin-bottom: 8px;
}
.hg-virk-card__desc {
    font-family: var(--hg-font);
    font-size: 0.88rem;
    color: var(--hg-grey);
    line-height: 1.55;
    margin-bottom: 12px;
}
.hg-virk-card__badge {
    display: inline-block;
    font-family: var(--hg-font);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--hg-accent, #3a6b8a);
    background: rgba(58,107,138,0.08);
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Bottom CTA */
.hg-virk-bottom-cta {
    text-align: center;
    padding: 48px 20px 60px;
    background: var(--hg-bg, #f4f6f8);
}
.hg-virk-bottom-cta h2 {
    font-family: var(--hg-font-heading);
    font-size: 1.5rem;
    color: var(--hg-dark);
    margin-bottom: 8px;
}
.hg-virk-bottom-cta p {
    font-family: var(--hg-font);
    font-size: 0.95rem;
    color: var(--hg-grey);
    margin-bottom: 24px;
}
.hg-virk-bottom-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.hg-virk-bottom-cta__btn {
    padding: 14px 28px;
    font-family: var(--hg-font);
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.hg-virk-bottom-cta__btn--primary {
    background: #e87040;
    color: #fff;
}
.hg-virk-bottom-cta__btn--primary:hover {
    background: #d35a2a;
    transform: translateY(-2px);
}
.hg-virk-bottom-cta__btn--secondary {
    background: transparent;
    color: var(--hg-dark);
    border: 2px solid var(--hg-border, #d0d4d8);
}
.hg-virk-bottom-cta__btn--secondary:hover {
    border-color: var(--hg-accent, #3a6b8a);
    color: var(--hg-accent, #3a6b8a);
}
