/*
Theme Name: Amplify B2B
Theme URI: https://www.amplify-b2b.co.uk
Author: Amplify B2B
Author URI: https://www.amplify-b2b.co.uk
Description: Block theme for Amplify B2B. Navy, purple and aqua brand palette, bar-shape graphics, reusable section patterns for every page, blog and case study templates. Pair with the Amplify B2B Toolkit plugin for case studies, testimonials and one-click starter content.
Requires at least: 6.6
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amplify-b2b
Tags: block-patterns, full-site-editing, custom-colors, editor-style, wide-blocks
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
:where(.wp-site-blocks) > main { margin-block-start: 0; }
.wp-element-button, .wp-block-button__link { transition: transform .15s ease, background-color .15s ease; }
.wp-element-button:hover, .wp-block-button__link:hover { transform: translateY(-1px); }

/* ---------- Header and navigation ---------- */
.amplify-header .wp-block-navigation a { color: #FFFFFF; text-decoration: none; }
.amplify-header .wp-block-navigation a:hover,
.amplify-header .wp-block-navigation .current-menu-item > a,
.amplify-header .wp-block-navigation [aria-current="page"] { color: #01FFB4; }
.amplify-header .wp-block-site-title a { color: #FFFFFF; text-decoration: none; }
.amplify-header .wp-block-button__link { padding: 12px 20px; font-size: 15px; font-weight: 700; box-shadow: none; }
.amplify-footer a { color: #C9C7E0; text-decoration: none; }
.amplify-footer a:hover { color: #01FFB4; }
.amplify-footer .amplify-footer__cta a { color: #01FFB4; font-weight: 700; }

/* ---------- Bar-shape backgrounds (Group block styles) ---------- */
.is-style-bars-hero, .is-style-bars-soft, .is-style-bars-outline, .is-style-bars-tinted,
.is-style-bars-corner, .is-style-bars-corner-dark { position: relative; overflow: hidden; isolation: isolate; }
.is-style-bars-hero::before, .is-style-bars-soft::before, .is-style-bars-outline::before,
.is-style-bars-tinted::before, .is-style-bars-corner::before, .is-style-bars-corner-dark::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	aspect-ratio: 523.35 / 480.61; background-repeat: no-repeat; background-position: center; background-size: contain;
}
.is-style-bars-hero::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 523.35 480.61'%3E%3Cpolygon fill='%2316124A' fill-opacity='1' points='0,412.61 103.92,472.61 342.14,60 238.22,0'/%3E%3Cpolygon fill='%2316124A' fill-opacity='1' points='173.21,412.61 277.13,472.61 428.74,210 324.82,150'/%3E%3Cpolygon fill='%2316124A' fill-opacity='1' points='346.41,412.61 450.33,472.61 515.35,360 411.42,300'/%3E%3C/svg%3E"); width: clamp(380px, 55vw, 820px); right: -150px; top: 40px; }
.is-style-bars-soft::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 523.35 480.61'%3E%3Cpolygon fill='%23F3E6FF' fill-opacity='1' points='0,412.61 103.92,472.61 342.14,60 238.22,0'/%3E%3Cpolygon fill='%23F3E6FF' fill-opacity='1' points='173.21,412.61 277.13,472.61 428.74,210 324.82,150'/%3E%3Cpolygon fill='%23E5FFF7' fill-opacity='1' points='346.41,412.61 450.33,472.61 515.35,360 411.42,300'/%3E%3C/svg%3E"); width: 560px; left: -170px; bottom: -150px; }
.is-style-bars-outline::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 523.35 480.61'%3E%3Cpolygon fill='none' stroke='%238A00FF' stroke-width='3' points='0,412.61 103.92,472.61 342.14,60 238.22,0'/%3E%3Cpolygon fill='none' stroke='%238A00FF' stroke-width='3' points='173.21,412.61 277.13,472.61 428.74,210 324.82,150'/%3E%3Cpolygon fill='none' stroke='%2301FFB4' stroke-width='3' points='346.41,412.61 450.33,472.61 515.35,360 411.42,300'/%3E%3C/svg%3E"); width: 760px; right: -240px; top: -140px; }
.is-style-bars-tinted::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 523.35 480.61'%3E%3Cpolygon fill='%2307052F' fill-opacity='0.18' points='0,412.61 103.92,472.61 342.14,60 238.22,0'/%3E%3Cpolygon fill='%2307052F' fill-opacity='0.18' points='173.21,412.61 277.13,472.61 428.74,210 324.82,150'/%3E%3Cpolygon fill='%2301FFB4' fill-opacity='0.5' points='346.41,412.61 450.33,472.61 515.35,360 411.42,300'/%3E%3C/svg%3E"); width: 680px; left: -220px; bottom: -240px; }
.is-style-bars-corner::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 523.35 480.61'%3E%3Cpolygon fill='%238A00FF' fill-opacity='0.4' points='0,412.61 103.92,472.61 342.14,60 238.22,0'/%3E%3Cpolygon fill='%238A00FF' fill-opacity='0.22' points='173.21,412.61 277.13,472.61 428.74,210 324.82,150'/%3E%3Cpolygon fill='%2301FFB4' fill-opacity='0.55' points='346.41,412.61 450.33,472.61 515.35,360 411.42,300'/%3E%3C/svg%3E"); width: 380px; right: -100px; bottom: -130px; }
.is-style-bars-corner-dark::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 523.35 480.61'%3E%3Cpolygon fill='%2307052F' fill-opacity='0.22' points='0,412.61 103.92,472.61 342.14,60 238.22,0'/%3E%3Cpolygon fill='%2307052F' fill-opacity='0.22' points='173.21,412.61 277.13,472.61 428.74,210 324.82,150'/%3E%3Cpolygon fill='%2307052F' fill-opacity='0.22' points='346.41,412.61 450.33,472.61 515.35,360 411.42,300'/%3E%3C/svg%3E"); width: 340px; right: -90px; bottom: -120px; }
:where(.is-style-bars-corner, .is-style-bars-corner-dark) { border-radius: 24px; }
@media (max-width: 781px) {
	.is-style-bars-hero::before { width: 460px; right: -220px; top: auto; bottom: -120px; opacity: .7; }
	.is-style-bars-outline::before { width: 480px; right: -220px; }
}

/* ---------- Cards (Group block styles) ---------- */
:where(.is-style-card, .is-style-card-purple, .is-style-card-orange, .is-style-card-brick, .is-style-card-aqua, .is-style-card-flush) {
	background-color: #FFFFFF; border-radius: 20px; box-shadow: 0 16px 40px rgba(7,5,47,0.12); padding: 32px;
}
:where(.is-style-card-flush) { padding: 0; overflow: hidden; }
.is-style-card-purple { border-top: 6px solid #8A00FF; }
.is-style-card-orange { border-top: 6px solid #F69C09; }
.is-style-card-brick { border-top: 6px solid #F5522D; }
.is-style-card-aqua { border-top: 6px solid #01FFB4; }
:where(.is-style-outline-lilac, .is-style-outline-mint, .is-style-outline-peach, .is-style-outline-coral) {
	background-color: #FFFFFF; border-radius: 20px; padding: 32px; border-style: solid; border-width: 2px;
}
.is-style-outline-lilac { border-color: #D4A8FF; }
.is-style-outline-mint { border-color: #8FF5D6; }
.is-style-outline-peach { border-color: #FBD08A; }
.is-style-outline-coral { border-color: #FBB3A2; }
.is-style-card-flush .wp-block-post-featured-image { margin: 0; }
.is-style-card-flush .wp-block-post-featured-image img { border-radius: 0; }

/* ---------- Paragraph styles ---------- */
p.is-style-pill { width: fit-content; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.4; margin: 0; }
p.is-style-pill:not(.has-background) { background-color: #F3E6FF; }
p.is-style-pill:not(.has-text-color) { color: #07052F; }
p.is-style-pill:empty { display: none; }
p.is-style-badge { width: 44px; height: 44px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; line-height: 1; margin: 0; }
p.is-style-badge:not(.has-background) { background-color: #8A00FF; }
p.is-style-badge:not(.has-text-color) { color: #FFFFFF; }
p.is-style-eyebrow { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
p.is-style-eyebrow:not(.has-text-color) { color: #8A00FF; }
p.is-style-chip { width: fit-content; border: 1px solid rgba(1,255,180,0.45); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.4; }
p.is-style-chip:not(.has-text-color) { color: #01FFB4; }
p.is-style-tile { padding: 12px 20px; border: 2px solid #D4A8FF; border-radius: 12px; background-color: #FFFFFF; font-weight: 600; font-size: 15px; margin: 0; }
p.is-style-tile:nth-child(4n+2) { border-color: #8FF5D6; }
p.is-style-tile:nth-child(4n+3) { border-color: #FBD08A; }
p.is-style-tile:nth-child(4n+4) { border-color: #FBB3A2; }

/* ---------- List styles ---------- */
ul.is-style-checks, ul.is-style-checks-light, ul.is-style-crosses { list-style: none; padding-left: 0; }
ul.is-style-checks li, ul.is-style-checks-light li, ul.is-style-crosses li { position: relative; padding-left: 38px; margin-bottom: 12px; }
ul.is-style-checks li::before, ul.is-style-checks-light li::before, ul.is-style-crosses li::before {
	content: ""; position: absolute; left: 0; top: 0.1em; width: 26px; height: 26px; border-radius: 50%;
	background-repeat: no-repeat; background-position: center;
}
ul.is-style-checks li::before { background-color: #8A00FF; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-size: 14px; }
ul.is-style-checks-light li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2301FFB4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-size: 20px; }
ul.is-style-crosses li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D93D1A' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); background-size: 18px; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-navy .wp-block-button__link { background-color: #07052F; color: #FFFFFF; box-shadow: 0 10px 30px rgba(7,5,47,0.3); }
.wp-block-button.is-style-purple .wp-block-button__link { background-color: #8A00FF; color: #FFFFFF; box-shadow: 0 10px 30px rgba(138,0,255,0.35); }
.wp-block-button.is-style-outline .wp-block-button__link { box-shadow: none; border: 2px solid currentColor; padding: 14px 26px; }
.wp-block-read-more { display: inline-block; width: fit-content; background-color: #01FFB4; color: #07052F !important; font-weight: 800; font-size: 15px; padding: 12px 22px; border-radius: 999px; text-decoration: none; }
.wp-block-read-more:hover { background-color: #3DFFC6; }

/* ---------- Terms, categories, pagination ---------- */
.wp-block-post-terms.is-style-pills { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 700; }
.wp-block-post-terms.is-style-pills a { display: inline-block; padding: 5px 12px; border-radius: 999px; background-color: #F3E6FF; color: #07052F; text-decoration: none; }
.wp-block-post-terms.is-style-pills a:nth-of-type(2) { background-color: #E5FFF7; }
.wp-block-post-terms.is-style-pills a:nth-of-type(3) { background-color: #FEF1DA; }
.wp-block-post-terms.is-style-pills .wp-block-post-terms__separator { display: none; }
ul.wp-block-categories.is-style-pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
ul.wp-block-categories.is-style-pills li a { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 2px solid #D4A8FF; background: #FFFFFF; color: #07052F; font-weight: 600; font-size: 15px; text-decoration: none; }
ul.wp-block-categories.is-style-pills li:nth-child(4n+2) a { border-color: #8FF5D6; }
ul.wp-block-categories.is-style-pills li:nth-child(4n+3) a { border-color: #FBD08A; }
ul.wp-block-categories.is-style-pills li:nth-child(4n+4) a { border-color: #FBB3A2; }
ul.wp-block-categories.is-style-pills li.current-cat a,
ul.wp-block-categories.is-style-pills li a:hover { background: #07052F; border-color: #07052F; color: #FFFFFF; }
.wp-block-query-pagination { gap: 8px; font-weight: 700; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { text-decoration: none; }
.wp-block-query-pagination-numbers .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #D4A8FF; background: #FFFFFF; color: #07052F; margin: 0 4px; }
.wp-block-query-pagination-numbers .page-numbers.current { background: #07052F; border-color: #07052F; color: #FFFFFF; }
.wp-block-query-pagination-previous, .wp-block-query-pagination-next { padding: 10px 18px; border-radius: 999px; border: 2px solid #8A00FF; background: #FFFFFF; color: #07052F; }

/* ---------- FAQ (Details block) ---------- */
.wp-block-details { background: #FFFFFF; border: 2px solid #D4A8FF; border-radius: 16px; padding: 22px 26px; }
.wp-block-details + .wp-block-details { margin-top: 12px; }
.wp-block-details:nth-of-type(4n+2) { border-color: #8FF5D6; }
.wp-block-details:nth-of-type(4n+3) { border-color: #FBD08A; }
.wp-block-details:nth-of-type(4n+4) { border-color: #FBB3A2; }
.wp-block-details summary { font-weight: 700; font-size: 18px; cursor: pointer; }
.wp-block-details > :not(summary) { color: #4B4966; }

/* ---------- Forms (styles WPForms, Fluent Forms, Contact Form 7 and plain HTML forms) ---------- */
:where(.entry-content, .wp-block-post-content, .wp-site-blocks) :where(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], select, textarea) {
	font: inherit; padding: 12px 14px; border: 1px solid #CFCDE0; border-radius: 10px; min-height: 44px; width: 100%; box-sizing: border-box; background: #FFFFFF; color: #07052F;
}
:where(.wpforms-submit, .ff-btn-submit, .wpcf7-submit, .amplify-form input[type="submit"], .amplify-form button[type="submit"]) {
	background: #07052F !important; color: #FFFFFF !important; border: 0 !important; border-radius: 999px !important; padding: 16px 28px !important; font-weight: 800 !important; cursor: pointer;
}
.amplify-form-placeholder { border: 2px dashed #D4A8FF; border-radius: 16px; padding: 28px; text-align: center; color: #4B4966; }

/* ---------- Single post ---------- */
.amplify-article { font-size: 18px; line-height: 1.75; color: #2A2850; }
.amplify-article h2 { font-size: 28px; margin-top: 1.6em; color: #07052F; }
.amplify-article h3 { font-size: 22px; margin-top: 1.4em; color: #07052F; }
.amplify-article blockquote, .amplify-article .wp-block-quote { margin: 32px 0; padding: 28px 32px; border: 2px solid #D4A8FF; border-radius: 20px; font-size: 20px; font-weight: 700; color: #07052F; }
.amplify-featured-image img { border-radius: 24px; border-bottom: 8px solid #8A00FF; box-shadow: 0 24px 60px rgba(7,5,47,0.2); }

/* ---------- Fixes and inheritance ---------- */
p.is-style-badge.has-background { padding: 0; }
p.is-style-pill.has-background { padding: 5px 12px; }
:where(.has-text-color) a:not(.wp-element-button):not(.wp-block-read-more) { color: inherit; }
.wp-block-post-title a { text-decoration: none; }
.wp-block-post-title a:hover { text-decoration: underline; }
.is-layout-flex > .wp-block-image { flex-shrink: 0; }
.is-layout-flex > .wp-block-image.is-resized img { max-width: none; }
.wp-block-post-terms.is-style-pills a { color: #07052F !important; }
:where(.is-style-card-flush, .is-style-card) .wp-block-post-title a { color: #07052F; }
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }
main > .alignfull + .alignfull, main > .wp-block-pattern + .alignfull { margin-block-start: 0; }

/* ---------- Utilities ---------- */
.amplify-overlap-up { margin-top: -140px !important; position: relative; z-index: 2; }
.amplify-amp img { filter: drop-shadow(0 30px 60px rgba(0,0,0,0.35)); }
