/*
Theme Name: Green Elephant
Theme URI: https://green-elephant.uk/
Author: Dr Jonathan Frost
Description: Block theme for Green Elephant (green-elephant.uk), in a green palette based on the Green Elephant logo.
Version: 1.0.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: green-elephant
*/

/* 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-ge-card { border-radius: 12px; box-shadow: 0 8px 24px rgba(18, 48, 28, .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 ---------- */
.ge-pricing-section { padding: 4rem 2rem; background: var(--wp--preset--color--mint); }
.ge-pricing { gap: 2rem; align-items: stretch; }
.ge-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(18, 48, 28, .14);
}
.ge-price-card > * { margin-block: 0; }
.ge-price-top {
	background: linear-gradient(180deg, #12301C 0%, #1A3D25 100%);
	color: #fff; padding: 0 1.75rem 1.75rem;
}
.ge-price-top > * { margin-block: 0; }
.ge-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);
}
.ge-price-amount { font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1.1; font-weight: 400; }
.ge-price-tagline { font-weight: 600; margin-top: .5rem !important; }
.ge-tier-1 .ge-price-tagline { color: #BFE6B5; }
.ge-tier-2 .ge-price-tagline { color: #A5DA97; }
.ge-tier-3 .ge-price-tagline { color: #8BCB78; }
.ge-price-desc { font-size: .95rem; color: rgba(255, 255, 255, .78); margin-top: 1rem !important; }
.ge-price-benefits { flex: 1; padding: 1.25rem 1.5rem; background: #F3F9F3; font-size: .98rem; }
.ge-price-benefits-title { font-weight: 700; color: var(--wp--preset--color--forest); margin: 0 0 .5rem; }
.ge-price-benefits ul { list-style: none; margin: 0; padding: 0; }
.ge-price-benefits li { padding: .7rem 0; border-top: 1px dotted #C6DCC9; line-height: 1.5; }
.ge-price-cta { margin: 0 !important; }
.ge-price-cta .wp-block-button { width: 100%; }
.ge-price-cta .wp-block-button__link {
	display: block; width: 100%; border-radius: 0; padding: 1rem;
	font-size: 1.15rem; transform: none !important;
}
.ge-tier-1 .ge-price-cta .wp-block-button__link { background: #2B7A3D; }
.ge-tier-2 .ge-price-cta .wp-block-button__link { background: #1E6B33; }
.ge-tier-3 .ge-price-cta .wp-block-button__link { background: #12301C; }
.ge-price-cta .wp-block-button__link:hover { filter: brightness(1.15); }

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

.ge-card { background: #fff; border-radius: 12px; padding: 2rem; height: 100%; box-shadow: 0 8px 24px rgba(18, 48, 28, .12); }
.ge-card-forest { background: linear-gradient(160deg, #12301C 0%, #1E6B33 100%); color: #fff; }
.ge-card-forest h3 { color: #fff; }
.wp-block-columns.ge-testimonials, .wp-block-columns.ge-articles, .wp-block-columns.ge-contact { gap: 2rem; }

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

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

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

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

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

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

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