/*
Theme Name: Joanie Hynes Real Estate
Theme URI: https://joaniehynes.com
Author: Luke Brandenburg
Description: Custom block theme for Joanie Hynes, Associate Broker with eXp Realty. Warm, personal design in Joanie's logo teal and green, with lead forms (contact, home value, newsletter) that email Joanie and save every lead in WordPress, IDX-ready listings, and built-in local SEO schema.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.1
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: joanie-hynes
*/

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks > main { margin-block-start: 0; }
a { text-underline-offset: 4px; }
:focus-visible { outline: 3px solid #4AA8B2; outline-offset: 3px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo split bar (teal / green diagonal) */
.jh-split, .jh-split-bar::after {
	background: linear-gradient(135deg, #4AA8B2 0 50%, #7EA446 50% 100%);
}
.jh-split-bar { position: relative; }
.jh-split-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; }

/* Landing pages: sections butt together; each section sets its own padding. */
.wp-block-post-content:not(.jh-post-content) > * { margin-block-start: 0; }

/* Shared text styles */
.jh-script { font-family: var(--wp--preset--font-family--script) !important; font-size: 34px !important; line-height: 1 !important; color: var(--wp--preset--color--green); margin: 0; }
.jh-eyebrow { font-size: 13px !important; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--green); margin: 0; }
.jh-eyebrow.is-teal { color: var(--wp--preset--color--teal); }
.jh-lead { font-size: 19px !important; line-height: 1.65; color: var(--wp--preset--color--body); max-width: 560px; }
.jh-muted { color: var(--wp--preset--color--body); }
h1 em, h2 em, .wp-block-heading em { font-style: italic; color: var(--wp--preset--color--teal); }

.jh-section { padding-block: clamp(64px, 8vw, 100px); }
.jh-section-head { margin-bottom: 44px !important; }
.jh-section-head > * { max-width: 700px; }
.jh-section-head > * + * { margin-top: 12px !important; }
.jh-section-head p:not(.jh-eyebrow) { color: var(--wp--preset--color--body); }
.jh-row-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 40px !important; }
.jh-row-head > .wp-block-group { max-width: 700px; }
.jh-row-head .jh-more { margin: 0; font-weight: 700; font-size: 15px; }
.jh-row-head .jh-more a { text-decoration: none; }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color .15s ease, color .15s ease; }
.wp-block-button.is-style-green .wp-block-button__link { background: var(--wp--preset--color--green); }
.wp-block-button.is-style-white .wp-block-button__link { background: #fff; color: var(--wp--preset--color--teal); }
.wp-block-button.is-style-white .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: #fff; }
.wp-block-button.is-style-outline-white .wp-block-button__link { background: transparent; color: #fff; border: 1.5px solid #fff; }
.wp-block-button.is-style-outline-white .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--teal); }
.wp-block-button.is-style-text .wp-block-button__link { background: transparent; color: var(--wp--preset--color--ink); padding-inline: 8px; text-decoration: underline; text-underline-offset: 5px; }
.wp-block-button.is-style-text .wp-block-button__link:hover { color: var(--wp--preset--color--teal); background: transparent; }
.wp-block-button.is-style-green .wp-block-button__link:hover { background: var(--wp--preset--color--ink); }

/* ---------- Header ---------- */
.jh-header { padding-block: 18px; }
.jh-header__inner { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: space-between; }
.jh-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--wp--preset--color--ink); }
.jh-brand img { width: 54px; height: auto; display: block; }
.jh-brand__name { display: block; font-family: var(--wp--preset--font-family--serif); font-size: 28px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; color: var(--wp--preset--color--ink); }
.jh-brand__sub { display: block; font-size: 13px; color: var(--wp--preset--color--muted); margin-top: 3px; }
.jh-header__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
.jh-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--ink); padding-block: 10px; }
.jh-header .wp-block-navigation a:hover, .jh-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--teal); }
.jh-header .wp-block-navigation__container { gap: 4px 26px; }
.jh-call .wp-block-button__link { padding: 13px 22px; font-size: 14px; }
@media (max-width: 600px) {
	.jh-header__inner { flex-wrap: nowrap; }
	.jh-brand__name { font-size: 24px; }
	.jh-brand img { width: 44px; }
	.wp-block-buttons > .wp-block-button.jh-call { display: none; }
	.jh-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.jh-stat { font-size: 30px !important; }
	.jh-places { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 22px 14px; }
	.jh-place h3 { font-size: 22px; }
	.jh-place p { font-size: 14px; }
	.jh-hero { padding-block: 8px 64px; }
	.jh-listings-cta { padding: 28px 22px; }
}

/* ---------- Footer ---------- */
.jh-footer { background: var(--wp--preset--color--ink); color: #C5D0D2; font-size: 14px; }
.jh-footer a { color: #fff; text-decoration: none; }
.jh-footer a:hover { text-decoration: underline; color: #fff; }
.jh-footer__bar { height: 6px; }
.jh-footer__inner { max-width: 1240px; margin: 0 auto; padding: 64px 24px 32px; }
.jh-footer__top { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.jh-footer__brand { max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.jh-footer__brand .jh-brand__name { color: #fff; }
.jh-footer__brand img.jh-logo { width: 48px; }
.jh-footer__brand img.jh-exp { width: 120px; margin-top: 10px; }
.jh-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 48px; align-content: start; }
.jh-footer__nav a { padding: 4px 0; display: inline-block; }
.jh-footer__contact { display: flex; flex-direction: column; gap: 8px; }
.jh-footer__legal { border-top: 1px solid #34474B; margin-top: 40px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; font-size: 12px; color: #A9B6B8; }
.jh-footer__legal span.jh-eho { display: flex; align-items: center; gap: 14px; }
.jh-footer__legal img { width: 40px; }
.jh-footer__legal a { color: #A9B6B8; }

/* ---------- Home: hero ---------- */
.jh-hero { padding-block: 32px 88px; }
.jh-hero > .wp-block-columns { gap: 56px; align-items: center !important; }
.jh-photo-frame { position: relative; padding: 0 20px 20px 0; max-width: 500px; }
.jh-photo-frame::before { content: ""; position: absolute; right: 0; bottom: 0; width: calc(100% - 20px); height: calc(100% - 20px); border-radius: 20px; background: linear-gradient(135deg, #4AA8B2 0 50%, #7EA446 50% 100%); }
.jh-photo-frame.is-left { padding: 0 0 20px 20px; max-width: 560px; margin-left: auto; }
.jh-photo-frame.is-left::before { left: 0; right: auto; }
.jh-photo-frame .wp-block-image { position: relative; margin: 0; }
.jh-photo-frame .wp-block-image img { display: block; width: 100%; border-radius: 20px; object-fit: cover; }
.jh-photo-frame.is-cover .wp-block-image img { aspect-ratio: 824 / 1073; }
.jh-photo-frame.is-candid .wp-block-image img { aspect-ratio: 4 / 3; }
.jh-rating { width: max-content; position: absolute; left: -12px; bottom: 56px; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; padding: 14px 20px !important; margin: 0 !important; font-size: 13px !important; line-height: 1.4; color: var(--wp--preset--color--muted); }
.jh-rating strong { display: block; font-family: var(--wp--preset--font-family--serif); font-size: 28px; font-weight: 600; color: var(--wp--preset--color--ink); line-height: 1.1; }
.jh-rating strong span { color: var(--wp--preset--color--teal); }
@media (max-width: 600px) { .jh-rating { left: 8px; bottom: 36px; } }
.jh-hero__copy > * + * { margin-top: 26px !important; }
.jh-hero__copy h1 { margin-top: 20px !important; }

/* ---------- Home: facts band ---------- */
.jh-band { background: var(--wp--preset--color--teal); color: #fff; padding-block: 44px 50px; }
.jh-band .jh-facts { gap: 28px; }
.jh-stat { font-family: var(--wp--preset--font-family--serif); font-size: 40px !important; font-weight: 600; line-height: 1.05; margin: 0; color: #fff; }
.jh-stat-label { font-size: 15px !important; color: #E3F1F2; margin: 4px 0 0 !important; }

/* ---------- Cards ---------- */
.jh-cards { gap: 22px; }
.jh-card { position: relative; border-radius: 24px; padding: 36px 32px !important; display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.jh-card > * { margin: 0 !important; }
.jh-card h3 { font-size: 28px; }
.jh-card p { font-size: 16px; line-height: 1.65; color: var(--wp--preset--color--body); }
.jh-card .jh-card__link { margin-top: auto !important; font-weight: 700; font-size: 15px; }
.jh-card .jh-card__link a { text-decoration: none; color: var(--wp--preset--color--teal); }
.jh-card .jh-card__link a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.jh-card:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.jh-card::before { content: ""; width: 36px; height: 36px; background: var(--jh-icon-color, var(--wp--preset--color--teal)); -webkit-mask: var(--jh-icon) center / contain no-repeat; mask: var(--jh-icon) center / contain no-repeat; }
.jh-card.is-buy { background: var(--wp--preset--color--teal-tint); --jh-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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11 12 4l9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E"); }
.jh-card.is-sell { background: var(--wp--preset--color--green); --jh-icon-color: #fff; --jh-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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-7'/%3E%3Cpath d='M2 9l10-6 10 6'/%3E%3Cpath d='M9 15l2 2 4-4'/%3E%3C/svg%3E"); }
.jh-card.is-sell h3, .jh-card.is-sell .jh-card__link a { color: #fff; }
.jh-card.is-sell p { color: #F0F5E8; }
.jh-card.is-chat { background: var(--wp--preset--color--green-tint); --jh-icon-color: var(--wp--preset--color--green); --jh-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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
.jh-card.is-chat .jh-card__link a { color: var(--wp--preset--color--green); }

/* Numbered steps */
.jh-steps { counter-reset: jhstep; gap: 22px; }
.jh-step { counter-increment: jhstep; border-radius: 24px; padding: 32px 28px !important; display: flex; flex-direction: column; gap: 12px; background: var(--wp--preset--color--teal-tint); }
.jh-step:nth-child(even) { background: var(--wp--preset--color--green-tint); }
.jh-step > * { margin: 0 !important; }
.jh-step::before { content: counter(jhstep); width: 48px; height: 48px; border-radius: 50%; background: var(--wp--preset--color--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--serif); font-size: 22px; }
.jh-step:nth-child(even)::before { background: var(--wp--preset--color--green); }
.jh-step h3 { font-size: 26px; }
.jh-step p { font-size: 16px; color: var(--wp--preset--color--body); }

/* ---------- Story ---------- */
.jh-story > .wp-block-columns { gap: 56px; align-items: center !important; }
.jh-story__copy > * + * { margin-top: 22px !important; }
.jh-story__copy p:not(.jh-eyebrow):not(.jh-signature) { font-size: 18px; line-height: 1.75; color: var(--wp--preset--color--body); }
.jh-signature { font-family: var(--wp--preset--font-family--script) !important; font-size: 44px !important; color: var(--wp--preset--color--teal); line-height: 1; }
@media (max-width: 781px) { .jh-story > .wp-block-columns { flex-direction: column-reverse; } }

/* ---------- Soft sections ---------- */
.jh-mist { background: var(--wp--preset--color--mist); border-block: 1px solid var(--wp--preset--color--line); }
.jh-greenwash { background: var(--wp--preset--color--green-tint); }

/* ---------- Listings ---------- */
.jh-search { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; background: #fff; border: 1px solid var(--wp--preset--color--line); padding: 10px; border-radius: 999px; max-width: 720px; }
.jh-search input { flex: 1 1 240px; min-height: 52px; border: 0; background: transparent; padding: 0 20px; font: inherit; font-size: 16px; color: var(--wp--preset--color--ink); }
.jh-search input:focus { outline: none; }
.jh-search:focus-within { outline: 3px solid #4AA8B2; outline-offset: 2px; }
.jh-listings-cta { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 28px; padding: 40px; }
.jh-listings-cta h3 { margin: 0 0 8px; font-family: var(--wp--preset--font-family--serif); font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.2; }
.jh-listings-cta p { margin: 0; color: var(--wp--preset--color--body); max-width: 560px; }
.jh-listings-cta .jh-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.jh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; background: var(--wp--preset--color--teal); color: #fff !important; border: 0; cursor: pointer; font-family: inherit; transition: background-color .15s ease; }
.jh-btn:hover { background: var(--wp--preset--color--ink); color: #fff; }
.jh-btn.is-green { background: var(--wp--preset--color--green); }
.jh-btn.is-ghost { background: #fff; color: var(--wp--preset--color--ink) !important; border: 1.5px solid #C9D7D9; }
.jh-btn.is-ghost:hover { border-color: var(--wp--preset--color--ink); }

/* ---------- Places ---------- */
.jh-places { gap: 22px; }
.jh-place { display: flex; flex-direction: column; gap: 14px; }
.jh-place > * { margin: 0 !important; }
.jh-place__arch { aspect-ratio: 1 / 1; border-radius: 999px 999px 20px 20px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.jh-place:nth-child(odd) .jh-place__arch { background: var(--wp--preset--color--teal-wash); }
.jh-place:nth-child(even) .jh-place__arch { background: var(--wp--preset--color--green-wash); }
.jh-place__arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jh-place__arch:not(:has(img))::after { content: ""; width: 58%; height: 38%; margin-bottom: 18%; opacity: .55; background: var(--wp--preset--color--teal); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 54h108'/%3E%3Cpath d='M14 54V30l18-14 18 14v24'/%3E%3Cpath d='M58 54V22l22-16 22 16v32'/%3E%3Cpath d='M26 54V40h12v14M72 54V38h16v16'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 54h108'/%3E%3Cpath d='M14 54V30l18-14 18 14v24'/%3E%3Cpath d='M58 54V22l22-16 22 16v32'/%3E%3Cpath d='M26 54V40h12v14M72 54V38h16v16'/%3E%3C/svg%3E") center / contain no-repeat; }
.jh-place:nth-child(even) .jh-place__arch::after { background: var(--wp--preset--color--green); }
.jh-place h3 { font-size: 28px; }
.jh-place p { font-size: 15px; line-height: 1.55; color: var(--wp--preset--color--body); margin-top: -6px !important; }

/* ---------- Reviews ---------- */
.jh-reviews { gap: 22px; }
.wp-block-quote.jh-review { margin: 0; background: #fff; border-radius: 24px; padding: 34px 30px; display: flex; flex-direction: column; gap: 22px; border: 0; }
.wp-block-quote.jh-review::before { content: "★★★★★"; color: var(--wp--preset--color--teal); font-size: 18px; letter-spacing: 3px; }
.wp-block-quote.jh-review p { font-family: var(--wp--preset--font-family--serif); font-size: 23px; line-height: 1.4; margin: 0; }
.wp-block-quote.jh-review cite { margin-top: auto; font-size: 14px; font-style: normal; color: var(--wp--preset--color--muted); }
.jh-testimonial > .wp-block-columns { gap: 56px; align-items: center !important; }
.jh-testimonial .jh-headshot img { width: 100%; max-width: 300px; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%; border-radius: 50%; display: block; }
.wp-block-quote.jh-big-quote { margin: 0; border: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.wp-block-quote.jh-big-quote::before { content: "★★★★★"; color: var(--wp--preset--color--teal); font-size: 20px; letter-spacing: 3px; }
.wp-block-quote.jh-big-quote p { font-family: var(--wp--preset--font-family--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.3; margin: 0; }
.wp-block-quote.jh-big-quote cite { font-size: 15px; font-style: normal; color: var(--wp--preset--color--muted); }

/* ---------- Post cards (query loops) ---------- */
.jh-post-grid .wp-block-post-template, ul.jh-post-grid { gap: 36px 24px; }
.jh-post-card { display: flex; flex-direction: column; gap: 12px; }
.jh-post-card > * { margin: 0 !important; }
.jh-post-card .wp-block-post-featured-image img, .jh-post-card .jh-img-fallback { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: 20px; display: block; }
.jh-img-fallback { display: flex !important; align-items: center; justify-content: center; background: var(--wp--preset--color--teal-wash); overflow: hidden; }
li:nth-child(even) .jh-img-fallback { background: var(--wp--preset--color--green-wash); }
.jh-img-fallback img { width: 64px !important; height: auto !important; aspect-ratio: auto !important; border-radius: 0 !important; opacity: .9; }
.jh-post-card .wp-block-post-terms { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--green); }
.jh-post-card .wp-block-post-terms a { color: inherit; text-decoration: none; }
.jh-post-card .wp-block-post-title { font-size: 25px; font-weight: 600; line-height: 1.2; }
.jh-post-card .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--ink); }
.jh-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--teal); }
.jh-post-card .wp-block-post-excerpt { font-size: 16px; line-height: 1.6; color: var(--wp--preset--color--body); }
.jh-post-card .wp-block-post-excerpt__excerpt { margin: 0; }
.jh-post-card .wp-block-post-date, .jh-meta { font-size: 14px; color: var(--wp--preset--color--muted); }

/* Featured first post on the main blog page */
@media (min-width: 900px) {
	body.blog:not(.paged) .jh-blog-loop .wp-block-post-template > li:first-child { grid-column: 1 / -1; }
	body.blog:not(.paged) .jh-blog-loop .wp-block-post-template > li:first-child .jh-post-card { flex-direction: row; align-items: center; gap: 40px; border: 1px solid var(--wp--preset--color--line); border-radius: 28px; overflow: hidden; }
	body.blog:not(.paged) .jh-blog-loop li:first-child .jh-post-card > :first-child { flex: 0 0 54%; }
	body.blog:not(.paged) .jh-blog-loop li:first-child .jh-post-card > :first-child :not(.jh-img-fallback) > img,
	body.blog:not(.paged) .jh-blog-loop li:first-child .jh-post-card > :first-child > img,
	body.blog:not(.paged) .jh-blog-loop li:first-child .jh-img-fallback { border-radius: 0; aspect-ratio: 16 / 10; }
	body.blog:not(.paged) .jh-blog-loop li:first-child .jh-post-card .jh-post-card__body { padding: 32px 40px 32px 0; }
	body.blog:not(.paged) .jh-blog-loop li:first-child .wp-block-post-title { font-size: clamp(30px, 3vw, 40px); }
}
.jh-post-card__body { display: flex; flex-direction: column; gap: 12px; }
.jh-post-card__body > * { margin: 0 !important; }
.wp-block-query-pagination { margin-top: 48px !important; font-weight: 700; }

/* Category pills */
.jh-pills { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; margin: 0; list-style: none; padding-left: 0; }
.jh-pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; background: #fff; color: var(--wp--preset--color--ink); border: 1.5px solid #C9D7D9; }
.jh-pills a:hover { border-color: var(--wp--preset--color--teal); }
.jh-pills a[aria-current="page"] { background: var(--wp--preset--color--teal); border-color: var(--wp--preset--color--teal); color: #fff; }

/* Breadcrumbs */
.jh-crumbs { font-size: 14px !important; color: var(--wp--preset--color--muted); display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.jh-crumbs a { color: var(--wp--preset--color--muted); text-decoration: none; }
.jh-crumbs a:hover { color: var(--wp--preset--color--teal); }

/* ---------- Intro band (blog / pages) ---------- */
.jh-intro { padding-block: 72px 64px; }
.jh-intro > .wp-block-group > * + * { margin-top: 18px !important; }
.jh-intro h1 { font-size: clamp(40px, 4.8vw, 64px); max-width: 880px; }

/* ---------- Single post ---------- */
.jh-single-head { padding-block: 48px 32px; }
.jh-single-head > * + * { margin-top: 20px !important; }
.jh-single-head .wp-block-post-terms { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--green); }
.jh-single-head .wp-block-post-terms a { color: inherit; text-decoration: none; }
.jh-single-head h1 { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.08; }
.jh-single-head .wp-block-post-excerpt { font-size: 20px; line-height: 1.6; color: var(--wp--preset--color--body); }
.jh-single-head .wp-block-post-excerpt p { margin: 0; }
.jh-byline { display: flex; align-items: center; gap: 14px; }
.jh-byline > * { margin: 0 !important; }
.jh-byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 20%; display: block; }
.jh-byline .jh-byline__text { font-size: 14px; line-height: 1.5; }
.jh-byline .jh-byline__text > * { margin: 0 !important; }
.jh-byline .jh-byline__text strong { display: block; }
.jh-single-hero img { border-radius: 24px; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.jh-post-content { padding-block: 48px 24px; font-size: 18px; line-height: 1.8; color: #36454A; }
.jh-post-content h2 { font-size: 30px; font-weight: 600; line-height: 1.25; margin-top: 2em; }
.jh-post-content h3 { font-size: 24px; margin-top: 1.6em; }
.jh-post-content .jh-toc { background: var(--wp--preset--color--mist); border-radius: 20px; padding: 24px 28px; font-size: 15px; }
.jh-post-content .jh-toc a { text-decoration: none; }
.jh-post-content .wp-block-details { border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 14px 20px; font-size: 17px; line-height: 1.7; }
.jh-post-content .wp-block-details summary { font-weight: 700; cursor: pointer; color: var(--wp--preset--color--ink); }
.jh-post-content .wp-block-details[open] summary { margin-bottom: 10px; }
.jh-post-content .wp-block-details + .wp-block-details { margin-top: 12px; }
.jh-cta-box { background: var(--wp--preset--color--green); color: #fff; border-radius: 24px; padding: 32px !important; display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.jh-cta-box > * { margin: 0 !important; }
.jh-cta-box > .wp-block-group { max-width: 420px; }
.jh-cta-box > .wp-block-group > * + * { margin-top: 6px !important; }
.jh-cta-box h3 { color: #fff; font-size: 26px; }
.jh-cta-box p { color: #F0F5E8; font-size: 16px; line-height: 1.6; }
.jh-cta-box .wp-block-button__link { background: #fff; color: var(--wp--preset--color--ink); }
.jh-author-box { background: var(--wp--preset--color--mist); border-radius: 24px; padding: 28px !important; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.jh-author-box > * { margin: 0 !important; }
.jh-author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: center 20%; display: block; }
.jh-author-box .jh-author-box__text { flex: 1 1 300px; font-size: 16px; line-height: 1.6; }
.jh-author-box .jh-author-box__text strong { display: block; font-family: var(--wp--preset--font-family--serif); font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.jh-after-post > * + * { margin-top: 40px !important; }

/* ---------- Teal CTA band ---------- */
.jh-cta-band { background: var(--wp--preset--color--teal); color: #fff; }
.jh-cta-band__inner { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: center; justify-content: space-between; padding-block: 72px; }
.jh-cta-band h2 { color: #fff; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.15; max-width: 640px; margin: 0; }
.jh-cta-band p { color: #E3F1F2; margin: 8px 0 0; }

/* ---------- Forms ---------- */
.jh-form { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 28px; padding: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; align-content: start; }
.jh-form label, .jh-form legend { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; color: var(--wp--preset--color--ink); }
.jh-form .is-full { grid-column: 1 / -1; }
.jh-form input[type=text], .jh-form input[type=email], .jh-form input[type=tel], .jh-form textarea { min-height: 52px; border: 1px solid #C9D7D9; padding: 0 16px; font: inherit; font-weight: 400; font-size: 16px; border-radius: 14px; background: #fff; color: var(--wp--preset--color--ink); width: 100%; }
.jh-form textarea { padding: 14px 16px; resize: vertical; min-height: 120px; }
.jh-form input::placeholder, .jh-form textarea::placeholder { color: #6B787B; }
.jh-form input:focus, .jh-form textarea:focus { outline: 3px solid #4AA8B2; outline-offset: 1px; border-color: transparent; }
.jh-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.jh-form legend { padding: 0 0 10px; }
.jh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jh-chip { position: relative; }
.jh-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.jh-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 500; background: #fff; color: var(--wp--preset--color--ink); border: 1.5px solid #C9D7D9; cursor: pointer; }
.jh-chip input:checked + span { background: var(--wp--preset--color--teal); border-color: var(--wp--preset--color--teal); color: #fff; }
.jh-chip input:focus-visible + span { outline: 3px solid #4AA8B2; outline-offset: 2px; }
.jh-form .jh-submit { grid-column: 1 / -1; min-height: 54px; width: 100%; font-size: 16px; }
.jh-form .jh-fineprint { grid-column: 1 / -1; font-size: 13px; color: var(--wp--preset--color--muted); line-height: 1.5; margin: 0; font-weight: 400; }
.jh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.jh-notice { grid-column: 1 / -1; border-radius: 14px; padding: 14px 18px; font-size: 15px; margin: 0; }
.jh-notice.is-error { background: #FBEDEA; color: #8A2E1E; }
.jh-form-done { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 28px; padding: 40px 36px; display: flex; flex-direction: column; gap: 14px; }
.jh-form-done .jh-script { font-size: 40px !important; }
.jh-form-done p { margin: 0; }
.jh-form-done .jh-form-done__title { font-family: var(--wp--preset--font-family--serif); font-size: 28px; font-weight: 600; line-height: 1.2; color: var(--wp--preset--color--ink); }

/* Home value card */
.jh-value-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 28px; overflow: hidden; }
.jh-value-card > .jh-split { height: 6px; }
.jh-value-card .jh-form { border: 0; border-radius: 0; padding: 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jh-value-card .jh-form-done { border: 0; }
.jh-step-head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.jh-step-head .jh-step-count { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--teal); }
.jh-step-head .jh-step-title { font-family: var(--wp--preset--font-family--serif); font-size: 30px; font-weight: 600; line-height: 1.15; }
.jh-value-step { display: contents; }
.jh-step-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.jh-step-actions .jh-btn { flex: 1 1 200px; min-height: 54px; }
.jh-step-actions .jh-btn.is-ghost { flex: 0 0 auto; }
@media (max-width: 520px) { .jh-value-card .jh-form { grid-template-columns: 1fr; padding: 28px 22px; } .jh-form { padding: 28px 22px; } }

.jh-checks { list-style: none; padding: 6px 0 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.jh-checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.5; }
.jh-checks li::before { content: ""; flex: 0 0 24px; height: 24px; margin-top: 1px; background: var(--wp--preset--color--green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.jh-value-hero { padding-block: 56px 96px; }
.jh-value-hero > .wp-block-columns { gap: 56px; align-items: flex-start !important; }
.jh-value-hero__copy { padding-top: 24px; }
.jh-value-hero__copy > * + * { margin-top: 24px !important; }

/* Newsletter band */
.jh-newsletter { background: var(--wp--preset--color--teal); color: #fff; }
.jh-newsletter__inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-block: 64px; }
.jh-newsletter__copy { max-width: 520px; }
.jh-newsletter__copy strong { display: block; font-family: var(--wp--preset--font-family--serif); font-size: 34px; font-weight: 600; line-height: 1.2; margin-bottom: 8px; }
.jh-newsletter__copy span { color: #E3F1F2; font-size: 16px; line-height: 1.6; }
.jh-news-form { flex: 1 1 420px; max-width: 560px; display: flex; flex-wrap: wrap; gap: 10px; }
.jh-news-form input[type=email] { flex: 1 1 240px; min-height: 52px; border: 0; padding: 0 20px; font: inherit; font-size: 16px; border-radius: 999px; background: #fff; color: var(--wp--preset--color--ink); }
.jh-news-form .jh-btn { background: var(--wp--preset--color--green); }
.jh-news-form .jh-btn:hover { background: var(--wp--preset--color--ink); }
.jh-news-msg { flex-basis: 100%; margin: 0; font-weight: 700; }

/* Contact block */
.jh-hello > .wp-block-columns { gap: 56px; }
.jh-hello__copy > * + * { margin-top: 20px !important; }
.jh-hello__copy .jh-phone a { font-weight: 700; font-size: 22px; text-decoration: none; }
.jh-hello__copy .jh-contact-lines { font-size: 17px; }
.jh-hello__copy .jh-contact-lines a { color: var(--wp--preset--color--ink); text-decoration: none; }

/* Navigation overlay (mobile) */
.wp-block-navigation__responsive-container.is-menu-open { padding: 32px 24px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a { font-size: 22px; }

/* 404 / search */
.jh-simple { padding-block: 96px; }

/* Editor niceties */
.editor-styles-wrapper .jh-card .jh-card__link a::after { display: none; }

/* ---------- Listings ---------- */
.jh-listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 36px 24px; }
.jh-listing-card { display: flex; flex-direction: column; gap: 16px; }
.jh-listing-card__photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--wp--preset--color--teal-wash); }
.jh-listing-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.jh-listing-card:hover .jh-listing-card__photo img { transform: scale(1.03); }
.jh-listing-card__noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.jh-listing-card__noimg img { width: 64px !important; height: auto !important; }
.jh-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; padding: 8px 14px; border-radius: 999px; color: #fff; background: var(--wp--preset--color--teal); line-height: 1; }
.jh-badge.is-green { background: var(--wp--preset--color--green); }
.jh-badge.is-ink { background: var(--wp--preset--color--ink); }
.jh-listing-card__photo .jh-badge { position: absolute; top: 14px; left: 14px; }
.jh-listing-card__body { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.jh-listing-card__body p, .jh-listing-card__body h3 { margin: 0; }
.jh-listing-card__price { font-family: var(--wp--preset--font-family--serif); font-size: 28px; font-weight: 600; line-height: 1.15; color: var(--wp--preset--color--ink); }
.jh-listing-card__address { font-family: var(--wp--preset--font-family--sans); font-size: 16px !important; font-weight: 500 !important; line-height: 1.4 !important; letter-spacing: 0 !important; }
.jh-listing-card__address a { color: var(--wp--preset--color--ink); text-decoration: none; }
.jh-listing-card__address a::after { content: ""; position: absolute; inset: 0; }
.jh-listing-card { position: relative; }
.jh-listing-card__town { font-size: 15px; color: var(--wp--preset--color--body); }
.jh-listing-card__facts { font-size: 15px; color: var(--wp--preset--color--muted); }

/* Single listing */
.jh-listing-top { padding-block: 28px 64px; }
.jh-listing-top > * + * { margin-top: 20px !important; }
.jh-listing-hero img { width: 100%; max-height: 640px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; }
.jh-listing-cols { gap: 56px; margin-top: 40px !important; }
.jh-listing-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.jh-listing-head p, .jh-listing-head h1 { margin: 0; }
.jh-listing-head__price { font-family: var(--wp--preset--font-family--serif); font-size: clamp(36px, 4vw, 52px); font-weight: 600; line-height: 1.05; margin-top: 12px !important; }
.jh-listing-head__address { font-family: var(--wp--preset--font-family--sans) !important; font-size: 22px !important; font-weight: 500 !important; line-height: 1.35 !important; letter-spacing: 0 !important; }
.jh-listing-head__town { color: var(--wp--preset--color--body); font-size: 17px; }
.jh-facts-list { display: flex; flex-wrap: wrap; gap: 18px 40px; margin: 20px 0 8px; padding: 22px 24px; background: var(--wp--preset--color--mist); border-radius: 20px; width: 100%; }
.jh-facts-list div { display: flex; flex-direction: column; gap: 2px; }
.jh-facts-list dt { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.jh-facts-list dd { margin: 0; font-family: var(--wp--preset--font-family--serif); font-size: 22px; font-weight: 600; }
.jh-listing-content { padding-block: 24px 0; }
.jh-listing-content .wp-block-gallery img { border-radius: 14px; }
.jh-listing-aside { position: sticky; top: 24px; align-self: flex-start; }
.jh-ask { margin-bottom: 16px; }
.jh-ask p { margin: 0; }
.jh-ask__title { font-family: var(--wp--preset--font-family--serif); font-size: 28px; font-weight: 600; line-height: 1.2; margin-top: 6px !important; }
@media (max-width: 781px) { .jh-listing-aside { position: static; } }

.jh-listing-aside .jh-form { grid-template-columns: 1fr; padding: 28px; }
