/* ============================================================
   Børkop Vandmølles Venner — onepage (2026-08-17)
   Design-tokens + baggrunde + modals + mobil
   ============================================================ */

:root {
    --mollebrun: #5D4A38;
    --aa-vand: #4A6B6F;
    --eng-gron: #7A8B6F;
    --hoe-hvid: #F5F1E8;
    --mursten: #A65D43;
    --tekst-mork: #3A322A;
    --skygge: rgba(93, 74, 56, 0.12);
    --radius: 14px;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Source Sans 3', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--tekst-mork);
    line-height: 1.65;
    /* 10-sidebaggrund-lys.jpg — lys akvarel-baggrund overalt */
    background-image: url('../../billeder/10-sidebaggrund-lys.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: var(--hoe-hvid);
}

/* ---------- Navigation ---------- */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(245, 241, 232, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(93, 74, 56, 0.12);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--mollebrun);
}

.nav-logo video {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px var(--skygge);
}

.nav-logo span {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.1;
}

.nav-links {
    display: flex;
    gap: 1.6rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--mollebrun);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--aa-vand); border-bottom-color: var(--aa-vand); }

.nav-actions { display: flex; gap: 0.6rem; align-items: center; }

/* Burger (mobil) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--mollebrun);
}

.menu-toggle svg { display: block; }

/* ---------- Knapper ---------- */
.btn {
    display: inline-block;
    padding: 0.55rem 1.3rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.btn-primary { background: var(--mursten); color: var(--hoe-hvid); }
.btn-primary:hover { background: #8f4d36; transform: translateY(-1px); }

.btn-secondary {
    background: transparent;
    color: var(--aa-vand);
    border: 1.5px solid var(--aa-vand);
}
.btn-secondary:hover { background: var(--aa-vand); color: var(--hoe-hvid); }

.btn-light {
    background: var(--hoe-hvid);
    color: var(--mollebrun);
}
.btn-light:hover { background: #fff; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(245,241,232,0.15) 0%,
        rgba(245,241,232,0.35) 55%,
        rgba(245,241,232,0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 2rem;
    margin-top: -4vh;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 6.5vw, 4.8rem);
    font-weight: 600;
    color: var(--mollebrun);
    text-shadow: 0 2px 24px rgba(245,241,232,0.6);
    line-height: 1.08;
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--tekst-mork);
    max-width: 620px;
    margin: 0 auto 2rem;
}

.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sektioner ---------- */
.section { padding: 4.5rem 1.5rem; position: relative; }

.section-bg-green {
    /* 11-sektionsbaggrund-groen.jpg — lys grøn akvarel */
    background-image: url('../../billeder/11-sektionsbaggrund-groen.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-bg-green::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(245, 241, 232, 0.82);
}

.section-bg-green > .container { position: relative; z-index: 1; }

.container { max-width: 1200px; margin: 0 auto; }

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 600;
    color: var(--mollebrun);
    margin-bottom: 0.6rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.08rem;
    color: var(--tekst-mork);
    opacity: 0.85;
    max-width: 640px;
    margin: 0 auto 2.8rem;
    text-align: center;
}

/* ---------- Oplevelse-tiles ---------- */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.6rem;
}

.tile {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(93, 74, 56, 0.08);
    box-shadow: 0 4px 18px var(--skygge);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(93, 74, 56, 0.18);
}

.tile-icon {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 14px var(--skygge);
    margin-bottom: 0.6rem;
    border: 3px solid var(--hoe-hvid);
}

.tile-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--aa-vand);
}

.tile h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--mollebrun);
}

.tile p {
    font-size: 0.92rem;
    color: var(--tekst-mork);
    opacity: 0.85;
    line-height: 1.55;
}

.tile-more {
    margin-top: auto;
    padding-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mursten);
}

/* ---------- Nyheder / Arrangementer ---------- */
.news-grid, .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.news-card, .event-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--skygge);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid rgba(93, 74, 56, 0.08);
    display: flex;
    flex-direction: column;
}

.news-card:hover, .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(93, 74, 56, 0.18);
}

.news-card img, .event-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.news-card-body, .event-card-body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }

.card-date {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mursten);
    margin-bottom: 0.35rem;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--mollebrun);
    margin-bottom: 0.4rem;
}

.card-text {
    font-size: 0.9rem;
    color: var(--tekst-mork);
    opacity: 0.85;
    line-height: 1.55;
    flex: 1;
}

.card-more {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--aa-vand);
}

/* ---------- Om foreningen ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-text h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--mollebrun);
    margin-bottom: 1rem;
}

.about-text p { margin-bottom: 1.1rem; font-size: 1.02rem; }

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 34px var(--skygge);
}

.about-image img { width: 100%; display: block; }

.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
    margin: 2.5rem 0;
}

.value-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    text-align: center;
    box-shadow: 0 4px 16px var(--skygge);
    border: 1px solid rgba(93, 74, 56, 0.08);
}

.value-card .icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.8rem;
    display: block;
    box-shadow: 0 3px 10px var(--skygge);
}

.value-card h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--mollebrun);
    margin-bottom: 0.4rem;
}

.value-card p { font-size: 0.88rem; opacity: 0.85; }

/* ---------- Åbningstider ---------- */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.hours-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 18px var(--skygge);
    border: 1px solid rgba(93, 74, 56, 0.08);
}

.hours-card-header {
    padding: 1.1rem 1.4rem;
    color: var(--hoe-hvid);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hours-card-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.hours-card-header h3 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; }

.hours-card-header.mill { background: var(--mollebrun); }
.hours-card-header.museum { background: var(--aa-vand); }
.hours-card-header.restaurant { background: var(--mursten); }

.hours-card-body { padding: 1.3rem 1.4rem; }

.hours-card-body .label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--aa-vand);
    margin: 0.7rem 0 0.15rem;
}

.hours-card-body .label:first-child { margin-top: 0; }
.hours-card-body p { font-size: 0.95rem; }

.free {
    display: inline-block;
    margin-top: 0.8rem;
    background: var(--eng-gron);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
}

/* ---------- Kontakt ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 1.7rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 18px var(--skygge);
    border: 1px solid rgba(93, 74, 56, 0.08);
}

.contact-card .icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.9rem;
    display: block;
    box-shadow: 0 3px 12px var(--skygge);
}

.contact-card h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--mollebrun);
    margin-bottom: 0.4rem;
}

.contact-card p { font-size: 0.92rem; opacity: 0.88; }
.contact-card a { color: var(--aa-vand); text-decoration: none; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

.contact-cta {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ---------- Footer ---------- */
footer {
    /* 13-footer-baggrund-moerk.jpg — mørk brun akvarel */
    background-image: url('../../billeder/13-footer-baggrund-moerk.jpg');
    background-size: cover;
    background-position: center;
    color: var(--hoe-hvid);
    padding: 4rem 1.5rem 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(58, 50, 42, 0.55);
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}

.footer-section h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.footer-section p, .footer-section a {
    color: var(--hoe-hvid);
    opacity: 0.88;
    text-decoration: none;
    font-size: 0.93rem;
    line-height: 1.8;
}

.footer-section a:hover { opacity: 1; text-decoration: underline; }

.footer-bottom {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(245, 241, 232, 0.25);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.75;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(58, 50, 42, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
    /* 12-modal-baggrund.png — varm beige akvarel */
    background-image: url('../../billeder/12-modal-baggrund.png');
    background-size: cover;
    background-position: center;
    background-color: #F7F1E6;
    border-radius: 18px;
    max-width: 760px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    transform: translateY(24px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
    position: sticky;
    top: 0.8rem;
    float: right;
    margin: 0.8rem 0.8rem 0 0;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(93, 74, 56, 0.85);
    color: var(--hoe-hvid);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.modal-close:hover { background: var(--mursten); transform: rotate(90deg); }

.modal-body { padding: 0.5rem 2.2rem 2.4rem; }

.modal-body h2 {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--mollebrun);
    margin-bottom: 0.4rem;
    padding-right: 3rem;
}

.modal-body .modal-lead {
    font-size: 1.05rem;
    color: var(--tekst-mork);
    opacity: 0.9;
    margin-bottom: 1.2rem;
}

.modal-body h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--mollebrun);
    margin: 1.6rem 0 0.5rem;
}

.modal-body p { font-size: 0.98rem; line-height: 1.7; margin-bottom: 0.9rem; }

.modal-body img.modal-img {
    width: 100%;
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 6px 22px var(--skygge);
}

.modal-img-caption {
    font-size: 0.82rem;
    opacity: 0.7;
    text-align: center;
    margin-top: -0.6rem;
    margin-bottom: 1.2rem;
}

.modal-info {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    margin: 1.4rem 0;
    border-left: 4px solid var(--aa-vand);
}

.modal-info .label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--aa-vand);
    margin: 0.6rem 0 0.1rem;
}

.modal-info .label:first-child { margin-top: 0; }
.modal-info p { margin-bottom: 0.3rem; font-size: 0.95rem; }

/* Video i modal (mølleriet) */
.modal-video {
    width: 100%;
    border-radius: 12px;
    margin: 0.4rem 0 1.2rem;
    box-shadow: 0 8px 26px var(--skygge);
    background: #000;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Formular-modals (iframe) */
.modal-iframe {
    width: 100%;
    height: 72vh;
    border: none;
    border-radius: 0 0 18px 18px;
    background: transparent;
}

.modal-iframe-note {
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
    padding: 0.6rem 1rem 1rem;
}

/* ============================================================
   RESPONSIV (mobil)
   ============================================================ */
@media (max-width: 860px) {
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: min(78vw, 320px);
        background: var(--hoe-hvid);
        flex-direction: column;
        justify-content: center;
        gap: 1.8rem;
        padding: 2rem;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    .nav-links.open { transform: translateX(0); }

    .nav-links a { font-size: 1.15rem; }

    .menu-toggle { display: block; z-index: 1002; }

    .nav-actions .btn-secondary { display: none; }

    .about-grid { grid-template-columns: 1fr; gap: 1.8rem; }

    .section { padding: 3.2rem 1rem; }

    .modal { max-height: 92vh; }
    .modal-body { padding: 0.3rem 1.3rem 1.8rem; }
    .modal-iframe { height: 78vh; }

    .hero { min-height: 92vh; }
}

@media (max-width: 480px) {
    .nav-logo span { font-size: 0.92rem; }
    .nav-actions .btn { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
    .tiles { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .tile { padding: 1.2rem 0.9rem; }
    .tile-icon { width: 72px; height: 72px; }
    .tile h3 { font-size: 1.05rem; }
    .tile p { font-size: 0.82rem; }
}
