/*
Theme Name: Hermansbeelden
Theme URI: https://hermansbeelden.nl
Description: Maatwerk theme voor Hermans Beelden
Author: T. Schepers
Template: blocksy
Version: 1.0.0
Text Domain: hermansbeelden
*/

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
    --hb-background: #f7f6f2;
    --hb-surface: #ffffff;
    --hb-text: #252525;
    --hb-muted: #6d6a64;
    --hb-accent: #7a5c43;
    --hb-accent-dark: #5f4633;
    --hb-border: #dedbd4;

    --hb-max-width: 1200px;
    --hb-content-width: 820px;

    --hb-radius: 2px;

    --hb-space-xs: 0.5rem;
    --hb-space-sm: 1rem;
    --hb-space-md: 2rem;
    --hb-space-lg: 4rem;
    --hb-space-xl: 7rem;

    --hb-transition: 180ms ease;
}


/* =========================================================
   2. GLOBAL
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--hb-background);
    color: var(--hb-text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--hb-text);
    line-height: 1.2;
    font-weight: 500;
}

p {
    margin-top: 0;
}

a {
    color: inherit;
}

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


/* =========================================================
   3. LAYOUT
   ========================================================= */

.site-main {
    width: 100%;
}

.homepage > section > div,
.home-latest-inner,
.beeld-detail {
    width: min(
        calc(100% - 2rem),
        var(--hb-max-width)
    );
    margin-inline: auto;
}


/* =========================================================
   4. TYPOGRAPHY
   ========================================================= */

.home-eyebrow {
    margin-bottom: var(--hb-space-sm);
    color: var(--hb-accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 0;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400;
    letter-spacing: -0.04em;
}

.home-intro {
    max-width: 620px;
    margin: var(--hb-space-md) auto 0;
    color: var(--hb-muted);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}


/* =========================================================
   5. HERO
   ========================================================= */

.home-hero {
    position: relative;
    display: flex;
    min-height: min(680px, 82vh);
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem;
    background: var(--hb-background);
    text-align: center;
}

.home-hero-content {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
}

.home-hero .home-eyebrow {
    margin-bottom: 1.25rem;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
}

.home-hero h1 {
    margin: 0;
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.home-hero .home-intro {
    max-width: 600px;
    margin: 2rem auto 0;
    color: var(--hb-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
}

.home-hero .home-primary-button {
    margin-top: 2.5rem;
}


/* Mobiel */

@media (max-width: 699px) {

    .home-hero {
        min-height: 620px;
        padding: 5rem 1rem 6rem;
    }

    .home-hero h1 {
        font-size: clamp(3.2rem, 16vw, 5rem);
    }

    .home-navigation-card {
        min-height: 170px;
        padding: 2rem 1.5rem;
    }

    .home-navigation-card::after {
        margin-top: 1.5rem;
    }

}


/* =========================================================
   6. BUTTONS
   ========================================================= */

.home-primary-button,
.home-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--hb-accent);
    border-radius: var(--hb-radius);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition:
        background-color var(--hb-transition),
        color var(--hb-transition),
        border-color var(--hb-transition),
        transform var(--hb-transition);
}

.home-primary-button {
    margin-top: var(--hb-space-lg);
    background: var(--hb-accent);
    color: #ffffff;
}

.home-primary-button:hover {
    background: var(--hb-accent-dark);
    border-color: var(--hb-accent-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

.home-secondary-button {
    background: transparent;
    color: var(--hb-accent);
}

.home-secondary-button:hover {
    background: var(--hb-accent);
    color: #ffffff;
    transform: translateY(-2px);
}


/* =========================================================
   7. INTRODUCTION
   ========================================================= */

.home-introduction {
    padding: var(--hb-space-xl) 0;
    background: var(--hb-surface);
}

.home-introduction-inner {
    max-width: var(--hb-content-width);
    margin-inline: auto;
    text-align: center;
}

.home-introduction h2 {
    margin-bottom: var(--hb-space-md);
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.home-introduction p {
    color: var(--hb-muted);
    font-size: 1.1rem;
}


/* =========================================================
   8. PERSONAL NAVIGATION
   ========================================================= */

.home-navigation {
    padding: var(--hb-space-xl) 0;
}

.home-navigation-grid {
    display: grid;
    gap: 1px;
    background: var(--hb-border);
}

.home-navigation-card {
    display: flex;
    flex-direction: column;
    padding: var(--hb-space-lg);
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    text-decoration: none;
    transition:
        background-color var(--hb-transition),
        border-color var(--hb-transition),
        transform var(--hb-transition);
}

.home-navigation-card::after {
    content: "→";
    display: block;
    margin-top: var(--hb-space-md);
    color: var(--hb-accent);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform var(--hb-transition);
}

.home-navigation-card:hover {
    background: var(--hb-background);
    border-color: var(--hb-accent);
    transform: translateY(-2px);
}

.home-navigation-card:hover::after {
    transform: translateX(5px);
}

.home-navigation-card h2 {
    margin: 0 0 var(--hb-space-sm);
    font-size: 1.6rem;
}

.home-navigation-card p {
    margin: 0;
    color: var(--hb-muted);
}


/* =========================================================
   9. LATEST BEELDEN
   ========================================================= */

.home-latest-beelden {
    padding: var(--hb-space-xl) 0;
    background: var(--hb-surface);
}

.home-section-header {
    margin-bottom: var(--hb-space-lg);
    text-align: center;
}

.home-section-header h2 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.home-beelden-grid {
    display: grid;
    gap: var(--hb-space-md);
}

.home-beeld-card {
    margin: 0;
}

.home-beeld-card-link {
    display: block;
    text-decoration: none;
}

.home-beeld-image {
    overflow: hidden;
    background: #ebe9e4;
    aspect-ratio: 1 / 1;
}

.home-beeld-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.home-beeld-card-link:hover .home-beeld-image img {
    transform: scale(1.035);
}

.home-beeld-card h3 {
    margin: var(--hb-space-sm) 0 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.home-latest-link {
    margin-top: var(--hb-space-lg);
    text-align: center;
}


/* =========================================================
   10. CONTACT
   ========================================================= */

.home-contact {
    padding: var(--hb-space-xl) 0;
    text-align: center;
}

.home-contact-inner {
    max-width: var(--hb-content-width);
    margin-inline: auto;
}

.home-contact h2 {
    margin-bottom: var(--hb-space-md);
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.home-contact p {
    margin-bottom: var(--hb-space-md);
    color: var(--hb-muted);
}


/* =========================================================
   11. BEELDEN ARCHIVE
   ========================================================= */

.archive-beelden {
    padding: var(--hb-space-xl) 0;
}

.archive-header {
    width: min(
        calc(100% - 2rem),
        var(--hb-max-width)
    );
    margin: 0 auto var(--hb-space-lg);
    text-align: center;
}

.archive-header h1 {
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 5rem);
}

.beelden-grid {
    display: grid;
    width: min(
        calc(100% - 2rem),
        var(--hb-max-width)
    );
    margin-inline: auto;
    gap: var(--hb-space-md);
}

.beeld-card {
    margin: 0;
}

.beeld-card-link {
    display: block;
    text-decoration: none;
}

.beeld-card-image {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #ebe9e4;
}

.beeld-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.beeld-card-link:hover .beeld-card-image img {
    transform: scale(1.035);
}

.beeld-card-title {
    margin: var(--hb-space-sm) 0 0;
    font-size: 1.2rem;
}


/* =========================================================
   12. SINGLE BEELD
   ========================================================= */

.beeld-detail {
    max-width: var(--hb-content-width);
    padding: var(--hb-space-xl) 0;
}

.beeld-header {
    margin-bottom: var(--hb-space-lg);
    text-align: center;
}

.beeld-header h1 {
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 5rem);
}

.beeld-afbeelding {
    margin: 0 0 var(--hb-space-lg);
}

.beeld-afbeelding img {
    display: block;
    width: 100%;
    height: auto;
}

.beeld-beschrijving {
    max-width: 700px;
    margin-inline: auto;
    font-size: 1.08rem;
}

.beeld-beschrijving p:last-child {
    margin-bottom: 0;
}


/* Contact */

.beeld-contact {
    max-width: 700px;
    margin: var(--hb-space-xl) auto 0;
    padding-top: var(--hb-space-lg);
    border-top: 1px solid var(--hb-border);
    text-align: center;
}

.beeld-contact h2 {
    margin-bottom: var(--hb-space-sm);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.beeld-contact p {
    margin-bottom: var(--hb-space-md);
    color: var(--hb-muted);
}


/* Terug naar galerij */

.beeld-terug {
    margin-top: var(--hb-space-xl);
    text-align: center;
}


/* =========================================================
   13. WORDPRESS PAGINATION
   ========================================================= */

.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--hb-space-lg);
}

.nav-links a,
.nav-links span {
    padding: 0.5rem 0.75rem;
    text-decoration: none;
}


/* =========================================================
   14. ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--hb-accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   15. TABLET
   ========================================================= */

@media (min-width: 700px) {

    .homepage > section > div,
    .home-latest-inner,
    .beeld-detail {
        width: min(
            calc(100% - 4rem),
            var(--hb-max-width)
        );
    }

    .home-navigation-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-beelden-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .beelden-grid {
        width: min(
            calc(100% - 4rem),
            var(--hb-max-width)
        );

        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   16. DESKTOP
   ========================================================= */

@media (min-width: 1000px) {

    .home-hero {
        min-height: 760px;
    }

    .beelden-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-navigation-card {
        min-height: 220px;
        padding: var(--hb-space-lg);
    }

    .herman-werkwijze-content {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
    }

    .herman-werkwijze-image {
        min-height: 560px;
    }
}

/* =========================================================
   17. HEADER
   ========================================================= */

.site-header {
    background: rgba(247, 246, 242, 0.96);
    border-bottom: 1px solid var(--hb-border);
}

.site-header .ct-container {
    min-height: 78px;
}

.site-branding,
.site-logo {
    font-weight: 500;
}

.site-logo {
    color: var(--hb-text);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.main-navigation a {
    color: var(--hb-text);
    font-size: 0.9rem;
    text-decoration: none;
}

.main-navigation a:hover {
    color: var(--hb-accent);
}

/* =========================================================
   18. WIE IS HERMAN
   ========================================================= */

.page-wie-is-herman {
    padding-bottom: var(--hb-space-xl);
}

.persoonlijk-header {
    width: min(
        calc(100% - 2rem),
        var(--hb-content-width)
    );
    margin: 0 auto;
    padding: var(--hb-space-xl) 0 var(--hb-space-lg);
    text-align: center;
}

.persoonlijk-header h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    letter-spacing: -0.04em;
}


/* =========================================================
   INTRO
   ========================================================= */

.herman-intro {
    padding: 0 0 var(--hb-space-xl);
}

.herman-intro-content {
    width: min(
        calc(100% - 2rem),
        var(--hb-max-width)
    );
    margin-inline: auto;
}

.herman-portret {
    width: 100%;
    max-width: 850px;
    min-height: 420px;
    margin: 0 auto var(--hb-space-lg);
    background: var(--hb-border);
}

.herman-portret img {
    display: block;
    width: 100%;
    height: auto;
}

.herman-intro-text {
    max-width: 720px;
    margin-inline: auto;
    font-size: 1.1rem;
}


/* =========================================================
   VERHAAL
   ========================================================= */

.herman-verhaal {
    padding: var(--hb-space-xl) 0;
    background: var(--hb-surface);
}

.herman-verhaal-content {
    max-width: 720px;
    margin-inline: auto;
    font-size: 1.08rem;
}


/* =========================================================
   WERKWIJZE
   ========================================================= */

.herman-werkwijze {
    padding: var(--hb-space-xl) 0;
}

.herman-werkwijze-content {
    width: min(
        calc(100% - 2rem),
        var(--hb-max-width)
    );
    margin-inline: auto;

    display: grid;
    gap: var(--hb-space-lg);
}

.herman-werkwijze-image {
    min-height: 420px;
    background: var(--hb-border);
}

.herman-werkwijze-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.herman-werkwijze-text {
    align-self: center;
    max-width: 650px;
}

.herman-werkwijze-heading {
    margin-bottom: var(--hb-space-md);
}

.herman-werkwijze-heading h2 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.herman-werkwijze-text p {
    font-size: 1.08rem;
}


/* =========================================================
   STIJL
   ========================================================= */

.herman-stijl {
    padding: var(--hb-space-xl) 0;
    background: var(--hb-surface);
}

.herman-stijl-content {
    width: min(
        calc(100% - 2rem),
        var(--hb-content-width)
    );
    margin-inline: auto;
}

.herman-stijl-text {
    font-size: 1.08rem;
}


/* =========================================================
   PASSIE
   ========================================================= */

.herman-passie {
    padding: var(--hb-space-xl) 0;
}

.herman-passie-content {
    max-width: 720px;
    margin-inline: auto;
    font-size: 1.1rem;
}


/* =========================================================
   AFSLUITING
   ========================================================= */

.herman-afsluiting {
    padding: var(--hb-space-xl) 0;
    background: var(--hb-surface);
    text-align: center;
}

.herman-afsluiting-content {
    width: min(
        calc(100% - 2rem),
        var(--hb-content-width)
    );
    margin-inline: auto;
}

.herman-afsluiting p {
    margin-bottom: var(--hb-space-lg);
    font-size: 1.2rem;
}

/* =========================================================
   19. HERMAN – WORKFLOW
   ========================================================= */

.herman-stap-inner {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 1.5fr);
    gap: 5rem;
    width: min(
        calc(100% - 4rem),
        var(--hb-max-width)
    );
    margin-inline: auto;
    padding: 6.5rem 0;
}

.herman-stap-label {
    align-self: start;
}

.herman-stap-label .home-eyebrow {
    margin: 0 0 0.75rem;
}

.herman-stap-label h2 {
    margin: 0;
}

.herman-stap-text {
    min-width: 0;
}

.herman-stap-text p:first-child {
    margin-top: 0;
}

.herman-stap-text p:last-child {
    margin-bottom: 0;
}


/* Achtergrondkleuren */

.herman-stap-light {
    background: var(--hb-background);
}

.herman-stap-dark {
    background: var(--hb-surface);
}


/* Mobiel */

@media (max-width: 699px) {

    .herman-stap-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: calc(100% - 2rem);
        padding: 5rem 0;
    }

}

/* =========================================================
   20. WAT DOET HERMAN – TWO COLUMN CONTENT
   ========================================================= */

.page-wat-doet-herman .herman-twee-kolommen {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.page-wat-doet-herman .herman-twee-kolommen > div {
    min-width: 0;
    padding: 3.5rem;
}


/* Vrij werk + Werk in opdracht */

.page-wat-doet-herman .herman-stijl .herman-twee-kolommen > div {
    background: var(--hb-background);
}


/* Koppen */

.page-wat-doet-herman .herman-twee-kolommen .home-eyebrow {
    margin-top: 0;
    margin-bottom: 1rem;
}

.page-wat-doet-herman .herman-twee-kolommen p:first-child {
    margin-top: 0;
}


/* Mobiel */

@media (max-width: 699px) {

    .page-wat-doet-herman .herman-twee-kolommen {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .page-wat-doet-herman .herman-twee-kolommen > div {
        padding: 3rem 2rem;
    }

}

/* =========================================================
   21. HERMAN – AFSLUITING
   ========================================================= */

.herman-afsluiting-content {
    position: relative;
    padding-top: 3rem;
}

.herman-afsluiting-content::before {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    margin-bottom: 3rem;
    background: var(--hb-accent);
}
