/*!
Theme Name: Truck Cleaning Veghel
Theme URI: https://truckcleaningveghel.nl
Author: Sander van Gestel
Description: Custom, responsive, ACF-powered theme for Truck Cleaning Veghel. A modern, editable rebuild of the original static site — pixel-faithful, mobile-friendly and SEO-ready.
Version: 1.0.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tcv
*/

/* =========================================================================
   Design tokens
   ========================================================================= */
:root {
	--tcv-teal: #679eae;
	--tcv-teal-dark: #4d7f8d;
	--tcv-highlight: #bfdee4;
	--tcv-red: #b52323;
	--tcv-ink: #2b2b2b;
	--tcv-line: #848484;
	--tcv-content: 780px;
	--tcv-shell: 860px;
	--tcv-radius: 0;                /* sharp corners — this site has always had them */
	--font-head: "Share", Helvetica, Verdana, sans-serif;
	--font-body: Helvetica, Arial, Verdana, sans-serif;
}

/* =========================================================================
   Base
   ========================================================================= */
* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--tcv-ink);
	line-height: 1.55;
	background-color: #e9e5dc;
	background-image: url("assets/img/tcvback.png"), url("assets/img/tcvpattern.png");
	background-repeat: repeat-y, repeat;
	background-position: center top, top left;
	background-attachment: fixed;
}

img { max-width: 100%; height: auto; }
a { color: var(--tcv-teal-dark); }

h1, h2, h3, h4, h5 {
	font-family: var(--font-head);
	font-weight: 400;
	letter-spacing: -1.5px;
	line-height: 1.1;
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 9999;
	background: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }
.nowrap { white-space: nowrap; }

/* =========================================================================
   Shell / layout
   ========================================================================= */
.site-wrap {
	max-width: var(--tcv-shell);
	margin: 0 auto;
	padding: 0 12px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	width: 100%;
	max-width: var(--tcv-content);
	margin: 0 auto;
	padding: 24px 28px 32px;
	background: url("assets/img/tcvwhite.png") repeat, #fdfdfb;
	box-shadow: 0 2px 18px rgba(0, 0, 0, .12);
}

.page-title { text-align: center; color: var(--tcv-red); margin: .2em 0 .6em; font-size: 34px; }

/* =========================================================================
   Rotator (header slideshow)
   ========================================================================= */
.rotator {
	position: relative;
	margin: 12px auto 8px;
	width: 100%;
	max-width: var(--tcv-content);
	aspect-ratio: 780 / 166;
}
.rotator__list { list-style: none; margin: 0; padding: 0; height: 100%; }
.rotator__item {
	position: absolute; inset: 0;
	opacity: 0; transition: opacity 1s ease;
}
.rotator__item.is-active { opacity: 1; }
.rotator__item img {
	width: 100%; height: 100%; object-fit: cover;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
/* No-JS fallback: show first slide */
.no-js .rotator__item:first-child { opacity: 1; }

/* =========================================================================
   Navigation (styled to echo the original menu bar, but responsive)
   ========================================================================= */
.site-header { width: 100%; max-width: var(--tcv-content); margin: 0 auto 0; position: relative; }

.main-nav {
	/* Blue "aqua glass" bar echoing the original menu sprite. */
	background: linear-gradient(180deg, #6f9fb3 0%, #4a7688 48%, #386070 52%, #4d7f92 100%);
	border: 1px solid #2f5361;
	border-top-color: #8bb3c4;
	border-radius: var(--tcv-radius) var(--tcv-radius) 0 0;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 3px 8px rgba(0, 0, 0, .28);
	overflow: hidden;
}
.nav-menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center;
}
.nav-menu li { margin: 0; }
.nav-menu a {
	display: block;
	font-family: var(--font-head);
	font-size: 18px;
	letter-spacing: -1px;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
	padding: 11px 18px;
	border-left: 1px solid rgba(255, 255, 255, .14);
	border-right: 1px solid rgba(0, 0, 0, .16);
}
.nav-menu li:first-child a { border-left: 0; }
.nav-menu li:last-child a { border-right: 0; }
.nav-menu a:hover,
.nav-menu a:focus { background: rgba(255, 255, 255, .18); }
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
	background: rgba(255, 255, 255, .26);
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, .22);
}

.nav-toggle {
	display: none;
	width: 100%;
	align-items: center;
	gap: 12px;
	background: linear-gradient(180deg, #6f9fb3 0%, #4a7688 48%, #386070 52%, #4d7f92 100%);
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
	border: 1px solid #2f5361;
	border-top-color: #8bb3c4;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
	padding: 12px 16px;
	font-family: var(--font-head);
	font-size: 18px;
	letter-spacing: -.5px;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: var(--tcv-radius);
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	display: block; width: 22px; height: 2px; background: #fff; position: relative;
}
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }

/* =========================================================================
   Headings inside content
   ========================================================================= */
.section-heading {
	font-size: 44px; text-align: center;
	margin: 28px 0 16px; color: var(--tcv-ink);
}
.site-main h1 {
	font-size: 28px;
	border-bottom: 1px solid var(--tcv-teal);
	padding-bottom: 4px; margin: 0 0 10px;
}
.pull-quote {
	font-family: var(--font-head);
	font-style: italic; font-size: 24px; text-align: center;
	color: var(--tcv-teal-dark);
	margin: 18px auto 26px; max-width: 60ch; border: 0;
}

/* =========================================================================
   Container panels (text + image blocks, decorative corners)
   ========================================================================= */
.container {
	position: relative;
	margin: 26px 0;
	padding: 26px;
	background:
		url("assets/img/containertop.png") no-repeat top left,
		url("assets/img/containerbottom.png") no-repeat bottom right,
		url("assets/img/containercontentpattern.png") repeat, #ffffff;
	border: 1px solid #e2ddd0;
	border-radius: var(--tcv-radius);
}
.container__inner {
	display: flex; gap: 24px; align-items: flex-start;
}
.container--right .container__inner { flex-direction: row-reverse; }
.container__media { flex: 0 0 40%; max-width: 40%; }
.container__media img { box-shadow: 0 1px 8px rgba(0,0,0,.15); }
.container__body { flex: 1 1 auto; }
.container__body p:first-of-type { margin-top: 0; }

/* =========================================================================
   Opening hours (single-sourced, today highlighted)
   ========================================================================= */
.container--hours,
.container--contact { text-align: center; }

.hours-grid,
.contact-grid {
	display: flex; flex-wrap: wrap; gap: 24px; justify-content: center;
	align-items: flex-start;
}

.openingstijden {
	background: #fff;
	border: 2px solid var(--tcv-line);
	width: 320px; max-width: 100%;
	text-align: left;
	overflow: hidden;
}
/* Holiday hours table — red accent so it reads as the exception. */
.openingstijden--vakantie { border-color: var(--tcv-red); }
.openingstijden--vakantie h3 { background: var(--tcv-red); }

/* Holiday notice (title + explanation) shown above the hours on the homepage. */
.holiday-notice {
	background: #fff;
	border: 2px solid var(--tcv-red);
	padding: 16px 22px;
	margin: 0 auto 22px;
	max-width: 640px;
	text-align: center;
}
.holiday-notice__titel { color: var(--tcv-red); font-size: 30px; margin: 0 0 6px; }
.holiday-notice__tekst { font-size: 17px; }
.holiday-notice__tekst strong.red { color: var(--tcv-red); }
.holiday-notice__tekst p:last-child { margin-bottom: 0; }
.openingstijden h3 {
	font-size: 22px; margin: 0;
	padding: 10px 14px;
	background: var(--tcv-teal); color: #fff;
	letter-spacing: -1px;
}
.openingstijden .lijst { list-style: none; margin: 0; padding: 0; }
.openingstijden .lijst li {
	display: flex; justify-content: space-between;
	padding: 8px 14px;
	border-bottom: 1px solid #dcdcdc;
	font-weight: 700;
}
.openingstijden .lijst li:last-child { border-bottom: 0; }
.openingstijden .lijst li.dag { background: var(--tcv-highlight); }
.openingstijden .uren { font-weight: 400; color: #000; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact-table { border-collapse: collapse; text-align: left; margin: 0 auto; }
.contact-table th { text-align: right; padding: 6px 16px 6px 0; vertical-align: top; color: var(--tcv-teal-dark); }
.contact-table td { padding: 6px 0; }

/* =========================================================================
   Checklist (tick icons)
   ========================================================================= */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
	padding: 9px 0 9px 32px;
	background: url("assets/img/tickbox.png") no-repeat left 6px;
	border-bottom: 1px solid #ececec;
}
.checklist li:last-child { border-bottom: 0; }

/* =========================================================================
   Locations
   ========================================================================= */
.locatie .locatie__side {
	display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; align-items: flex-start;
}
.locatie__naam { color: var(--tcv-teal-dark); }
.googlemaps {
	flex: 1 1 320px; border: 2px solid gray; overflow: hidden; line-height: 0;
}
.googlemaps iframe { width: 100%; min-height: 240px; border: 0; }

/* =========================================================================
   Gallery slider
   ========================================================================= */
.gallery-slider { position: relative; overflow: hidden; border-radius: var(--tcv-radius); }
.gallery-slider__track {
	display: flex; margin: 0; padding: 0; list-style: none;
	transition: transform .5s ease;
}
.gallery-slider__slide { flex: 0 0 100%; }
.gallery-slider__slide img { width: 100%; display: block; }
.gallery-slider__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	background: rgba(103,158,174,.85); color: #fff; border: 0;
	width: 44px; height: 64px; font-size: 30px; cursor: pointer;
}
.gallery-slider__nav--prev { left: 8px; }
.gallery-slider__nav--next { right: 8px; }
.gallery-slider__nav:hover { background: var(--tcv-teal-dark); }
/* No-JS fallback: horizontal scroll */
.no-js .gallery-slider__track { overflow-x: auto; }

/* =========================================================================
   Products
   ========================================================================= */
.producten__kop { text-align: center; border: 0 !important; }
.producten__grid { display: grid; gap: 24px; }
.product { margin: 0; text-align: center; }
.product figcaption {
	font-family: var(--font-head); font-style: italic; font-size: 20px;
	color: var(--tcv-teal-dark); margin-top: 10px;
}

/* =========================================================================
   Holiday / closure banner
   ========================================================================= */
.banner {
	background: #fff; border: 2px solid var(--tcv-red); border-radius: var(--tcv-radius);
	padding: 18px 22px; margin: 20px 0; text-align: center;
}
.banner__titel { color: var(--tcv-red); font-size: 34px; margin: 0 0 8px; }
.banner__bericht { font-size: 18px; }
.banner__bericht strong.red { color: var(--tcv-red); }

/* =========================================================================
   Footer (fully vector: light text + inline SVG logo)
   ========================================================================= */
.site-footer {
	margin-top: auto;               /* pin to the bottom; gap above shows the page background */
	max-width: var(--tcv-content);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	background: linear-gradient(180deg, #2b2b2b 0%, #141414 55%);
	border-radius: var(--tcv-radius) var(--tcv-radius) 0 0;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 -2px 12px rgba(0, 0, 0, .25);
	color: #eaeaea;
}
.site-footer__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr; /* equal sides keep the logo dead-centre */
	align-items: center;
	gap: 20px;
	padding: 18px 28px;
}
.site-footer__copy,
.site-footer__credit {
	margin: 0;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 200;               /* echoes the original Helvetica Neue UltraLight */
	font-size: 14px;
	letter-spacing: .3px;
	color: #f2f2f2;
}
.site-footer__credit { text-align: right; }
.site-footer__mark {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	justify-self: center;
}
.site-footer__logo {
	width: 40px;
	height: auto;
	fill: #fff;
	display: block;
	transform: translateY(-3px);    /* optically centre the swoosh with the dots */
}
.site-footer__dots { display: inline-flex; gap: 9px; }
.site-footer__dots i {
	width: 6px; height: 6px; border-radius: 50%;
	background: #fff; display: block;
}

@media (max-width: 640px) {
	/* Keep the copyright, drop the "Website" callout; logo stays centred. */
	.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; }
	.site-footer__credit { display: none; }
	.site-footer__copy { text-align: center; }
	.site-footer__logo { width: 44px; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 760px) {
	.nav-toggle { display: flex; }
	.main-nav { display: none; }
	body.nav-open .main-nav { display: block; margin-top: 6px; border-radius: var(--tcv-radius); }
	.nav-menu { flex-direction: column; }
	.nav-menu a {
		text-align: center;
		border-left: 0; border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .14);
	}
	.nav-menu li:last-child a { border-bottom: 0; }

	.site-main { padding: 18px 16px 24px; }
	.container { padding: 18px; }
	.container__inner { flex-direction: column; }
	.container--right .container__inner { flex-direction: column; }
	.container__media { max-width: 100%; flex-basis: auto; }
	.section-heading { font-size: 32px; }
	.page-title { font-size: 26px; }
	.banner__titel { font-size: 26px; }
}
