/*
Theme Name:   Positive Hypnosis
Description:  Child theme of Ascend holding the Positive Hypnosis customisations (custom footer, News template, page banners, elements.css). Keeps them safe when Ascend is updated. Banners replace the old one-slide Slider Revolution headers.
Template:     ascend
Version:      1.0.0
Text Domain:  positive-hypnosis
*/

/* Loaded from footer.php after elements.css, the same place the old theme loaded its overrides. */

/* ---------- Page banners (replaces Slider Revolution) ---------- */
.ph-banner {
	position: relative;
	width: 100%;
	height: 400px;
	background-color: #e7e7e7;
	background-size: cover;
	background-position: center center;
	display: flex;
	align-items: center;
	justify-content: center;
	border-top: 10px solid #a2c8ba;
	box-sizing: border-box;
}
.ph-banner__box {
	background: #fff;
	width: 479px;
	max-width: 85%;
	min-height: 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 10px 20px;
	box-sizing: border-box;
}
.ph-banner p {
	margin: 0;
	color: #3e3e3e;
	font-weight: 400;
}
.ph-banner__title {
	font-family: 'Open Sans', Lato, sans-serif;
	font-size: 40px;
	line-height: 1.1;
}
.ph-banner--post .ph-banner__title {
	font-size: 36px;
}

/* Home banner */
.ph-banner--home {
	height: 686px;
	padding-bottom: 20px; /* box sits just above centre, as on the old slider */
}
.ph-banner--home .ph-banner__box {
	background: #efefef;
	width: 573px;
	min-height: 223px;
}
.ph-banner__welcome {
	font-family: Lato, sans-serif;
	font-size: 62px;
	line-height: 64px;
	letter-spacing: 12px;
	text-transform: uppercase;
	margin-right: -12px !important; /* balance the trailing letter-spacing */
}
.ph-banner__site {
	font-family: Lato, sans-serif;
	font-size: 42px;
	line-height: 42px;
	margin-top: 12px !important;
}
.ph-banner__strip {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 45px;
	background: rgba(232, 232, 232, 0.71);
	color: #1e1e1e;
	font-family: Lato, sans-serif;
	font-size: 20px;
	line-height: 45px;
	text-align: center;
	padding: 0 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Same breakpoints and heights as the old slider (grid 1240 / 1024 / 778 / 480). */
@media (max-width: 1239px) {
	.ph-banner { height: 300px; }
	.ph-banner--home { height: 500px; }
}
@media (max-width: 1023px) {
	.ph-banner--home { height: 600px; }
	.ph-banner__welcome { font-size: 48px; line-height: 48px; }
	.ph-banner__site { font-size: 36px; line-height: 36px; }
	.ph-banner__strip { font-size: 18px; }
}
@media (max-width: 777px) {
	/* elements.css pads #inner-wrap by 10% each side on small screens; break out of it. */
	.ph-banner { width: 125%; margin-left: -12.5%; height: 350px; }
	.ph-banner--home { height: 400px; }
}
/* Below 480px the old slider scaled its whole 480 x 400 (home) / 480 x 350 (pages) stage. */
@media (max-width: 479px) {
	.ph-banner { height: 72.9vw; }
	.ph-banner__box { width: 64vw; min-height: 25vw; padding: 2vw 4vw; }
	.ph-banner__title { font-size: 6.6vw; }
	.ph-banner--post .ph-banner__title { font-size: 6vw; }
	.ph-banner--home { height: 83.3vw; padding-bottom: 9vw; }
	.ph-banner--home .ph-banner__box { width: 78vw; min-height: 26.7vw; }
	.ph-banner__welcome { font-size: 7.5vw; line-height: 1.25; letter-spacing: 1.7vw; margin-right: -1.7vw !important; }
	.ph-banner__site { font-size: 5.8vw; line-height: 1.1; margin-top: 1vw !important; }
	.ph-banner__strip { height: 9vw; line-height: 9vw; font-size: 2.9vw; }
	.ph-banner { border-top-width: 2vw; }
}

/* ---------- Ascend 1.4 changed some defaults; keep the old look ---------- */
.sf-menu > li > a,
.titleclass .entry-title,
.titleclass h1 {
	text-transform: none;
}

/* ---------- Contact form (Contact Form 7, replaces Caldera Forms) ---------- */
.ph-cf7 { margin: 0 0 30px; }
.ph-cf7 label, .ph-cf7-label { display: block; font-weight: 600; font-size: 14px; color: #3e3e3e; margin-bottom: 4px; }
.ph-cf7-row { display: flex; gap: 30px; }
.ph-cf7-col { flex: 1 1 0; min-width: 0; }
.ph-cf7-col, .ph-cf7-field { margin-bottom: 18px; }
.ph-cf7 input[type="text"], .ph-cf7 input[type="tel"], .ph-cf7 input[type="email"], .ph-cf7 textarea {
	width: 100%; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; padding: 8px 10px; font-weight: 400;
}
.ph-cf7 .wpcf7-radio { display: inline-flex; flex-wrap: wrap; margin-top: 4px; }
.ph-cf7 .wpcf7-radio .wpcf7-list-item { margin: 0; }
.ph-cf7 .wpcf7-radio label { display: inline-block; font-weight: 400; font-size: 13px; border: 1px solid #ccc; margin: 0 -1px 0 0; padding: 6px 10px; cursor: pointer; }
.ph-cf7 .wpcf7-radio input { position: absolute; opacity: 0; }
.ph-cf7 .wpcf7-radio label:has(input:checked) { background: #399271; border-color: #399271; color: #fff; }
.ph-cf7 .wpcf7-radio label:has(input:focus-visible) { outline: 2px solid #399271; outline-offset: 2px; }
.ph-cf7 input[type="submit"] { background: #fff; border: 1px solid #ccc; border-radius: 4px; padding: 8px 14px; font-size: 13px; color: #3e3e3e; cursor: pointer; }
.ph-cf7 input[type="submit"]:hover { background: #399271; border-color: #399271; color: #fff; }
.ph-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .ph-cf7-row { display: block; } }
/* Single-choice checkboxes styled like the old toggle buttons */
.ph-cf7 .wpcf7-checkbox { display: inline-flex; flex-wrap: wrap; margin-top: 4px; }
.ph-cf7 .wpcf7-checkbox .wpcf7-list-item { margin: 0; }
.ph-cf7 .wpcf7-checkbox label { display: inline-block; font-weight: 400; font-size: 13px; border: 1px solid #ccc; margin: 0 -1px 0 0; padding: 6px 10px; cursor: pointer; }
.ph-cf7 .wpcf7-checkbox input { position: absolute; opacity: 0; }
.ph-cf7 .wpcf7-checkbox label:has(input:checked) { background: #399271; border-color: #399271; color: #fff; }
.ph-cf7 .wpcf7-checkbox label:has(input:focus-visible) { outline: 2px solid #399271; outline-offset: 2px; }
