/*
Theme Name:   Chiro Hulshout
Description:  Child theme for the Chiro Hulshout website.
Template:     kadence
Version:      0.7.1
Text Domain:  chiro-hulshout
*/

/*
 * Follows the Chiro huisstijlgids (chiro.be/over-chiro/promomateriaal/chirologo-huisstijl):
 * - 3 bewegingskleuren: red PMS 186, navy PMS 282, beige PMS 467
 * - Myriad Pro / Arial Narrow; PT Sans (Narrow) is the free web stand-in
 * - Titles in condensed capitals, a short red stripe as recurring element
 *
 * These override the Kadence palette, so palette changes in the
 * Customizer have no effect: change the values here instead.
 */
:root {
	--chiro-red: #e1143c;
	--chiro-navy: #00124d;
	--chiro-beige: #e4d096;
	--chiro-beige-light: #f4ecd2;
	--chiro-paper: #fbf8f0;

	--global-palette1: var(--chiro-navy);   /* links, buttons */
	--global-palette2: var(--chiro-red);    /* hover */
	--global-palette3: var(--chiro-navy);   /* headings */
	--global-palette4: #1f2a44;             /* body text */
	--global-palette5: #4a5470;
	--global-palette6: #8a8f9e;             /* borders, muted text */
	--global-palette7: var(--chiro-beige-light); /* page title band */
	--global-palette8: var(--chiro-paper);  /* page background */
	--global-palette9: #ffffff;

	--global-body-font-family: "PT Sans", "Myriad Pro", "Arial Narrow", sans-serif;
	--global-heading-font-family: "PT Sans Narrow", "Myriad Pro Condensed", "Arial Narrow", sans-serif;
}

body {
	font-size: 18px;
}

/* Tussentitels: bold condensed */
h2,
h3,
h4 {
	font-family: var(--global-heading-font-family);
	color: var(--chiro-navy);
	font-weight: 700;
}

/* Titels: bold condensed capitals */
h1,
.entry-hero .entry-title {
	font-family: var(--global-heading-font-family);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--chiro-navy);
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	line-height: 1.05;
}

/* The red stripe from the huisstijl, under page titles and section titles */
.entry-hero .entry-title::after,
.chiro-section h2::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 4px;
	margin-top: 0.6rem;
	background: var(--chiro-red);
}

.entry-hero .entry-title::after,
.chiro-section h2.has-text-align-center::after {
	margin-left: auto;
	margin-right: auto;
}

/* Lists with the red arrow bullets from the huisstijl */
.entry-content ul.wp-block-list {
	list-style: none;
	padding-left: 1.25rem;
}

.entry-content ul.wp-block-list > li::before {
	content: "\25B8";
	color: var(--chiro-red);
	display: inline-block;
	width: 1.25rem;
	margin-left: -1.25rem;
}

/* Header: white with a red stripe underneath */
#masthead {
	background: #fff;
	border-bottom: 4px solid var(--chiro-red);
}

.site-branding .site-title {
	font-family: var(--global-heading-font-family);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--chiro-navy);
	letter-spacing: 0.02em;
}

.main-navigation .primary-menu-container > ul > li > a {
	color: var(--chiro-navy);
	font-family: var(--global-heading-font-family);
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
}

.main-navigation .primary-menu-container > ul > li > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a {
	color: var(--chiro-red);
}

/* Dropdown menus */
#masthead .header-navigation ul ul.sub-menu {
	background: #fff;
	border-top: 4px solid var(--chiro-red);
	box-shadow: 0 8px 20px rgba(0, 18, 77, 0.12);
}

#masthead .header-navigation .sub-menu li.menu-item > a {
	color: var(--chiro-navy);
	font-weight: 400;
}

#masthead .header-navigation .sub-menu li.menu-item > a:hover,
#masthead .header-navigation .sub-menu li.current-menu-item > a {
	background: var(--chiro-beige-light);
	color: var(--chiro-red);
}

/* Mobile menu drawer */
#mobile-drawer .drawer-inner {
	background: var(--chiro-navy);
}

#mobile-drawer .mobile-navigation ul li a {
	color: #fff;
}

#mobile-drawer .mobile-navigation ul li.current-menu-item > a,
#mobile-drawer .mobile-navigation ul li a:hover {
	color: var(--chiro-beige);
}

/* Buttons */
.wp-block-button__link,
.button,
button,
input[type="submit"] {
	background: var(--chiro-red);
	color: #fff;
	border-radius: 3px;
	font-family: var(--global-heading-font-family);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.wp-block-button__link:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--chiro-navy);
	color: #fff;
}

/* Links in text */
.entry-content a:not(.wp-block-button__link) {
	color: var(--chiro-navy);
	text-decoration-color: var(--chiro-red);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.entry-content a:not(.wp-block-button__link):hover {
	color: var(--chiro-red);
}

/* Photo + text blocks on Jongens / Meisjes */
.wp-block-media-text {
	margin-bottom: 2.5rem;
}

.wp-block-media-text__media:empty {
	min-height: 220px;
	background: var(--chiro-beige-light);
	border-radius: 3px;
}

/* Home page sections (classes set on Group blocks) */
.chiro-hero {
	background: var(--chiro-red);
	color: #fff;
	text-align: center;
	padding: clamp(3rem, 8vw, 6rem) 1.5rem;
	margin-top: 0;
}

.chiro-hero h1 {
	color: #fff;
	font-size: clamp(2.5rem, 7vw, 4.5rem);
	margin: 0 0 0.75rem;
}

.chiro-hero__lead {
	font-size: 1.25rem;
	max-width: 36rem;
	margin: 0 auto 2rem;
}

.chiro-hero .wp-block-buttons {
	justify-content: center;
}

.chiro-hero .wp-block-button__link {
	background: #fff;
	color: var(--chiro-navy);
}

.chiro-hero .wp-block-button__link:hover {
	background: var(--chiro-navy);
	color: #fff;
}

.entry-content .chiro-hero .is-style-outline .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 2px solid #fff;
}

.chiro-section {
	padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
	margin: 0;
}

/* Keep content centred inside the full-width bands */
.entry-content .chiro-hero,
.entry-content .chiro-section {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.chiro-hero > *,
.chiro-section > * {
	max-width: 1100px;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Kept the "mint" class name used in the page content; it is beige now */
.chiro-section--mint {
	background: var(--chiro-beige-light);
}

.chiro-section--navy {
	background: var(--chiro-navy);
	color: #fff;
}

.chiro-section--navy h2 {
	color: #fff;
}

.chiro-section--navy .wp-block-button__link {
	background: var(--chiro-beige);
	color: var(--chiro-navy);
}

.chiro-section--navy .wp-block-button__link:hover {
	background: #fff;
	color: var(--chiro-navy);
}

.chiro-card {
	height: 100%;
	background: #fff;
	padding: 1.75rem;
	border-radius: 3px;
	border-top: 4px solid var(--chiro-red);
	box-shadow: 0 2px 10px rgba(0, 18, 77, 0.08);
}

.chiro-card--info {
	border-top-color: var(--chiro-beige);
}

.chiro-card h3 {
	margin-top: 0;
}

/* Latest Posts block on the home page */
.chiro-latest.wp-block-latest-posts {
	padding: 0;
}

.chiro-latest.wp-block-latest-posts li {
	display: flex;
	flex-direction: column;
	border-left: 4px solid var(--chiro-beige);
	padding-left: 1.25rem;
	margin-bottom: 1.5rem;
}

.chiro-latest .wp-block-latest-posts__post-date {
	order: -1;
	color: var(--chiro-red);
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.entry-content .chiro-latest .wp-block-latest-posts__post-title {
	color: var(--chiro-navy);
	font-family: var(--global-heading-font-family);
	font-size: 1.35rem;
	font-weight: 700;
	text-decoration: none;
	margin: 0.25rem 0 0.5rem;
}

.entry-content .chiro-latest .wp-block-latest-posts__post-title:hover {
	color: var(--chiro-red);
}

.chiro-latest .wp-block-latest-posts__post-excerpt {
	margin: 0;
}

/* Upcoming activities on the home page ([chiro_activiteiten] shortcode) */
.chiro-events {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1rem;
}

.entry-content .chiro-event__link {
	display: flex;
	gap: 1rem;
	height: 100%;
	padding: 1rem;
	background: #fff;
	border-radius: 3px;
	box-shadow: 0 2px 10px rgba(0, 18, 77, 0.08);
	color: inherit;
	text-decoration: none;
}

.chiro-event__date {
	flex: 0 0 3.75rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0;
	background: var(--chiro-red);
	color: #fff;
	border-radius: 3px;
	font-family: var(--global-heading-font-family);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1;
}

.chiro-event__day {
	font-size: 1.75rem;
}

.chiro-event__month {
	font-size: 0.9rem;
	margin-top: 0.2rem;
}

.chiro-event__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.chiro-event__cat {
	color: var(--chiro-red);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.chiro-event__title {
	font-family: var(--global-heading-font-family);
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--chiro-navy);
	line-height: 1.2;
}

.chiro-event__time {
	font-size: 0.9rem;
	color: var(--global-palette5);
}

.entry-content .chiro-event__link:hover .chiro-event__title {
	color: var(--chiro-red);
}

/* Members-only content (block style "Enkel voor leden") */
.chiro-leden-notice {
	padding: 1rem 1.25rem;
	background: var(--chiro-beige-light);
	border-left: 4px solid var(--chiro-red);
	border-radius: 3px;
	font-size: 0.95rem;
}

.chiro-leden-notice p {
	margin: 0;
}

.chiro-leden-notice p + p {
	margin-top: 0.4rem;
	font-weight: 700;
}

.wp-block-media-text__media.chiro-leden-photo {
	display: flex;
	align-items: center;
	min-height: 220px;
	padding: 1.5rem;
	background: var(--chiro-beige-light);
	border-radius: 3px;
}

.wp-block-media-text__media.chiro-leden-photo .chiro-leden-notice {
	width: 100%;
	background: #fff;
}

/* Media & Text makes links in the media column block-level */
.wp-block-media-text__media.chiro-leden-photo .chiro-leden-notice a {
	display: inline;
}

/* Logged-in parents and leaders see which parts are members-only */
.logged-in .wp-block-group.is-style-leden {
	position: relative;
	padding: 1rem 1.25rem;
	border: 1px dashed var(--chiro-beige);
	border-radius: 3px;
}

.logged-in .wp-block-group.is-style-leden::before {
	content: "Enkel voor leden";
	position: absolute;
	top: -0.7rem;
	left: 0.75rem;
	padding: 0 0.4rem;
	background: #fff;
	color: var(--chiro-red);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Ultimate Member forms (login, registration, account) */
.um .um-button,
.um a.um-button,
.um input[type="submit"].um-button {
	background: var(--chiro-red) !important;
	border-radius: 3px !important;
	font-family: var(--global-heading-font-family) !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.um .um-button:hover,
.um a.um-button:hover,
.um input[type="submit"].um-button:hover {
	background: var(--chiro-navy) !important;
}

.um a.um-button.um-alt,
.um input[type="submit"].um-button.um-alt {
	background: #fff !important;
	color: var(--chiro-navy) !important;
	border: 2px solid var(--chiro-navy) !important;
}

.um .um-field-label label,
.um a.um-link,
.um .um-link {
	color: var(--chiro-navy) !important;
}

.um .um-field-checkbox.active .um-field-checkbox-state i,
.um .um-field-checkbox-state i {
	color: var(--chiro-red) !important;
}

.um input[type="text"]:focus,
.um input[type="password"]:focus,
.um textarea:focus {
	border-color: var(--chiro-navy) !important;
}

/* The Events Calendar: site fonts and huisstijl colors */
.tribe-common,
.tribe-events {
	--tec-font-family-sans-serif: var(--global-body-font-family);
	--tec-color-accent-primary: var(--chiro-red);
	--tec-color-accent-primary-hover: var(--chiro-navy);
	--tec-color-accent-primary-active: var(--chiro-navy);
	--tec-color-button-primary: var(--chiro-red);
	--tec-color-link-accent: var(--chiro-navy);
	--tec-color-day-marker-current-month: var(--chiro-navy);
	--tec-color-background-events-bar-submit-button: var(--chiro-red);
	--tec-color-background-events-bar-submit-button-hover: var(--chiro-navy);
}

.tribe-common .tribe-common-h1,
.tribe-common .tribe-common-h3,
.tribe-common .tribe-common-h4,
.tribe-common .tribe-common-h5,
.tribe-common .tribe-common-h6,
.tribe-events .tribe-events-calendar-month__calendar-event-title {
	font-family: var(--global-heading-font-family);
}

.tribe-events-before-html h1.chiro-calendar-title {
	font-family: var(--global-heading-font-family);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--chiro-navy);
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	line-height: 1.05;
	margin: 0 0 1rem;
}

.tribe-events-before-html h1.chiro-calendar-title::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 4px;
	margin-top: 0.6rem;
	background: var(--chiro-red);
}

/* Footer: navy with white text, red stripe on top */
#colophon,
#colophon .site-footer-wrap > div {
	background: var(--chiro-navy);
	color: #fff;
}

#colophon {
	border-top: 4px solid var(--chiro-red);
}

#colophon a {
	color: #fff;
}

#colophon a:hover {
	color: var(--chiro-beige);
}
