/*
Theme Name:   Pendel Afbouw (Astra Child)
Description:  Child theme van Astra dat de look & feel van de oude Avada 3.4-site van Pendel Afbouw nabouwt. Bevat vervangers voor de Avada/Fusion-shortcodes [fullwidth], [one_half], [one_third] e.d., zodat bestaande pagina-inhoud blijft werken.
Template:     astra
Version:      1.1.0
Requires PHP: 8.1
Text Domain:  pendel-astra-child
*/

/* ==========================================================================
   Lettertypes (lokaal gehost, geen Google-verbinding nodig)
   ========================================================================== */
@font-face { font-family: "Federo"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/federo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-latin-700-italic.woff2") format("woff2"); }

/* ==========================================================================
   Huisstijl – waarden overgenomen uit de Avada-instellingen van de oude site
   ========================================================================== */
:root {
	--pendel-blauw:        #0367af;  /* H1, links, actief menu-item */
	--pendel-donker:       #333333;  /* H2-H6, link-hover */
	--pendel-tekst:        #747474;  /* bodytekst */
	--pendel-header-bg:    #545353;  /* header */
	--pendel-footer-bg:    #282a2b;  /* copyrightbalk */
	--pendel-footer-rand:  #4b4c4d;
	--pendel-footer-tekst: #8c8989;
	--pendel-footer-link:  #bfbfbf;
	--pendel-breedte:      940px;    /* contentbreedte oude site */
	--pendel-font-body:    "PT Sans", Arial, Helvetica, sans-serif;
	--pendel-font-kop:     "Federo", Arial, Helvetica, sans-serif;
	--pendel-tekst-maat:   13px;     /* origineel 13px; 15px leest prettiger op mobiel */
}

body,
.ast-separate-container,
.ast-plain-container,
#content,
.site-content {
	background-color: #fff;
}

body,
button,
input,
select,
textarea {
	font-family: var(--pendel-font-body);
	font-size: var(--pendel-tekst-maat);
	line-height: 20px;
	color: var(--pendel-tekst);
}

/* Contentbreedte 940px zoals de oude site */
.site-content > .ast-container,
.site-below-footer-wrap .ast-builder-grid-row,
.ast-primary-header-bar .site-primary-header-wrap {
	max-width: calc(var(--pendel-breedte) + 40px);
}

a { color: var(--pendel-blauw); }
a:hover,
a:focus { color: var(--pendel-donker); }

/* ==========================================================================
   Koppen
   ========================================================================== */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6,
h1, h2, h3, h4, h5, h6 {
	font-family: var(--pendel-font-kop);
	font-weight: 400;
	text-transform: none;
}

.entry-content h1, h1 { font-size: 32px; line-height: 48px; color: var(--pendel-blauw); margin: 20px 0 10px; }
.entry-content h2, h2 { font-size: 23px; line-height: 27px; color: var(--pendel-donker); margin: 30px 0 20px; }
.entry-content h3, h3 { font-size: 20px; line-height: 24px; color: var(--pendel-donker); margin: 10px 0 17px; }
.entry-content h4, h4 { font-size: 13px; line-height: 20px; color: var(--pendel-donker); margin: 10px 0; }
.entry-content h5, h5 { font-size: 12px; line-height: 18px; color: var(--pendel-donker); }
.entry-content h6, h6 { font-size: 11px; line-height: 17px; color: var(--pendel-donker); }

.entry-content p { margin-bottom: 20px; }

/* ==========================================================================
   Header (donkergrijs, logo links, groot menu in Federo rechts)
   ========================================================================== */
#masthead .ast-primary-header-bar,
#masthead .main-header-bar,
#masthead .ast-mobile-header-wrap .ast-primary-header-bar {
	background-color: var(--pendel-header-bg);
	border-bottom: 0;
}

#masthead .site-primary-header-wrap { min-height: 172px; }

#masthead .custom-logo-link img,
#masthead .site-logo-img img {
	max-width: 225px;
	width: 225px;
	height: auto;
	margin: 11px 0;
}

#masthead .main-header-menu > .menu-item > .menu-link,
#masthead .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
	font-family: var(--pendel-font-kop);
	font-size: 26px;
	line-height: 83px;
	color: #fff;
	padding: 0 0 0 35px;
	border: 0;
}

#masthead .main-header-menu > .menu-item:hover > .menu-link,
#masthead .main-header-menu > .menu-item > .menu-link:focus,
#masthead .main-header-menu > .current-menu-item > .menu-link,
#masthead .main-header-menu > .current-menu-ancestor > .menu-link,
#masthead .main-header-menu > .current_page_item > .menu-link {
	color: var(--pendel-blauw);
	background: transparent;
}

/* Submenu's (oude site: lichtgrijs, 170px breed) */
#masthead .main-header-menu .sub-menu {
	background-color: #edebeb;
	border-top: 2px solid var(--pendel-blauw);
	width: 170px;
}
#masthead .main-header-menu .sub-menu .menu-link {
	font-family: var(--pendel-font-body);
	font-size: 13px;
	line-height: 20px;
	color: var(--pendel-donker);
	padding: 8px 15px;
	border-bottom: 1px solid #dcdadb;
}
#masthead .main-header-menu .sub-menu .menu-item:hover > .menu-link,
#masthead .main-header-menu .sub-menu .current-menu-item > .menu-link {
	background-color: #f5f4f4;
}

/* Mobiel menu */
#masthead .ast-mobile-header-wrap .site-primary-header-wrap { min-height: 0; }
#masthead .ast-mobile-header-wrap .custom-logo-link img { width: 150px; max-width: 150px; margin: 8px 0; }
#masthead .menu-toggle,
#masthead .menu-toggle .ast-mobile-svg { color: #fff; fill: #fff; background: transparent; }
#masthead .ast-mobile-header-content,
#masthead .ast-mobile-header-content .main-header-menu {
	background-color: var(--pendel-header-bg);
}
#masthead .ast-mobile-header-content .main-header-menu .menu-link {
	font-family: var(--pendel-font-kop);
	font-size: 20px;
	line-height: 1.4;
	color: #fff;
	padding: 12px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}
#masthead .ast-mobile-header-content .main-header-menu .current-menu-item > .menu-link {
	color: #8fc6ee; /* lichtere variant van het blauw, leesbaar op grijs */
}

/* ==========================================================================
   Content
   ========================================================================== */
.site-content .ast-container { padding-top: 8px; padding-bottom: 40px; }
.ast-plain-container.ast-no-sidebar #primary,
.ast-separate-container #primary { margin-top: 0; margin-bottom: 0; padding: 0; }
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
	background: transparent;
	padding: 0;
}

/* LEES MEER-links onder de diensten */
.entry-content .one_third p:last-child a { text-transform: uppercase; text-decoration: none; }

/* ==========================================================================
   Avada-kolommen en fullwidth-box (gerenderd door inc/avada-shortcodes.php)
   ========================================================================== */
.entry-content .fullwidth-box {
	padding: 20px 0;
	background-size: cover;
	background-repeat: no-repeat;
}
.entry-content .fullwidth-box .avada-row { max-width: var(--pendel-breedte); margin: 0 auto; }

.one_half, .one_third, .two_third, .one_fourth, .three_fourth {
	float: left;
	margin-right: 4%;
	margin-bottom: 20px;
	position: relative;
}
.one_half     { width: 48%; }
.one_third    { width: 30.6666%; }
.two_third    { width: 65.3332%; }
.one_fourth   { width: 22%; }
.three_fourth { width: 74%; }
.one_half.last, .one_third.last, .two_third.last,
.one_fourth.last, .three_fourth.last { margin-right: 0; }

.clearboth {
	clear: both;
	display: block;
	height: 0;
	width: 100%;
	overflow: hidden;
	font-size: 0;
	line-height: 0;
}

.entry-content img { max-width: 100%; height: auto; }
.entry-content img.alignleft { float: left; margin: 0 20px 20px 0; }
.entry-content img.alignright { float: right; margin: 0 0 20px 20px; }

/* Testimonials-slider naast de introtekst */
.simple-testimonials-showcase .sts-wrap .quote-layout .testimonial-content { white-space: pre-line; }

/* ==========================================================================
   Contactpagina
   ========================================================================== */
.pendel-kaart { margin: 0 0 30px; }
.pendel-kaart iframe { display: block; width: 100%; height: 350px; border: 0; }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid #d2d2d2;
	padding: 8px 10px;
	color: var(--pendel-tekst);
}
.wpcf7-form input[type="submit"],
.entry-content .button {
	font-family: var(--pendel-font-body);
	background: var(--pendel-blauw);
	border: 1px solid var(--pendel-blauw);
	color: #fff;
	padding: 10px 22px;
	cursor: pointer;
}
.wpcf7-form input[type="submit"]:hover,
.entry-content .button:hover { background: var(--pendel-donker); border-color: var(--pendel-donker); }

/* ==========================================================================
   Footer (alleen copyrightbalk, zoals de oude site)
   ========================================================================== */
.site-footer .site-below-footer-wrap,
.site-footer .ast-builder-grid-row-container.site-below-footer-wrap {
	background-color: var(--pendel-footer-bg);
	border-top: 1px solid var(--pendel-footer-rand);
	padding-top: 18px;
	padding-bottom: 8px;
}
.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p {
	font-size: 12px;
	color: var(--pendel-footer-tekst);
}
.site-footer a { color: var(--pendel-footer-link); }
.site-footer a:hover { color: #96bd0d; }

/* ==========================================================================
   Responsive – kolommen onder elkaar op kleine schermen (zoals Avada deed)
   ========================================================================== */
@media (max-width: 800px) {
	.one_half, .one_third, .two_third, .one_fourth, .three_fourth {
		float: none;
		width: 100%;
		margin-right: 0;
	}
	.one_third img { display: block; margin: 0 auto; }
	.entry-content img.alignleft,
	.entry-content img.alignright { float: none; display: block; margin: 0 auto 20px; }
	.entry-content h1, h1 { font-size: 26px; line-height: 34px; }
	.entry-content h2, h2 { font-size: 20px; line-height: 26px; }
}

/* ==========================================================================
   Reviews-slider [pendel_reviews] (vervangt Simple Testimonials Showcase)
   ========================================================================== */
.pendel-reviews { position: relative; padding-top: 10px; }
.pendel-reviews-icoon {
	font-family: Georgia, serif;
	font-size: 70px;
	line-height: 1;
	height: 40px;
	color: #888;
	margin-bottom: 10px;
}
.pendel-reviews-track { display: grid; }
.pendel-review { margin: 0; }
.pendel-reviews.is-slider .pendel-review {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s ease, visibility .4s;
}
.pendel-reviews.is-slider .pendel-review.is-actief { opacity: 1; visibility: visible; }
.pendel-reviews:not(.is-slider) .pendel-review + .pendel-review { margin-top: 30px; }
.pendel-review blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-style: normal;
	color: #919191;
}
.pendel-review blockquote p { margin-bottom: 12px; }
.pendel-review figcaption { color: #919191; font-weight: 700; margin-top: 4px; }
.pendel-reviews-dots { display: flex; gap: 8px; margin-top: 18px; }
.pendel-reviews-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d0d0d0;
	cursor: pointer;
}
.pendel-reviews-dots button[aria-current="true"] { background: #3399fb; }
