/*
 * SMQP Perth Landing Pages.
 * Every section is an ordinary Gutenberg block with a class, so these styles work on the live page
 * and inside the block editor. Colours come from Perth Pages > Settings.
 */
:root { --smqp-primary: #1f3a5f; --smqp-accent: #f28c28; }
.smqp-hero, .smqp-options, .smqp-offer, .smqp-testimonials, .smqp-glance, .smqp-faq, .smqp-card, .smqp-form, .smqp-content {
	--smqp-ink: #1d2530; --smqp-muted: #5b6573; --smqp-line: #e3e7ec; --smqp-soft: #f5f7fa; --smqp-radius: 12px;
}

/* ---------- live page layout (theme header and footer, full width sections) ---------- */
body.smqp-page { overflow-x: clip; }
body.smqp-page .smqp-landing { width: 100%; max-width: none; flex: 1 1 100%; background: #fff; }
body.smqp-page .smqp-content { color: #1d2530; font-size: 17px; line-height: 1.7; width: 100%; max-width: none; margin: 0; padding: 0; }
body.smqp-page .smqp-content > *:not(.alignfull) { max-width: 840px; width: calc(100% - 40px); margin-left: auto !important; margin-right: auto !important; }
body.smqp-page .smqp-content > .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; margin-top: 0; margin-bottom: 0; position: relative; left: auto !important; right: auto !important; transform: none !important; }
/* Some themes (Navian, for one) make .alignfull full width with left: 50% plus a negative margin. Our margins already do that job, so their left offset is switched off here or the section is pushed half off the screen. */
body.smqp-page .smqp-content > .smqp-options + * { margin-top: 56px; }
body.smqp-page .smqp-content > .smqp-offer { margin-top: 56px; }
.smqp-content *, .smqp-hero *, .smqp-options *, .smqp-offer *, .smqp-testimonials * { box-sizing: border-box; }

/* Classic themes wrap group contents in an extra container; keep it out of the way. */
.smqp-hero .wp-block-group__inner-container, .smqp-options .wp-block-group__inner-container, .smqp-offer .wp-block-group__inner-container,
.smqp-testimonials .wp-block-group__inner-container, .smqp-glance .wp-block-group__inner-container, .smqp-card .wp-block-group__inner-container,
.smqp-hero-form .wp-block-group__inner-container, .smqp-offer-form .wp-block-group__inner-container, .smqp-wrap .wp-block-group__inner-container { max-width: none !important; margin: 0 !important; padding: 0 !important; width: auto; }
.smqp-glance .wp-block-group__inner-container > *, .smqp-card .wp-block-group__inner-container > *, .smqp-wrap .wp-block-group__inner-container > *,
.smqp-wrap > *, .smqp-glance > *, .smqp-card > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.smqp-hero .smqp-wrap, .smqp-options .smqp-wrap, .smqp-offer .smqp-wrap, .smqp-testimonials .smqp-wrap, .smqp-wrap.smqp-wrap { max-width: 1180px !important; width: 100% !important; margin-left: auto !important; margin-right: auto !important; padding: 0 24px !important; }

/* ---------- buttons ---------- */
.smqp-hero .wp-block-button__link, .smqp-options .wp-block-button__link, .smqp-content .wp-block-button__link, .smqp-btn {
	display: inline-block; background: var(--smqp-primary) !important; color: #fff !important; border-radius: 999px !important; padding: 14px 28px !important;
	font-size: 16px !important; font-weight: 700 !important; line-height: 1.2 !important; text-decoration: none !important; border: 0 !important;
	text-transform: none !important; letter-spacing: normal !important; box-shadow: none; transition: transform .15s ease, box-shadow .15s ease;
}
.smqp-hero .wp-block-button__link:hover, .smqp-options .wp-block-button__link:hover, .smqp-content .wp-block-button__link:hover, .smqp-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.smqp-cta .wp-block-button__link, .smqp-hero-btn .wp-block-button__link, .smqp-btn-accent { background: var(--smqp-accent) !important; }
.smqp-card-btn .wp-block-button__link { padding: 9px 20px !important; font-size: 14px !important; }
.smqp-cta-row { justify-content: center !important; margin: 26px 0 32px !important; display: flex; }

/* ---------- hero ---------- */
.smqp-hero {
	background-color: var(--smqp-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='0.07' d='M0 220V150h40v-30h30v30h25V95h40v55h30v-40h20v-30h12v30h20v40h35V60h12l8-30 8 30h12v90h40v-35h50v35h20V100l25-25 25 25v50h40v-70h18V40h6V20h6v20h6v40h18v70h45v-45h30v45h40V70c0-20 15-35 35-35s35 15 35 35v80h30v-30h60v30h25V110h20v-25h14v25h20v40h40V30l14-30 14 30v120h40v-60h35v60h30v-50h70v50h25V95h45v55h40v-40h30v40h40v-75h22V50h10v25h22v75h50v-30h40v30h40v70z'/%3E%3C/svg%3E"), linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.28));
	background-repeat: no-repeat; background-position: bottom center, center; background-size: 100% 200px, cover;
	color: #fff; padding: 64px 0 72px !important;
}
.smqp-hero-grid { gap: 48px !important; align-items: center !important; margin: 0 !important; }
.smqp-hero .smqp-hero-title { color: #fff !important; font-size: clamp(30px, 4vw, 46px) !important; line-height: 1.15 !important; margin: 0 0 16px !important; font-weight: 800 !important; }
.smqp-hero .smqp-hero-sub { color: rgba(255,255,255,.92) !important; font-size: 19px; margin: 0 0 18px !important; }
.smqp-ticks { list-style: none !important; margin: 0 0 26px !important; padding: 0 !important; }
.smqp-ticks li { position: relative; padding-left: 32px !important; margin: 8px 0 !important; font-weight: 600; list-style: none !important; }
.smqp-ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--smqp-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.smqp-hero .smqp-ticks li { color: #fff; }
.smqp-hero-actions { margin: 0 !important; }
.smqp-hero-form { background: #fff; color: #1d2530; border-radius: 16px; padding: 26px 26px 18px !important; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.smqp-hero-form label, .smqp-hero-form p, .smqp-hero-form .smqp-privacy { color: #1d2530; }
.smqp-form-title { font-size: 22px !important; font-weight: 800 !important; color: var(--smqp-primary) !important; margin: 0 0 14px !important; }

/* ---------- forms ---------- */
.smqp-form { margin: 0; }
.smqp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.smqp-form-callback .smqp-field-phone, .smqp-form-callback .smqp-field-email { grid-column: span 2; }
.smqp-grid-2 .smqp-wide, .smqp-grid-2 .smqp-field-take_over, .smqp-grid-2 .smqp-field-address { grid-column: span 2; }
.smqp-field { margin: 0 0 12px !important; }
.smqp-field label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 5px; color: #1d2530; }
.smqp-req { color: #c0392b; }
.smqp-field input, .smqp-field select, .smqp-field textarea {
	width: 100% !important; max-width: none !important; margin: 0 !important; height: auto; font: inherit; font-size: 15px !important; line-height: 1.4 !important;
	padding: 11px 13px !important; border: 1px solid #cfd6de !important; border-radius: 8px !important; background: #fff !important; color: #1d2530 !important; box-shadow: none !important;
}
.smqp-field input:focus, .smqp-field select:focus, .smqp-field textarea:focus { outline: none; border-color: var(--smqp-primary) !important; box-shadow: 0 0 0 3px rgba(31,58,95,.18) !important; }
.smqp-field.smqp-invalid input, .smqp-field.smqp-invalid select { border-color: #c0392b !important; }
.smqp-form button[type="submit"] {
	display: inline-block; background: var(--smqp-accent) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
	padding: 14px 28px !important; font-size: 16px !important; font-weight: 700 !important; line-height: 1.2 !important; cursor: pointer; text-transform: none !important;
}
.smqp-form-callback button[type="submit"] { width: 100%; }
.smqp-form button[disabled] { opacity: .7; cursor: wait; }
.smqp-privacy { font-size: 13px !important; color: #5b6573 !important; margin: 10px 0 0 !important; }
.smqp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.smqp-notice { padding: 12px 14px; border-radius: 8px; margin: 0 0 14px; font-weight: 600; font-size: 15px; }
.smqp-ok { background: #e6f5ec; color: #1e6b3d; }
.smqp-bad { background: #fdecea; color: #8e2a1f; }
.smqp-live:empty { display: none; }
.smqp-live { margin-top: 12px; }

/* ---------- sale options ---------- */
.smqp-options { background: #f5f7fa; padding: 54px 0 !important; }
.smqp-section-title { text-align: center; font-size: clamp(24px, 3vw, 32px) !important; font-weight: 800 !important; color: var(--smqp-primary) !important; margin: 0 0 28px !important; line-height: 1.25 !important; }
.smqp-section-title.smqp-left { text-align: left; }
.smqp-cards { gap: 22px !important; margin: 0 !important; }
.smqp-card { height: 100%; background: #fff; border-radius: 12px; padding: 28px 24px !important; text-align: center; box-shadow: 0 6px 24px rgba(16,24,40,.07); border-top: 4px solid var(--smqp-accent); }
.smqp-card::before { content: ""; display: block; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background-color: #eef2f7; background-repeat: no-repeat; background-position: center; background-size: 36px; }
.smqp-card-cash::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='4' y='12' width='40' height='24' rx='4' fill='none' stroke='%231f3a5f' stroke-width='3'/%3E%3Ccircle cx='24' cy='24' r='6' fill='none' stroke='%231f3a5f' stroke-width='3'/%3E%3C/svg%3E"); }
.smqp-card-chart::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M8 40V8M8 40h32' stroke='%231f3a5f' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M14 32l8-9 6 5 10-13' stroke='%231f3a5f' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.smqp-card-home::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M6 23L24 8l18 15' stroke='%231f3a5f' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11 20v20h26V20' stroke='%231f3a5f' stroke-width='3' fill='none'/%3E%3C/svg%3E"); }
.smqp-card-title { font-size: 20px !important; font-weight: 800 !important; color: var(--smqp-primary) !important; margin: 0 0 6px !important; }
.smqp-card-text { color: #5b6573 !important; margin: 0 0 16px !important; }
.smqp-card-actions { justify-content: center !important; margin: 0 !important; }

/* ---------- article content ---------- */
.smqp-content p { margin-top: 0; margin-bottom: 1.1em; }
.smqp-content h2 { color: var(--smqp-primary); font-size: clamp(24px, 2.6vw, 31px); line-height: 1.25; margin: 1.9em auto .6em !important; font-weight: 800; }
.smqp-content h3 { color: #1d2530; font-size: 21px; line-height: 1.3; margin: 1.5em auto .5em !important; font-weight: 700; }
.smqp-content > p a, .smqp-content li a { color: var(--smqp-primary); text-decoration: underline; text-underline-offset: 3px; }
.smqp-content > p a:hover, .smqp-content li a:hover { color: var(--smqp-accent); }
.smqp-content > ul.wp-block-list, .smqp-content > ol.wp-block-list, .smqp-glance ul.wp-block-list { padding-left: 0 !important; list-style: none !important; margin-bottom: 1.3em; }
.smqp-content > ul.wp-block-list > li, .smqp-glance ul.wp-block-list > li { position: relative; padding-left: 28px; margin: .5em 0; list-style: none; }
.smqp-content > ul.wp-block-list > li::before, .smqp-glance ul.wp-block-list > li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 9px; height: 9px; border-radius: 50%; background: var(--smqp-accent); }
.smqp-content > ol.wp-block-list { counter-reset: smqp; }
.smqp-content > ol.wp-block-list > li { counter-increment: smqp; position: relative; padding: 14px 16px 14px 62px; margin: 10px 0; background: #f5f7fa; border-radius: 10px; list-style: none; }
.smqp-content > ol.wp-block-list > li::before { content: counter(smqp); position: absolute; left: 16px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--smqp-primary); color: #fff; font-weight: 800; text-align: center; line-height: 32px; }
.smqp-content > ul.smqp-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; background: #f5f7fa; padding: 22px 24px !important; border-radius: 12px; }
.smqp-content > ul.smqp-benefits > li { margin: 0; padding-left: 30px; }
.smqp-content > ul.smqp-benefits > li::before { left: 0; top: .25em; width: 20px; height: 20px; background: var(--smqp-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.smqp-glance { background: #fff; border: 1px solid #e3e7ec; border-left: 6px solid var(--smqp-accent); border-radius: 12px; padding: 22px 26px 10px !important; margin-top: 8px !important; margin-bottom: 26px !important; box-shadow: 0 6px 24px rgba(16,24,40,.05); }
.smqp-glance .smqp-glance-title { font-size: 19px; color: var(--smqp-primary); margin: 0 0 6px !important; }
.smqp-figure { margin-top: 28px !important; margin-bottom: 30px !important; }
.smqp-figure img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 14px 40px rgba(16,24,40,.12); display: block; }
.smqp-figure figcaption { text-align: center; font-size: 14px; color: #5b6573; margin-top: 10px; }

/* FAQ: Rank Math FAQ block (as saved, and as Rank Math renders it) */
.smqp-faq { margin-top: 10px !important; margin-bottom: 30px !important; }
.smqp-faq .rank-math-list { margin: 0; padding: 0; list-style: none; }
.smqp-faq .rank-math-faq-item, .smqp-faq .rank-math-list-item { background: #f5f7fa; border-radius: 10px; padding: 16px 20px !important; margin: 0 0 14px !important; list-style: none; }
.smqp-faq .rank-math-question { font-size: 19px !important; line-height: 1.35 !important; color: #1d2530 !important; margin: 0 0 6px !important; padding: 0 !important; font-weight: 700; }
.smqp-faq .rank-math-answer { margin: 0; }
.smqp-faq .rank-math-answer p:last-child { margin-bottom: 0; }

/* ---------- offer request ---------- */
.smqp-offer { background: linear-gradient(180deg, #f5f7fa, #fff); padding: 60px 0 !important; scroll-margin-top: 90px; }
.smqp-offer-grid { gap: 44px !important; margin: 0 !important; }
.smqp-offer-intro, .smqp-offer-intro p, .smqp-ticks-dark li { color: #1d2530; }
.smqp-offer-form { background: #fff; border-radius: 16px; padding: 28px !important; box-shadow: 0 14px 44px rgba(16,24,40,.1); }

/* ---------- testimonials ---------- */
.smqp-testimonials { background: #fff; padding: 56px 0 64px !important; }
.smqp-quotes { gap: 24px !important; margin: 0 !important; }
.smqp-quote { height: 100%; margin: 0 !important; background: #f5f7fa !important; border: 0 !important; border-radius: 12px; padding: 34px 28px 22px !important; position: relative; quotes: none; font-style: normal !important; }
.smqp-quote::before { content: "\201C" !important; display: block !important; position: absolute; top: 2px; left: 22px; font-size: 64px; line-height: 1; color: var(--smqp-accent); font-family: Georgia, serif; }
.smqp-quote::after, .smqp-quote p::before, .smqp-quote p::after { content: none !important; display: none !important; }
.smqp-quote p { font-size: 18px !important; font-style: italic !important; font-weight: 400 !important; line-height: 1.6 !important; margin: 0 0 12px !important; padding: 0 !important; color: #1d2530 !important; }
.smqp-quote cite { display: block; font-style: normal !important; font-size: 14px !important; color: #5b6573 !important; font-weight: 600; }

/* ---------- smaller screens ---------- */
@media (max-width: 781px) {
	.smqp-hero { padding: 40px 0 48px !important; }
	.smqp-hero-grid, .smqp-offer-grid { gap: 28px !important; }
	.smqp-hero .smqp-wrap, .smqp-options .smqp-wrap, .smqp-offer .smqp-wrap, .smqp-testimonials .smqp-wrap { padding: 0 16px !important; }
}
@media (max-width: 600px) {
	.smqp-grid, .smqp-grid-2 { grid-template-columns: 1fr; }
	.smqp-form-callback .smqp-field-phone, .smqp-form-callback .smqp-field-email, .smqp-grid-2 .smqp-wide, .smqp-grid-2 .smqp-field-take_over, .smqp-grid-2 .smqp-field-address { grid-column: auto; }
	body.smqp-page .smqp-content { font-size: 16px; }
	.smqp-content > ul.smqp-benefits { grid-template-columns: 1fr; }
	.smqp-hero-form, .smqp-offer-form { padding: 20px !important; }
}
