/*======================================================
  Version 5.1 - PraksisPartner
======================================================*/

:root {
    --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bg: #f3f5f9;
    --surface: #ffffff;
    --text: #161c27;
    --muted: #5d6676;
    --primary: #0054c0;
    --primary-dark: #003a8c;
    --secondary: #1a73e8;
    --accent: #f4a261;
    --border: rgba(22, 28, 40, 0.12);
    --shadow-sm: 0 16px 40px rgba(22, 28, 40, 0.08);
    --shadow: 0 30px 60px rgba(22, 28, 40, 0.12);
    --radius: 28px;
    --radius-sm: 20px;
    --transition: 0.28s ease;
    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

::selection {
    background: rgba(0, 84, 192, 0.14);
    color: var(--text);
}

.container {
    width: min(100% - 2.4rem, var(--max-width));
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

/* ======================================================
   HERO SEKTIONER
====================================================== */

.hero {
    position: relative;
    padding-top: 12rem;
    padding-bottom: 8rem;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(26, 115, 232, 0.18), transparent 30%),
                radial-gradient(circle at bottom right, rgba(244, 162, 97, 0.14), transparent 25%);
    pointer-events: none;
}

.hero-page {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(243, 245, 249, 1));
}

.hero-home {
    background:
        linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
        url("../images/index.png") center center / cover no-repeat;
    color: #fff;
}

.hero-home h1 {
    color: #fff;
}

.hero-home p {
    color: rgba(255,255,255,.92);
}

.hero-home .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-copy .eyebrow,
.eyebrow {
    display: inline-block;
    margin-bottom: 1.2rem;
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.8rem, 4vw + 0.5rem, 4.8rem);
    line-height: 1.02;
}

.hero p {
    margin: 1.6rem 0 0;
    max-width: 44rem;
    color: var(--muted);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* ======================================================
   BUTTONS & CARDS
====================================================== */

.primaryButton,
.secondaryButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.primaryButton {
    background: var(--primary);
    color: #fff;
}

.primaryButton:hover,
.primaryButton:focus-visible {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.secondaryButton {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.secondaryButton:hover,
.secondaryButton:focus-visible {
    background: rgba(0, 84, 192, 0.08);
    transform: translateY(-2px);
}

/* Hvide knapper til brug i mørke baggrunde eller hero */
.hero-home .secondaryButton {
    color: #fff;
    border-color: #fff;
}

.hero-home .secondaryButton:hover {
    background: rgba(255, 255, 255, 0.15);
}

.card {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 2.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    min-height: 100%;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.card h3 {
    margin-bottom: 1.3rem;
    font-size: 1.35rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 1.4rem;
    border-radius: 18px;
    background: rgba(0, 84, 192, 0.1);
    font-size: 1.35rem;
}

/* ======================================================
   GRID & LAYOUT
====================================================== */

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 2.4rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.align-center {
    align-items: center;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    margin-top: 0.8rem;
    margin-bottom: 1rem;
}

.section-title p {
    margin: 0 auto;
    max-width: 720px;
    color: var(--muted);
}

/* ======================================================
   HEADER & NAVIGATION
====================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background: rgba(22, 28, 40, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Animationer for glidende forsvinden ved scroll */
    transition: transform 0.4s ease, opacity 0.4s ease, background 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

/* Når brugeren scroller ned over grænsen (script.js tilføjer klassen hide) */
header.hide {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Når header er scrollet eller på lyse sider */
header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    transition: color var(--transition);
}

header.scrolled .logo {
    color: var(--text);
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    font-weight: 500;
    color: #fff;
    transition: color var(--transition);
}

header.scrolled .nav-menu a {
    color: var(--text);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
    color: var(--accent);
}

header.scrolled .nav-menu a:hover,
header.scrolled .nav-menu a:focus-visible {
    color: var(--primary);
}

.nav-menu a.active {
    color: var(--accent);
    font-weight: 700;
}

header.scrolled .nav-menu a.active {
    color: var(--primary);
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    width: 2rem;
    height: 1.75rem;
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 0.2rem;
    background: #fff; /* Standard hvid på mørk hero */
    border-radius: 999px;
    transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

header.scrolled .hamburger span {
    background: var(--text);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ======================================================
   SEKTIONER & KOMPONENTER
====================================================== */

.section-light { background: #fff; }
.section-dark { background: #edf2f8; }

.image-frame {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-box,
.contact-card,
.cta-box,
.info-block {
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.intro-box,
.contact-card,
.cta-box {
    padding: 2.4rem;
}

.intro-box h3,
.contact-card h2,
.info-block h3 {
    margin-top: 0;
    margin-bottom: 1.2rem;
}

.check-list {
    margin: 0;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 1rem;
    color: var(--muted);
    line-height: 1.8;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 700;
}

.contact-card h2 {
    margin-bottom: 1.5rem;
}

.contact-form {
    padding: 2.4rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    background: var(--surface);
}

.contact-form h2 {
    margin-bottom: 1.6rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(22, 28, 40, 0.14);
    border-radius: 18px;
    outline: none;
    background: #fff;
    margin-bottom: 1.3rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 84, 192, 0.12);
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

/* ======================================================
   FOOTER & CTA
====================================================== */

footer {
    background: #fff;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}

.footer-grid h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-grid p,
.footer-grid li {
    color: var(--muted);
}

.footer-grid a {
    color: inherit;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.footer-logo span {
    color: var(--primary);
}

.footer-copy {
    margin-top: 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.cta-section {
    padding: 0;
    background: #fff;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.6rem 2.4rem;
    border-radius: var(--radius);
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 84, 192, 0.12), rgba(244, 162, 97, 0.14));
}

.cta-box h2 {
    margin: 0 0 0.8rem;
}

.cta-box p {
    margin: 0;
    color: var(--muted);
    max-width: 50rem;
}

/* ======================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
====================================================== */

@media (max-width: 1024px) {
    .hero-home .hero-grid,
    .grid-2,
    .grid-3,
    .footer-grid,
    .align-center {
        grid-template-columns: 1fr;
    }

    .hero-home .hero-grid {
        gap: 2rem;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
    }

    .cta-box p {
        max-width: 100%;
    }
}

@media (max-width: 820px) {
    section {
        padding: 5rem 0;
    }

    .hero {
        padding-top: 10rem;
        padding-bottom: 6rem;
    }

    .nav-menu {
        position: absolute;
        top: 4.5rem;
        right: 1.5rem;
        width: min(320px, calc(100% - 3rem));
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 24px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity var(--transition), transform var(--transition);
    }

    /* Mørke tekstlinks inde i den hvide mobilmenu */
    .nav-menu a {
        color: var(--text) !important;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .hamburger {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-box {
        padding: 2rem;
    }

    .intro-box,
    .contact-card,
    .contact-form {
        padding: 1.8rem;
    }
}
