/* I Harrestrup – bløde grønne nuancer */

:root {
    --ih-bg: #f3f6ef;
    --ih-surface: #ffffff;
    --ih-mint: #e3ecdc;
    --ih-sage: #a9c19c;
    --ih-green: #6b8f62;
    --ih-deep: #2f4a35;
    --ih-text: #2a332b;
    --ih-muted: #5f6d60;
    --ih-line: #d6e1cf;
    --ih-radius: 10px;
    --ih-max: 1080px;
    --ih-narrow: 760px;
    --ih-serif: "Lora", Georgia, serif;
    --ih-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ih-bg);
    color: var(--ih-text);
    font-family: var(--ih-sans);
    font-size: 18px;
    line-height: 1.65;
}

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

a {
    color: var(--ih-green);
    text-underline-offset: 3px;
}

a:hover,
a:focus {
    color: var(--ih-deep);
}

h1, h2, h3, h4 {
    font-family: var(--ih-serif);
    color: var(--ih-deep);
    line-height: 1.25;
    font-weight: 600;
}

.ih-wrap {
    max-width: var(--ih-max);
    margin: 0 auto;
    padding: 0 20px;
}

.ih-skip {
    position: absolute;
    left: -9999px;
}

.ih-skip:focus {
    left: 16px;
    top: 16px;
    z-index: 100;
    background: var(--ih-surface);
    padding: 8px 14px;
    border-radius: var(--ih-radius);
}

/* Topbar */

.ih-topbar {
    background: var(--ih-surface);
    border-bottom: 1px solid var(--ih-line);
}

.ih-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.ih-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ih-brand .custom-logo {
    max-height: 48px;
    width: auto;
}

.ih-site-title {
    font-family: var(--ih-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ih-deep);
    text-decoration: none;
}

.ih-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
}

.ih-nav li {
    position: relative;
}

.ih-nav a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ih-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.ih-nav a:hover,
.ih-nav .current-menu-item > a,
.ih-nav .current_page_item > a {
    background: var(--ih-mint);
    color: var(--ih-deep);
}

.ih-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    flex-direction: column;
    background: var(--ih-surface);
    border: 1px solid var(--ih-line);
    border-radius: var(--ih-radius);
    padding: 6px;
    z-index: 20;
}

.ih-nav li:hover > .sub-menu,
.ih-nav li:focus-within > .sub-menu {
    display: flex;
}

.ih-nav .sub-menu a {
    border-radius: 6px;
}

/* Burgerknap – skjult på computer */

.ih-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    background: var(--ih-mint);
    border: 0;
    border-radius: 12px;
    padding: 0;
    color: var(--ih-deep);
    cursor: pointer;
}

.ih-menu-toggle:focus-visible {
    outline: 3px solid var(--ih-sage);
    outline-offset: 2px;
}

.ih-menu-bars,
.ih-menu-bars::before,
.ih-menu-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: transform 0.2s ease, top 0.2s ease, background 0.2s ease;
}

.ih-menu-bars::before,
.ih-menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.ih-menu-bars::before { top: -7px; }
.ih-menu-bars::after { top: 7px; }

.ih-menu-toggle.is-open .ih-menu-bars {
    background: transparent;
}

.ih-menu-toggle.is-open .ih-menu-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.ih-menu-toggle.is-open .ih-menu-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Headerbillede */

.ih-hero {
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, var(--ih-sage), var(--ih-green));
    background-size: cover;
    background-position: center;
}

.ih-hero.has-image {
    min-height: clamp(200px, 28vw, 360px);
}

.ih-hero.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 52, 36, 0.65) 0%, rgba(31, 52, 36, 0.1) 55%, rgba(31, 52, 36, 0) 100%);
}

.ih-hero-text {
    position: relative;
    width: 100%;
    padding-top: 24px;
    padding-bottom: 22px;
}

.ih-hero-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
}

.ih-hero-tagline {
    margin: 4px 0 0;
    color: #eef4ea;
    font-size: 1.05rem;
}

/* Indhold */

.ih-main {
    display: block;
}

.ih-content {
    padding-top: 48px;
    padding-bottom: 64px;
}

.ih-narrow {
    max-width: calc(var(--ih-narrow) + 40px);
}

.ih-page-head {
    margin-bottom: 28px;
}

.ih-page-title {
    margin: 4px 0 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.ih-section-title {
    margin: 0 0 20px;
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ih-mint);
}

.ih-intro {
    background: var(--ih-surface);
    border: 1px solid var(--ih-line);
    border-radius: var(--ih-radius);
    padding: 28px 32px;
    margin-bottom: 48px;
}

.ih-intro .ih-entry > :first-child { margin-top: 0; }
.ih-intro .ih-entry > :last-child { margin-bottom: 0; }

.ih-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ih-green);
    background: var(--ih-mint);
    padding: 2px 10px;
    border-radius: 999px;
}

/* Nyhedsliste */

.ih-news-list {
    display: grid;
    gap: 20px;
}

.ih-news-item {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--ih-surface);
    border: 1px solid var(--ih-line);
    border-radius: var(--ih-radius);
    overflow: hidden;
}

.ih-news-item.has-post-thumbnail {
    grid-template-columns: 280px 1fr;
}

.ih-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ih-news-body {
    padding: 24px 28px;
}

.ih-news-title {
    margin: 10px 0 8px;
    font-size: 1.35rem;
}

.ih-news-title a {
    color: var(--ih-deep);
    text-decoration: none;
}

.ih-news-title a:hover {
    text-decoration: underline;
}

.ih-news-excerpt p {
    margin: 0 0 12px;
    color: var(--ih-muted);
}

.ih-more,
.ih-all-news a {
    font-weight: 600;
    text-decoration: none;
}

.ih-all-news {
    margin-top: 20px;
}

.ih-empty {
    color: var(--ih-muted);
}

/* Tekst på sider og indlæg */

.ih-featured {
    margin: 0 0 28px;
}

.ih-featured img {
    border-radius: var(--ih-radius);
}

.ih-entry h2 { font-size: 1.6rem; margin: 2em 0 0.5em; }
.ih-entry h3 { font-size: 1.3rem; margin: 1.8em 0 0.5em; }
.ih-entry h4 { font-size: 1.1rem; margin: 1.6em 0 0.4em; }

.ih-entry blockquote {
    margin: 1.5em 0;
    padding: 12px 20px;
    border-left: 4px solid var(--ih-sage);
    background: var(--ih-mint);
    border-radius: 0 var(--ih-radius) var(--ih-radius) 0;
}

.ih-entry table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.ih-entry th,
.ih-entry td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--ih-line);
}

.ih-entry th {
    background: var(--ih-mint);
}

.ih-entry img {
    border-radius: 6px;
}

.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--ih-muted); margin-top: 6px; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.ih-post-nav,
.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--ih-line);
}

.ih-next,
.nav-links .next {
    margin-left: auto;
}

.nav-links .page-numbers {
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
}

.nav-links .current {
    background: var(--ih-mint);
    color: var(--ih-deep);
}

/* Footer */

.ih-footer {
    background: var(--ih-deep);
    color: #dfe9d8;
    font-size: 0.95rem;
}

.ih-footer a {
    color: #fff;
}

.ih-footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    padding-top: 40px;
}

.ih-widget-title {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 10px;
}

.ih-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
}

.ih-footer-widgets + .ih-footer-bottom {
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ih-footer-bottom p {
    margin: 0;
}

.ih-footer-nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

/* Mobil */

@media (max-width: 780px) {
    body {
        font-size: 17px;
    }

    .ih-menu-toggle {
        display: inline-flex;
    }

    .ih-topbar-inner {
        flex-wrap: wrap;
        min-height: 64px;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .ih-site-title {
        font-size: 1.15rem;
    }

    .ih-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .ih-nav {
        display: none;
        width: 100%;
        border-top: 1px solid var(--ih-line);
        margin-top: 9px;
        padding-top: 8px;
    }

    .ih-nav.is-open {
        display: block;
    }

    .ih-nav ul {
        flex-direction: column;
        gap: 2px;
    }

    .ih-nav a {
        padding: 12px 14px;
        border-radius: 10px;
        font-size: 1.05rem;
    }

    .ih-nav .sub-menu {
        display: flex;
        position: static;
        min-width: 0;
        border: 0;
        background: transparent;
        padding: 0 0 0 16px;
    }

    .ih-news-item.has-post-thumbnail {
        grid-template-columns: 1fr;
    }

    .ih-news-thumb img {
        aspect-ratio: 16 / 9;
    }

    .ih-news-body {
        padding: 20px;
    }

    .ih-intro {
        padding: 22px 20px;
    }

    .ih-content {
        padding-top: 32px;
    }
}
