/*
Theme Name: Hoorcomfort
Theme URI: https://hoorcomfort.nl
Description: Custom WordPress child theme voor Hoorcomfort, gebaseerd op Kadence.
Author: Hoorcomfort
Template: kadence
Version: 1.0.1
Text Domain: hoorcomfort
*/


/* =====================================================
   HOORCOMFORT DESIGN SYSTEM
   ===================================================== */

:root {
    --hc-green: #194d45;
    --hc-green-hover: #24685d;
    --hc-cream: #f7f5f0;
    --hc-sand: #d9c5a5;
    --hc-text: #202624;
    --hc-text-soft: #56605c;
    --hc-white: #ffffff;

    --hc-radius: 22px;
    --hc-container: 1240px;
}


/* =====================================================
   HERO
   ===================================================== */

.hc-hero {
    position: relative;
    overflow: visible;

    background-color: #f3ede3;

    background-image:
        radial-gradient(
            circle at 82% 18%,
            rgba(217, 197, 165, 0.55) 0%,
            rgba(217, 197, 165, 0.20) 25%,
            transparent 50%
        ),
        linear-gradient(
            135deg,
            #faf8f4 0%,
            #f1e9dc 100%
        );

    padding: 115px 40px 125px;
}


/* =====================================================
   HERO LAYOUT
   ===================================================== */

.hc-hero > .wp-block-columns {
    position: relative;
    z-index: 2;

    max-width: var(--hc-container);

    margin-left: auto;
    margin-right: auto;

    display: flex;
    align-items: center;

    gap: clamp(50px, 6vw, 90px);
}


/* Tekstkolom */

.hc-hero > .wp-block-columns > .wp-block-column:first-child {
    flex: 1 1 52%;
}


/* Beeldkolom */

.hc-hero > .wp-block-columns > .wp-block-column:last-child {
    flex: 1 1 48%;
}


/* =====================================================
   HERO EYEBROW
   ===================================================== */

.hc-hero .wp-block-column:first-child > p:first-child {
    margin: 0 0 22px;

    color: var(--hc-green);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* =====================================================
   HERO TITLE
   ===================================================== */

.hc-hero h1 {
    max-width: 650px;

    margin: 0 0 28px;

    color: var(--hc-text);

    font-size: clamp(48px, 5vw, 72px);
    font-weight: 600;
    line-height: 1.03;

    letter-spacing: -0.045em;
}


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

.hc-hero h1 + p {
    max-width: 560px;

    margin: 0 0 36px;

    color: var(--hc-text-soft);

    font-size: 18px;
    line-height: 1.7;
}


/* =====================================================
   HERO BUTTONS
   ===================================================== */

.hc-hero .wp-block-buttons {
    display: flex;
    gap: 14px;
}

.hc-hero .wp-block-button__link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 54px;

    padding: 14px 26px;

    border-radius: 9px;

    font-size: 15px;
    font-weight: 650;
    line-height: 1;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* Primaire CTA */

.hc-hero .wp-block-button:first-child .wp-block-button__link {
    background: var(--hc-green);
    color: var(--hc-white);

    border: 1px solid var(--hc-green);

    box-shadow:
        0 8px 20px rgba(25, 77, 69, 0.12);
}

.hc-hero .wp-block-button:first-child .wp-block-button__link:hover {
    background: var(--hc-green-hover);
    border-color: var(--hc-green-hover);

    color: var(--hc-white);

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(25, 77, 69, 0.18);
}


/* Secundaire CTA */

.hc-hero .wp-block-button:nth-child(2) .wp-block-button__link {
    background: transparent;

    color: var(--hc-green);

    border: 1px solid rgba(25, 77, 69, 0.35);
}

.hc-hero .wp-block-button:nth-child(2) .wp-block-button__link:hover {
    background: var(--hc-white);

    color: var(--hc-green);

    border-color: var(--hc-green);

    transform: translateY(-2px);
}


/* =====================================================
   HERO VISUAL
   ===================================================== */

.hc-hero .wp-block-image {
    position: relative;

    margin: 0;
}

.hc-hero .wp-block-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    border-radius: 0;

    filter:
        drop-shadow(
            0 28px 45px rgba(25, 77, 69, 0.10)
        );
}


/* =====================================================
   SUBTLE SCROLL INDICATOR
   ===================================================== */

.hc-hero::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 24px;

    width: 38px;
    height: 38px;

    border:
        1px solid rgba(25, 77, 69, 0.22);

    border-radius: 50%;

    transform: translateX(-50%);

    z-index: 3;

    pointer-events: none;
}

.hc-hero::before {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 41px;

    width: 7px;
    height: 7px;

    border-right:
        1.5px solid var(--hc-green);

    border-bottom:
        1.5px solid var(--hc-green);

    transform:
        translateX(-50%)
        rotate(45deg);

    z-index: 4;

    pointer-events: none;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1024px) {

    .hc-hero {
        padding:
            85px
            30px
            100px;
    }

    .hc-hero > .wp-block-columns {
        gap: 45px;
    }

    .hc-hero h1 {
        font-size:
            clamp(44px, 6vw, 60px);
    }
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 781px) {

    .hc-hero {
        padding:
            65px
            22px
            90px;
    }

    .hc-hero > .wp-block-columns {
        gap: 42px;
    }

    .hc-hero h1 {
        font-size: 43px;
        line-height: 1.05;
    }

    .hc-hero h1 + p {
        font-size: 17px;
    }

    .hc-hero .wp-block-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .hc-hero .wp-block-button,
    .hc-hero .wp-block-button__link {
        width: 100%;
    }

    .hc-hero .wp-block-image img {
        width: 100%;
        height: auto;

        object-fit: contain;
    }
}
/* =====================================================
   HOORCOMFORT HEADER
   ===================================================== */

.site-header {
    position: relative;
    z-index: 100;
    background: #ffffff;
}

.site-main-header-wrap .site-header-row-container-inner {
    background: #ffffff;
    border-bottom: 1px solid rgba(25, 77, 69, 0.08);
}

/* Header compact houden */
.site-main-header-inner-wrap {
    min-height: 76px;
}

/* Logo */
.site-branding img {
    max-height: 52px;
    width: auto;
}

/* Menu */
.main-navigation .primary-menu-container > ul > li > a {
    color: #202624;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding-left: 17px;
    padding-right: 17px;
    transition: color 0.2s ease;
}

/* Menu hover */
.main-navigation .primary-menu-container > ul > li > a:hover {
    color: #194d45;
}

/* Actieve pagina */
.main-navigation .primary-menu-container > ul > li.current-menu-item > a {
    color: #194d45;
}

/* Geen overdreven grote ruimte onder de header */
.site-header-wrap {
    margin-bottom: 0 !important;
}

/* Homepage content direct tegen header aan */
.home .content-area,
.home .site-main,
.home .content-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.home .entry-content {
    margin-top: 0 !important;
}

.home .content-container {
    padding-top: 0 !important;
}

.home .site-container {
    padding-top: 0;
}

.home article,
.home .entry-content > *:first-child {
    margin-top: 0 !important;
}
/* =====================================================
   HEADER + HERO SEAMLESS TRANSITION
   ===================================================== */

/* Header dezelfde warme basis geven als het begin van de hero */
.site-header,
.site-main-header-wrap,
.site-main-header-wrap .site-header-row-container-inner {
    background: #faf8f4 !important;
}

/* Geen harde scheidingslijn */
.site-main-header-wrap .site-header-row-container-inner {
    border-bottom: 0 !important;
}

/* Alle Kadence ruimte tussen header en homepage verwijderen */
.home #inner-wrap,
.home #primary,
.home .content-area,
.home .site-main,
.home .content-wrap,
.home .content-container,
.home article,
.home .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Paginatitel heeft op Home geen functie */
.home .entry-header,
.home .entry-hero-container-inner {
    display: none !important;
}

/* Eerste blok strak tegen header */
.home .entry-content > .hc-hero {
    margin-top: 0 !important;
}


/* =====================================================
   HERO INTO HEADER
   ===================================================== */

.home .hc-hero {
    margin-top: 0 !important;

    background:
        radial-gradient(
            circle at 82% 14%,
            rgba(217, 197, 165, 0.52) 0%,
            rgba(217, 197, 165, 0.20) 24%,
            transparent 49%
        ),
        linear-gradient(
            180deg,
            #faf8f4 0%,
            #f6f1e9 16%,
            #f1e9dc 100%
        ) !important;
}
/* =====================================================
   HOMEPAGE CLEANUP
   ===================================================== */

/* Verberg paginatitel Home */
.home .entry-header,
.home .entry-title,
.home .page-title,
.home .entry-hero-container-inner,
.home .kadence-page-title {
    display: none !important;
}

/* Verwijder ruimte die voor de paginatitel gereserveerd wordt */
.home #primary,
.home .content-area,
.home .content-container,
.home .site-main,
.home article,
.home .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Eerste blok direct laten aansluiten */
.home .entry-content > .hc-hero {
    margin-top: 0 !important;
}
/* =====================================================
   HOME: REMOVE PAGE TITLE + GAP
   ===================================================== */

/* Verberg de Kadence paginatitel op de homepage */
.home .entry-header,
.home .entry-title,
.home .page-title,
.home .entry-hero,
.home .entry-hero-container-inner,
.home .kadence-page-title {
    display: none !important;
}

/* Verwijder Kadence contentruimte boven de homepage */
.home #primary,
.home #main,
.home .content-area,
.home .content-wrap,
.home .content-container,
.home .site-main,
.home article,
.home .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hero direct tegen de header */
.home .hc-hero {
    margin-top: 0 !important;
}

/* Header visueel laten overvloeien in hero */
.home .site-header,
.home .site-main-header-wrap,
.home .site-main-header-wrap .site-header-row-container-inner {
    background: #faf8f4 !important;
    border-bottom: 0 !important;
}
/* =====================================================
   HOORCOMFORT - PREMIUM HEADER
   ===================================================== */

/* Header onderdeel maken van dezelfde visuele wereld als hero */
.home .site-header,
.home .site-main-header-wrap,
.home .site-main-header-wrap .site-header-row-container-inner {
    background: #faf8f4 !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Compacte elegante header */
.home .site-main-header-inner-wrap {
    min-height: 82px;
}

/* Logo */
.home .site-branding img {
    width: auto;
    max-height: 54px;
}

/* Navigatie */
.home .main-navigation .primary-menu-container > ul {
    gap: 4px;
}
/* ==========================================
   CLEAN PREMIUM MENU
   ========================================== */

.home .main-navigation .primary-menu-container > ul > li > a {
    color: #26302d;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;

    /* Witruimte boven/onder menu */
    padding: 30px 14px 13px !important;

    /* Ruimte tussen tekst en balkje */
    border-bottom: 2px solid transparent;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

/* Hover */
.home .main-navigation .primary-menu-container > ul > li > a:hover {
    color: var(--hc-green);

    border-bottom-color: var(--hc-green);
}

/* Huidige pagina */
.home .main-navigation .primary-menu-container > ul > li.current-menu-item > a {
    color: var(--hc-green);

    border-bottom-color: var(--hc-green);
}

/* Nog wat ruimte ONDER de lijn */
.home .site-main-header-inner-wrap {
    padding-bottom: 12px;
}
/* =====================================================
   HOORCOMFORT BRANDING
   ===================================================== */

.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Naam Hoorcomfort */
.site-title {
    margin: 0;
}

.site-title a {
    color: var(--hc-green) !important;
    font-size: 25px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.035em;
    text-decoration: none;
}

/* Logo / beeldmerk */
.site-branding img {
    display: block;
    width: auto;
    max-height: 42px;
}

/* Branding iets meer ruimte geven */
.site-branding {
    min-width: 220px;
}