/*
Theme Name: Coachsite
Template: ollie
Description: Child theme of Ollie for Mozhgan Jalali, holistisk mental coach. Layout modelled on jepab.se with a livelier background.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: coachsite
*/

/*
 * Only what theme.json cannot express lives here: the drifting colour fields
 * in the hero, the arch-shaped portrait, and the small label above headings.
 * Colours always come from the palette presets, so a palette change in
 * theme.json (or the Site Editor) carries through.
 */

/* Hero: two soft colour fields drifting behind the content. */
.coach-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.coach-hero::before,
.coach-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(60px);
	opacity: .9;
	pointer-events: none;
}
.coach-hero::before {
	width: min(60vw, 720px);
	aspect-ratio: 1;
	right: -12vw;
	top: -20vw;
	background: var(--wp--preset--color--primary-alt);
	animation: coach-drift 22s ease-in-out infinite alternate;
}
.coach-hero::after {
	width: min(46vw, 560px);
	aspect-ratio: 1;
	left: -14vw;
	bottom: -22vw;
	background: var(--wp--preset--color--blush);
	animation: coach-drift 28s ease-in-out infinite alternate-reverse;
}
@keyframes coach-drift {
	to { transform: translate(-4vw, 3vw) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
	.coach-hero::before,
	.coach-hero::after { animation: none; }
}

/* Label above a heading ("Coaching för kropp, tanke och känsla"). */
.is-style-coach-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--wp--preset--font-family--primary);
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}
.is-style-coach-eyebrow::before {
	content: "";
	flex: 0 0 34px;
	height: 1px;
	background: currentColor;
}
.has-text-align-center.is-style-coach-eyebrow { justify-content: center; }

/* Arch-shaped portrait: an image block style, plus a placeholder until a photo exists. */
.is-style-coach-arch img,
.coach-portrait-placeholder {
	aspect-ratio: 4 / 5;
	width: 100%;
	object-fit: cover;
	border-radius: 180px 180px 4px 4px;
}
.coach-portrait-placeholder {
	display: grid;
	place-items: center;
	text-align: center;
	padding: 24px;
	background:
		linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .15)),
		var(--wp--preset--color--primary-alt);
	color: var(--wp--preset--color--secondary);
	font-family: var(--wp--preset--font-family--primary);
	font-size: .9rem;
}
.coach-image-placeholder {
	aspect-ratio: 5 / 4;
	display: grid;
	place-items: center;
	text-align: center;
	padding: 20px;
	border-radius: 4px;
	background:
		radial-gradient(circle at 30% 30%, var(--wp--preset--color--blush), transparent 60%),
		radial-gradient(circle at 75% 70%, var(--wp--preset--color--primary-alt), transparent 55%),
		var(--wp--preset--color--primary-accent);
	color: var(--wp--preset--color--secondary);
	font-family: var(--wp--preset--font-family--primary);
	font-size: .9rem;
}

/* Facts list on "Om mig": label column + text, ruled rows. */
.coach-facts > .wp-block-columns {
	margin: 0;
	padding-block: 14px;
	border-bottom: 1px solid var(--wp--preset--color--border-light);
}
.coach-facts > .wp-block-columns:first-child {
	border-top: 1px solid var(--wp--preset--color--border-light);
}

/* Full-width colour bands sit edge to edge, with no block gap between them. */
main > .wp-block-post-content,
.wp-block-post-content > .alignfull {
	margin-block-start: 0;
}

/* Ollie pads quotes on the right and the browser adds a margin; in narrow
   columns (the reviews) that left only half the width for text. */
.wp-block-quote {
	margin-inline: 0;
	padding-right: 0;
}

.coach-facts .is-style-coach-eyebrow { font-size: .75rem; line-height: 1.9; }
.coach-facts .is-style-coach-eyebrow::before { display: none; }

/* Header: the Refind Coaching wordmark beside the name, menu items with room. */
.coach-brand .wp-block-site-title a { text-decoration: none; }
.coach-mark {
	display: block;
	line-height: 0;
	color: var(--wp--preset--color--primary);
}
.coach-mark img { display: block; width: 240px; height: auto; }
.coach-footer-logo { display: block; width: 260px; max-width: 100%; height: auto; margin-bottom: 18px; }
@media (max-width: 600px) {
	.coach-mark img { width: 160px; }
}

/*
 * "Känner du igen dig?": questions as ruled rows, each with an accent dash on
 * its first line, beside a tinted panel with the conclusion.
 *
 * The class is doubled for specificity: the parent theme removes the top
 * padding of the first item and the bottom padding of the last, and gives
 * every item a bottom margin outside its line. Both made the spacing around
 * the lines uneven and pushed the first dash down to the second line.
 */
ul.coach-question-list.coach-question-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
ul.coach-question-list.coach-question-list > li,
ul.coach-question-list.coach-question-list > li:first-child,
ul.coach-question-list.coach-question-list > li:last-child {
	position: relative;
	margin: 0;
	padding: 18px 0 18px 34px;
	border-bottom: 1px solid var(--wp--preset--color--border-light);
	font-size: 1.1rem;
	line-height: 1.6;
}
ul.coach-question-list.coach-question-list > li:first-child { padding-top: 0; }
ul.coach-question-list.coach-question-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
/* The dash is a text glyph on the first line, not a 1px box: text is snapped
   to whole pixels, so every dash renders identically. */
ul.coach-question-list.coach-question-list > li::before {
	content: "\2014";
	position: absolute;
	left: 0;
	top: 18px;
	color: var(--wp--preset--color--primary);
	line-height: inherit;
}
ul.coach-question-list.coach-question-list > li:first-child::before { top: 0; }

/* The conclusion: stretches to the full height of the questions, with an
   accent rule along them, text centred in the panel. */
.coach-questions > .coach-conclusion {
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-left: 2px solid var(--wp--preset--color--primary);
	border-radius: 0 4px 4px 0;
}
.coach-questions > .coach-conclusion > p { margin-block: 0; }
.coach-questions > .coach-conclusion > p + p { margin-top: 1em; }

/* Package rows on the service pages: jump links land below the header. */
.coach-package { scroll-margin-top: 24px; }
.coach-package .coach-facts .is-style-coach-eyebrow { white-space: nowrap; }

/* Photos: "Rundad" crops to a calm portrait format; cards crop square. */
.is-style-coach-rounded img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 30%;
	border-radius: 4px;
}
.coach-card-image img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: 50% 30%;
	border-radius: 4px;
}
.coach-photo img { width: 100%; height: auto; border-radius: 4px; }
.wp-block-image.is-style-coach-arch,
.wp-block-image.is-style-coach-rounded,
.coach-card-image,
.coach-photo { margin-bottom: 0; }
header .wp-block-navigation .wp-block-navigation-item__content {
	display: block;
	padding: 8px 12px;
	border-radius: 2px;
	text-decoration: none;
}
header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
header .wp-block-navigation .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--tertiary);
	text-decoration: none;
}

/* Contact Form 7: labels as small uppercase captions, calm bordered fields. */
.wpcf7-form { display: grid; gap: 18px; }
.wpcf7-form p { margin: 0; }
.wpcf7-form label {
	display: grid;
	gap: 6px;
	font-family: var(--wp--preset--font-family--primary);
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	padding: 12px 14px;
	font: 400 1rem/1.5 var(--wp--preset--font-family--serif);
	color: var(--wp--preset--color--main);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: 2px;
	text-transform: none;
	letter-spacing: 0;
}
.wpcf7-form textarea { min-height: 150px; resize: vertical; }
.wpcf7-form input:focus-visible,
.wpcf7-form select:focus-visible,
.wpcf7-form textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}
.wpcf7-form .coach-form-note,
.wpcf7-form .wpcf7-acceptance {
	font-size: .95rem;
	color: var(--wp--preset--color--secondary);
}
.wpcf7-form .wpcf7-acceptance label {
	display: inline;
	font: inherit;
	letter-spacing: 0;
	text-transform: none;
	color: inherit;
}
.wpcf7-form .wpcf7-list-item { margin: 0; }
.wpcf7-form input[type="submit"] {
	justify-self: start;
	padding: 16px 26px;
	border: 0;
	border-radius: 2px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font: 500 .85rem/1 var(--wp--preset--font-family--primary);
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
}
.wpcf7-form input[type="submit"]:hover { background: var(--wp--preset--color--primary-alt-accent); }
.wpcf7-form input[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
.wpcf7 form .wpcf7-response-output {
	margin: 0;
	padding: 12px 16px;
	border-radius: 2px;
	font-family: var(--wp--preset--font-family--primary);
}

/* List markers in the accent colour. */
.entry-content li::marker,
.wp-block-post-content li::marker { color: var(--wp--preset--color--primary); }
