/* Anna Hinca: styles for the block styles and classes the patterns use. Colours and type come from theme.json. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:where(h1, h2, h3) { text-wrap: balance; }
[id] { scroll-margin-top: 90px; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
/* The blur sits on a layer behind the header: on the header itself it would trap the phone menu's full-screen overlay in the header's height. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(246, 241, 232, 0.94);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
/* Phone menu: a full-screen sheet with large links (core inherits a background the header no longer has). */
.site-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	padding: calc(var(--wp-admin--admin-bar--height, 0px) + 20px) max(20px, env(safe-area-inset-right, 0px)) 32px max(20px, env(safe-area-inset-left, 0px));
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 56px;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0;
	width: 100%;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	padding: 14px 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	color: var(--wp--preset--color--contrast);
}
.site-header .wp-block-site-title { margin: 0; }
.site-header .wp-block-site-tagline { margin: 0; }
.site-header .wp-block-button__link { padding: 10px 18px; font-size: 0.88rem; }
@media (max-width: 600px) { .site-header .wp-block-buttons { display: none; } }

/* Section label */
.is-style-eyebrow {
	font-size: 0.78rem !important;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wp--preset--color--olive-text);
	margin-bottom: 0.25rem !important;
}

/* Full-width bands */
.section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.section-alt { background: var(--wp--preset--color--surface); }
.lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); }
.muted { color: var(--wp--preset--color--muted); }

/* Credential chips */
ul.is-style-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.is-style-chips li { font-size: 0.82rem; padding: 6px 12px; border-radius: 999px; background: var(--wp--preset--color--olive-soft); }

/* Arched portrait */
.wp-block-image.is-style-arch img {
	object-position: 50% 30%;
	aspect-ratio: 4 / 5;
	width: 100%;
	object-fit: cover;
	border-radius: 220px 220px 24px 24px;
}

/* Cards */
.is-style-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	padding: 24px;
}
.section-alt .is-style-card { background: var(--wp--preset--color--base); }
.is-style-card > :first-child { margin-top: 0; }
.is-style-card p { color: var(--wp--preset--color--muted); font-size: 0.93rem; margin: 0; }
.is-style-card h3 { margin: 0 0 0.4em; }

.note {
	background: var(--wp--preset--color--olive-soft);
	border-radius: 14px;
	padding: 18px 20px;
	font-size: 0.93rem;
}

/* Closing band */
.is-style-cta-band {
	background: var(--wp--preset--color--cashmere);
	border-radius: 28px;
	padding: clamp(28px, 5vw, 48px);
}
.is-style-cta-band h2 { margin: 0; }

/* Education list */
ul.edu { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--wp--preset--color--line); }
ul.edu li { padding: 14px 0; border-bottom: 1px solid var(--wp--preset--color--line); }
ul.edu li strong { display: block; font-weight: 600; }
ul.edu li span { color: var(--wp--preset--color--muted); font-size: 0.92rem; }

/* Quote with a side rule */
.side-quote {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	line-height: 1.4;
	border-left: 3px solid var(--wp--preset--color--olive-text);
	padding-left: 22px;
}

/* Numbered steps */
.steps { counter-reset: step; }
.steps > .wp-block-group { counter-increment: step; border-top: 2px solid var(--wp--preset--color--olive); padding-top: 18px; }
.steps > .wp-block-group::before {
	content: "0" counter(step);
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.6rem;
	color: var(--wp--preset--color--olive-text);
	margin-bottom: 8px;
}
.steps p { color: var(--wp--preset--color--muted); font-size: 0.93rem; }

/* Price list */
.price-row { border-bottom: 1px dashed var(--wp--preset--color--line); padding: 14px 0; }
.price-row p { margin: 0; }
.price-row p:last-child { white-space: nowrap; font-weight: 600; }

/* FAQ */
.wp-block-details summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--wp--preset--color--olive-text); font-size: 1.3rem; line-height: 1; }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); }

/* Location cards */
.location strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 1.4rem; font-weight: 500; margin-bottom: 6px; }

/* Post cards (home teaser, blog, related) */
.post-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	padding: 12px 12px 22px;
	height: 100%;
}
.section-alt .post-card { background: var(--wp--preset--color--base); }
.post-card .wp-block-post-featured-image { margin: 0 0 12px; }
.post-card .wp-block-post-featured-image img { border-radius: 12px; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card > :not(.wp-block-post-featured-image) { padding-left: 10px; padding-right: 10px; }
.post-card .wp-block-post-title { font-size: 1.25rem; margin: 6px 0 8px; }
.post-card .wp-block-post-excerpt__more-text { margin-top: 10px; }
.post-card .wp-block-post-excerpt__more-link { font-weight: 600; text-decoration: none; }
/* A post with no featured image still gets a calm cashmere block in the card */
.post-card:not(:has(.wp-block-post-featured-image img))::before {
	content: "";
	display: block;
	aspect-ratio: 3 / 2;
	border-radius: 12px;
	background: var(--wp--preset--color--cashmere-soft);
	margin-bottom: 12px;
}

/* Blog index: the newest post on page 1 is shown large */
@media (min-width: 782px) {
	body:not(.paged) .blog-grid .wp-block-post-template > li:first-child { grid-column: 1 / -1; }
	body:not(.paged) .blog-grid .wp-block-post-template > li:first-child .post-card {
		display: grid;
		grid-template-columns: 1.2fr 1fr;
		column-gap: 40px;
		align-items: center;
		padding: 16px;
		border-radius: 24px;
	}
	body:not(.paged) .blog-grid li:first-child .post-card::before,
	body:not(.paged) .blog-grid li:first-child .post-card .wp-block-post-featured-image { grid-row: 1 / span 5; margin: 0; }
	body:not(.paged) .blog-grid li:first-child .post-card .wp-block-post-featured-image img { aspect-ratio: 16 / 10; border-radius: 16px; }
	body:not(.paged) .blog-grid li:first-child .post-card .wp-block-post-title { font-size: 2.2rem; }
}

/* Category filters */
.wp-block-categories.is-style-pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wp-block-categories.is-style-pills li a {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	font-size: 0.85rem;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.wp-block-categories.is-style-pills li.current-cat a { background: var(--wp--preset--color--olive); border-color: var(--wp--preset--color--olive); color: var(--wp--preset--color--surface); }

/* Single post */
.single-cover img { border-radius: 24px; aspect-ratio: 16 / 9; object-fit: cover; }
.author-box {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	padding: 18px;
}
.author-box p { margin: 0; font-size: 0.9rem; color: var(--wp--preset--color--muted); }
.author-box p strong { color: var(--wp--preset--color--contrast); }

/* Pagination */
.wp-block-query-pagination { font-size: 0.95rem; }
.wp-block-query-pagination a { text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--muted); font-size: 0.85rem; }
.site-footer .crisis { font-size: 0.8rem; }

/* Template spacing */
.header-row { padding-top: 12px; padding-bottom: 12px; gap: 24px; }
.footer-inner { padding-top: 40px; padding-bottom: 40px; }
.site-main.section > * + * { margin-top: var(--wp--preset--spacing--40); }
.wp-site-blocks > .site-main, .wp-site-blocks > .site-footer { margin-block-start: 0; }
.single-post .wp-block-post-content h2 { font-size: 1.65rem; margin-top: 1.6em; }
.single-post .wp-block-post-content h3 { font-size: 1.3rem; }
/* Full-width sections placed in a page's content sit flush against each other */
.wp-block-post-content > .section { margin-block-start: 0; }
.wp-block-post-content.alignfull { margin-block-start: 0; }
.rules-card ul { padding-left: 1.1em; margin: 0 0 1.25rem; color: var(--wp--preset--color--muted); font-size: 0.95rem; }
.rules-card li + li { margin-top: 6px; }
.price-row:first-child { padding-top: 0; }

/* Outline buttons fill with olive on hover, like the primary ones */
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):focus-visible {
	background: var(--wp--preset--color--olive);
	color: var(--wp--preset--color--surface);
}

/* Share bar under an article */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding-block: 1.25rem; border-block: 1px solid var(--wp--preset--color--line); }
.share-bar__label { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--olive-text); }
.share-bar__list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.share-bar__list li[hidden] { display: none; }
.share-bar__item {
	display: inline-flex; align-items: center; gap: 0.45rem;
	padding: 8px 14px; border: 1.5px solid var(--wp--preset--color--line); border-radius: 999px;
	background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast);
	font: 600 0.85rem/1.2 var(--wp--preset--font-family--body); text-decoration: none; cursor: pointer;
}
.share-bar__item svg { color: var(--wp--preset--color--olive); flex: none; }
.share-bar__item:hover, .share-bar__item:focus-visible { border-color: var(--wp--preset--color--olive); background: var(--wp--preset--color--olive); color: var(--wp--preset--color--surface); }
.share-bar__item:hover svg, .share-bar__item:focus-visible svg { color: inherit; }
.share-bar__item:focus-visible { outline: 2px solid var(--wp--preset--color--olive); outline-offset: 3px; }

/* Contact: call, WhatsApp, Facebook and Messenger buttons beside the map */
.contact-actions { margin-block: 2rem; }
.contact-actions .wp-block-columns { gap: 2rem; }
.contact-actions h3 { margin: 0 0 0.3em; }
.contact-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 12px; }
.contact-buttons .wp-block-button { width: 100%; }
.contact-buttons .wp-block-button__link {
	display: flex; align-items: center; justify-content: flex-start; gap: 10px;
	width: 100%; min-height: 56px; text-align: left;
}
.contact-buttons .wp-block-button__link::before {
	content: ""; flex: none; width: 20px; height: 20px; background: currentColor;
	-webkit-mask: var(--contact-icon) center / contain no-repeat; mask: var(--contact-icon) center / contain no-repeat;
}
.contact-buttons .wp-block-button.is-style-outline > .wp-block-button__link { background: var(--wp--preset--color--surface); border-color: var(--wp--preset--color--line); color: var(--wp--preset--color--contrast); }
.contact-buttons .wp-block-button.is-style-outline > .wp-block-button__link::before { background: var(--wp--preset--color--olive); }
.contact-buttons .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.contact-buttons .wp-block-button.is-style-outline > .wp-block-button__link:focus-visible { border-color: var(--wp--preset--color--olive); background: var(--wp--preset--color--olive); color: var(--wp--preset--color--surface); }
.contact-buttons .wp-block-button.is-style-outline > .wp-block-button__link:hover::before,
.contact-buttons .wp-block-button.is-style-outline > .wp-block-button__link:focus-visible::before { background: currentColor; }
.contact-call { --contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M6.6 3.5h2.6l1.4 4-2 1.4a12 12 0 0 0 6.5 6.5l1.4-2 4 1.4v2.6a1.6 1.6 0 0 1-1.7 1.6A17 17 0 0 1 5 5.2a1.6 1.6 0 0 1 1.6-1.7z'/%3E%3C/svg%3E"); }
.contact-mail { --contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='2'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E"); }
.contact-wa { --contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M4 20l1.2-3.7A8.2 8.2 0 1 1 8 19z'/%3E%3Cpath d='M9.2 8.6c.2 2.8 3 5.7 6 6.1l1-1.3-1.8-1-.9.8a5 5 0 0 1-2.4-2.4l.8-.9-1-1.8z' fill='black' stroke='none'/%3E%3C/svg%3E"); }
.contact-fb { --contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.4 21v-7.3h2.5l.4-2.9h-2.9V9c0-.8.2-1.4 1.4-1.4h1.6V5c-.3 0-1.2-.1-2.3-.1-2.2 0-3.8 1.4-3.8 3.9v2.1H7.8v2.9h2.5V21z'/%3E%3C/svg%3E"); }
.contact-msg { --contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M12 3.5c-4.9 0-8.5 3.5-8.5 8 0 2.4 1 4.4 2.7 5.8v3.2l3-1.6c.9.3 1.8.4 2.8.4 4.9 0 8.5-3.5 8.5-8s-3.6-7.8-8.5-7.8z'/%3E%3Cpath d='M7.5 13.6l3-3.2 2.2 1.8 3.8-2.4-3 3.2-2.2-1.8z' fill='black' stroke='none'/%3E%3C/svg%3E"); }
.contact-map { margin: 0; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; overflow: hidden; background: var(--wp--preset--color--surface); }
.contact-map img { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.contact-map figcaption { margin: 0; padding: 14px 18px; text-align: left; font-size: 0.88rem; color: var(--wp--preset--color--muted); }
.contact-map figcaption strong { color: var(--wp--preset--color--contrast); }
.contact-map figcaption a { font-weight: 600; white-space: nowrap; }
/* Click-to-load Google map: until the click, the map picture is only a blurred backdrop for the button */
.contact-map__frame { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: var(--wp--preset--color--olive-soft); }
.contact-map__frame > a, .contact-map__frame img { display: block; width: 100%; height: 100%; }
.contact-map__frame img { filter: blur(7px) saturate(0.8); transform: scale(1.08); }
.contact-map__frame > a::after { content: ""; position: absolute; inset: 0; background: rgba(246, 241, 232, 0.35); }
.contact-map__frame::after {
	content: "© OpenStreetMap"; position: absolute; right: 6px; bottom: 4px;
	font-size: 0.62rem; color: var(--wp--preset--color--muted);
}
.contact-map__frame.is-loaded::after { content: none; }
.contact-map__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.contact-map__load {
	position: absolute; inset: 0; z-index: 1;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center;
	pointer-events: none;
}
.contact-map__load button {
	pointer-events: auto;
	padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--wp--preset--color--olive); color: var(--wp--preset--color--surface);
	font: 600 0.92rem/1.2 var(--wp--preset--font-family--body); box-shadow: 0 2px 12px rgba(46, 48, 34, 0.25);
}
.contact-map__load button:hover { background: #5a6436; }
.contact-map__load button:focus-visible { outline: 2px solid var(--wp--preset--color--olive); outline-offset: 3px; }
.contact-map__load small {
	max-width: 22rem; padding: 3px 8px; border-radius: 6px; background: rgba(255, 253, 248, 0.85);
	color: var(--wp--preset--color--muted); font-size: 0.72rem; line-height: 1.35;
}
