/*
Theme Name: Pro Health Content
Theme URI: https://prohealthcontent.co.uk
Author: Aimee Rogers
Author URI: https://prohealthcontent.co.uk
Description: A warm, editorial block theme for a freelance health and wellness writer. Fully editable in the Site Editor, with ready-made page patterns (Home, About, Services, Portfolio, Blog, Contact), a portfolio post type and a built-in contact form that needs no third-party plugin.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pro-health-content
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, editor-style, wide-blocks, blog, portfolio
*/

/* =========================================================
   Base
   ========================================================= */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; max-width: 100%; }
.wp-site-blocks { padding-left: 0; padding-right: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.entry-content > *:first-child { margin-top: 0; }
.wp-block-post-content.is-layout-constrained > .alignfull { margin-block-start: 0; margin-block-end: 0; }
:root :where(.is-layout-constrained) > .alignfull + .alignfull { margin-block-start: 0; }

.screen-reader-text, .phc-sr {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
:focus-visible { outline: 3px solid var(--wp--preset--color--teal); outline-offset: 3px; border-radius: 4px; }

/* =========================================================
   Header + navigation
   ========================================================= */
.phc-header {
	position: sticky; top: 0; z-index: 60;
	box-shadow: 0 1px 0 rgba(14, 39, 69, 0.05);
}
.admin-bar .phc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .phc-header { top: 46px; } }
.phc-header .wp-block-site-logo img { height: auto; width: 100%; border-radius: 0; }
.phc-header .wp-block-navigation { gap: 2.25rem; }
.phc-header .wp-block-navigation .wp-block-navigation-item__content {
	padding-block: 0.4rem; position: relative;
}
.phc-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.phc-header .wp-block-navigation .current_page_item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--coral);
}
.phc-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after,
.phc-header .wp-block-navigation .current_page_item > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--wp--preset--color--coral); border-radius: 2px;
}
.phc-header .wp-block-button__link { white-space: nowrap; }

.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-text-align-right { text-align: right; }

/* =========================================================
   Typographic helpers
   ========================================================= */
.is-style-eyebrow, .phc-eyebrow {
	font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--wp--preset--color--coral); margin-bottom: 0.4rem;
}
.phc-eyebrow.has-white-color, .phc-eyebrow.has-peach-color { letter-spacing: 0.16em; }
.wp-block-group.phc-hero { position: relative; overflow: hidden; }
.wp-block-group.phc-hero > * { position: relative; z-index: 2; }
.phc-hero h1 em, h1 em, h2 em { color: var(--wp--preset--color--coral); font-style: italic; }
.phc-label {
	font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5;
}
.phc-script { font-family: var(--wp--preset--font-family--heading); }

/* Button helpers */
.wp-block-button__link { transition: background-color .2s, transform .2s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--teal); border: 2px solid currentColor;
}
.phc-cta .wp-block-button__link:hover { background: var(--wp--preset--color--peach) !important; color: var(--wp--preset--color--navy) !important; }

/* =========================================================
   Hero (cover block)
   ========================================================= */
.phc-hero.wp-block-cover { position: relative; overflow: hidden; align-items: center; }
.phc-hero .wp-block-cover__image-background { object-position: 70% 50%; }
.phc-hero::before, .phc-hero::after {
	content: ""; position: absolute; border-radius: 50%; background: var(--wp--preset--color--peach); z-index: 1; pointer-events: none;
}
.phc-hero::before { width: 190px; height: 190px; left: -100px; top: 18%; opacity: .75; }
.phc-hero::after { width: 190px; height: 190px; left: -110px; top: 56%; opacity: .55; }
.phc-hero .wp-block-cover__inner-container { width: 100%; z-index: 2; }
.phc-hero h1 { line-height: 1.05; margin-block: 0.4rem 1.2rem; }
.phc-hero p { max-width: 34rem; }
@media (max-width: 781px) {
	.phc-hero .wp-block-cover__background { background: rgba(255, 243, 238, 0.86) !important; }
	.phc-hero::before, .phc-hero::after { display: none; }
}

/* About-style hero with circular photo */
.phc-photo-circle { margin: 0; }
.phc-photo-circle img {
	aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50% !important; width: 100%;
	box-shadow: 0 0 0 14px var(--wp--preset--color--peach), 0 20px 50px rgba(229, 82, 47, 0.12);
}
.phc-photo-blob img { border-radius: 0 50% 50% 0 !important; box-shadow: none; aspect-ratio: 1 / 1; object-fit: cover; }
.phc-photo-rounded img { border-radius: 24px; object-fit: cover; box-shadow: 0 0 0 8px var(--wp--preset--color--peach); }

/* =========================================================
   Feature strip + icons
   ========================================================= */
.phc-features { gap: 0 !important; }
.phc-features > .wp-block-column { padding: 0.25rem 1rem; text-align: center; }
@media (min-width: 782px) {
	.phc-features > .wp-block-column + .wp-block-column { border-left: 1px solid rgba(255, 107, 74, 0.28); }
}
.phc-icon {
	box-sizing: border-box; padding: 0 !important; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-inline: auto; flex-shrink: 0;
}
.phc-icon .wp-block-image { margin: 0; line-height: 0; width: auto; flex: none; }
.phc-icon img { width: 28px !important; height: 28px !important; max-width: none; border-radius: 0; object-fit: contain; }
.phc-icon.is-left { margin-inline: 0; }
.phc-icon.is-lg { width: 72px; height: 72px; }
.phc-icon.is-lg img { width: 32px; height: 32px; }

/* =========================================================
   Cards
   ========================================================= */
.phc-card {
	background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--soft);
	overflow: hidden; height: 100%; transition: box-shadow .25s, transform .25s;
}
.phc-card:hover { box-shadow: var(--wp--preset--shadow--lifted); transform: translateY(-2px); }
.phc-card > .wp-block-image, .phc-card > .wp-block-post-featured-image { margin: 0; }
.phc-card > .wp-block-image img,
.phc-card > .wp-block-post-featured-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; display: block; }
.phc-card__body { padding: 1.1rem 1.35rem 1.4rem; }
.phc-card__body > * { margin-block: 0; }
.phc-card__body > * + * { margin-block-start: 0.5rem; }
.phc-card h2, .phc-card h3, .phc-card .wp-block-post-title { font-size: 1.3rem; line-height: 1.2; }
.phc-card p { font-size: 0.875rem; line-height: 1.6; color: var(--wp--preset--color--muted); }
.phc-card .wp-block-post-terms, .phc-card .phc-cat {
	font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--coral);
}
.phc-card .wp-block-post-terms a, .phc-card .phc-cat a { color: inherit; text-decoration: none; }
.phc-link, .phc-link a, .wp-block-read-more.phc-link {
	font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--wp--preset--color--coral); text-decoration: none;
}
.phc-link a:hover, .wp-block-read-more.phc-link:hover { color: var(--wp--preset--color--coral-dark); }
.wp-block-post-featured-image.phc-thumb img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.phc-card--small .wp-block-image img { aspect-ratio: 16/10; }

/* Service cards: icon overlapping the photo */
.phc-service > .wp-block-image { margin: 0; }
.phc-service .phc-icon { margin-top: -32px; position: relative; z-index: 2; box-shadow: 0 0 0 5px #fff; }
.phc-service .phc-card__body { text-align: center; padding-top: 0.75rem; }
.phc-service h3 { font-size: 1.35rem; }
.phc-card-grid { gap: 1.5rem; }

/* Approach band */
.phc-approach { border-radius: 28px; }
.phc-approach .phc-approach-items > .wp-block-column { text-align: center; padding-inline: 0.75rem; }
@media (min-width: 782px) {
	.phc-approach .phc-approach-items > .wp-block-column + .wp-block-column { border-left: 1px solid rgba(255, 107, 74, 0.28); }
}
.phc-approach .phc-approach-items p { font-size: 0.8rem; line-height: 1.5; margin-block: 0.15rem 0; }

/* Checklist */
ul.is-style-checklist, ul.phc-checklist { list-style: none; padding-left: 0; margin-left: 0; }
ul.is-style-checklist li, ul.phc-checklist li { position: relative; padding-left: 2rem; margin-block: 0.45rem; font-size: 0.95rem; }
ul.is-style-checklist li::before, ul.phc-checklist li::before {
	content: ""; position: absolute; left: 0; top: 0.2em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
	background: var(--wp--preset--color--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* =========================================================
   CTA band
   ========================================================= */
.phc-cta { position: relative; overflow: hidden; isolation: isolate; }
.phc-cta::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: min(340px, 34vw); z-index: -1;
	background: url("assets/images/leaf-line.svg") no-repeat left bottom / contain;
}
.phc-cta::after {
	content: ""; position: absolute; right: -90px; bottom: -150px; width: 340px; height: 340px; border-radius: 50%;
	background: rgba(255, 255, 255, 0.07); z-index: -1;
}
@media (min-width: 900px) { .phc-cta .phc-cta__inner { padding-left: clamp(0rem, 24vw, 17rem); } }
.phc-cta h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-block: 0.25rem 0.5rem; }
.phc-cta p { font-size: 0.92rem; margin: 0; }
.phc-cta .wp-block-buttons { justify-content: flex-end; }
@media (max-width: 781px) { .phc-cta .wp-block-buttons { justify-content: flex-start; } .phc-cta::before { opacity: .5; } }

/* =========================================================
   Blog + archive
   ========================================================= */
.phc-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.phc-pill {
	display: inline-block; font-size: 0.8rem; font-weight: 500; line-height: 1; padding: 0.7rem 1.25rem; border-radius: 999px;
	background: var(--wp--preset--color--mint); color: var(--wp--preset--color--navy) !important; text-decoration: none !important;
	border: 1px solid rgba(11, 122, 135, 0.14); transition: background-color .2s, color .2s;
}
.phc-pill:hover { background: #cfe9e7; }
.phc-pill.is-active { background: var(--wp--preset--color--teal); color: #fff !important; border-color: var(--wp--preset--color--teal); }

.wp-block-search.phc-search .wp-block-search__inside-wrapper { border: 1px solid rgba(11, 122, 135, 0.2); border-radius: 999px; padding: 4px 6px 4px 18px; background: #fff; }
.wp-block-search.phc-search .wp-block-search__input { border: 0; padding: 0.55rem 0; font-size: 0.85rem; background: transparent; min-width: 0; }
.wp-block-search.phc-search .wp-block-search__button { background: transparent; color: var(--wp--preset--color--teal); border: 0; padding: 0.4rem 0.6rem; margin: 0; }

.phc-widget { border-radius: 18px; padding: 1.5rem 1.6rem; }
.phc-widget h2, .phc-widget h3 { font-size: 1.5rem; margin: 0 0 0.75rem; }
.phc-widget .wp-block-categories, .phc-widget .wp-block-categories-list { list-style: none; padding: 0; margin: 0; }
.phc-widget .wp-block-categories li { border-bottom: 1px solid rgba(14, 39, 69, 0.08); }
.phc-widget .wp-block-categories li:last-child { border-bottom: 0; }
.phc-widget .wp-block-categories a { display: flex; justify-content: space-between; padding: 0.6rem 0; font-size: 0.875rem; text-decoration: none; color: var(--wp--preset--color--navy); }
.phc-widget .wp-block-categories a::after { content: "›"; color: var(--wp--preset--color--muted); }
.phc-widget .wp-block-categories a:hover { color: var(--wp--preset--color--coral-dark); }
.phc-sidebar { gap: 1.5rem; }
.phc-sidebar > * { margin-block: 0 !important; }
.phc-sidebar .wp-block-search { margin-bottom: 0; }

.wp-block-query-pagination { font-size: 0.85rem; gap: 1rem; margin-top: 2rem; }
.wp-block-query-pagination a { text-decoration: none; font-weight: 600; }
.wp-block-query-pagination-numbers .page-numbers { padding: 0.3rem 0.6rem; border-radius: 8px; text-decoration: none; }
.wp-block-query-pagination-numbers .current { background: var(--wp--preset--color--teal); color: #fff; }

/* Single post */
.phc-post-meta { font-size: 0.85rem; color: var(--wp--preset--color--muted); }
.phc-post-meta a { color: inherit; text-decoration: none; }
.single .wp-block-post-content > h2, .single .wp-block-post-content > h3,
.page-template-default .wp-block-post-content > h2 { margin-top: 2em; }
.phc-author-box { border-radius: 20px; }
.phc-author-box .wp-block-image img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.wp-block-post-featured-image img { border-radius: 18px; }

/* =========================================================
   Testimonial
   ========================================================= */
.phc-testimonial { border-radius: 20px; }
.phc-testimonial .wp-block-quote { border: 0 !important; padding: 0 !important; margin: 0; font-size: 1.05rem; font-family: var(--wp--preset--font-family--body); font-style: italic; }
.phc-testimonial .wp-block-image img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.phc-stars { color: #F4A23A; letter-spacing: 0.15em; font-size: 1.1rem; margin: 0.25rem 0 0; }
.phc-quote-mark { font-family: var(--wp--preset--font-family--heading); font-size: 4rem; line-height: 0.8; color: var(--wp--preset--color--coral); margin: 0; }

/* =========================================================
   Contact page
   ========================================================= */
.phc-contact-card { border-radius: 22px; }
.phc-contact-info { border-radius: 22px; }
.phc-contact-info a { color: inherit; text-decoration: none; }
.phc-contact-info .phc-row { display: flex; gap: 1rem; align-items: center; padding-block: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.phc-contact-info .phc-row:last-of-type { border-bottom: 0; }
.phc-contact-info .phc-row .phc-icon { width: 56px; height: 56px; margin: 0; }
.phc-contact-info .phc-row p { margin: 0; }
.phc-contact-info .phc-row .phc-label { font-size: 0.72rem; letter-spacing: 0.16em; font-weight: 700; opacity: .9; }
.phc-tip { border-radius: 16px; }
.phc-reassure > .wp-block-column { border-radius: 18px; padding: 1.4rem 1.2rem; text-align: center; }
.phc-reassure { gap: 1rem; }
.phc-reassure .phc-icon { width: 56px; height: 56px; margin-bottom: 0.75rem; }
.phc-reassure h3 { font-family: var(--wp--preset--font-family--body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; margin: 0 0 0.35rem; }
.phc-reassure p { font-size: 0.85rem; line-height: 1.55; margin: 0; }

/* FAQ */
.phc-faq { background: #fff; border-radius: 16px; box-shadow: var(--wp--preset--shadow--soft); padding: 0.4rem 1.5rem; }
.phc-faq .wp-block-details { border-bottom: 1px solid rgba(14, 39, 69, 0.09); padding: 0; margin-block: 0 !important; }
.phc-faq .wp-block-details:last-child { border-bottom: 0; }
.phc-faq summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 0.7rem 0; font-size: 0.92rem; font-family: var(--wp--preset--font-family--heading); color: var(--wp--preset--color--navy);
}
.phc-faq summary::-webkit-details-marker { display: none; }
.phc-faq summary::after { content: "+"; font-family: var(--wp--preset--font-family--body); font-size: 1.3rem; line-height: 1; color: var(--wp--preset--color--navy); }
.phc-faq details[open] summary::after { content: "–"; }
.phc-faq details > :not(summary) { font-size: 0.9rem; color: var(--wp--preset--color--muted); margin: 0 0 1rem; }

/* ---- Contact form ---- */
.phc-form { display: grid; gap: 0.8rem; margin: 0; }
.phc-form__row { display: grid; gap: 0.8rem; }
@media (min-width: 640px) { .phc-form--two .phc-form__row.is-split { grid-template-columns: 1fr 1fr; } }
.phc-form label { display: block; }
.phc-form input[type="text"], .phc-form input[type="email"], .phc-form select, .phc-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 0.92rem; color: var(--wp--preset--color--navy);
	background: #fff; border: 1px solid rgba(255, 107, 74, 0.28); border-radius: 10px; padding: 0.85rem 1rem;
	transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.phc-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2745' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1.1rem; padding-right: 2.6rem;
}
.phc-form textarea { min-height: 9rem; resize: vertical; }
.phc-form ::placeholder { color: #6f7f93; opacity: 1; }
.phc-form input:focus, .phc-form select:focus, .phc-form textarea:focus {
	outline: 0; border-color: var(--wp--preset--color--teal); box-shadow: 0 0 0 3px rgba(11, 122, 135, 0.18);
}
.phc-form .is-invalid { border-color: #c0392b; }
.phc-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.phc-form__submit {
	justify-self: start; cursor: pointer; border: 0; border-radius: 999px; font: inherit; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	background: var(--wp--preset--color--teal-dark); color: #fff; padding: 1.05em 2.4em; transition: background-color .2s, transform .2s;
}
.phc-form__submit:hover { background: var(--wp--preset--color--teal); transform: translateY(-1px); }
.phc-form__submit[disabled] { opacity: .65; cursor: progress; }
.phc-form__note { font-size: 0.78rem; color: var(--wp--preset--color--muted); margin: 0; line-height: 1.5; }
.phc-form__note a { color: inherit; }
.phc-form__field-error { color: #b03a2e; font-size: 0.8rem; margin: 0.25rem 0 0; }
.phc-form-wrap { scroll-margin-top: 110px; }
.phc-notice { border-radius: 12px; padding: 1rem 1.2rem; font-size: 0.92rem; margin-bottom: 1rem; }
.phc-notice p { margin: 0; }
.phc-notice.is-success { background: var(--wp--preset--color--mint); border-left: 4px solid var(--wp--preset--color--teal); color: var(--wp--preset--color--deep-green); }
.phc-notice.is-error { background: #fdeae6; border-left: 4px solid #c0392b; color: #7b241c; }
.phc-newsletter .phc-form { gap: 0.6rem; }
.phc-newsletter .phc-form input { border-radius: 999px; border-color: transparent; font-size: 0.85rem; padding: 0.75rem 1.1rem; }

/* =========================================================
   Footer
   ========================================================= */
.phc-footer { font-size: 0.85rem; }
.phc-footer a { color: inherit; text-decoration: none; }
.phc-footer a:hover { color: var(--wp--preset--color--peach); }
.phc-footer .wp-block-navigation { font-size: 0.8rem; gap: 1.5rem; }
.phc-footer .wp-block-site-logo img { border-radius: 0; }
.phc-footer .wp-block-navigation .wp-block-navigation-item__content { color: inherit; }

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width: 781px) {
	.phc-hero .wp-block-column:empty { display: none; }
	.phc-features.wp-block-columns, .phc-approach-items.wp-block-columns { flex-wrap: wrap !important; gap: 1.5rem 0 !important; }
	.phc-features > .wp-block-column, .phc-approach-items > .wp-block-column { flex-basis: 50% !important; flex-grow: 0 !important; border-left: 0 !important; }
	.phc-contact-card, .phc-contact-info { padding: 1.5rem !important; }
	.phc-contact-info .phc-row p { overflow-wrap: anywhere; }
	.phc-testimonial { padding: 1.25rem !important; }
	.phc-card-grid { gap: 1.25rem; }
	.phc-testimonial .wp-block-columns { gap: 1rem; }
	.phc-photo-circle img { box-shadow: 0 0 0 8px var(--wp--preset--color--peach); }
}
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}
