/*
Theme Name: NTScience
Theme URI: https://ntscience.co.uk/
Author: Dr Jonathan Frost
Description: Block theme for NTScience (ntscience.co.uk), in a warm orange palette.
Version: 1.1.0
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: ntscience
*/

/* 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-nt-card { border-radius: 12px; box-shadow: 0 8px 24px rgba(61, 26, 5, .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 ---------- */
.nt-pricing-section { padding: 4rem 2rem; background: var(--wp--preset--color--peach); }
.nt-pricing { gap: 2rem; align-items: stretch; }
.nt-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(61, 26, 5, .14);
}
.nt-price-card > * { margin-block: 0; }
.nt-price-top {
	background: linear-gradient(180deg, #3D1A05 0%, #4F2408 100%);
	color: #fff; padding: 0 1.75rem 1.75rem;
}
.nt-price-top > * { margin-block: 0; }
.nt-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);
}
.nt-price-amount { font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1.1; font-weight: 400; }
.nt-price-tagline { font-weight: 600; margin-top: .5rem !important; }
.nt-tier-1 .nt-price-tagline { color: #FFC59A; }
.nt-tier-2 .nt-price-tagline { color: #FFAD70; }
.nt-tier-3 .nt-price-tagline { color: #FF9447; }
.nt-price-desc { font-size: .95rem; color: rgba(255, 255, 255, .78); margin-top: 1rem !important; }
.nt-price-benefits { flex: 1; padding: 1.25rem 1.5rem; background: #FFF7F0; font-size: .98rem; }
.nt-price-benefits-title { font-weight: 700; color: var(--wp--preset--color--ember); margin: 0 0 .5rem; }
.nt-price-benefits ul { list-style: none; margin: 0; padding: 0; }
.nt-price-benefits li { padding: .7rem 0; border-top: 1px dotted #EBCDB6; line-height: 1.5; }
.nt-price-cta { margin: 0 !important; }
.nt-price-cta .wp-block-button { width: 100%; }
.nt-price-cta .wp-block-button__link {
	display: block; width: 100%; border-radius: 0; padding: 1rem;
	font-size: 1.15rem; transform: none !important;
}
.nt-tier-1 .nt-price-cta .wp-block-button__link { background: #C2410C; }
.nt-tier-2 .nt-price-cta .wp-block-button__link { background: #8A3A00; }
.nt-tier-3 .nt-price-cta .wp-block-button__link { background: #3D1A05; }
.nt-price-cta .wp-block-button__link:hover { filter: brightness(1.15); }

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

.nt-card { background: #fff; border-radius: 12px; padding: 2rem; height: 100%; box-shadow: 0 8px 24px rgba(61, 26, 5, .12); }
.nt-card-ember { background: linear-gradient(160deg, #3D1A05 0%, #8A3A00 100%); color: #fff; }
.nt-card-ember h3 { color: #fff; }
.wp-block-columns.nt-testimonials, .wp-block-columns.nt-articles, .wp-block-columns.nt-contact { gap: 2rem; }

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

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

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

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

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

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

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

/* Header menu: tidy spacing for the eight resource links */
header .wp-block-navigation { gap: .4rem 1.4rem; font-weight: 600; font-size: .98rem; }
header .wp-block-navigation a:hover { color: #FFC59A; }
