/*
Theme Name: Jonathan Frost
Theme URI: https://www.drjonathanfrost.com/
Author: Dr Jonathan Frost
Description: Block theme for Dr Jonathan Frost / Beyond IQ, using the brand purples #311432, #710193 and #A32CC4.
Version: 1.5.2
Requires at least: 6.5
Tested up to: 6.7
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: jonathan-frost
*/

/* Small extras theme.json can't express */
.wp-block-button__link { transition: background-color .2s ease, transform .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.is-style-frost-card { border-radius: 12px; box-shadow: 0 8px 24px rgba(49, 20, 50, .12); }

/* ---------- No white gaps between full-width sections ---------- */
/* Live site: header, patterns, page content and footer sit flush */
body .wp-site-blocks > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
/* Full-width sections inside page content */
.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-block-post-content:empty { display: none; }
/* Editor (page editor showing the template, and Site Editor) */
.is-root-container > .wp-block-template-part,
.is-root-container > .alignfull,
.is-root-container > .wp-block-post-content,
.is-root-container > .wp-block-template-part + *,
.is-root-container > .alignfull + * { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* ---------- Pricing table ---------- */
.frost-pricing-section { padding: 4rem 2rem; background: var(--wp--preset--color--lavender); }
.frost-pricing { gap: 2rem; align-items: stretch; }
.frost-price-card {
	display: flex; flex-direction: column; height: 100%;
	border-radius: 12px; overflow: hidden; text-align: center;
	background: #fff; box-shadow: 0 8px 24px rgba(49, 20, 50, .14);
}
.frost-price-card > * { margin-block: 0; }
.frost-price-top {
	background: linear-gradient(180deg, #311432 0%, #3f1a41 100%);
	color: #fff; padding: 0 1.75rem 1.75rem;
}
.frost-price-top > * { margin-block: 0; }
.frost-price-name {
	color: #fff; font-size: 1.6rem; font-weight: 600;
	margin: 0 -1.75rem 1rem !important; padding: 1.1rem 1rem;
	background: rgba(0, 0, 0, .25);
}
.frost-price-amount { font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1.1; font-weight: 400; }
.frost-price-tagline { font-weight: 600; margin-top: .5rem !important; }
.frost-tier-1 .frost-price-tagline { color: #E0B3F0; }
.frost-tier-2 .frost-price-tagline { color: #D58BEB; }
.frost-tier-3 .frost-price-tagline { color: #C46BE3; }
.frost-price-desc { font-size: .95rem; color: rgba(255, 255, 255, .78); margin-top: 1rem !important; }
.frost-price-benefits { flex: 1; padding: 1.25rem 1.5rem; background: #F7F2F9; font-size: .98rem; }
.frost-price-benefits-title { font-weight: 700; color: var(--wp--preset--color--deep-plum); margin: 0 0 .5rem; }
.frost-price-benefits ul { list-style: none; margin: 0; padding: 0; }
.frost-price-benefits li { padding: .7rem 0; border-top: 1px dotted #d6c6dc; line-height: 1.5; }
.frost-price-cta { margin: 0 !important; }
.frost-price-cta .wp-block-button { width: 100%; }
.frost-price-cta .wp-block-button__link {
	display: block; width: 100%; border-radius: 0; padding: 1rem;
	font-size: 1.15rem; transform: none !important;
}
.frost-tier-1 .frost-price-cta .wp-block-button__link { background: #A32CC4; }
.frost-tier-2 .frost-price-cta .wp-block-button__link { background: #710193; }
.frost-tier-3 .frost-price-cta .wp-block-button__link { background: #311432; }
.frost-price-cta .wp-block-button__link:hover { filter: brightness(1.15); }

/* ---------- Shared section styles for patterns ---------- */
.frost-section { padding: 4.5rem 2rem; }
.frost-bg-white { background: #fff; }
.frost-bg-lavender { background: var(--wp--preset--color--lavender); }
.frost-bg-plum { background: linear-gradient(135deg, #311432 0%, #710193 100%); color: #fff; }
.frost-bg-plum h1, .frost-bg-plum h2, .frost-bg-plum h3 { color: #fff; }
.frost-page-header { background: linear-gradient(135deg, #311432 0%, #710193 60%, #A32CC4 100%); color: #fff; text-align: center; padding: 5rem 2rem 4rem; }
.frost-page-header h1 { color: #fff; }
.frost-section-title { text-align: center; }
.frost-center, .frost-lead.frost-center { text-align: center; }
.frost-bg-plum .frost-lead, .frost-page-header .frost-lead { text-align: center; }
.frost-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.5; }
.frost-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--wp--preset--color--orchid); margin-bottom: -.75rem; }
.frost-center-buttons { justify-content: center; }
.frost-bg-plum .frost-center-buttons .wp-block-button__link { background: #fff; color: var(--wp--preset--color--deep-plum); }

.frost-card { background: #fff; border-radius: 12px; padding: 2rem; height: 100%; box-shadow: 0 8px 24px rgba(49, 20, 50, .12); }
.frost-card-plum { background: linear-gradient(160deg, #311432 0%, #710193 100%); color: #fff; }
.frost-card-plum h3 { color: #fff; }
.wp-block-columns.frost-testimonials, .wp-block-columns.frost-articles, .wp-block-columns.frost-contact { gap: 2rem; }

/* About */
.frost-portrait img { border-radius: 16px; box-shadow: 0 12px 32px rgba(49, 20, 50, .2); width: 100%; height: auto; }
.frost-byline { font-style: italic; color: #5b4a5e; border-left: 4px solid var(--wp--preset--color--orchid); padding-left: 1rem; }
.wp-block-columns.frost-about { gap: 3.5rem; }

/* Testimonials */
.frost-testimonial { border: 0; margin: 0; padding: 0; }
.frost-testimonial::before { content: "\201C"; display: block; font-size: 4rem; line-height: 1; color: var(--wp--preset--color--orchid); font-weight: 800; }
.frost-testimonial p { font-style: italic; font-size: 1.05rem; }
.frost-testimonial cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; color: var(--wp--preset--color--purple); font-size: .95rem; }

/* Articles */
.frost-article { border-top: 5px solid var(--wp--preset--color--orchid); }
.frost-read-more a { font-weight: 700; text-decoration: none; }

/* FAQ */
.frost-faq-item { background: #fff; border-radius: 10px; margin-block-start: 1rem; padding: 1.1rem 1.5rem; box-shadow: 0 4px 14px rgba(49, 20, 50, .08); }
.frost-faq-item summary { cursor: pointer; font-weight: 700; color: var(--wp--preset--color--deep-plum); list-style: none; position: relative; padding-right: 2rem; }
.frost-faq-item summary::-webkit-details-marker { display: none; }
.frost-faq-item summary::after { content: "+"; position: absolute; right: 0; top: -.15rem; font-size: 1.5rem; color: var(--wp--preset--color--orchid); }
.frost-faq-item[open] summary::after { content: "\2212"; }

/* Placeholders for forms */
.frost-form-placeholder { border: 2px dashed currentColor; border-radius: 10px; padding: 1rem; text-align: center; opacity: .75; }

/* Feature (Culture Leak Audit) */
.wp-block-columns.frost-feature { gap: 3.5rem; }
.frost-feature-box { border-top: 5px solid var(--wp--preset--color--purple); }
.frost-ticks { list-style: none; padding: 0; }
.frost-ticks li { padding: .5rem 0 .5rem 2rem; position: relative; }
.frost-ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--wp--preset--color--orchid); font-weight: 800; }

/* Books */
.wp-block-columns.frost-book { gap: 3.5rem; padding-block: 2.5rem; border-bottom: 1px solid #eadcef; }
.wp-block-columns.frost-book:last-child { border-bottom: 0; }
.frost-book-cover img { border-radius: 6px; box-shadow: 0 16px 36px rgba(49, 20, 50, .28); width: 100%; height: auto; }
.frost-badge { display: inline-block; background: var(--wp--preset--color--orchid); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 999px; }
