/*
Theme Name: Huis en TuinLiefde
Theme URI: https://www.huisentuinliefde.nl
Description: Custom thema voor Huis- en TuinLiefde - in de stijl van KeukenLiefde
Author: Johan Verweij
Author URI: https://www.huisentuinliefde.nl
Version: 1.0.0
Text Domain: htl
*/

/* ============================================================
   FONTS & VARIABELEN
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
    --groen:          #4a9b5c;
    --groen-donker:   #2d5e38;
    --groen-licht:    #e8f5eb;
    --groen-medium:   #3a7d49;
    --turquoise:      #1aacb8;
    --turquoise-licht:#e0f7f9;
    --turquoise-donker:#0d7a83;
    --wit:            #ffffff;
    --achtergrond:    #f7f7f7;
    --tekst:          #2c2c2c;
    --tekst-licht:    #777777;
    --rand:           #e5e5e5;
    --kop-font:       'Playfair Display', Georgia, serif;
    --tekst-font:     'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================================
   RESET & BASIS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--tekst-font);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--tekst);
    background: var(--achtergrond);
}

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

a { color: var(--groen); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--turquoise); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--kop-font);
    font-weight: 700;
    line-height: 1.25;
    color: var(--tekst);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--wit);
    border-bottom: 1px solid var(--rand);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 32px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-logo .logo-icon {
    width: 48px;
    height: 48px;
    background: var(--groen);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--wit);
    flex-shrink: 0;
}

.site-logo .logo-tekst {
    font-family: var(--kop-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--tekst);
    line-height: 1.1;
}

.site-logo .logo-tekst span {
    display: block;
    font-size: 11px;
    font-family: var(--tekst-font);
    font-weight: 400;
    color: var(--tekst-licht);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-logo:hover .logo-tekst { color: var(--groen); }

/* Navigatie */
.nav-primary {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav-primary > li { position: relative; }

.nav-primary > li > a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tekst);
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.nav-primary > li > a:hover,
.nav-primary > li.current-menu-item > a,
.nav-primary > li.current-menu-ancestor > a {
    color: var(--groen);
    background: var(--groen-licht);
}

/* Dropdown */
.nav-primary .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--wit);
    min-width: 200px;
    border: 1px solid var(--rand);
    border-top: 3px solid var(--groen);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    list-style: none;
    padding: 8px 0;
    z-index: 200;
}

.nav-primary li:hover > .sub-menu { display: block; }

.nav-primary .sub-menu li a {
    display: block;
    padding: 9px 18px;
    font-size: 14px;
    color: var(--tekst);
    transition: background 0.15s, color 0.15s;
}

.nav-primary .sub-menu li a:hover {
    background: var(--groen-licht);
    color: var(--groen);
}

.header-zoek {
    flex-shrink: 0;
}

.header-zoek button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--tekst-licht);
    font-size: 20px;
    transition: color 0.2s;
    line-height: 1;
}

.header-zoek button:hover { color: var(--groen); }

/* ============================================================
   HERO SECTIE (homepage)
   ============================================================ */
.hero-sectie {
    background: var(--groen);
    min-height: 420px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
}

.hero-links {
    flex: 1;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--wit);
    max-width: 500px;
}

.hero-links h1 {
    font-size: 44px;
    color: var(--wit);
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero-links p {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    max-width: 380px;
}

.hero-knop {
    display: inline-block;
    background: var(--wit);
    color: var(--groen);
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
    align-self: flex-start;
}

.hero-knop:hover {
    background: var(--turquoise);
    color: var(--wit);
}

.hero-rechts {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.hero-rechts img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-rechts-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--groen) 0%, transparent 40%);
}

/* Zoekbalk onder hero */
.zoekbalk-sectie {
    background: var(--wit);
    padding: 20px 24px;
    border-bottom: 1px solid var(--rand);
}

.zoekbalk-inner {
    max-width: 700px;
    margin: 0 auto;
}

.zoekbalk-form {
    display: flex;
    align-items: center;
    background: var(--wit);
    border: 2px solid var(--groen);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.zoekbalk-form:focus-within {
    box-shadow: 0 0 0 4px rgba(74, 155, 92, 0.15);
}

.zoekbalk-form .zoek-icon {
    padding: 0 16px;
    color: var(--groen);
    font-size: 20px;
    flex-shrink: 0;
}

.zoekbalk-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 0;
    font-size: 16px;
    font-family: var(--tekst-font);
    color: var(--tekst);
    background: transparent;
}

.zoekbalk-form input::placeholder { color: var(--tekst-licht); }

.zoekbalk-form button {
    background: var(--groen);
    color: var(--wit);
    border: none;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.zoekbalk-form button:hover { background: var(--groen-donker); }

/* ============================================================
   CATEGORIE BLOKKEN
   ============================================================ */
.categorie-sectie {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

.sectie-titel {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--groen);
    margin-bottom: 20px;
}

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

.categorie-kaart {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
    transition: transform 0.3s ease;
}

.categorie-kaart:hover { transform: translateY(-4px); }

.categorie-kaart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.categorie-kaart:hover img { transform: scale(1.05); }

.categorie-kaart .label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--groen);
    color: var(--wit);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s;
}

.categorie-kaart:hover .label { background: var(--groen-donker); }

.categorie-kaart .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
}

/* ============================================================
   CONTENT GEBIED (blog overzicht)
   ============================================================ */
.content-gebied {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.content-gebied.volledig {
    grid-template-columns: 1fr;
}

/* Artikel grid */
.artikel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.artikel-kaart {
    background: var(--wit);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--rand);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.artikel-kaart:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.artikel-kaart .kaart-afbeelding {
    aspect-ratio: 4/3;
    overflow: hidden;
    display: block;
}

.artikel-kaart .kaart-afbeelding img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.artikel-kaart:hover .kaart-afbeelding img { transform: scale(1.06); }

.artikel-kaart .kaart-body {
    padding: 18px 20px 20px;
}

.artikel-kaart .kaart-categorie {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--turquoise);
    background: var(--turquoise-licht);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.artikel-kaart h2, .artikel-kaart h3 {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.artikel-kaart h2 a, .artikel-kaart h3 a {
    color: var(--tekst);
}

.artikel-kaart h2 a:hover, .artikel-kaart h3 a:hover {
    color: var(--groen);
}

.artikel-kaart .kaart-meta {
    font-size: 12px;
    color: var(--tekst-licht);
    margin-bottom: 10px;
}

.artikel-kaart .kaart-excerpt {
    font-size: 14px;
    color: var(--tekst-licht);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Grote kaart (eerste artikel) */
.artikel-kaart.groot {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.artikel-kaart.groot .kaart-afbeelding {
    aspect-ratio: auto;
    height: 100%;
}

.artikel-kaart.groot h2 { font-size: 26px; }

/* Paginering */
.paginering {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 40px 0 0;
    flex-wrap: wrap;
    grid-column: 1 / -1;
}

.paginering a,
.paginering span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--rand);
    border-radius: 6px;
    font-size: 14px;
    background: var(--wit);
    color: var(--tekst);
    transition: all 0.2s;
}

.paginering .huidig,
.paginering a:hover {
    background: var(--groen);
    color: var(--wit);
    border-color: var(--groen);
}

/* ============================================================
   ZIJBALK
   ============================================================ */
.zijbalk { position: sticky; top: 100px; }

.widget {
    background: var(--wit);
    border: 1px solid var(--rand);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 24px;
}

.widget-title {
    font-family: var(--kop-font);
    font-size: 17px;
    color: var(--tekst);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--groen-licht);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--groen);
}

.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--rand); font-size: 14px; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--tekst); }
.widget ul li a:hover { color: var(--groen); }

/* ============================================================
   SINGLE ARTIKEL
   ============================================================ */
.single-artikel {
    background: var(--wit);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--rand);
}

.single-header {
    padding: 32px 40px 24px;
}

.single-categorien {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.single-categorie-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--turquoise);
    background: var(--turquoise-licht);
    padding: 4px 12px;
    border-radius: 20px;
}

.single-titel {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.single-meta {
    font-size: 13px;
    color: var(--tekst-licht);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.single-afbeelding {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.single-afbeelding img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-content {
    padding: 32px 40px 40px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--tekst);
}

.single-content h2 { font-size: 26px; margin: 2rem 0 1rem; }
.single-content h3 { font-size: 20px; margin: 1.5rem 0 0.75rem; }
.single-content p { margin-bottom: 1.25rem; }
.single-content ul, .single-content ol { margin: 0 0 1.25rem 1.5rem; }
.single-content li { margin-bottom: 0.5rem; }
.single-content img { border-radius: 8px; margin: 1.5rem 0; }

.single-content blockquote {
    border-left: 4px solid var(--groen);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--groen-licht);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-family: var(--kop-font);
    font-size: 18px;
    color: var(--groen-donker);
}

/* ============================================================
   CATEGORIE PAGINA
   ============================================================ */
.categorie-header {
    background: var(--groen);
    padding: 40px 24px;
    text-align: center;
    color: var(--wit);
}

.categorie-header h1 {
    font-size: 36px;
    color: var(--wit);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.categorie-header p {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--groen-donker);
    color: rgba(255,255,255,0.75);
    margin-top: 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-family: var(--kop-font);
    font-size: 24px;
    color: var(--wit);
    margin-bottom: 12px;
}

.footer-omschrijving {
    font-size: 14px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-kolom h4 {
    color: var(--wit);
    font-size: 14px;
    font-family: var(--tekst-font);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-kolom ul { list-style: none; padding: 0; margin: 0; }
.footer-kolom li { margin-bottom: 8px; }
.footer-kolom a { font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-kolom a:hover { color: var(--wit); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   KNOPPEN & FORMULIEREN
   ============================================================ */
.knop, .wp-block-button__link, input[type="submit"], button[type="submit"] {
    display: inline-block;
    background: var(--groen);
    color: var(--wit) !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    font-family: var(--tekst-font);
}

.knop:hover, .wp-block-button__link:hover, input[type="submit"]:hover, button[type="submit"]:hover {
    background: var(--groen-donker);
    color: var(--wit) !important;
}

.knop-turquoise { background: var(--turquoise); }
.knop-turquoise:hover { background: var(--turquoise-donker); }

/* ============================================================
   ZOEKRESULTATEN
   ============================================================ */
.zoekresultaten-header {
    padding: 32px 24px;
    background: var(--wit);
    border-bottom: 1px solid var(--rand);
    text-align: center;
}

.zoekresultaten-header h1 { font-size: 28px; margin-bottom: 8px; }
.zoekresultaten-header p { color: var(--tekst-licht); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .content-gebied { grid-template-columns: 1fr 260px; gap: 28px; }
    .artikel-kaart.groot { grid-template-columns: 1fr; }
    .artikel-kaart.groot .kaart-afbeelding { aspect-ratio: 16/9; height: auto; }
}

@media (max-width: 900px) {
    .content-gebied { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .categorie-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-primary { display: none; }
    .hero-sectie { flex-direction: column; }
    .hero-links { max-width: 100%; padding: 40px 24px; }
    .hero-rechts { min-height: 240px; }
    .hero-links h1 { font-size: 32px; }
    .artikel-grid { grid-template-columns: 1fr; }
    .single-titel { font-size: 26px; }
    .single-header, .single-content { padding: 24px; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .categorie-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .header-inner { padding: 0 16px; }
    .content-gebied { padding: 20px 16px 32px; }
    .sectie-titel { padding: 0 16px; }
    .categorie-sectie { padding: 0 16px; }
}
