/*
Theme Name: Lau Konge Gartneri
Theme URI: https://laukonge.dk
Author: Julius Konge
Description: Custom WordPress theme til Lau Konge Gartneri.
Version: 1.0.0
Text Domain: laukonge
*/

:root {
    --green: #163d27;
    --green-light: #315f40;
    --cream: #f5f2e8;
    --white: #ffffff;
    --text: #1b281f;
    --muted: #657168;
    --border: #dfe3dc;
    --radius: 22px;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: .98;
    letter-spacing: -.055em;
    margin-bottom: 28px;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    line-height: 1.05;
    letter-spacing: -.04em;
    margin-bottom: 24px;
}

h3 {
    font-size: 1.35rem;
    line-height: 1.2;
}

.container {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

.site-header {
    background: rgba(245, 242, 232, .94);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(22, 61, 39, .08);
    backdrop-filter: blur(14px);
}

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

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

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: white;
    border-radius: 50%;
    font-weight: 700;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    font-size: 1.05rem;
}

.brand-text small {
    margin-top: 4px;
    color: var(--muted);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: .95rem;
    font-weight: 600;
}

.main-nav a:hover {
    opacity: .6;
}

.hero {
    padding: 72px 0 84px;
}

.hero-grid,
.intro-grid,
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-copy p {
    max-width: 620px;
    font-size: 1.2rem;
    color: var(--muted);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    color: var(--green-light);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 700;
}

.button-primary {
    background: var(--green);
    color: white;
}

.button-secondary {
    border: 1px solid var(--green);
}

.image-placeholder {
    min-height: 380px;
    width: 100%;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(22, 61, 39, .09), rgba(22, 61, 39, .025));
    border: 1px dashed rgba(22, 61, 39, .25);
    display: grid;
    place-items: center;
    color: var(--green-light);
    font-weight: 700;
    text-align: center;
    padding: 24px;
}

.hero-image .image-placeholder {
    min-height: 570px;
}

.intro-section,
.page-section,
.location-section {
    padding: 92px 0;
}

.intro-section {
    background: white;
}

.intro-grid > div:first-child {
    max-width: 560px;
}

.intro-grid p {
    color: var(--muted);
    font-size: 1.1rem;
}

.feature-list {
    display: grid;
    gap: 2px;
}

.feature {
    background: var(--cream);
    padding: 28px;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
}

.feature:first-child {
    border-radius: 18px 18px 0 0;
}

.feature:last-child {
    border-radius: 0 0 18px 18px;
}

.feature span {
    color: var(--muted);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading.centered {
    justify-content: center;
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.content-card {
    overflow: hidden;
    background: white;
    border-radius: var(--radius);
}

.content-card > img,
.content-card > .image-placeholder {
    border-radius: 0;
    min-height: 290px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.card-content {
    padding: 26px;
}

.card-content p {
    color: var(--muted);
}

.text-link {
    font-weight: 750;
}

.green-section {
    padding: 96px 0;
    background: var(--green);
    color: white;
}

.green-section .eyebrow,
.green-section .date {
    color: #bdd0c2;
}

.light-card {
    color: var(--text);
}

.section-heading.light .text-link {
    color: white;
}

.date {
    display: block;
    margin-bottom: 10px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step {
    padding: 30px;
    background: white;
    border-radius: 20px;
}

.step > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    margin-bottom: 28px;
}

.step p {
    color: var(--muted);
    margin-bottom: 0;
}

.location-section {
    background: white;
}

.site-footer {
    padding: 64px 0 26px;
    background: #0e291a;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-title {
    font-size: 1.45rem;
    font-weight: 800;
}

.site-footer p {
    color: #bdc9c0;
}

.footer-bottom {
    padding-top: 34px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #95a499;
    font-size: .85rem;
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .hero-grid,
    .intro-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero-image .image-placeholder {
        min-height: 420px;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(calc(100% - 28px), var(--max));
    }

    .hero {
        padding-top: 48px;
    }

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

    .section-heading {
        display: block;
    }

    .section-heading .text-link {
        display: inline-block;
        margin-top: 18px;
    }

    .feature {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .hero-image .image-placeholder {
        min-height: 330px;
    }
}

.subpage-hero {
    padding: 90px 0 65px;
    background: var(--green);
    color: white;
}

.subpage-hero h1 {
    max-width: 900px;
    margin-bottom: 20px;
}

.subpage-hero .eyebrow {
    color: #bdd0c2;
}

.lead {
    max-width: 720px;
    margin: 0;
    font-size: 1.2rem;
    color: #d1ddd4;
}

.narrow {
    max-width: 850px;
}

.prose {
    font-size: 1.08rem;
}

.prose p {
    margin-bottom: 1.4em;
}

.prose h2 {
    margin-top: 1.4em;
}

.prose a {
    text-decoration: underline;
}

.season-section {
    padding: 80px 0;
}

.season-section:nth-of-type(even) {
    background: white;
}

.empty-season {
    padding: 35px;
    background: white;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
}

.plant-detail {
    padding: 90px 0;
}

.plant-detail-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: start;
}

.plant-detail h1 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.plant-main-image {
    border-radius: var(--radius);
}

.plant-detail .image-placeholder {
    min-height: 600px;
}

@media (max-width: 800px) {
    .plant-detail-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .plant-detail .image-placeholder {
        min-height: 350px;
    }
}


/* ==========================================================
   Mobile navigation
   ========================================================== */

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--green);
    transition:
        transform .2s ease,
        opacity .2s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* WooCommerce laver denne dynamisk efter AJAX add-to-cart */
a.added_to_cart.wc-forward {
    display: none !important;
}


@media (max-width: 900px) {

    .header-inner {
        position: relative;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 1;
    }

    .main-nav {
        display: none !important;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        z-index: 1000;
        margin: 0;
        padding: 10px;
        border: 1px solid rgba(22, 61, 39, .10);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 18px 50px rgba(22, 61, 39, .14);
    }

    body.mobile-menu-open .main-nav {
        display: block !important;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 0;
    }

    .main-nav li {
        width: 100%;
        margin: 0;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 13px 14px;
        border-radius: 11px;
        font-size: 16px;
    }

    .main-nav a:hover,
    .main-nav .current-menu-item > a {
        background: var(--cream);
    }

    .header-right .lk-cart-button {
        order: 2;
    }
}


@media (max-width: 520px) {

    .header-inner {
        gap: 10px;
    }

    .brand-text small {
        display: none;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .main-nav {
        top: calc(100% + 8px);
        border-radius: 15px;
    }
}

/* Pickup card */
.lk-pickup-card {
    min-height: 330px;
    padding: clamp(32px, 5vw, 58px);
    border-radius: var(--radius);
    background: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lk-pickup-card h3 {
    margin: 8px 0 18px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--green);
}

.lk-pickup-card p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.lk-pickup-card-note {
    margin-top: 24px !important;
    padding-top: 24px;
    border-top: 1px solid rgba(22, 61, 39, .12);
    color: var(--muted);
}
