/*
Theme Name: Ronifica
Theme URI: https://www.ronifica-realestate.nl
Author: Ronifica Real Estate
Description: Blokthema voor Ronifica Real Estate, in de stijl van de oude website. Kop- en voettekst zijn aan te passen via Weergave → Editor.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ronifica
*/

/* ---------- Layout: sections sit edge to edge, like the old site ---------- */
.wp-site-blocks > * { margin-block-start: 0; }
.rf-main { margin-top: 0; }
.rf-sections > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.rf-sections > .alignfull + :not(.alignfull) { margin-top: var(--wp--preset--spacing--50); }

/* ---------- Header ---------- */
/* Sticky on the template-part wrapper: the header itself is only as tall as its wrapper. */
.wp-site-blocks > .wp-block-template-part:first-child {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 0; } }
.rf-header {
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.rf-header__bar { min-height: var(--wp--custom--header-height); }
.rf-header .wp-block-site-logo img { max-height: 70px; width: auto; }
.rf-nav-left { flex: 1 1 0; justify-content: flex-end; }
.rf-nav-right { flex: 1 1 0; justify-content: flex-start; }
.rf-header .wp-block-navigation .current-menu-item > a,
.rf-header .wp-block-navigation a[aria-current="page"] {
	color: var(--wp--preset--color--navy);
	border-bottom: 2px solid var(--wp--preset--color--navy);
}
.rf-header .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	padding: 0.5rem 0;
	min-width: 230px !important;
}
.rf-header .wp-block-navigation__submenu-container a { padding: 0.45rem 1.2rem !important; }

/* Mobile full-screen menu: left aligned, no dropdown shadows. */
.rf-header .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: flex-start;
	padding: 1.5rem 1.5rem 2rem;
}
.rf-header .wp-block-navigation__responsive-container.is-menu-open { background: #fff !important; }
.rf-header .is-menu-open .wp-block-navigation__responsive-container-content,
.rf-header .is-menu-open .wp-block-navigation__container { align-items: flex-start !important; text-align: left; }
.rf-header .is-menu-open .wp-block-navigation-item { align-items: flex-start !important; width: 100%; }
.rf-header .is-menu-open .wp-block-navigation-item__content { font-size: 1.15rem; color: var(--wp--preset--color--navy); }
.rf-header .is-menu-open .wp-block-navigation__submenu-container {
	box-shadow: none;
	padding: 0.25rem 0 0.5rem 1rem !important;
	min-width: 0 !important;
}
.rf-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1rem; color: #555; padding: 0.3rem 0 !important; }

/* Desktop: logo between two menus. Mobile: one hamburger with everything. */
@media (min-width: 600px) {
	.rf-nav-left .rf-mobile-only { display: none !important; }
}
@media (max-width: 599px) {
	.rf-nav-right { display: none !important; }
	.rf-header__bar { justify-content: space-between !important; }
	.rf-nav-left { order: 2; flex: 0 0 auto; }
	.rf-header .wp-block-site-logo { order: 1; }
	.rf-header .wp-block-site-logo img { max-height: 56px; }
	.rf-nav-left .rf-mobile-only { display: list-item; }
}

/* ---------- Page banners ---------- */
.rf-page-hero .rf-hero-title,
.rf-hero .rf-hero-title {
	color: #fff !important;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
	margin: 0;
}
.rf-page-hero .rf-hero-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.rf-page-hero p { color: #fff; font-weight: 400; }
.rf-title-band h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* Home slideshow: the gallery images fade one after another (assets/slideshow.js). */
.rf-hero {
	position: relative;
	min-height: clamp(360px, 62vh, 620px);
	display: flex !important;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-top: 0 !important;
	background: #0b2233;
}
.rf-hero .rf-slideshow {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
	display: block !important;
	gap: 0 !important;
}
.rf-hero .rf-slideshow > figure.wp-block-image {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.rf-hero .rf-slideshow > figure.wp-block-image:first-child,
.rf-hero .rf-slideshow > figure.is-active { opacity: 1; }
.rf-hero .rf-slideshow.is-running > figure:not(.is-active) { opacity: 0; }
.rf-hero .rf-slideshow img { width: 100% !important; height: 100% !important; object-fit: cover; }
.rf-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	pointer-events: none;
}
.rf-hero .rf-hero-title { position: relative; z-index: 2; letter-spacing: 0.02em; }
@media (prefers-reduced-motion: reduce) {
	.rf-hero .rf-slideshow > figure.wp-block-image { transition: none; }
}

/* ---------- Home ---------- */
.rf-sep { max-width: 960px !important; border-bottom-width: 2px !important; opacity: 0.8; margin-top: 3rem !important; }
.rf-counters { text-align: center; }
.rf-counter { font-size: clamp(2.2rem, 5vw, 3rem) !important; margin-bottom: 0 !important; }
.rf-counters p { margin-top: 0.2rem; }

.rf-services .wp-block-cover__inner-container { max-width: 1000px !important; }
.rf-on-photo { color: #fff !important; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.rf-cards { gap: 1.5rem !important; margin-bottom: 1.5rem !important; }
.rf-card {
	background: #fff;
	color: #111;
	border-radius: 16px;
	border-top: 5px solid var(--wp--preset--color--sky);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
	padding: 1.6rem 1.4rem;
	height: 100%;
	display: flex !important;
	flex-direction: column;
}
.rf-card h3 { font-size: 1.3rem; color: var(--wp--preset--color--navy) !important; }
.rf-card p { font-size: 1rem; flex: 1; }
.rf-cta-text { font-family: var(--wp--preset--font-family--montserrat); font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.has-navy-background-color .wp-block-button__link { background: #fff !important; color: var(--wp--preset--color--navy) !important; }

.rf-logos { gap: 2rem 3rem !important; }
.rf-logos .wp-block-image { margin: 0 !important; }
.rf-logos img { height: 64px !important; width: auto !important; max-width: 220px; object-fit: contain; }
.rf-logos img[src$=".svg"] { width: 200px !important; }

/* ---------- Content sections ---------- */
.rf-media-text { min-height: 420px; }
.rf-media-text .wp-block-media-text__content { padding: clamp(1.5rem, 5vw, 4rem) !important; }
.rf-media-text .wp-block-media-text__content > * { max-width: 560px; }
.rf-media-text h2, .rf-media-text h3, .rf-media-text h4 { margin-top: 1.4em; }
.rf-media-text .wp-block-media-text__content > :first-child { margin-top: 0; }
.has-navy-background-color :is(h1, h2, h3, h4),
.has-steel-background-color :is(h1, h2, h3, h4) { color: #fff; }
.has-navy-background-color a:not(.wp-block-button__link) { color: #fff; }

.rf-contact-cols { gap: 3rem !important; }
.rf-contact-cols h2 { font-size: clamp(1.4rem, 3vw, 1.7rem); }
.rf-contact-cols h3 { font-size: 1.2rem; margin-top: 1.8rem; }

/* ---------- Forms (ronifica-site plugin) ---------- */
.rf-form label { display: block; margin: 0 0 1rem; font-size: 0.95rem; font-weight: 400; }
.rf-form input[type=text], .rf-form input[type=email], .rf-form input[type=tel], .rf-form select, .rf-form textarea {
	display: block; width: 100%; margin-top: 0.3rem; padding: 0.7rem 0.8rem;
	border: 1px solid #d5dbe0; border-radius: 6px; font: inherit; font-weight: 400; background: #fff;
}
.rf-form :is(input, select, textarea) { box-sizing: border-box; max-width: 100%; }
.rf-form .rf-check { display: flex; gap: 0.5rem; align-items: flex-start; }
.rf-form .rf-check input { margin-top: 0.35rem; }
.rf-form button {
	border: 0; cursor: pointer; color: #fff; font: inherit; font-weight: 500;
	background: var(--wp--preset--gradient--navy-fade); border-radius: 50px; padding: 0.8rem 2.2rem;
	box-shadow: 0 3px 11px rgba(0, 0, 0, 0.25);
}
.rf-hp { position: absolute !important; left: -9999px !important; }

/* Sign-up forms (inschrijven / aanmelden) */
.rf-signup fieldset {
	border: 0; margin: 0 0 1.5rem; padding: 1.5rem;
	background: var(--wp--preset--color--light); border-radius: 12px;
}
.rf-signup legend {
	float: left; width: 100%; margin: 0 0 1rem; padding: 0;
	font-family: var(--wp--preset--font-family--montserrat); font-weight: 700; font-size: 1.15rem;
	color: var(--wp--preset--color--navy);
}
.rf-signup .rf-grid { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.rf-signup .rf-field { margin: 0 0 0.9rem; }
.rf-signup .rf-field span { display: block; }
.rf-signup .rf-wide { grid-column: 1 / -1; }
.rf-signup input[type=date], .rf-signup input[type=number] {
	display: block; width: 100%; margin-top: 0.3rem; padding: 0.7rem 0.8rem;
	border: 1px solid #d5dbe0; border-radius: 6px; font: inherit; font-weight: 400; background: #fff;
}
.rf-price { background: #fff8e6; border-left: 4px solid var(--wp--preset--color--coral); padding: 0.8rem 1rem; border-radius: 6px; }
.rf-notice:not(.is-success):not(.is-error) { background: #eef5fa; color: var(--wp--preset--color--navy); }
@media (max-width: 640px) { .rf-signup .rf-grid { grid-template-columns: 1fr; } }

/* Choice cards (inschrijven-woningzoekende) */
.rf-choice .wp-block-column { background: var(--wp--preset--color--light); border-radius: 16px; padding: 2rem 1.5rem; text-align: center; border-top: 5px solid var(--wp--preset--color--sky); }
.rf-notice { padding: 0.8rem 1rem; border-radius: 6px; font-weight: 400; }
.rf-notice.is-success { background: #e6f4ea; color: #1e6b34; }
.rf-notice.is-error { background: #fdecea; color: #a1281c; }

/* ---------- Footer ---------- */
.rf-footer a { color: #fff; text-decoration: none; }
.rf-footer a:hover { text-decoration: underline; color: #fff; }
.rf-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 0.6rem; }
.rf-footer p { font-size: 0.95rem; margin: 0.15rem 0; font-weight: 400; }
.rf-footer-logo img { border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 6px; padding: 8px; background: #013350; max-width: 140px; }
.rf-footer-bottom { font-size: 0.85rem; opacity: 0.85; }

/* Listing plugin: match the site colours */
:root { --rpw-primary: #024267; --rpw-accent: #f26554; }
