/* ============================================================
   AIfabrikken — µCSS overrides
   Theme base: blue (mu.blue.css) — overridden to Apple blue #0071e3
   Design goal: Apple.com/dk aesthetic — clean, spacious, bold
   ============================================================ */

/* ── Typography & brand colours ─────────────────────────────── */
:root {
    --mu-font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
                      'Segoe UI', system-ui, sans-serif;
    --mu-border-radius: 12px;
    --mu-font-size:     17px;
    --mu-line-height:   1.6;

    /* Apple blue — exact match to apple.com CTA buttons */
    --mu-color-primary:        #0071e3;
    --mu-color-primary-dark:   #0077ed;
    --mu-color-primary-light:  #e8f1ff;
    --brand-primary:           #0071e3;
    --brand-dark:              #1d1d1f;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent content flash before Alpine.js loads */
[x-cloak] {
    display: none !important;
}

/* ── Skip navigation (accessibility) ────────────────────────── */
.skip_nav {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    background: var(--brand-primary, #0071e3);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip_nav:focus {
    top: 0;
}

/* ── Header / Navigation ─────────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    /* Neutralise any µCSS margin below header */
    margin-bottom: 0 !important;
}

/* Remove µCSS-generated bottom spacing on the nav element */
header nav,
header nav + * {
    margin-bottom: 0 !important;
}

header nav {
    display: flex;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    gap: 2rem;
    border: none !important;
    box-shadow: none !important;
}

/* Neutralise any µCSS top spacing on main */
main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Logo */
.logo_link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

/* Nav logo: standalone icon, 80% bigger than the original 32 px */
.logo {
    height: 58px;
    width: auto;
}

/* Nav links */
header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

header nav ul li a {
    display: block;
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #1d1d1f;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

header nav ul li a:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #000;
}

header nav ul li a[aria-current="page"] {
    color: var(--brand-primary, #0071e3);
    font-weight: 600;
}

/* Language toggle button */
.lang_btn {
    flex-shrink: 0;
    background: none;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    color: #1d1d1f;
    letter-spacing: 0.04em;
    transition: border-color 0.15s, background 0.15s;
}
.lang_btn:hover {
    border-color: var(--brand-primary, #0071e3);
    background: rgba(0, 113, 227, 0.06);
    color: var(--brand-primary, #0071e3);
}
.lang_btn:focus-visible {
    outline: 2px solid var(--brand-primary, #0071e3);
    outline-offset: 2px;
}

/* Mobile menu toggle */
.menu_toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #1d1d1f;
    border-radius: 8px;
}
.menu_toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}
.menu_toggle:focus-visible {
    outline: 2px solid var(--brand-primary, #0071e3);
    outline-offset: 2px;
}
.menu_toggle svg {
    display: block;
}

/* ── Mobile navigation ───────────────────────────────────────── */
@media (max-width: 768px) {
    header {
        background: rgba(255, 255, 255, 0.97);
    }

    header nav {
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem 1.25rem;
        gap: 0;
    }

    .logo_link {
        flex: 1;
    }

    .menu_toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 2;
        margin-left: 0.5rem;
    }

    .lang_btn {
        order: 1;
    }

    header nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0.5rem 0 0.75rem;
        gap: 0;
        order: 3;
        flex: none;
    }

    header nav ul.nav_open {
        display: flex;
    }

    header nav ul li a {
        font-size: 1rem;
        padding: 0.65rem 0.5rem;
        border-radius: 8px;
    }
}

/* ── Main content area ───────────────────────────────────────── */
main {
    min-height: calc(100vh - 68px - 280px);
}

/* ── Page sections ───────────────────────────────────────────── */
main > article,
main > section {
    animation: page_fade_in 0.3s ease;
}

@keyframes page_fade_in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero section ────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 5rem 1.5rem 4rem;
    max-width: 860px;
    margin: 0 auto;
}

/* Logo with text displayed in the hero */
.hero_logo {
    height: 130px;
    width: auto;
    margin-bottom: 2.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: #1d1d1f;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #515154;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

.hero_actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn_primary {
    display: inline-block;
    background: var(--brand-primary, #0071e3);
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 980px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
    white-space: nowrap;
}
.btn_primary:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}
.btn_primary:active {
    transform: scale(0.98);
}
.btn_primary:focus-visible {
    outline: 2px solid var(--brand-primary, #0071e3);
    outline-offset: 3px;
}

.btn_secondary {
    display: inline-block;
    background: rgba(0, 113, 227, 0.1);
    color: var(--brand-primary, #0071e3) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 980px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}
.btn_secondary:hover {
    background: rgba(0, 113, 227, 0.16);
    transform: scale(1.02);
}
.btn_secondary:focus-visible {
    outline: 2px solid var(--brand-primary, #0071e3);
    outline-offset: 3px;
}

/* ── Section layout ──────────────────────────────────────────── */
.section_container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section_header {
    text-align: center;
    margin-bottom: 3rem;
}

.section_header h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin-bottom: 0.75rem;
}

.section_header p {
    font-size: 1.1rem;
    color: #515154;
    max-width: 580px;
    margin: 0 auto;
}

/* ── Feature cards grid ──────────────────────────────────────── */
.features_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature_card {
    background: #f5f5f7;
    border-radius: 18px;
    padding: 2rem;
    transition: transform 0.2s;
}

.feature_card:hover {
    transform: translateY(-3px);
}

.feature_card_icon {
    width: 48px;
    height: 48px;
    background: var(--brand-primary, #0071e3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature_card_icon svg {
    color: #fff;
    width: 24px;
    height: 24px;
}

.feature_card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature_card p {
    color: #515154;
    font-size: 0.95rem;
    margin: 0;
}

/* ── CTA banner ──────────────────────────────────────────────── */
.cta_banner {
    background: linear-gradient(135deg, #0071e3 0%, #001d3d 100%);
    color: #fff;
    text-align: center;
    padding: 4.5rem 1.5rem;
}

.cta_banner h2 {
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: #fff;
}

.cta_banner p {
    font-size: 1.1rem;
    color: #fff;
    opacity: 0.88;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.cta_banner .btn_primary {
    background: #fff;
    color: var(--brand-primary, #0071e3) !important;
}

.cta_banner .btn_primary:hover {
    background: #f5f5f5;
    filter: none;
}

/* ── Content page layout (Hvad er AI, Om, etc.) ──────────────── */
.content_hero {
    text-align: center;
    padding: 4rem 1.5rem 2.5rem;
    max-width: 760px;
    margin: 0 auto;
}

.content_hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.content_hero p {
    font-size: 1.1rem;
    color: #515154;
    line-height: 1.7;
}

/* ── Can / Cannot two-column ─────────────────────────────────── */
.two_col_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 700px) {
    .two_col_grid {
        grid-template-columns: 1fr;
    }
}

.capability_block {
    background: #f5f5f7;
    border-radius: 18px;
    padding: 2rem;
}

.capability_block h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary, #0071e3);
    margin-bottom: 1.5rem;
}

.capability_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.capability_list li h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.25rem;
}

.capability_list li p {
    font-size: 0.9rem;
    color: #515154;
    margin: 0;
}

/* ── Examples / Steps grid ───────────────────────────────────── */
.examples_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
}

.example_card {
    border: 1.5px solid #e5e5ea;
    border-radius: 18px;
    padding: 2rem;
    background: #fff;
}

.example_card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.example_card p {
    font-size: 0.92rem;
    color: #515154;
    margin: 0;
}

/* ── Process steps ───────────────────────────────────────────── */
.steps_list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.step_item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: #f5f5f7;
    border-radius: 18px;
    padding: 1.75rem;
}

.step_number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--brand-primary, #0071e3);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
}

.step_content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.4rem;
}

.step_content p {
    font-size: 0.92rem;
    color: #515154;
    margin: 0;
}

/* ── Contact box ─────────────────────────────────────────────── */
.contact_box {
    max-width: 580px;
    margin: 3rem auto 0;
    background: #f5f5f7;
    border-radius: 22px;
    padding: 2.5rem;
    text-align: center;
}

.contact_box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
}

.contact_box p {
    color: #515154;
    margin-bottom: 1.75rem;
}

.contact_email_link {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-primary, #0071e3) !important;
    text-decoration: none;
    padding: 0.85rem 2rem;
    border: 2px solid var(--brand-primary, #0071e3);
    border-radius: 980px;
    transition: background 0.15s, color 0.15s;
}
.contact_email_link:hover {
    background: var(--brand-primary, #0071e3);
    color: #fff !important;
}

.contact_note {
    font-size: 0.82rem;
    color: #8e8e93;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ── About page ──────────────────────────────────────────────── */
.about_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 640px) {
    .about_grid {
        grid-template-columns: 1fr;
    }
}

.about_card {
    background: #f5f5f7;
    border-radius: 18px;
    padding: 2rem;
}

.about_card h2 {
    font-weight: 700;
    color: var(--brand-primary, #0071e3);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.82rem;
}

.about_card p {
    font-size: 0.97rem;
    color: #1d1d1f;
    line-height: 1.7;
    margin: 0;
}

.values_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .values_grid {
        grid-template-columns: 1fr;
    }
}

.value_card {
    background: #fff;
    border: 1.5px solid #e5e5ea;
    border-radius: 16px;
    padding: 1.75rem;
}

.value_card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.4rem;
}

.value_card p {
    font-size: 0.88rem;
    color: #515154;
    margin: 0;
}

/* ── Contact details list ────────────────────────────────────── */
.contact_details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact_details li {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.97rem;
    color: #1d1d1f;
}

.contact_details li span.label {
    font-weight: 600;
    color: #515154;
    min-width: 80px;
    font-size: 0.85rem;
}

.contact_details a {
    color: var(--brand-primary, #0071e3);
    text-decoration: none;
}
.contact_details a:hover {
    text-decoration: underline;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
    background: #1d1d1f;
    color: #a1a1a6;
    padding: 3rem 1.5rem 2rem;
}

.footer_inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 640px) {
    .footer_inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer_brand .logo_footer {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 0.75rem;
}

.footer_brand p {
    font-size: 0.88rem;
    color: #a1a1a6;
    margin: 0;
    line-height: 1.6;
}

footer h3 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #fff;
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

footer ul li a,
footer ul li button {
    color: #a1a1a6;
    text-decoration: none;
    font-size: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
    text-align: left;
}

footer ul li a:hover,
footer ul li button:hover {
    color: #fff;
}

.footer_bottom {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: #6e6e73;
}

/* ── Divider ─────────────────────────────────────────────────── */
.section_divider {
    border: none;
    border-top: 1px solid #e5e5ea;
    margin: 0;
}

/* ── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 480px) {
    .hero {
        padding: 3rem 1.25rem 2.5rem;
    }
    .section_container {
        padding: 3rem 1.25rem;
    }
    .step_item {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ── Accessibility: focus styles ─────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--brand-primary, #0071e3);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ── Force light mode — overrides µCSS @media (prefers-color-scheme: dark)
   CSS variable resets don't work because µCSS hardcodes colours directly.
   Explicit element overrides loaded after mu.blue.css win the cascade.
   ─────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    html, body, main, main > article, main > section {
        background-color: #fff !important;
        color: #1d1d1f !important;
    }

    header {
        background: rgba(255, 255, 255, 0.85) !important;
        border-bottom-color: rgba(0, 0, 0, 0.1) !important;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #1d1d1f !important;
    }

    p {
        color: #515154 !important;
    }

    .feature_card, .capability_block, .step_item, .contact_box, .about_card {
        background-color: #f5f5f7 !important;
    }

    .example_card, .value_card {
        background-color: #fff !important;
        border-color: #e5e5ea !important;
    }

    .section_divider {
        border-top-color: #e5e5ea !important;
    }
}
