/* ============================================================
   Fælles design for alle lande-rejseguides
   Kun --accent (og billeder/tekster) varierer pr. land.
   ============================================================ */

:root {
    --accent: #0f766e;            /* kan overstyres pr. land i site.php */
    --accent-dark: color-mix(in srgb, var(--accent) 75%, black);
    --ink: #1c1917;
    --ink-soft: #57534e;
    --paper: #ffffff;
    --paper-alt: #f7f5f2;
    --line: #e7e5e4;
    --radius: 14px;
    --shadow: 0 2px 8px rgba(0,0,0,.06);
    --shadow-hover: 0 12px 28px rgba(0,0,0,.14);
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }

.container {
    width: min(1160px, 100% - 2.5rem);
    margin-inline: auto;
}

.container-narrow { max-width: 760px; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.45rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -.01em;
}

.logo-dot { color: var(--accent); }

.main-nav {
    display: flex;
    gap: .25rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    padding: .45rem .7rem;
    border-radius: 8px;
    transition: background .15s, color .15s;
}

.main-nav a:hover { background: var(--paper-alt); color: var(--ink); }

.main-nav a.active { color: var(--accent-dark); background: color-mix(in srgb, var(--accent) 10%, white); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: .5rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 320px;
    display: grid;
    align-items: end;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero-large { min-height: min(72vh, 640px); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}

.hero-content {
    position: relative;
    padding-block: 2.5rem 3rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.05;
    margin: 0 0 .4rem;
    letter-spacing: -.02em;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

.hero-sub {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    margin: 0;
    max-width: 42ch;
    opacity: .95;
    text-shadow: 0 1px 10px rgba(0,0,0,.4);
}

/* ---------- Sektioner ---------- */

.section { padding-block: 3.5rem; }

.section-alt { background: var(--paper-alt); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin: 0 0 1rem;
    letter-spacing: -.01em;
}

.section-intro {
    max-width: 62ch;
    color: var(--ink-soft);
    margin-top: 0;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.see-all {
    font-weight: 600;
    text-decoration: none;
    font-size: .95rem;
}

.see-all:hover { text-decoration: underline; }

/* ---------- Hurtige fakta ---------- */

.facts-strip { padding-block: 1.75rem; border-bottom: 1px solid var(--line); }

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem 2rem;
}

.fact { display: grid; gap: .1rem; }

.fact-label {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-soft);
    font-weight: 600;
}

.fact-value { font-weight: 600; }

/* ---------- Kort (cards) ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.4rem;
    margin-top: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

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

.card-media {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
}

.card-body { padding: 1.1rem 1.25rem 1.25rem; display: grid; gap: .35rem; }

.card-body h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: -.01em;
}

.card-body p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

.card-date {
    font-size: .78rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

.card-link { margin-top: .35rem; font-weight: 600; font-size: .9rem; color: var(--accent-dark); }

/* ---------- Brødtekst (prose) ---------- */

.prose h1, .prose h2, .prose h3 {
    font-family: var(--font-display);
    letter-spacing: -.01em;
    line-height: 1.2;
}

.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }

.prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 2.2rem; }

.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }

.prose p, .prose li { color: #292524; }

.prose li { margin-block: .3rem; }

.prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.4rem;
    border-left: 4px solid var(--accent);
    background: var(--paper-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.prose blockquote p { margin: 0; }

.prose figure { margin: 1.8rem 0; }

.prose figure img { border-radius: var(--radius); width: 100%; }

.prose figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; text-align: center; }

.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }

.prose code {
    background: var(--paper-alt);
    padding: .15em .4em;
    border-radius: 6px;
    font-size: .9em;
}

.article-date {
    font-size: .85rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

.backlink { margin-top: 2.5rem; }

.backlink a { text-decoration: none; font-weight: 600; }

.backlink a:hover { text-decoration: underline; }

.button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: .7rem 1.4rem;
    border-radius: 999px;
    transition: background .15s;
}

.button:hover { background: var(--accent-dark); }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: .8rem; }

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 3rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--accent);
    transition: transform .2s;
}

.faq-item[open] summary::after { content: "–"; }

.faq-answer { padding: 0 1.25rem 1.1rem; color: var(--ink-soft); }

.faq-answer p { margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
    background: #1c1917;
    color: #d6d3d1;
    margin-top: 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-block: 3rem 2rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    margin: 0 0 .5rem;
}

.footer-heading {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    color: #a8a29e;
    margin: 0 0 .6rem;
}

.footer-col { font-size: .92rem; }

.footer-col p { margin: 0 0 .5rem; }

.footer-col a {
    display: block;
    color: #d6d3d1;
    text-decoration: none;
    padding-block: .18rem;
}

.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid #292524;
    padding-block: 1.2rem;
    font-size: .85rem;
    color: #a8a29e;
}

.footer-bottom p { margin: 0; }

/* ---------- Mobil ---------- */

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

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: .75rem 1.25rem 1.25rem;
        display: none;
        box-shadow: 0 16px 24px rgba(0,0,0,.08);
    }

    .main-nav.open { display: flex; }

    .main-nav a { padding: .7rem .6rem; font-size: 1rem; }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero-large { min-height: 60vh; }

    .section { padding-block: 2.5rem; }
}
