/*
Theme Name:   Salient Child – WSV 't Waaltje
Theme URI:    https://wsvwaaltje.nl
Description:  Child theme voor WSV 't Waaltje. Huisstijl in de logokleuren plus hulpklassen voor WPBakery. Kleuren, lettertypes, header en footer stel je in via Salient → Opties; dit thema vult dat aan.
Author:       WSV 't Waaltje
Template:     salient
Version:      1.0.0
Text Domain:  salient-child-waaltje
*/

/* ==========================================================================
   1. Huisstijl (logokleuren)
   Pas hier een kleur aan en hij verandert overal waar de wsv-klassen
   gebruikt worden.
   ========================================================================== */

:root {
	--wsv-blauw:         #0065C4; /* hoofdkleur uit het logo */
	--wsv-blauw-donker:  #0B2F5A; /* koppen, tekst en footer */
	--wsv-lichtblauw:    #9FD1F9; /* golf in het logo */
	--wsv-ijsblauw:      #E5F1FD; /* lichte vlakken */
	--wsv-tekst:         #0B2F5A;
	--wsv-tekst-zacht:   #4A5878;
	--wsv-rand:          #DCE3F0;
	--wsv-achtergrond:   #F6F8FC;
	--wsv-wit:           #FFFFFF;

	--wsv-font-kop:   'Archivo', 'Helvetica Neue', Arial, sans-serif;
	--wsv-font-tekst: 'Inter', 'Helvetica Neue', Arial, sans-serif;

	--wsv-radius:      16px;
	--wsv-radius-groot: 20px;
}

/* ==========================================================================
   2. Algemeen
   ========================================================================== */

.main-content .wpb_text_column a:not(.nectar-button):not(.wsv-knop):not(.wsv-knop-wit) {
	color: var(--wsv-blauw);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.main-content .wpb_text_column a:not(.nectar-button):not(.wsv-knop):not(.wsv-knop-wit):hover {
	color: var(--wsv-blauw-donker);
}

/* ==========================================================================
   3. Secties (WPBakery-rij → "Extra klassenaam")
   ========================================================================== */

/* Blauwe sectie, zoals de kop bovenaan elke pagina */
.wpb_row.wsv-sectie-blauw,
.wpb_row.wsv-sectie-blauw .row-bg {
	background-color: var(--wsv-blauw) !important;
}

.wpb_row.wsv-sectie-blauw,
.wpb_row.wsv-sectie-blauw p,
.wpb_row.wsv-sectie-blauw li {
	color: #DCE4F4;
}

.wpb_row.wsv-sectie-blauw h1,
.wpb_row.wsv-sectie-blauw h2,
.wpb_row.wsv-sectie-blauw h3,
.wpb_row.wsv-sectie-blauw h4 {
	color: var(--wsv-wit);
}

/* Donkerblauwe sectie */
.wpb_row.wsv-sectie-donker,
.wpb_row.wsv-sectie-donker .row-bg {
	background-color: var(--wsv-blauw-donker) !important;
}

.wpb_row.wsv-sectie-donker,
.wpb_row.wsv-sectie-donker p,
.wpb_row.wsv-sectie-donker li {
	color: #BBC8E8;
}

.wpb_row.wsv-sectie-donker h1,
.wpb_row.wsv-sectie-donker h2,
.wpb_row.wsv-sectie-donker h3,
.wpb_row.wsv-sectie-donker h4 {
	color: var(--wsv-wit);
}

/* Lichte sectie */
.wpb_row.wsv-sectie-licht,
.wpb_row.wsv-sectie-licht .row-bg {
	background-color: var(--wsv-achtergrond) !important;
}

/* Witte sectie met dunne lijnen boven en onder */
.wpb_row.wsv-sectie-wit,
.wpb_row.wsv-sectie-wit .row-bg {
	background-color: var(--wsv-wit) !important;
}

.wpb_row.wsv-sectie-wit {
	border-top: 1px solid var(--wsv-rand);
	border-bottom: 1px solid var(--wsv-rand);
}

/* ==========================================================================
   4. Kaarten (WPBakery-kolom of tekstblok → "Extra klassenaam")
   ========================================================================== */

.wsv-kaart,
.wpb_column.wsv-kaart > .vc_column-inner {
	background: var(--wsv-wit);
	border: 1px solid var(--wsv-rand);
	border-radius: var(--wsv-radius);
	padding: 24px;
}

.wpb_column.wsv-kaart {
	background: none;
	border: 0;
	padding: 0;
}

.wsv-kaart-licht,
.wpb_column.wsv-kaart-licht > .vc_column-inner {
	background: var(--wsv-ijsblauw);
	border-radius: var(--wsv-radius);
	padding: 24px;
}

.wpb_column.wsv-kaart-licht {
	background: none;
	padding: 0;
}

.wsv-kaart h3,
.wsv-kaart-licht h3 {
	margin-bottom: 8px;
}

.wsv-kaart p:last-child,
.wsv-kaart-licht p:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}

/* ==========================================================================
   5. Tekstonderdelen
   ========================================================================== */

/* Klein kopje boven een titel: "WATERSPORTVERENIGING · BARENDRECHT" */
.wsv-bovenkop {
	display: block;
	font-family: var(--wsv-font-tekst);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wsv-blauw);
	margin-bottom: 12px;
}

.wsv-sectie-blauw .wsv-bovenkop,
.wsv-sectie-donker .wsv-bovenkop {
	color: #DCE4F4;
}

/* Groot getal met uitleg eronder, bijv. "68 ligplaatsen" */
.wsv-cijfer {
	display: block;
	font-family: var(--wsv-font-kop);
	font-weight: 800;
	font-size: 36px;
	line-height: 1.1;
	color: var(--wsv-blauw);
}

.wsv-cijfer + span,
.wsv-cijfer-uitleg {
	display: block;
	font-size: 15px;
	color: var(--wsv-tekst-zacht);
}

/* Label / pil, bijv. "Inschrijven gesloten · wachtlijst" */
.wsv-label {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--wsv-lichtblauw);
	color: var(--wsv-blauw-donker);
}

/* Meldingsbalk */
.wsv-melding {
	background: var(--wsv-ijsblauw);
	border-radius: var(--wsv-radius);
	padding: 20px 24px;
	color: var(--wsv-tekst);
}

.wsv-melding p {
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   6. Knoppen (een link in een tekstblok de klasse wsv-knop geven)
   ========================================================================== */

a.wsv-knop,
a.wsv-knop-wit,
a.wsv-knop-rand {
	display: inline-block;
	font-family: var(--wsv-font-tekst);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	padding: 15px 26px;
	border-radius: 999px;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease;
}

a.wsv-knop {
	background: var(--wsv-blauw);
	color: var(--wsv-wit) !important;
}

a.wsv-knop:hover {
	background: var(--wsv-blauw-donker);
}

a.wsv-knop-wit {
	background: var(--wsv-wit);
	color: var(--wsv-blauw) !important;
}

a.wsv-knop-wit:hover {
	background: var(--wsv-ijsblauw);
}

a.wsv-knop-rand {
	border: 1px solid currentColor;
	color: inherit !important;
	padding: 14px 25px;
}

/* ==========================================================================
   7. Tarieventabel (tabel in een tekstblok de klasse wsv-tabel geven)
   ========================================================================== */

table.wsv-tabel {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--wsv-wit);
	border: 1px solid var(--wsv-rand);
	border-radius: var(--wsv-radius-groot);
	overflow: hidden;
	margin: 0;
}

table.wsv-tabel td,
table.wsv-tabel th {
	padding: 20px 28px;
	border: 0;
	border-bottom: 1px solid #E6EBF5;
	text-align: left;
	vertical-align: middle;
	color: var(--wsv-tekst);
}

table.wsv-tabel tr:last-child td {
	border-bottom: 0;
}

table.wsv-tabel td:last-child {
	text-align: right;
	white-space: nowrap;
	font-family: var(--wsv-font-kop);
	font-weight: 700;
	font-size: 22px;
}

table.wsv-tabel small {
	display: block;
	font-size: 14px;
	color: var(--wsv-tekst-zacht);
}

/* ==========================================================================
   8. Foto's met afgeronde hoeken (afbeelding → "Extra klassenaam")
   ========================================================================== */

.wsv-foto img,
img.wsv-foto {
	border-radius: var(--wsv-radius-groot);
}

/* ==========================================================================
   9. Contact Form 7 in de huisstijl
   ========================================================================== */

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
	border: 1px solid #A9B8D8 !important;
	border-radius: 10px !important;
	background: var(--wsv-wit) !important;
	color: var(--wsv-tekst) !important;
	min-height: 48px;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
	border-color: var(--wsv-blauw) !important;
	outline: 2px solid var(--wsv-ijsblauw);
}

.wpcf7-form input[type="submit"] {
	background: var(--wsv-blauw) !important;
	color: var(--wsv-wit) !important;
	border-radius: 999px !important;
	padding: 15px 28px !important;
	font-weight: 600;
}

.wpcf7-form input[type="submit"]:hover {
	background: var(--wsv-blauw-donker) !important;
}

/* ==========================================================================
   10. Mobiel
   ========================================================================== */

@media only screen and (max-width: 690px) {
	.wsv-cijfer {
		font-size: 30px;
	}

	table.wsv-tabel td,
	table.wsv-tabel th {
		padding: 16px 18px;
	}

	table.wsv-tabel td:last-child {
		font-size: 19px;
	}
}
