/*
 * Hostingwijzer designlaag (briefing §9): rustig, modern en redactioneel.
 * Alleen actief met body.hw-design. Tokens staan bovenaan; de rest verwijst ernaar.
 */

body.hw-design {
	--hw-ink: #14213d;
	--hw-ink-soft: #55607a;
	--hw-blue: #296bef;
	--hw-blue-dark: #1f58cc;
	--hw-line: #e4e7ee;
	--hw-soft: #f5f7fa;
	--hw-warm: #faf9f6;
	--hw-radius: 10px;
	--hw-radius-sm: 8px;
	--hw-font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--hw-font-head: "Jost", "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

	/* Rehub- en Elementor-variabelen omleiden naar onze lettertypes en kleuren. */
	--wp--preset--font-family--rh-body-font: var(--hw-font-body);
	--wp--preset--font-family--rh-head-font: var(--hw-font-head);
	--wp--preset--font-family--rh-nav-font: var(--hw-font-body);
	--wp--preset--font-family--rh-btn-font: var(--hw-font-body);
	--wp--preset--font-family--system-font: var(--hw-font-body);
	--e-global-typography-primary-font-family: var(--hw-font-head);
	--e-global-typography-secondary-font-family: var(--hw-font-head);
	--e-global-typography-text-font-family: var(--hw-font-body);
	--e-global-typography-accent-font-family: var(--hw-font-body);
	--e-global-color-text: var(--hw-ink-soft);

	background: #fff;
	color: var(--hw-ink);
	font-family: var(--hw-font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ---------- Typografie ---------- */
body.hw-design p,
body.hw-design li,
body.hw-design td,
body.hw-design th,
body.hw-design dd,
body.hw-design dt,
body.hw-design input,
body.hw-design select,
body.hw-design textarea,
body.hw-design button,
body.hw-design blockquote,
body.hw-design figcaption,
body.hw-design .elementor-widget-text-editor,
body.hw-design .elementor-heading-title:not(h1):not(h2):not(h3):not(h4),
body.hw-design .top_menu,
body.hw-design .top_menu a,
body.hw-design .post,
body.hw-design .post-inner,
body.hw-design .widget,
body.hw-design .footer-bottom,
body.hw-design .rh-300-content-area {
	font-family: var(--hw-font-body) !important;
}

body.hw-design h1,
body.hw-design h2,
body.hw-design h3,
body.hw-design h4,
body.hw-design h5,
body.hw-design .elementor-heading-title,
body.hw-design .widget .title,
body.hw-design .footer_widget .title,
body.hw-design .hw-hero__title,
body.hw-design .hw-2min__title,
body.hw-design .hw-alt__name,
body.hw-design .top_rating_title {
	font-family: var(--hw-font-head) !important;
	font-weight: 600 !important;
	color: var(--hw-ink);
	letter-spacing: -0.005em;
}

body.hw-design h1,
body.hw-design .title_single_area h1 {
	font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem) !important;
	line-height: 1.15 !important;
}

body.hw-design .post-inner > h2,
body.hw-design .post h2,
body.hw-design .elementor-widget-heading h2.elementor-heading-title {
	font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.95rem) !important;
	line-height: 1.25 !important;
}

body.hw-design .post-inner > h3,
body.hw-design .post h3 {
	font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem) !important;
	line-height: 1.3 !important;
}

body.hw-design .post-inner,
body.hw-design .post-readopt .post-inner,
body.hw-design .post p,
body.hw-design .post li {
	color: var(--hw-ink);
	font-size: 1.0625rem;
	line-height: 1.7;
}

body.hw-design .post h2,
body.hw-design .post-inner > h2 {
	margin-top: 2.2em;
	margin-bottom: 0.6em;
}

body.hw-design .post h3,
body.hw-design .post-inner > h3 {
	margin-top: 1.8em;
	margin-bottom: 0.5em;
}

/* Links: helder blauw, rustige onderstreping. */
body.hw-design .post a:not(.hw-btn):not(.btn_offer_block):not(.wpsm-button):not(.re_track_btn),
body.hw-design .elementor-widget-text-editor a {
	color: var(--hw-blue);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: rgba(41, 107, 239, 0.35);
}

body.hw-design .post a:not(.hw-btn):not(.btn_offer_block):not(.wpsm-button):not(.re_track_btn):hover {
	text-decoration-color: currentColor;
}

/* Citaten: rustig, niet schreeuwerig. */
body.hw-design .post blockquote,
body.hw-design .post-readopt blockquote {
	margin: 1.8em 0;
	padding: 0.2em 0 0.2em 1.2em;
	border-left: 3px solid var(--hw-blue);
	background: none;
}

body.hw-design .post blockquote p,
body.hw-design .post-readopt blockquote p {
	font-size: 1.125rem !important;
	line-height: 1.55 !important;
	font-weight: 500;
	color: var(--hw-ink);
}

/* ---------- Header ---------- */
body.hw-design .header_top_wrap.dark_style {
	background: var(--hw-ink);
	border-bottom: 0;
}

body.hw-design .header_top_wrap .header-top {
	min-height: 34px;
}

body.hw-design .header_top_wrap .top-nav a,
body.hw-design .header_top_wrap .top_custom_content a {
	color: #d7dce8 !important;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

body.hw-design .logo-section {
	padding-top: 14px;
	padding-bottom: 14px;
}

body.hw-design .head_search input[type="text"],
body.hw-design .head_search .re-ajax-search {
	height: 40px;
	border: 1px solid var(--hw-line) !important;
	border-radius: var(--hw-radius-sm) 0 0 var(--hw-radius-sm) !important;
	background: var(--hw-soft);
	font-size: 14px;
}

body.hw-design .head_search .btnsearch,
body.hw-design .head_search button {
	height: 40px;
	border-radius: 0 var(--hw-radius-sm) var(--hw-radius-sm) 0 !important;
	background: var(--hw-ink) !important;
	color: #fff !important;
}

body.hw-design .main-nav {
	border-top: 1px solid var(--hw-line) !important;
	border-bottom: 1px solid var(--hw-line) !important;
	box-shadow: none !important;
}

body.hw-design .top_menu > ul > li {
	border: 0 !important;
}

body.hw-design .top_menu > ul > li > a {
	padding: 12px 14px 13px !important;
	color: var(--hw-ink) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	letter-spacing: 0;
	text-transform: none !important;
}

body.hw-design .top_menu > ul > li > a:hover,
body.hw-design .top_menu > ul > li.current-menu-item > a {
	color: var(--hw-blue) !important;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}

body.hw-design .top_menu ul.sub-menu {
	border: 1px solid var(--hw-line) !important;
	border-radius: var(--hw-radius-sm);
	box-shadow: 0 8px 24px rgba(20, 33, 61, 0.08) !important;
}

body.hw-design .top_menu ul.sub-menu a {
	color: var(--hw-ink) !important;
	font-size: 14.5px !important;
}

/* ---------- Knoppen: één stijl ---------- */
body.hw-design .btn_offer_block,
body.hw-design .wpsm-button,
body.hw-design .rehub_btn_color,
body.hw-design .priced_block .btn_offer_block,
body.hw-design .cn-button,
body.hw-design .hw-choice-button {
	border: 0 !important;
	border-radius: var(--hw-radius-sm) !important;
	background: var(--hw-blue) !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: var(--hw-font-body) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	line-height: 1.25 !important;
	text-transform: none !important;
	white-space: normal !important;
	text-shadow: none !important;
}

body.hw-design .btn_offer_block:hover,
body.hw-design .wpsm-button:hover,
body.hw-design .rehub_btn_color:hover,
body.hw-design .hw-choice-button:hover {
	background: var(--hw-blue-dark) !important;
}

body.hw-design .priced_block .btn_offer_block {
	padding: 12px 18px !important;
}

/* ---------- Kaarten en blokken: plat met dunne rand ---------- */
body.hw-design .top_rating_item,
body.hw-design .rh_listitem,
body.hw-design .rh-shadow1,
body.hw-design .rh-shadow2,
body.hw-design .rh-shadow3,
body.hw-design .rh-shadow4,
body.hw-design .rh-shadow5,
body.hw-design .wpsm_recent_posts_list .col_item,
body.hw-design .hw-choice-tool,
body.hw-design .hw-result-card,
body.hw-design .rh-sidebar-offer,
body.hw-design .sidebar .widget.stickyscroll_widget,
body.hw-design .elementor-widget-wpsm_recent_posts_list .item-small-news {
	border: 1px solid var(--hw-line) !important;
	border-radius: var(--hw-radius) !important;
	box-shadow: none !important;
}

body.hw-design .top_rating_item .listitem_title_row {
	border-bottom-color: var(--hw-line) !important;
	background: var(--hw-soft);
}

body.hw-design .top_rating_title,
body.hw-design .top_rating_title a {
	color: var(--hw-ink) !important;
	font-size: 16px !important;
}

body.hw-design .rank_count {
	color: #c9cfdb !important;
	font-family: var(--hw-font-head) !important;
	font-weight: 500 !important;
}

/* Ribbon-badges kleiner en rustiger. */
body.hw-design .re-ribbon-badge span {
	font-size: 10px !important;
	letter-spacing: 0.04em;
}

/* Elementor-voortgangsbalken: label boven de balk, zodat het nooit wordt afgekapt. */
body.hw-design .elementor-progress-wrapper {
	height: 8px !important;
	margin-top: 22px;
	border-radius: 4px !important;
	background: #e9edf3 !important;
	overflow: visible !important;
}

body.hw-design .elementor-progress-bar {
	height: 8px !important;
	border-radius: 4px !important;
	line-height: 1 !important;
}

body.hw-design .elementor-progress-text {
	position: absolute;
	top: -19px;
	left: 0;
	padding: 0 !important;
	overflow: visible !important;
	color: var(--hw-ink-soft) !important;
	font-size: 12.5px !important;
	white-space: nowrap;
}

body.hw-design .elementor-progress-wrapper {
	position: relative;
}

body.hw-design .elementor-progress-percentage {
	position: absolute;
	top: -19px;
	right: 0;
	padding: 0 !important;
	color: var(--hw-ink) !important;
	font-size: 12.5px !important;
	font-weight: 600;
}

/* ---------- Homepage (Elementor) ---------- */
/* Hero: blauwgrijs met de golflijnen en golfrand van het oude Hostingwijzer, plus een lichte intro. */
body.hw-design .elementor-element-37ba210d {
	position: relative;
	overflow: hidden;
	background-color: #d9e5e7 !important;
	background-image: linear-gradient(180deg, #e6eff1 0%, #d4e0e2 100%) !important;
	padding-bottom: 72px !important;
}

body.hw-design .elementor-element-37ba210d::before,
body.hw-design .elementor-element-37ba210d::after {
	content: "";
	position: absolute;
	z-index: 0;
	width: 718px;
	height: 295px;
	background: url("/wp-content/uploads/2020/11/bgmints.png") no-repeat center / contain;
	pointer-events: none;
}

body.hw-design .elementor-element-37ba210d::before {
	left: -90px;
	bottom: 18px;
	animation: hw-drift-l 18s ease-in-out infinite alternate;
}

body.hw-design .elementor-element-37ba210d::after {
	right: -110px;
	top: -30px;
	opacity: 0.7;
	transform: scale(-1, -1);
	animation: hw-drift-r 22s ease-in-out infinite alternate;
}

@keyframes hw-drift-l {
	from { transform: translate(0, 0); }
	to { transform: translate(34px, -10px); }
}

@keyframes hw-drift-r {
	from { transform: scale(-1, -1) translate(0, 0); }
	to { transform: scale(-1, -1) translate(30px, 12px); }
}

body.hw-design .elementor-element-37ba210d > .elementor-shape {
	z-index: 1;
}

/* Titel, ondertitel en zoekveld komen kort na elkaar binnen. */
@keyframes hw-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

body.hw-design .elementor-element-5eb0ae22,
body.hw-design .elementor-element-a7174a9,
body.hw-design .elementor-element-43cc021a {
	animation: hw-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

body.hw-design .elementor-element-a7174a9 { animation-delay: 0.12s; }
body.hw-design .elementor-element-43cc021a { animation-delay: 0.24s; }

/* Getekende krul onder "vergelijken". */
body.hw-design .hw-squiggle {
	position: relative;
	display: inline-block;
	white-space: nowrap;
}

body.hw-design .hw-squiggle::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.18em;
	height: 0.34em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11 C 28 3, 52 15, 80 8 S 128 2, 154 9 S 186 12, 197 5' fill='none' stroke='%23296bef' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	clip-path: inset(0 100% 0 0);
	animation: hw-draw 0.9s 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes hw-draw {
	to { clip-path: inset(0 0 0 0); }
}

/* Top 5-rijen schuiven bij het scrollen in beeld (klasse wordt door design.php gezet). */
body.hw-design .hw-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.hw-design .hw-reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (max-width: 767px) {
	body.hw-design .elementor-element-37ba210d::before {
		width: 420px;
		height: 173px;
		left: -120px;
		bottom: 30px;
	}

	body.hw-design .elementor-element-37ba210d::after {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.hw-design .elementor-element-37ba210d::before,
	body.hw-design .elementor-element-37ba210d::after,
	body.hw-design .elementor-element-5eb0ae22,
	body.hw-design .elementor-element-a7174a9,
	body.hw-design .elementor-element-43cc021a {
		animation: none;
	}

	body.hw-design .hw-squiggle::after {
		animation: none;
		clip-path: none;
	}

	body.hw-design .hw-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

body.hw-design .elementor-element-37ba210d .elementor-heading-title {
	color: var(--hw-ink) !important;
}

body.hw-design .elementor-element-a7174a9 .elementor-heading-title {
	max-width: 44rem;
	margin: 0 auto;
	color: var(--hw-ink-soft) !important;
	font-size: 1.125rem !important;
	line-height: 1.55 !important;
	white-space: normal !important;
	opacity: 1 !important;
}

body.hw-design .elementor-widget-heading h2.elementor-heading-title {
	color: var(--hw-ink) !important;
}

/* ---------- Review- en artikelkop ---------- */
body.hw-design #rh_woo_layout_inimage {
	background: var(--hw-warm) !important;
	border-bottom: 1px solid var(--hw-line);
}

body.hw-design #rh_woo_layout_inimage .rh-300-content-area {
	color: var(--hw-ink-soft);
	font-size: 1.0625rem;
	line-height: 1.6;
}

body.hw-design #rh_woo_layout_inimage h1 {
	color: var(--hw-ink) !important;
}

body.hw-design .breadcrumb,
body.hw-design .breadcrumb a {
	color: var(--hw-ink-soft) !important;
	font-size: 13px !important;
}

/* ---------- Zijbalk ---------- */
body.hw-design .sidebar .widget .title,
body.hw-design .sidebar .widget h2 {
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--hw-line) !important;
	color: var(--hw-ink);
	font-size: 17px !important;
}

body.hw-design .sidebar .widget .title::after,
body.hw-design .sidebar .widget .title:after {
	display: none !important;
}

body.hw-design .sidebar a {
	color: var(--hw-ink);
}

body.hw-design .sidebar a:hover {
	color: var(--hw-blue);
}

/* ---------- Footer ---------- */
body.hw-design .footer-bottom {
	margin-top: 3rem;
	border-top: 1px solid var(--hw-line) !important;
	background: var(--hw-warm) !important;
}

body.hw-design .footer-bottom .footer_widget .title {
	color: var(--hw-ink) !important;
	font-size: 17px !important;
}

body.hw-design .footer-bottom .footer_widget,
body.hw-design .footer-bottom .footer_widget p,
body.hw-design .footer-bottom .footer_widget li,
body.hw-design .footer-bottom .footer_widget a {
	color: var(--hw-ink-soft) !important;
	font-size: 14px !important;
	line-height: 1.6;
}

body.hw-design .footer-bottom .footer_widget a:hover {
	color: var(--hw-blue) !important;
}

body.hw-design .footer-bottom .hw-toplijst a {
	color: var(--hw-ink) !important;
	font-size: 15px !important;
	font-weight: 500;
}

body.hw-design footer#theme_footer {
	background: var(--hw-warm) !important;
	border-top: 1px solid var(--hw-line) !important;
}

body.hw-design footer#theme_footer .f_text,
body.hw-design footer#theme_footer .f_text a {
	color: var(--hw-ink-soft) !important;
}

/* ---------- Tabellen en hw-core-componenten in de nieuwe letter ---------- */
body.hw-design table.hw-table thead th,
body.hw-design table.hw-table tr.hw-table__head td {
	font-family: var(--hw-font-body) !important;
	letter-spacing: 0.01em;
}

/* ---------- Mobiel ---------- */
@media (max-width: 767px) {
	body.hw-design .post-inner,
	body.hw-design .post p,
	body.hw-design .post li {
		font-size: 1rem;
	}

	body.hw-design .elementor-element-a7174a9 .elementor-heading-title {
		font-size: 1rem !important;
	}

	body.hw-design .priced_block .btn_offer_block {
		min-height: 44px;
	}
}

/* Geen pilvormen: vaste, bescheiden radius. */
body.hw-design .hw-choice-label,
body.hw-design .hw-result-rank,
body.hw-design .hw-result-tags li,
body.hw-design .hwc86-native-badge {
	border-radius: 6px !important;
}

/* Hero: de Elementor-achtergrondlaag (wees naar een externe demo-afbeelding) blijft uit; de golflijnen komen uit ::before/::after. */
body.hw-design .elementor-element-37ba210d > .elementor-background-overlay {
	display: none !important;
}

body.hw-design .elementor-element-37ba210d > .elementor-container {
	position: relative;
	z-index: 2;
}

/* Reviewoverzicht: titels in inkt, niet vervaagd. */
body.hw-design .wpsm_recent_posts_list a,
body.hw-design .wpsm_recent_posts_list .col_item {
	color: var(--hw-ink-soft) !important;
	opacity: 1 !important;
}

/* Rehub-scrollanimatie (GSAP) staat in Elementor uit voor de hero; deze regel vangt een eventuele restant op. */
body.hw-design .elementor-element-37ba210d .rh-gsap-wrap * {
	visibility: visible !important;
	filter: none !important;
}

body.hw-design .elementor-element-37ba210d input[type="text"] {
	border: 1px solid var(--hw-line) !important;
	border-radius: var(--hw-radius-sm) !important;
	background: #fff !important;
}

body.hw-design .elementor-element-37ba210d button,
body.hw-design .elementor-element-37ba210d .wpsm-button,
body.hw-design .elementor-element-37ba210d input[type="submit"] {
	border-radius: var(--hw-radius-sm) !important;
}

/* hw-core-labels niet laten meegroeien met de lijsttekst van artikelen. */
body.hw-design .post .hw-badges li.hw-badge,
body.hw-design .hw-badges li.hw-badge {
	font-size: 0.8125rem !important;
	line-height: 1.4 !important;
}

body.hw-design .post .hw-related li,
body.hw-design .post details.hw-toc li {
	font-size: 0.9375rem;
}

/* Introtekst in de review- en artikelkop: rustig in plaats van groot en vet. */
body.hw-design .rh-300-content-area .rh_opacity_5.font120 {
	font-size: 1.0625rem !important;
	font-weight: 400 !important;
	line-height: 1.65 !important;
	opacity: 1 !important;
	color: var(--hw-ink-soft) !important;
	max-width: 46rem;
}

/* Hero: ondertitel rustig en gecentreerd. */
body.hw-design .elementor-element-a7174a9 .elementor-heading-title {
	font-family: var(--hw-font-body) !important;
	font-weight: 400 !important;
	text-align: center;
	letter-spacing: 0;
}

body.hw-design .post .hw-top5 li.hw-top5__item {
	font-size: 1rem;
}

/* Vulling van de deelcijferbalken goed zichtbaar. */
body.hw-design .elementor-progress-wrapper .elementor-progress-bar {
	background-color: #2f9e6b !important;
}

/* Teaser in de hero naar de Hosting Matchmaker. */
body.hw-design .hw-mm-teaser {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 14px auto 0;
	padding: 8px 14px;
	border: 1px dashed #296bef;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.75);
	color: #1f58cc !important;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.2s, transform 0.2s;
}

body.hw-design .elementor-element-43cc021a .elementor-widget-container {
	text-align: center;
}

body.hw-design .hw-mm-teaser:hover {
	background: #fff;
	transform: translateY(-1px);
}

body.hw-design .hw-mm-teaser__dots {
	display: inline-flex;
	gap: 4px;
}

body.hw-design .hw-mm-teaser__dots i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #296bef;
	animation: hw-dot 1.6s ease-in-out infinite;
}

body.hw-design .hw-mm-teaser__dots i:nth-child(2) { animation-delay: 0.2s; }
body.hw-design .hw-mm-teaser__dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes hw-dot {
	0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
	30% { opacity: 1; transform: translateY(-3px); }
}

html {
	scroll-behavior: smooth;
}

body.hw-design .elementor-element-f3a8c12 {
	scroll-margin-top: 80px;
}

/* Minder lucht tussen hero en plaats 1 van de top 5. */
body.hw-design .elementor-element-e47ccf9 > .elementor-container {
	padding-top: 0 !important;
}

body.hw-design .elementor-element-f9f8a50 {
	margin-top: 0 !important;
}

body.hw-design .elementor-element-f9f8a50 .elementor-heading-title {
	margin-bottom: 0.4rem !important;
}

body.hw-design .elementor-element-a884fac p {
	margin-bottom: 0 !important;
}

body.hw-design .elementor-element-e47ccf9 .hw-ranking-meta {
	margin: 0.5rem 0 0.9rem;
	text-align: center;
}

@media (max-width: 767px) {
	body.hw-design .elementor-element-a7174a9,
	body.hw-design .elementor-element-5eb0ae22 {
		padding: 0 16px;
	}

	body.hw-design .hw-mm-teaser {
		font-size: 0.875rem;
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	body.hw-design .hw-mm-teaser__dots i { animation: none; opacity: 1; }
}
