/* OqtaneLibrary.BEOTjenester – BEO Tjenester presentasjonsside */
.beo-module {
    --beo-accent: #2563eb;
    --beo-accent-dark: #1d4ed8;
    --beo-accent-soft: rgba(37, 99, 235, 0.12);
    --beo-bg: #f1f5f9;
    --beo-bg-muted: #f8fafc;
    --beo-text: #0f172a;
    --beo-text-muted: #475569;
    --beo-border: #e2e8f0;
    --beo-card-bg: #ffffff;
    --beo-radius: 0.75rem;
    --beo-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.08);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 2rem;
    border-radius: var(--beo-radius);
    background: var(--beo-bg);
    color: var(--beo-text);
    overflow: hidden;
}

/* Header / Nav */
.beo-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--beo-border);
    margin-bottom: 1.5rem;
}

.beo-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding: 0.85rem 1rem;
}

.beo-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--beo-text);
    font-weight: 700;
    margin-right: auto;
}

.beo-nav-brand:hover {
    color: var(--beo-accent);
    text-decoration: none;
}

.beo-logo {
    color: var(--beo-accent);
    line-height: 0;
}

.beo-nav-brand-text {
    font-size: 1.05rem;
}

.beo-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.beo-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--beo-border);
    border-radius: 0.5rem;
    background: var(--beo-bg);
    color: var(--beo-text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.beo-theme-toggle:hover {
    border-color: var(--beo-accent);
    color: var(--beo-accent);
}

.beo-theme-toggle-icon {
    font-size: 1rem;
    line-height: 1;
}

.beo-logo-img,
.beo-portrait-img {
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.beo-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}

.beo-portrait-img {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 0.75rem;
}

.beo-hero-logo-mark .beo-logo-img {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
}

.beo-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
}

.beo-nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--beo-text);
    border-radius: 1px;
}

.beo-nav-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1rem;
}

.beo-nav-link {
    color: var(--beo-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.35rem 0.15rem;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.beo-nav-link:hover {
    color: var(--beo-accent);
    text-decoration: none;
}

.beo-nav-link--active {
    color: var(--beo-accent);
    border-bottom-color: var(--beo-accent);
}

/* Main */
.beo-main {
    min-height: 40vh;
    padding: 0 1.5rem;
}

/* Hero */
.beo-hero {
    position: relative;
    border-radius: var(--beo-radius);
    overflow: hidden;
    margin-bottom: 2.5rem;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.beo-hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.6) 100%),
        linear-gradient(145deg, #0f172a 0%, #1e3a8a 40%, #2563eb 70%, #1e40af 100%);
}

.beo-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(96, 165, 250, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(147, 197, 253, 0.18) 0%, transparent 40%);
}

.beo-hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2.5rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 70%, transparent 100%);
    color: #fff;
}

.beo-hero-logo {
    margin-bottom: 1rem;
}

.beo-hero-role {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0.35rem;
}

.beo-hero-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.beo-hero-tagline {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    line-height: 1.45;
    max-width: 680px;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.beo-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Buttons */
.beo-btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    text-align: center;
}

.beo-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.beo-btn--primary {
    background: linear-gradient(135deg, var(--beo-accent) 0%, var(--beo-accent-dark) 100%);
    color: #fff !important;
    border-color: transparent;
}

.beo-btn--primary:hover {
    box-shadow: 0 0.35rem 1rem rgba(37, 99, 235, 0.35);
    color: #fff;
}

.beo-btn--secondary {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.85);
}

.beo-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.beo-btn--outline {
    background: transparent;
    color: var(--beo-accent) !important;
    border-color: var(--beo-accent);
}

.beo-btn--outline:hover {
    background: var(--beo-accent-soft);
    color: var(--beo-accent-dark);
}

.beo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Sections */
.beo-section {
    margin-bottom: 2.5rem;
    padding: 0 0.25rem;
}

.beo-section--muted {
    background: var(--beo-card-bg);
    border: 1px solid var(--beo-border);
    border-radius: var(--beo-radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--beo-shadow);
}

.beo-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.beo-section-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 0;
}

.beo-link {
    color: var(--beo-accent);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.beo-link:hover {
    text-decoration: underline;
}

.beo-lead {
    font-size: 1.1rem;
    color: var(--beo-text-muted);
    line-height: 1.6;
}

/* Page header */
.beo-page-header {
    margin-bottom: 2rem;
    padding: 1.25rem 1rem;
    border-radius: var(--beo-radius);
    background: var(--beo-bg-muted);
}

.beo-page-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.beo-page-lead {
    font-size: 1.1rem;
    color: var(--beo-text-muted);
    max-width: 720px;
    line-height: 1.6;
}

.beo-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
}

/* Service cards */
.beo-service-card,
.beo-app-card {
    height: 100%;
    background: var(--beo-card-bg);
    border: 1px solid var(--beo-border);
    border-radius: var(--beo-radius);
    box-shadow: var(--beo-shadow);
    transition: transform 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.beo-service-card {
    padding: 1.5rem;
}

.beo-app-body {
    padding: 1.5rem;
}

.beo-app-screenshot {
    aspect-ratio: 16 / 10;
    background: hsla(var(--beo-hue, 220), 55%, 92%, 1);
    border-bottom: 1px solid var(--beo-border);
    overflow: hidden;
}

.beo-app-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.beo-app-screenshot-mock {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg,
        hsla(var(--beo-hue, 220), 60%, 88%, 1),
        hsla(var(--beo-hue, 220), 45%, 96%, 1));
}

.beo-app-screenshot-bar {
    display: flex;
    gap: 0.35rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.45);
}

.beo-app-screenshot-bar span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.18);
}

.beo-app-screenshot-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem;
}

.beo-app-screenshot-icon {
    color: hsl(var(--beo-hue, 220), 55%, 42%);
    opacity: 0.85;
}

.beo-app-screenshot-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--beo-hue, 220), 35%, 32%);
}

.beo-service-card:hover,
.beo-app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.12);
}

.beo-service-icon,
.beo-app-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    margin-bottom: 1rem;
    color: hsl(var(--beo-hue, 220), 70%, 45%);
    background: hsla(var(--beo-hue, 220), 70%, 50%, 0.12);
}

.beo-service-title,
.beo-app-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.beo-service-summary,
.beo-app-summary {
    color: var(--beo-text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.beo-service-bullets {
    padding-left: 1.15rem;
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--beo-text-muted);
}

.beo-service-bullets li {
    margin-bottom: 0.35rem;
}

.beo-service-example {
    font-size: 0.88rem;
    color: var(--beo-text-muted);
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--beo-border);
}

.beo-app-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.beo-app-tech-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--beo-accent-soft);
    color: var(--beo-accent-dark);
}

.beo-app-link {
    width: 100%;
}

/* About preview / portrait */
.beo-about-preview,
.beo-about-portrait {
    border-radius: var(--beo-radius);
    background: linear-gradient(145deg, #1e3a8a, #2563eb);
    padding: 2px;
}

.beo-about-preview-inner,
.beo-about-portrait-inner {
    background: var(--beo-card-bg);
    border-radius: calc(var(--beo-radius) - 2px);
    padding: 2rem 1.5rem;
    text-align: center;
}

.beo-about-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: var(--beo-accent-soft);
    color: var(--beo-accent-dark);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.beo-about-initials--lg {
    width: 6rem;
    height: 6rem;
    font-size: 1.75rem;
}

.beo-about-portrait-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.beo-about-portrait-role {
    color: var(--beo-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.beo-about-content p {
    line-height: 1.65;
    color: var(--beo-text-muted);
}

.beo-feature-list {
    padding-left: 1.15rem;
    color: var(--beo-text-muted);
    line-height: 1.65;
}

.beo-feature-list li {
    margin-bottom: 0.4rem;
}

/* CTA */
.beo-cta {
    text-align: center;
    background: var(--beo-card-bg);
    border: 1px solid var(--beo-border);
    border-radius: var(--beo-radius);
    padding: 2.5rem 1.5rem;
    box-shadow: var(--beo-shadow);
}

.beo-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.beo-cta-text {
    color: var(--beo-text-muted);
    max-width: 520px;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
}

/* Tech blocks */
.beo-tech-block {
    height: 100%;
    background: var(--beo-card-bg);
    border: 1px solid var(--beo-border);
    border-radius: var(--beo-radius);
    padding: 1.5rem;
    box-shadow: var(--beo-shadow);
}

.beo-tech-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    margin-bottom: 1rem;
    color: hsl(var(--beo-hue, 220), 70%, 45%);
    background: hsla(var(--beo-hue, 220), 70%, 50%, 0.12);
}

.beo-tech-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.beo-tech-summary {
    color: var(--beo-text-muted);
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

.beo-tech-bullets {
    padding-left: 1.15rem;
    margin: 0;
    color: var(--beo-text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.beo-tech-bullets li {
    margin-bottom: 0.35rem;
}

.beo-tech-value .beo-btn {
    margin-top: 0.5rem;
}

/* Contact */
.beo-panel {
    background: var(--beo-card-bg);
    border: 1px solid var(--beo-border);
    border-radius: var(--beo-radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--beo-shadow);
}

.beo-panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.beo-panel-lead {
    color: var(--beo-text-muted);
    margin-bottom: 1.5rem;
}

.beo-contact-info {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--beo-border);
    font-size: 0.95rem;
    color: var(--beo-text-muted);
}

.beo-contact-info p {
    margin-bottom: 0.35rem;
}

.beo-form-group {
    margin-bottom: 1rem;
}

.beo-form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.beo-form-control {
    display: block;
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
    border: 1px solid var(--beo-border);
    border-radius: 0.5rem;
    background: var(--beo-bg);
    color: var(--beo-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.beo-form-control:focus {
    outline: none;
    border-color: var(--beo-accent);
    box-shadow: 0 0 0 3px var(--beo-accent-soft);
}

.beo-panel-actions {
    margin-top: 0.5rem;
}

/* Footer */
.beo-footer {
    margin: 2.5rem 1.5rem 0;
    padding: 2rem 1rem;
    border: 1px solid var(--beo-border);
    background: var(--beo-bg-muted);
    border-radius: var(--beo-radius);
}

.beo-footer-inner {
    display: grid;
    gap: 1.25rem;
}

.beo-footer-brand p {
    color: var(--beo-text-muted);
    font-size: 0.9rem;
    margin: 0.35rem 0 0;
    max-width: 420px;
}

.beo-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.beo-footer-links a {
    color: var(--beo-accent);
    font-weight: 600;
    text-decoration: none;
}

.beo-footer-links a:hover {
    text-decoration: underline;
}

.beo-footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.85rem;
    color: var(--beo-text-muted);
}

.beo-footer-meta a {
    color: var(--beo-text-muted);
}

/* Responsive */
@media (min-width: 768px) {
    .beo-footer-inner {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }

    .beo-footer-meta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .beo-main {
        padding: 0 1rem;
    }

    .beo-footer {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .beo-nav-toggle {
        display: flex;
    }

    .beo-nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 0.5rem;
    }

    .beo-nav-menu--open {
        display: flex;
    }

    .beo-nav-link {
        padding: 0.5rem 0;
    }

    .beo-hero-overlay {
        padding: 2rem 1.25rem;
    }

    .beo-section--muted {
        padding: 1.5rem 1rem;
    }

    .beo-nav-actions {
        order: 2;
    }

    .beo-nav-menu {
        order: 3;
    }
}

/* Dark mode */
.beo-module.beo-module--dark,
.beo-module[data-theme="dark"] {
    --beo-bg: #0f172a;
    --beo-bg-muted: #1e293b;
    --beo-text: #f1f5f9;
    --beo-text-muted: #94a3b8;
    --beo-border: #334155;
    --beo-card-bg: #1e293b;
    --beo-accent-soft: color-mix(in srgb, var(--beo-accent) 18%, transparent);
    --beo-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.35);
}

.beo-module.beo-module--dark .beo-header,
.beo-module[data-theme="dark"] .beo-header {
    background: rgba(15, 23, 42, 0.92);
}

.beo-module.beo-module--dark .beo-section--muted,
.beo-module[data-theme="dark"] .beo-section--muted {
    border-color: var(--beo-border);
    box-shadow: var(--beo-shadow);
}

.beo-module.beo-module--dark .beo-cta,
.beo-module[data-theme="dark"] .beo-cta {
    border-color: var(--beo-border);
    box-shadow: var(--beo-shadow);
}

.beo-module.beo-module--dark .beo-footer,
.beo-module[data-theme="dark"] .beo-footer {
    border-color: var(--beo-border);
}

.beo-module.beo-module--dark .beo-app-screenshot-bar,
.beo-module[data-theme="dark"] .beo-app-screenshot-bar {
    background: rgba(0, 0, 0, 0.25);
}

.beo-module.beo-module--dark .beo-app-screenshot-mock,
.beo-module[data-theme="dark"] .beo-app-screenshot-mock {
    background: linear-gradient(145deg,
        hsla(var(--beo-hue, 220), 35%, 22%, 1),
        hsla(var(--beo-hue, 220), 25%, 16%, 1));
}

.beo-module.beo-module--dark .beo-app-screenshot-label,
.beo-module[data-theme="dark"] .beo-app-screenshot-label {
    color: #cbd5e1;
}

.beo-module.beo-module--dark .beo-nav-toggle-bar,
.beo-module[data-theme="dark"] .beo-nav-toggle-bar {
    background: #f1f5f9;
}

/* References */
.beo-reference-card {
    height: 100%;
    background: var(--beo-card-bg);
    border: 1px solid var(--beo-border);
    border-radius: var(--beo-radius);
    padding: 1.5rem;
    box-shadow: var(--beo-shadow);
}

.beo-reference-industry {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: hsl(var(--beo-hue, 220), 55%, 40%);
    background: hsla(var(--beo-hue, 220), 60%, 50%, 0.12);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}

.beo-reference-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.beo-reference-block h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--beo-text-muted);
    margin: 0 0 0.35rem;
}

.beo-reference-block p {
    margin: 0 0 0.85rem;
    color: var(--beo-text-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

.beo-reference-quote {
    margin: 1rem 0 0;
    padding: 1rem 1rem 1rem 1.15rem;
    border-left: 3px solid var(--beo-accent);
    background: var(--beo-card-bg);
    border-radius: 0 0.5rem 0.5rem 0;
}

.beo-reference-quote p {
    margin: 0 0 0.35rem;
    font-style: italic;
    color: var(--beo-text);
}

.beo-reference-quote footer {
    font-size: 0.85rem;
    color: var(--beo-text-muted);
}

/* Contact booking */
.beo-contact-booking {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--beo-border);
}

.beo-contact-booking-lead {
    color: var(--beo-text-muted);
    margin-bottom: 1rem;
}
