/*
Theme Name:   House of Cherries
Theme URI:    https://houseofcherries.com
Description:  Child theme van Hello Elementor voor House of Cherries. Poppins lokaal (geen Google Fonts), huisstijl-tokens en basisstijlen. Kleuren en typografie beheer je in Elementor > Site-instellingen; dit bestand vult aan.
Author:       Firma Netjes
Author URI:   https://firmanetjes.nl
Template:     hello-elementor
Version:      1.2.4
Requires at least: 6.4
Requires PHP: 8.0
License:      GNU General Public License v2 or later
Text Domain:  hoc-child
*/

/* ==========================================================================
   1. Poppins, lokaal gehost (SIL Open Font License 1.1, zie fonts/OFL.txt)
   Gewichten: 400, 400 italic, 500, 600, 700. Subsets: latin en latin-ext.
   ========================================================================== */

@font-face {
	font-family: "Poppins";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/poppins-400-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Poppins";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/poppins-400-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/poppins-400-normal-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/poppins-400-normal-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/poppins-500-normal-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/poppins-500-normal-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/poppins-600-normal-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/poppins-600-normal-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/poppins-700-normal-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/poppins-700-normal-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. Huisstijl-tokens
   Gekoppeld aan de globale kleuren van de Elementor-kit, met vaste fallback.
   Pas kleuren aan in Elementor > Site-instellingen > Globale kleuren.
   ========================================================================== */

:root {
	/* Kleuren (Elementor global ID tussen haakjes) */
	--hoc-primary:      var(--e-global-color-primary, #D11B66);   /* Primair */
	--hoc-rosewood:     var(--e-global-color-8beb329, #BF1363);   /* Rosewood: header, secties, knoppen */
	--hoc-text:         var(--e-global-color-text, #4A0827);      /* Tekst */
	--hoc-accent:       var(--e-global-color-accent, #F7B5D4);    /* Rosewood Accent */
	--hoc-light:        var(--e-global-color-dbefca5, #FDEDF4);   /* Rosewood licht */
	--hoc-white:        var(--e-global-color-98f0372, #FFFFFF);   /* Wit */
	--hoc-black:        var(--e-global-color-secondary, #000000); /* Secundair */

	--hoc-gradient:     linear-gradient(180deg, var(--hoc-rosewood) 0%, var(--hoc-text) 100%);

	/* Typografie */
	--hoc-font:         "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--hoc-fs-body:      1rem;                                         /* 16px  - Tekst */
	--hoc-fs-small:     0.875rem;                                     /* 14px  - Secundair/Accent */
	--hoc-fs-h1:        clamp(3rem, 2.5385rem + 2.0513vw, 4rem);      /* Poppins 1 */
	--hoc-fs-h2:        clamp(2.4rem, 2.1231rem + 1.2308vw, 3rem);    /* Poppins 2 */
	--hoc-fs-h3:        clamp(2.1rem, 1.9154rem + 0.8205vw, 2.5rem);  /* Poppins 3 */
	--hoc-fs-h4:        clamp(1.8rem, 1.7077rem + 0.4103vw, 2rem);    /* Poppins 4 */
	--hoc-fs-h5:        clamp(1.6rem, 1.5308rem + 0.3077vw, 1.75rem); /* Poppins 5 */
	--hoc-lh-body:      1.6;
	--hoc-lh-heading:   1.15;

	/* Vormen en ruimte */
	--hoc-radius:       20px;
	--hoc-radius-sm:    10px;
	--hoc-border:       2px;
	--hoc-section-y:    80px;
	--hoc-section-x:    80px;
	--hoc-transition:   200ms ease;
}

@media (max-width: 1024px) {
	:root { --hoc-section-y: 60px; --hoc-section-x: 40px; }
}
@media (max-width: 767px) {
	:root { --hoc-section-y: 48px; --hoc-section-x: 20px; }
}

/* ==========================================================================
   3. Basis
   Elementor-instellingen per widget gaan hier altijd boven.
   ========================================================================== */

body {
	font-family: var(--hoc-font);
	font-size: var(--hoc-fs-body);
	line-height: var(--hoc-lh-body);
	color: var(--hoc-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--hoc-font);
	line-height: var(--hoc-lh-heading);
	text-transform: uppercase;
	color: inherit;
	margin-block: 0 0.5em;
}
h1 { font-size: var(--hoc-fs-h1); font-weight: 700; }
h2 { font-size: var(--hoc-fs-h2); font-weight: 700; }
h3 { font-size: var(--hoc-fs-h3); font-weight: 600; }
h4 { font-size: var(--hoc-fs-h4); font-weight: 600; }
h5 { font-size: var(--hoc-fs-h5); font-weight: 600; }
h6 { font-size: var(--hoc-fs-body); font-weight: 600; }

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

a {
	color: var(--hoc-primary);
	text-underline-offset: 0.15em;
	transition: color var(--hoc-transition);
}
a:hover { color: var(--hoc-rosewood); }

strong, b { font-weight: 600; }

::selection { background: var(--hoc-accent); color: var(--hoc-text); }

:focus-visible {
	outline: 3px solid var(--hoc-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ==========================================================================
   4. Beelden en kaarten: radius 20px
   ========================================================================== */

.elementor-widget-image img,
.elementor-widget-video .elementor-wrapper,
.elementor-image-gallery img,
.elementor-widget-image-carousel .swiper-slide-image,
.hoc-radius {
	border-radius: var(--hoc-radius);
}

.hoc-card {
	background: var(--hoc-light);
	color: var(--hoc-text);
	border-radius: var(--hoc-radius);
	padding: 20px;
}

/* ==========================================================================
   5. Knoppen
   Standaard = Rosewood gevuld. Klasse .hoc-btn-outline op de widget
   (Geavanceerd > CSS-klassen) geeft de lichtroze variant met rand.
   ========================================================================== */

.elementor-button,
button,
input[type="submit"],
input[type="button"],
.wp-element-button {
	font-family: var(--hoc-font);
	font-weight: 600;
	border-radius: var(--hoc-radius);
	transition: background-color var(--hoc-transition), color var(--hoc-transition), border-color var(--hoc-transition);
}

.hoc-btn-outline .elementor-button {
	background-color: var(--hoc-light);
	color: var(--hoc-text);
	border: var(--hoc-border) solid var(--hoc-accent);
}
.hoc-btn-outline .elementor-button:hover,
.hoc-btn-outline .elementor-button:focus-visible {
	background-color: var(--hoc-text);
	color: var(--hoc-light);
}

/* ==========================================================================
   6. Formulieren
   ========================================================================== */

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
select,
textarea,
.elementor-field-group .elementor-field {
	font-family: var(--hoc-font);
	color: var(--hoc-text);
	border: 1px solid var(--hoc-accent);
	border-radius: var(--hoc-radius-sm);
}
input:focus,
select:focus,
textarea:focus {
	border-color: var(--hoc-primary);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--hoc-accent) 60%, transparent);
}

/* ==========================================================================
   7. Hulpklassen voor secties (Geavanceerd > CSS-klassen)
   ========================================================================== */

.hoc-bg-rosewood { background-color: var(--hoc-rosewood); color: var(--hoc-light); }
.hoc-bg-light    { background-color: var(--hoc-light);    color: var(--hoc-text); }
.hoc-bg-gradient,
.hoc-footer      { background: var(--hoc-gradient);       color: var(--hoc-light); }

.hoc-bg-rosewood a:not(.elementor-button),
.hoc-bg-gradient a:not(.elementor-button),
.hoc-footer a:not(.elementor-button) { color: var(--hoc-light); }

.hoc-section {
	padding: var(--hoc-section-y) var(--hoc-section-x);
}

/* Blockquote / testimonial */
.elementor-blockquote,
blockquote {
	font-family: var(--hoc-font);
	border-color: var(--hoc-accent);
}

/* ==========================================================================
   8. Toegankelijkheid
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   9. Focuspunt van uitgesneden beelden (object-fit: cover)
   Gezichten zitten meestal in het bovenste deel van de foto. Per act of
   showcase overschrijfbaar met de ACF-velden hero_focus_x / hero_focus_y.
   ========================================================================== */

.elementor .elementor-element.elementor-widget-image.hoc-focus-top img {
	object-position: 50% 25%;
}

.elementor .elementor-element.elementor-widget-image.hoc-focus-5 img {
	object-position: 50% 5%;
}

/* ==========================================================================
   10. Kruimelpad (shortcode [hoc_breadcrumb])
   Tekstkleur op lichtroze voor voldoende contrast (WCAG AA).
   ========================================================================== */

.hoc-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.5em;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--hoc-fs-small);
	line-height: 1.5;
	color: var(--hoc-text);
}
.hoc-breadcrumb li {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}
.hoc-breadcrumb li + li::before {
	content: "/";
	content: "/" / "";
	opacity: 0.6;
}
.hoc-breadcrumb a {
	color: var(--hoc-text);
	text-decoration: underline;
}
.hoc-breadcrumb a:hover,
.hoc-breadcrumb a:focus-visible {
	color: var(--hoc-rosewood);
}
.hoc-breadcrumb [aria-current="page"] {
	font-weight: 600;
}

/* Kruimelpad-balk onder de hero: donkerste footerkleur met witte tekst */
.hoc-breadcrumb-bar .hoc-breadcrumb ol,
.hoc-breadcrumb-bar .hoc-breadcrumb a,
.hoc-breadcrumb-bar .hoc-breadcrumb a:hover,
.hoc-breadcrumb-bar .hoc-breadcrumb a:focus-visible {
	color: var(--hoc-white);
}
.hoc-breadcrumb-bar .hoc-breadcrumb a:hover,
.hoc-breadcrumb-bar .hoc-breadcrumb a:focus-visible {
	text-decoration-thickness: 2px;
}

/* Header: knop- en taaltekst altijd op één regel */
.elementor-location-header .elementor-widget-button.hoc-nowrap,
.elementor-location-header .hoc-lang {
	flex-shrink: 0;
}
.elementor-location-header .hoc-nowrap .elementor-button,
.elementor-location-header .hoc-lang p {
	white-space: nowrap;
}

/* "Vraag een voorstel aan" en buurknoppen: tekst op één regel.
   Kolommen met zo'n knop (class hoc-btn-col) worden minstens zo breed als de knop.
   Op telefoons (≤480px) zijn die kolommen 100% breed, daar geldt de min-width niet. */
.hoc-nowrap .elementor-button {
	white-space: nowrap;
}
@media (min-width: 481px) {
	.elementor .e-con.hoc-btn-col {
		min-width: max-content;
	}
}
