/* ============================================
   Nabolagsadvokaten (Advokatfirmaet Morten Persen AS)
   Built by Agentas on the business-classic mold. Theme via :root.
   Colours from his logo: navy #001068 and the gold rule #9a8c5a.
   ============================================ */

:root {
    /* brand primitives */
    --navy-950: #08112e;
    --navy-900: #0d1a44;
    --navy-800: #13265e;
    --navy-700: #1c3577;
    --navy-logo: #001068;
    --gold-logo: #9a8c5a;
    --gold-700: #75632d;
    --gold-500: #b39a57;
    --gold-400: #c9ae66;
    --gold-300: #dfc98f;
    --gold-100: #f6efdc;
    --mist-100: #f3f5fa;
    --mist-200: #e9eef7;
    --on-dark: #ffffff;
    --on-dark-2: #d0d8ea;
    --on-dark-3: #b8c3dc;

    /* roles (the mold's names, so the dormant service-page CSS and bin/og-card.py keep reading them) */
    --bg-primary: #ffffff;
    --bg-secondary: #f4f1ea;
    --bg-card: #ffffff;
    --bg-card-hover: #fdfcf9;
    --border: #e6e1d6;
    --border-light: #d6cfbf;
    --border-input: #8a8fa3;
    --text-primary: #121a35;
    --text-secondary: #3e4762;
    --text-muted: #5b6378;
    --accent: #1c3577;
    --accent-hover: #13265e;
    --accent-glow: rgba(28, 53, 119, 0.10);
    --accent-secondary: #75632d;
    --gradient-accent: linear-gradient(135deg, #24418a, #13265e);
    --gradient-gold: linear-gradient(180deg, #ecdaa6, #c9ae66);
    --gradient-tile: linear-gradient(135deg, #fbf5e4, #ecdcae);
    --shadow-sm: 0 1px 2px rgba(13, 26, 68, 0.04), 0 8px 24px rgba(13, 26, 68, 0.07);
    --shadow-md: 0 2px 6px rgba(13, 26, 68, 0.05), 0 16px 40px rgba(13, 26, 68, 0.10);
    --shadow-lg: 0 24px 60px rgba(8, 17, 46, 0.28);
    --font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-logo: 'Tinos', 'Times New Roman', Times, serif;
    --focus: #2b55b8;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 24px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 1.0625rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

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

.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-300); }

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 2000;
    background: #fff;
    color: var(--navy-900);
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---- Navigation ---- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

#navbar.scrolled {
    border-bottom-color: var(--border);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 14px rgba(13, 26, 68, 0.07);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

/* His logo is type only: NABOLAGS over ADVOKATEN in a bold serif, navy, with a gold rule between.
   Rebuilt as text so it stays sharp at every screen density (the original is a 183 x 54 px PNG). */
.wordmark {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 20px;
    line-height: 0.8;
    text-transform: uppercase;
    color: var(--navy-logo);
    background: linear-gradient(var(--gold-logo), var(--gold-logo)) center / 100% 2px no-repeat;
    z-index: 1001;
}
.wm-top { letter-spacing: 0.158em; margin-right: -0.158em; }
.wm-bottom { letter-spacing: 0.04em; margin-right: -0.04em; }
.wordmark-light { color: #fff; background-image: linear-gradient(var(--gold-400), var(--gold-400)); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links > a:not(.nav-call) {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav-links > a:not(.nav-call):hover { color: var(--navy-800); }

.nav-links > a:not(.nav-call)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-500);
    transition: width var(--transition);
    border-radius: 1px;
}

.nav-links > a:not(.nav-call):hover::after { width: 100%; }

.nav-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    background: var(--gradient-accent);
    color: #fff;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(19, 38, 94, 0.25);
    transition: var(--transition);
}
.nav-call .icon { width: 17px; height: 17px; }
.nav-call:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(19, 38, 94, 0.32); }

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 28px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-family: var(--font);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 8px 22px rgba(19, 38, 94, 0.26);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(19, 38, 94, 0.34); }

.btn-gold {
    background: var(--gradient-gold);
    color: var(--navy-900);
    box-shadow: 0 8px 24px rgba(201, 174, 102, 0.32);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201, 174, 102, 0.42); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

.btn-outline {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-input);
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-glow); }

.btn-full { width: 100%; }

/* Phone button: label over number */
.btn-call {
    gap: 14px;
    padding: 9px 30px 9px 22px;
    text-align: left;
}
.btn-call .icon { width: 22px; height: 22px; stroke-width: 2; }

.btn-call-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    line-height: 1.3;
}

.btn-call-num {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

/* ---- Hero (dark, lit from behind the portrait) ---- */
#hero {
    position: relative;
    overflow: hidden;
    padding: 140px 24px 128px;
    color: var(--on-dark);
    background:
        radial-gradient(620px 520px at 78% 46%, rgba(223, 201, 143, 0.24), transparent 66%),
        radial-gradient(900px 600px at 0% 0%, rgba(43, 85, 184, 0.22), transparent 60%),
        linear-gradient(160deg, #08112e 0%, #13265e 58%, #1f4180 100%);
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 72px;
    align-items: center;
}

.hero-eyebrow,
.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-700);
    margin-bottom: 16px;
}

.hero-eyebrow::before,
.section-label::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-500);
    flex-shrink: 0;
}

.hero-eyebrow,
.on-dark .section-label { color: var(--gold-300); }
.hero-eyebrow::before,
.on-dark .section-label::before { background: var(--gold-400); }

.hero-name {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 4.4vw, 3.55rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--on-dark-2);
    max-width: 34em;
    margin-bottom: 36px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 26px;
}

.hero-assurance {
    font-size: 0.98rem;
    color: var(--on-dark-3);
    max-width: 36em;
}

.hero-media {
    position: relative;
    margin: 0;
}

.hero-media::before {
    content: '';
    position: absolute;
    inset: 24px -24px -24px 24px;
    border: 1.5px solid rgba(223, 201, 143, 0.5);
    border-radius: 30px;
}

.hero-media img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ---- Image placeholders (used by the service-page template in _src/) ---- */
.img-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--gradient-tile);
    color: var(--accent);
    overflow: hidden;
}
.img-ph-icon { width: 54px; height: 54px; opacity: 0.55; stroke: var(--accent); }
.img-ph-cap { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); max-width: 30ch; line-height: 1.5; }

/* ---- Sections common ---- */
.section {
    padding: 112px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fbf9f4 100%);
}

.section-alt { background: linear-gradient(180deg, var(--mist-100) 0%, var(--mist-200) 100%); }

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 18px;
    max-width: 24em;
}

.section-lead {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 40em;
    margin-bottom: 52px;
}

/* ---- Facts strip ---- */
#fakta {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, transparent 50%, #ffffff 50%);
}

.trust-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: -64px;
    overflow: hidden;
}

.trust-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 26px 24px;
}

.trust-item + .trust-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 22px;
    width: 1px;
    background: var(--border);
}

.icon-tile {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--gradient-tile);
    color: var(--navy-800);
    flex-shrink: 0;
}
.icon-tile .icon { width: 23px; height: 23px; }

.trust-title {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Four across: icon above the text, so the titles keep to one line */
@media (min-width: 1101px) {
    .trust-item { flex-direction: column; gap: 14px; padding: 26px 26px 28px; }
}

.trust-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.45;
}

/* ---- Practice areas ---- */
#fagomrader { padding-top: 104px; }

.area-group + .area-group { margin-top: 56px; }

.group-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 22px;
}

.group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-light), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px 28px 32px;
    box-shadow: var(--shadow-sm);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--gradient-tile);
    color: var(--navy-800);
    margin-bottom: 20px;
}
.service-icon .icon { width: 26px; height: 26px; }

.service-card h3,
.service-card h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Card keywords as one plain line, not chips (UI rule: no tags/chips as information carriers, 2026-09-24) */
.service-card .service-keywords {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 14px;
}

/* ---- How he works (numbered steps) ---- */
.steps-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
}

.step-num {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a4a96, #0d1a44);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 8px 18px rgba(13, 26, 68, 0.25);
}

.step-card h3 {
    font-family: var(--font-serif);
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Prices and terms ---- */
.price-grid {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.price-card {
    position: relative;
    overflow: hidden;
    color: var(--on-dark);
    border-radius: var(--radius-lg);
    padding: 36px 34px;
    box-shadow: var(--shadow-lg);
    background:
        radial-gradient(380px 280px at 100% 0%, rgba(120, 160, 240, 0.22), transparent 70%),
        linear-gradient(160deg, #0d1a44, #1f4180);
}

.price-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-300);
    margin-bottom: 14px;
}

.price-num {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.price-unit {
    color: var(--on-dark-2);
    margin-top: 10px;
}

.price-ex {
    color: var(--on-dark-2);
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-variant-numeric: tabular-nums;
}

.price-note {
    font-size: 0.95rem;
    color: var(--on-dark-3);
    margin-top: 10px;
    line-height: 1.55;
}

.price-card .btn { margin-top: 26px; width: 100%; }

.terms-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.terms-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
}

.terms-list .icon {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    color: var(--gold-700);
    stroke-width: 2.2;
}

.terms-list p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.terms-list strong { color: var(--text-primary); font-weight: 700; }

/* ---- About Morten ---- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 64px;
    align-items: start;
}

.about-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 30%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-facts {
    margin-top: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 6px 24px;
}

.about-facts div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.about-facts div:last-child { border-bottom: none; }
.about-facts dt { color: var(--text-muted); font-size: 0.98rem; }
.about-facts dd { color: var(--text-primary); font-weight: 600; text-align: right; }

.about-text > p:not(.section-label) {
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 40em;
}

.about-quote {
    margin-top: 28px;
    padding: 24px 28px;
    border-left: 3px solid var(--gold-500);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-sm);
}

.about-quote p {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.22rem;
    line-height: 1.55;
    color: var(--navy-800);
}

.advice-card {
    margin-top: 64px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px 44px;
}

.advice-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.advice-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 48px;
}

.advice-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.advice-list .icon {
    width: 21px;
    height: 21px;
    margin-top: 3px;
    color: var(--gold-700);
    stroke-width: 2.2;
}

/* ---- Client quotes ---- */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px 32px 28px;
    box-shadow: var(--shadow-sm);
}

.testimonial-card::before {
    content: '\00AB';
    font-family: var(--font-serif);
    font-size: 3.4rem;
    line-height: 0.5;
    color: var(--gold-400);
    padding-top: 14px;
}

.testimonial-card blockquote { flex: 1; }

.testimonial-card blockquote p {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.18rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.testimonial-card figcaption {
    font-weight: 700;
    color: var(--navy-800);
}

/* ---- Where to find him ---- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px 30px 32px;
    box-shadow: var(--shadow-sm);
}

.info-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.info-card-title .icon { width: 24px; height: 24px; color: var(--gold-700); }

.info-lines {
    color: var(--text-secondary);
    line-height: 1.7;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: auto;
    padding-top: 14px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(28, 53, 119, 0.35);
    text-underline-offset: 4px;
    transition: var(--transition);
}
.map-link .icon { width: 17px; height: 17px; }
.map-link:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

.hours-list { list-style: none; width: 100%; }

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.hours-list li:last-child { border-bottom: none; }
.hours-list strong { color: var(--text-primary); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.info-card-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-top: 12px;
}

/* ---- Contact (dark) ---- */
#kontakt {
    padding: 112px 0;
    color: var(--on-dark);
    background:
        radial-gradient(760px 560px at 82% 40%, rgba(120, 160, 240, 0.20), transparent 64%),
        linear-gradient(160deg, #0b1740 0%, #1c3577 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.2vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 16px;
}

.contact-info > p:not(.section-label) {
    color: var(--on-dark-2);
    font-size: 1.12rem;
    max-width: 30em;
}

.contact-person {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0 26px;
}

.contact-person img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-300);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.cp-name { font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.cp-role { color: var(--on-dark-3); line-height: 1.4; }

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 12px 34px 12px 24px;
    background: var(--gradient-gold);
    color: var(--navy-900);
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(201, 174, 102, 0.3);
    margin-bottom: 32px;
    transition: var(--transition);
}

.contact-phone:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(201, 174, 102, 0.4); }
.contact-phone .icon { width: 26px; height: 26px; stroke-width: 2; }

.contact-phone-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.contact-phone-num {
    display: block;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item .icon {
    width: 22px;
    height: 22px;
    color: var(--gold-300);
    margin-top: 3px;
}

.contact-item div { display: flex; flex-direction: column; }

.contact-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--on-dark-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.contact-item a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}
.contact-item a:hover { text-decoration-color: #fff; }

.contact-form-wrap {
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 7px;
}

.form-group .optional { font-weight: 400; color: var(--text-muted); }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    background: #fbfaf7;
    border: 1.5px solid var(--border-input);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1.0625rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(43, 85, 184, 0.16);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-status {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--gold-100);
    border: 1px solid #e3d3a4;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.5;
}

.form-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

.form-note a {
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--navy-950);
    color: var(--on-dark-3);
    padding: 64px 0 64px; /* the bottom leaves room for the fixed preview bar */
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.3fr) minmax(0, 0.95fr) minmax(0, 1.2fr);
    gap: 32px;
    font-size: 1rem;
}

.footer-brand .wordmark { margin-bottom: 18px; }
.footer-brand p { max-width: 22em; }

.footer-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-300);
    margin-bottom: 12px;
}

.footer-col p { line-height: 1.7; }
.footer-col p + p { margin-top: 4px; }

.footer-col a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}
.footer-col a:hover { text-decoration-color: #fff; }

.footer-bottom { margin-top: 44px; }

.footer-bottom p {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
    color: var(--on-dark-3);
}

.footer-bottom a { white-space: nowrap; }

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-item:nth-child(3)::before { display: none; }
    .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .price-grid { grid-template-columns: minmax(0, 1fr); }
    .price-card { max-width: 520px; }
    .hero-media::before { inset: 18px -14px -18px 14px; }
}

@media (max-width: 1024px) {
    .hero-inner { gap: 44px; }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .about-text { order: -1; }
    .about-media { max-width: 640px; }
    .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
    .hero-media { max-width: 440px; }
}

@media (max-width: 940px) {
    .nav-hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 86vw);
        height: 100vh;
        height: 100dvh;
        background: var(--bg-card);
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: 96px 32px 40px;
        gap: 10px;
        box-shadow: -12px 0 40px rgba(8, 17, 46, 0.18);
        visibility: hidden;
        transition: right var(--transition), visibility var(--transition);
    }

    .nav-links.open { right: 0; visibility: visible; }
    .nav-links > a:not(.nav-call) { font-size: 1.2rem; padding: 10px 0; }
    .nav-links > a:not(.nav-call)::after { display: none; }
    .nav-call { justify-content: center; font-size: 1.05rem; margin-top: 14px; padding: 13px 24px; }
}

@media (max-width: 768px) {
    .section, #kontakt { padding: 80px 0; }
    #fagomrader { padding-top: 80px; }
    .section-lead { margin-bottom: 40px; }

    .services-grid,
    .steps-grid,
    .terms-list,
    .advice-list,
    .quotes-grid,
    .info-grid { grid-template-columns: minmax(0, 1fr); }

    .trust-grid { grid-template-columns: minmax(0, 1fr); margin-top: -48px; }
    .trust-item::before { display: none; }
    .trust-item { border-bottom: 1px solid var(--border); padding: 20px 22px; }
    .trust-item:last-child { border-bottom: none; }

    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-media::before { inset: 16px -12px -16px 12px; }

    .advice-card { padding: 30px 26px; }
    .contact-phone { width: 100%; justify-content: center; }
    .form-row { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 480px) {
    #hero { padding: 112px 20px 104px; }
    .container { padding: 0 20px; }
    .nav-container { padding: 0 20px; }
    .hero-name { font-size: 2.15rem; }
    .hero-sub { font-size: 1.1rem; }
    .contact-form-wrap { padding: 26px 22px; }
    .info-card, .service-card, .step-card { padding: 26px 22px; }
    .testimonial-card { padding: 26px 24px 24px; }
    .price-card { padding: 30px 26px; }
    .price-num { font-size: 2.8rem; }
    .contact-phone-num { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- Real photos inside image placeholders (the service-page template uses these) ---- */
.img-ph > .ph-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 3;
    border-radius: inherit;
}
.img-ph:has(> .ph-photo)::after { display: none; }
.img-ph:has(> .ph-photo) { position: relative; background: none; border: none; padding: 0; }

/* ---- Reference-projects gallery + lightbox (dormant; add a #galleri section to use it) ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.gallery-thumb {
    padding: 0;
    border: 1px solid var(--border);
    background: none;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.gallery-thumb:hover { box-shadow: var(--shadow-md); border-color: var(--border-light); }
.gallery-thumb:hover img { transform: scale(1.05); }
.gallery-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(10, 15, 25, 0.93);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 44px;
}
.lightbox:not([hidden]) { display: flex; }
.lb-img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.lb-close, .lb-prev, .lb-next {
    position: absolute;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 0;
    cursor: pointer;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.26); }
.lb-close { top: 20px; right: 24px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
    .lb-prev { left: 10px; } .lb-next { right: 10px; }
    .lb-close { top: 12px; right: 14px; }
}

/* ============================================
   Service pages: Standard = multi-page (webops PLAYBOOK §1, 2026-09-24). DORMANT on the one-page home: used by the
   pages built from _src/tjeneste.html, the card links (.service-card h3 a / .service-more) and .footer-services.
   Reference build: clients/gbmalerservice.
   ============================================ */
.about-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.about-points li { position: relative; padding-left: 30px; color: var(--text-secondary); line-height: 1.5; }
.about-points li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent-secondary); font-weight: 800; }
.hero-rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; text-decoration: none; color: var(--text-secondary); font-size: 0.95rem; transition: var(--transition); }
.hero-rating:hover { color: var(--accent); }
.hr-stars { color: var(--accent-secondary); letter-spacing: 1px; }
.hr-text strong { color: var(--text-primary); font-size: 1.05rem; }

.page-hero {
    padding: 128px 24px 72px;
    background:
        radial-gradient(ellipse 70% 80% at 85% 0%, var(--accent-glow), transparent 60%),
        linear-gradient(180deg, var(--bg-secondary), var(--bg-primary) 90%);
}
.page-hero .hero-name { font-size: clamp(2rem, 4vw, 3rem); color: var(--text-primary); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text-secondary); font-weight: 600; }
.img-ph-svc { aspect-ratio: 4 / 5; width: 100%; box-shadow: var(--shadow-lg); }

.svc-body { padding-top: 72px; }
.svc-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.svc-main h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin-bottom: 16px; }
.svc-main p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; }
.svc-main .about-points { margin: 22px 0 48px; }
.svc-main .steps-grid { grid-template-columns: repeat(2, 1fr); margin-top: 8px; }
.svc-aside {
    position: sticky;
    top: 96px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}
.svc-aside h2 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 14px; }
.svc-aside .about-points { margin: 0 0 22px; }
.svc-aside .btn { width: 100%; }
.svc-aside .btn + .btn { margin-top: 10px; }
.svc-aside .hero-rating { margin-top: 18px; font-size: 0.9rem; }
.svc-aside-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 16px; line-height: 1.6; }

.svc-section-alt { background: var(--bg-secondary); }
.svc-review .testimonial-card { max-width: 760px; margin: 0 auto; }
.svc-review-job { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; }

.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item { background: var(--bg-card); border-radius: var(--radius); padding: 0 24px; box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 700; color: var(--text-primary); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--accent); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--text-secondary); line-height: 1.75; padding-bottom: 20px; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.related-card {
    display: block;
    padding: 22px 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-card strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.related-card span { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.55; }

.cta-band { text-align: center; background: linear-gradient(160deg, #0d1a44, #1f4180); color: #fff; padding: 72px 0; }
.cta-band h2 { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; margin-bottom: 12px; }
.cta-band p { opacity: 0.9; margin-bottom: 28px; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }
.cta-band .btn-primary { background: var(--gradient-gold); color: var(--navy-900); box-shadow: none; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* Home page, Standard: each service card links to its page (the h3 link is stretched over the whole card) */
.service-card h3 a, .service-card h4 a { color: inherit; text-decoration: none; }
.service-card h3 a::after, .service-card h4 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service-more { display: inline-block; margin-top: 14px; font-size: 0.95rem; font-weight: 700; color: var(--accent); }
.service-card:hover .service-more { text-decoration: underline; text-underline-offset: 3px; }

.footer-services { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 16px; }
.footer-services a { font-size: 0.9rem; color: var(--on-dark-3); text-decoration: none; }
.footer-services a:hover { color: #fff; }

@media (max-width: 1024px) {
    .svc-grid { grid-template-columns: 1fr; }
    .svc-aside { position: static; }
}
@media (max-width: 768px) {
    .page-hero { padding-top: 108px; }
    .svc-main .steps-grid { grid-template-columns: 1fr; }
}
