/*
Theme Name: Kadence Child
Template: kadence
Version: 1.4.0
Description: Child theme til Manjushri Buddha Retreat Center
*/

/* ============================================================
   LAG 1 — GLOBAL RESET OG KADENCE-OVERRIDE
   ============================================================ */

body {
    background-color: #F5F0E8;
    color: #1A1A18;
}

.site-main,
.content-container,
.wp-site-blocks,
.entry-content-wrap {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* ============================================================
   LAG 2 — TO-KOLONNE LAYOUT (template-med-sidebar)
   ============================================================ */

.retreat-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 64px;
    max-width: 1100px;
    margin: 64px auto;
    padding: 0 24px;
    align-items: start;
}

.retreat-content {
    min-width: 0;
}

.retreat-content p,
.retreat-content li {
    font-size: 17px;
    line-height: 1.75;
    max-width: 640px;
}

.retreat-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 700;
    color: #1A1A18;
    margin-bottom: 0.5em;
}

/* H2 med rød dekorativ linje over sig */
.retreat-content h2 {
    font-family: 'Cormorant Garamond', serif;
    color: #7A1F1F;
    font-size: 28px;
    font-weight: 700;
    margin-top: 3.5em;
    margin-bottom: 0.6em;
    padding-top: 1.25em;
    position: relative;
}

.retreat-content h2::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background-color: #7A1F1F;
    border-radius: 1px;
}

.retreat-content h3 {
    font-family: 'Cormorant Garamond', serif;
    color: #1A1A18;
    font-size: 22px;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.4em;
}

.retreat-content a {
    color: #7A1F1F;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.retreat-content a:hover {
    color: #5C1616;
}

/* ============================================================
   LAG 3 — SIDEBAR OG TOC
   ============================================================ */

.retreat-sidebar {
    position: sticky;
    top: 48px;
}

.retreat-toc {
    background-color: #F5EDE0 !important;
    border-left: 4px solid #7A1F1F;
    padding: 24px 28px;
    border-radius: 4px;
    font-family: Inter, sans-serif;
    font-size: 15px;
    box-shadow: 0 2px 16px rgba(26, 26, 24, 0.13);
}

.retreat-toc h2 {
    color: #7A1F1F !important;
    font-family: Inter, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 16px 0 !important;
    border: none !important;
}

.retreat-toc ol {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
}

.retreat-toc li {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 10px;
    max-width: none;
}

.retreat-toc li:last-child {
    margin-bottom: 0;
}

.retreat-toc a {
    color: #1A1A18;
    text-decoration: none;
}

.retreat-toc a:hover {
    color: #7A1F1F;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================
   LAG 4 — FREMHÆVET BOKS
   ============================================================ */

.retreat-highlight {
    background-color: #EAE2D6;
    border-left: 4px solid #2C4A3E;
    padding: 20px 24px;
    margin: 2em 0;
    border-radius: 4px;
}

.retreat-highlight p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #1A1A18;
}

/* ============================================================
   LAG 5 — ENKELTKOLONNE LAYOUT (template-uden-sidebar)
   ============================================================ */

.standard-layout {
    max-width: 800px;
    margin: 64px auto;
    padding: 0 24px;
}

.standard-layout p,
.standard-layout li {
    font-size: 17px;
    line-height: 1.75;
}

/* H2 med rød dekorativ linje over sig */
.standard-layout h2 {
    font-family: 'Cormorant Garamond', serif;
    color: #7A1F1F;
    font-size: 28px;
    font-weight: 700;
    margin-top: 3.5em;
    margin-bottom: 0.6em;
    padding-top: 1.25em;
    position: relative;
}

.standard-layout h2::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background-color: #7A1F1F;
    border-radius: 1px;
}

.standard-layout h3 {
    font-family: 'Cormorant Garamond', serif;
    color: #1A1A18;
    font-size: 22px;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.4em;
}

.standard-layout a {
    color: #7A1F1F;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.standard-layout a:hover {
    color: #5C1616;
}

/* ============================================================
   LAG 6 — HEADER
   ============================================================ */

.site-header {
    background-color: #7A1F1F !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.site-header .kadence-header,
.site-header .site-header-inner,
.site-header-row {
    min-height: 64px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.site-branding .site-title,
.site-branding .site-title a {
    color: #F5EDE0 !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    text-decoration: none !important;
}

.site-branding .site-title a:hover {
    color: #EAE2D6 !important;
}

.main-navigation a,
.primary-menu a {
    color: #F5EDE0 !important;
    font-family: Inter, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    letter-spacing: 0.01em;
}

.main-navigation a:hover,
.primary-menu a:hover {
    color: #EAE2D6 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

.menu-toggle,
.menu-toggle svg,
.menu-toggle span {
    color: #F5EDE0 !important;
    fill: #F5EDE0 !important;
}

/* Sticky header — behold klosterrød baggrund */
.kadence-sticky-header.item-is-fixed,
.kadence-sticky-header.item-is-fixed .site-header-row-container-inner,
.kadence-sticky-header.item-is-fixed .site-main-header-inner-wrap {
    background-color: #7A1F1F !important;
}

/* ============================================================
   LAG 7 — FOOTER
   ============================================================ */

.site-footer {
    background-color: #2C4A3E !important;
    border-top: none !important;
    margin-top: 80px;
}

.site-footer-row-container-inner,
.site-bottom-footer-inner-wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.site-footer,
.site-footer p,
.site-footer .copyright {
    color: #EAE2D6 !important;
    font-family: Inter, sans-serif !important;
    font-size: 14px !important;
}

.site-footer a {
    color: #F5EDE0 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

.site-footer a:hover {
    color: #ffffff !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 32px 32px;
}

.footer-col p,
.footer-col address {
    font-style: normal !important;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-col ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-col ul li {
    margin-bottom: 8px !important;
}

.footer-bottom {
    border-top: 1px solid rgba(234, 226, 214, 0.2);
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px !important;
    color: rgba(234, 226, 214, 0.7) !important;
}

.footer-bottom a {
    color: rgba(245, 237, 224, 0.8) !important;
    font-size: 13px !important;
}

.footer-bottom a:hover {
    color: #ffffff !important;
}

.site-footer .site-info-inner h3,
.site-footer .widget h3,
.site-footer .widget_block h3 {
    color: #F5EDE0 !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    margin-bottom: 16px !important;
}

/* ============================================================
   LAG 8 — RESPONSIVT (mobil)
   ============================================================ */

@media (max-width: 768px) {
    .retreat-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        margin: 32px auto;
    }

    .retreat-sidebar {
        position: static;
        order: -1;
    }

    .retreat-content p,
    .retreat-content li {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 20px 24px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
    }

    .menu-toggle-open,
    .menu-toggle-open .menu-toggle-icon {
        color: #fff !important;
    }
}

/* ============================================================
   FIX 3 — Ensret lodret startposition
   ============================================================ */

main#inner-wrap {
    padding-top: 0 !important;
}

.standard-layout {
    margin-top: 64px;
}

/* ============================================================
   LAG 9 — Forside: progressmåler, CTA-knap og hero-billede
   ============================================================ */

.forside-ingress {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #1A1A18;
    margin-bottom: 2.5rem;
}

/* Indsamlingsmåler — kortindramning */
.fundraising-meter {
    background-color: #F5EDE0;
    border-radius: 8px;
    padding: 1.75rem 2rem 1.5rem;
    margin: 2rem 0 3rem;
    box-shadow: 0 2px 16px rgba(26, 26, 24, 0.13);
}

.fundraising-meter__titel {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #7A1F1F;
    margin-bottom: 1.25rem;
}

.fundraising-meter__bjælke-baggrund {
    border-radius: 999px;
    height: 28px;
    width: 100%;
    overflow: hidden;
}

.fundraising-meter__bjælke-fyld {
    background: #7A1F1F;
    height: 100%;
    border-radius: 999px;
}

.fundraising-meter__tal {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.fundraising-meter__indsamlet {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2C4A3E;
}

.fundraising-meter__maal {
    font-size: 0.95rem;
    color: #1A1A18;
}

.fundraising-meter__procent {
    font-size: 0.85rem;
    color: #5C1616;
    margin-top: 0.3rem;
}

/* CTA-knap — poleret */
.forside-cta-knap {
    display: inline-block;
    background-color: #7A1F1F;
    color: #F9F6F1 !important;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    padding: 0.85rem 2.25rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.forside-cta-knap:hover {
    background-color: #5C1616;
    color: #F9F6F1 !important;
    box-shadow: 0 4px 16px rgba(122, 31, 31, 0.25);
}

@media (max-width: 768px) {
    .fundraising-meter__tal {
        flex-direction: column;
        gap: 0.25rem;
    }

    .forside-cta-knap {
        display: block;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Forside hero */
.forside-hero-wrapper {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -64px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.forside-hero {
    display: block;
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .forside-hero {
        height: 240px;
    }
}

/* Karmapa-citat — visuel åndedrætssektion */
.forside-citat {
    text-align: center;
    padding: 2rem 2rem 0.5rem;
    margin: 0.5rem 0 0.5rem;
}

.forside-citat__tekst {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem !important;
    font-style: italic;
    font-weight: 600;
    color: #1A1A18;
    line-height: 1.4;
    max-width: 680px;
    margin: 0 auto 0.6rem;
}

.forside-citat__kilde {
    font-family: Inter, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7a7a78;
}

@media (max-width: 768px) {
    .forside-citat {
        padding: 1.5rem 1rem 0.5rem;
    }
}

/* Billeder i indholdsider */
.retreat-content .indhold-billede {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    border-radius: 4px;
    margin: 2rem 0 0.75rem;
}

.indhold-billede-tekst {
    font-size: 14px;
    color: #5a5a58;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 640px;
}