/*
 * Block style variations (registered in inc/block-styles.php) and the section
 * classes used by the patterns. Values are taken from the static site so the
 * pages look the same. Loaded on the front end and in the editor.
 */

/* ---------- Block styles ---------- */

/* Paragraph → Eyebrow: small spaced capitals above a heading. */
.is-style-dk-eyebrow {
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

/* Paragraph → Numeral: the italic "I. II. III." on cards. */
.is-style-dk-numeral {
	font-family: var(--wp--preset--font-family--fraunces);
	font-style: italic;
	font-size: 1.4rem;
	line-height: 1.2;
	color: var(--wp--preset--color--accent-text);
}

/* Paragraph → Tag: a rounded outline label (credentials on About). */
.is-style-dk-pill {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px;
	font-size: 0.78rem;
	letter-spacing: 0.03em;
	line-height: 1.3;
}

/* Group → Card / Card (dashed). */
.wp-block-group.is-style-dk-card {
	padding: 32px 26px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
	background: rgba(242, 234, 217, 0.02);
}

.wp-block-group.is-style-dk-card-dashed {
	padding: 34px 26px;
	border: 1px dashed var(--wp--preset--color--line);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.02);
}

/* List → Lines between items. */
.wp-block-list.is-style-dk-ruled {
	margin: 26px 0;
	padding: 0;
	list-style: none;
}

.wp-block-list.is-style-dk-ruled li {
	padding: 10px 0;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: 0.95rem;
	opacity: 0.85;
}

/* List → Numbered steps: numbers in accent circles. */
.wp-block-list.is-style-dk-steps {
	padding: 0;
	list-style: none;
	counter-reset: dk-step;
}

.wp-block-list.is-style-dk-steps li {
	position: relative;
	margin-bottom: 22px;
	padding-left: 42px;
	counter-increment: dk-step;
	font-size: 0.95rem;
	opacity: 0.85;
}

.wp-block-list.is-style-dk-steps li::before {
	content: counter(dk-step);
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 0.8rem;
	color: var(--wp--preset--color--accent-text);
}

/* Image → Framed: rounded photo that fills its column. */
.wp-block-image.is-style-dk-framed img {
	display: block;
	width: 100%;
	border-radius: 4px;
}

/* ---------- Sections ---------- */

/* Space below the fixed header on inner pages (static site: 140px). */
.dk-main.dk-page {
	padding-top: calc(var(--wp--custom--header-height) + 3.5rem);
}

.dk-section-heading {
	margin-bottom: 60px;
}

.dk-section-heading h2 {
	font-size: var(--wp--preset--font-size--xx-large);
}

/* Home: hero fills the first screen. */
.dk-hero {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100vh - var(--wp--custom--header-height));
	text-align: center;
}

.dk-hero h1 {
	margin-bottom: 0;
}

.dk-hero h1 em {
	font-weight: 400;
}

.dk-lede {
	max-width: 46ch;
	margin-inline: auto;
	font-size: var(--wp--preset--font-size--large);
	opacity: 0.85;
}

/* Home: offerings. */
.dk-section {
	padding-top: 120px;
	padding-bottom: 90px;
}

.dk-offerings {
	max-width: 1000px;
	margin-inline: auto;
	gap: 28px;
}

.dk-offerings .is-style-dk-card {
	height: 100%;
}

.dk-offerings h3 {
	margin-top: 14px;
	font-size: var(--wp--preset--font-size--large);
}

.dk-offerings p:not(.is-style-dk-numeral) {
	font-size: 0.92rem;
	opacity: 0.78;
}

/* Centered italic quote (Home). */
.dk-quote {
	max-width: 760px;
	margin: 100px auto 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: var(--wp--preset--font-size--x-large);
	font-style: italic;
	line-height: 1.5;
	text-align: center;
	opacity: 0.92;
}

/* About. */
.dk-about {
	max-width: 1080px;
	margin-inline: auto;
	gap: 60px;
}

.dk-about h2 {
	font-size: var(--wp--preset--font-size--xx-large);
}

.dk-portrait img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
}

.dk-pills {
	margin: 26px 0 30px;
}

.dk-photo-pair {
	margin-top: 40px;
	gap: 16px;
}

/* Book a Session. */
.dk-book {
	max-width: 1040px;
	margin-inline: auto;
	gap: 60px;
}

.dk-price {
	padding: 40px 34px;
	background: rgba(242, 234, 217, 0.03);
}

.dk-price .dk-amount-row {
	align-items: baseline;
}

.dk-amount {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 3rem;
	line-height: 1.1;
	color: var(--wp--preset--color--accent-text);
}

.dk-amount-unit {
	font-size: 1.1rem;
	opacity: 0.7;
}

.dk-note {
	font-size: 0.8rem;
	text-align: center;
	opacity: 0.6;
}

.dk-book h3 {
	margin-bottom: 24px;
	font-size: 1.3rem;
}

.dk-request {
	margin-top: 90px;
}

/* Testimonials: a large card, then a three-column grid of cards. */
.dk-testimonial-featured {
	max-width: 640px;
	margin: 0 auto 60px;
}

.dk-testimonial-grid {
	max-width: 1000px;
	margin-inline: auto;
	gap: 28px;
}

.dk-testimonial-grid .dk-testimonial {
	height: 100%;
	text-align: center;
}

.dk-testimonial::before {
	content: "\"";
	display: block;
	margin-bottom: 10px;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 2.6rem;
	font-style: italic;
	line-height: 1;
	color: var(--wp--preset--color--accent-text);
}

.dk-testimonial-quote {
	font-size: 0.95rem;
	font-style: italic;
	line-height: 1.6;
	opacity: 0.85;
}

.dk-attribution {
	margin-top: 20px;
	font-family: var(--wp--preset--font-family--karla);
	font-size: 0.82rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0.55;
}

/* Essays page: topic rows, as on the static site. Row titles use the same
   size and weight as the other h3 headings; summaries match body text. */
.dk-essay-topics {
	max-width: 800px;
	margin-inline: auto;
}

.dk-essay-row {
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: 26px;
	padding: 32px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.dk-essay-topics > .dk-essay-row:first-child {
	padding-top: 0;
}

.dk-essay-row > *,
.dk-essay-row > * > * {
	margin-block: 0;
}

.dk-essay-tag {
	padding-top: 6px;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dk-essay-row .dk-essay-title {
	margin-bottom: 8px;
	font-size: 1.3rem;
	font-weight: 500;
}

.dk-essay-row .dk-essay-summary {
	margin-top: 8px;
	font-size: 0.95rem;
	opacity: 0.78;
}

/* Essays page: the reflection below the topics. */
.dk-essays-reflection {
	max-width: 760px;
	margin: 90px auto 0;
}

.dk-essays-reflection p {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	line-height: 1.7;
	opacity: 0.9;
}

.dk-essays-reflection p + p {
	margin-top: 26px;
}

/* Contact links: accent colour and underline on hover. */
.dk-contact-link {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.dk-contact-link:hover,
.dk-contact-link:focus-visible {
	color: var(--wp--preset--color--accent-text);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

/* Booking form (Contact Form 7), as on the static site. */
.dk-booking-form {
	max-width: 680px;
	margin: 44px auto 0;
}

.dk-booking-form .dk-form-row {
	margin-bottom: 22px;
}

.dk-booking-form .dk-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}

.dk-booking-form label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.82rem;
	letter-spacing: 0.02em;
	opacity: 0.85;
}

.dk-booking-form .dk-optional {
	font-size: 0.78rem;
	font-weight: 400;
	opacity: 0.55;
}

.dk-booking-form .wpcf7-form-control-wrap {
	display: block;
}

.dk-booking-form input[type="text"],
.dk-booking-form input[type="email"],
.dk-booking-form input[type="tel"],
.dk-booking-form select,
.dk-booking-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
	background: rgba(242, 234, 217, 0.04);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--karla);
	font-size: 0.95rem;
	transition: border-color 0.2s ease;
}

.dk-booking-form input:focus,
.dk-booking-form select:focus,
.dk-booking-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent);
}

.dk-booking-form select {
	appearance: none;
	cursor: pointer;
}

.dk-booking-form select option {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

.dk-booking-form textarea {
	min-height: 100px;
	resize: vertical;
}

.dk-booking-form input[type="file"] {
	width: 100%;
	font-size: 0.85rem;
	opacity: 0.8;
}

.dk-booking-form .dk-field-note {
	display: block;
	margin-top: 6px;
	font-size: 0.75rem;
	opacity: 0.5;
}

.dk-booking-form .dk-consent {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.dk-booking-form .dk-consent .wpcf7-form-control-wrap {
	display: inline-block;
	flex: none;
}

.dk-booking-form .dk-consent .wpcf7-list-item {
	margin: 0;
}

.dk-booking-form .dk-consent > label {
	margin: 0;
	font-size: 0.85rem;
	opacity: 0.8;
}

.dk-booking-form .dk-consent input {
	margin-top: 4px;
	accent-color: var(--wp--preset--color--accent);
}

.dk-booking-form .wpcf7-submit {
	width: 100%;
	padding: 14px 30px;
	border: 1px solid transparent;
	border-radius: 2px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--karla);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.dk-booking-form .wpcf7-submit:hover {
	background: var(--wp--preset--color--accent-hover);
}

.dk-booking-form .wpcf7-submit:focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 3px;
}

.dk-booking-form .wpcf7-not-valid-tip {
	margin-top: 6px;
	color: #7a1f0f;
	font-size: 0.8rem;
}

.dk-booking-form .wpcf7 form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 10px 14px;
	border-width: 1px;
	font-size: 0.85rem;
	text-align: center;
}

.dk-booking-form .wpcf7-spinner {
	display: block;
	margin: 12px auto 0;
}

.dk-request .wp-block-dreamkeeper-contact-detail {
	margin-top: 30px;
	font-size: 0.9rem;
	opacity: 0.8;
}

/* Static site breakpoint: stack the two- and three-column sections at 860px. */
@media (max-width: 860px) {
	.dk-about,
	.dk-book,
	.dk-offerings {
		flex-wrap: wrap !important;
	}

	.dk-about > .wp-block-column,
	.dk-book > .wp-block-column,
	.dk-offerings > .wp-block-column {
		flex-basis: 100% !important;
	}

	.dk-portrait {
		max-width: 280px;
		margin-inline: auto;
	}

	.dk-testimonial-grid {
		grid-template-columns: 1fr !important;
	}

	.dk-booking-form .dk-two-col {
		grid-template-columns: 1fr;
	}

	.dk-section {
		padding-top: 100px;
		padding-bottom: 70px;
	}
}
