/* ===== Perth Bookkeeping Service — clean minimal design (works with Astra) ===== */
:root {
	--pbs-ink: #111111;
	--pbs-text: #2b2b2b;
	--pbs-muted: #6b6b6b;
	--pbs-line: #ececec;
	--pbs-soft: #f6f8fb;
	--pbs-red: #e3121b;
	--pbs-red-dark: #c00d15;
	--pbs-blue: #0b8ff0;
	--pbs-blue-soft: #e8f4fe;
	--pbs-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--pbs-wide: 1140px;
}

/* Base typography on our pages and in the editor. */
body.pbs-site, .editor-styles-wrapper {
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--pbs-text);
	-webkit-font-smoothing: antialiased;
}
body.pbs-site { background: #fff; line-height: 1.75; }
:is(.pbs-site, .editor-styles-wrapper) :is(h1, h2, h3) { color: var(--pbs-ink); font-family: "Poppins", sans-serif; line-height: 1.2; letter-spacing: -0.02em; }
:is(.pbs-site, .editor-styles-wrapper) h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; }
:is(.pbs-site, .editor-styles-wrapper) h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 700; }
.pbs-site .entry-content p { margin: 0 0 14px; }
.pbs-site .entry-content img { max-width: 100%; height: auto; }

/* In-content links */
:is(.pbs-site .entry-content, .editor-styles-wrapper) :is(p, li) a { color: var(--pbs-red); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
:is(.pbs-site .entry-content, .editor-styles-wrapper) :is(p, li) a:hover { color: var(--pbs-red-dark); }

/* ---------- Page layout: content width, full-width hero & band ---------- */
.pbs-site .entry-content > * { width: min(var(--pbs-wide), calc(100% - 40px)); max-width: none !important; margin-left: auto !important; margin-right: auto !important; }
.pbs-site .entry-content > :is(.pbs-hero, .pbs-band) { width: 100%; }
.pbs-site .entry-content .is-layout-constrained > * { max-width: none; }
.pbs-site .entry-content .has-global-padding { padding-left: 0; padding-right: 0; }
.pbs-site.pbs-astra .site-content > .ast-container { max-width: 100%; padding: 0; }
.pbs-site.pbs-astra .entry-content { margin: 0; }
.pbs-site.pbs-astra #primary { margin: 0; padding: 0; }
.pbs-site .entry-content > .pbs-hero:first-child { margin-top: 0 !important; }

/* Hero (Cover block) */
:is(.pbs-site, .editor-styles-wrapper) .pbs-hero { min-height: 520px; padding: 70px 20px; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-hero .wp-block-cover__inner-container { width: 100%; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-hero-box { width: min(1000px, 100%) !important; max-width: 1000px !important; margin: 0 auto !important; text-align: center; background: rgba(11, 143, 240, .82); padding: 56px 48px; border-radius: 4px; }
.pbs-site .pbs-hero-box { animation: pbsRise .9s var(--pbs-ease) both; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-hero-title { color: #fff !important; font-size: clamp(2.1rem, 5vw, 3.6rem) !important; margin: 0 0 8px; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-hero-sub { color: #fff; font-size: clamp(1rem, 2.1vw, 1.4rem); font-weight: 600; margin-bottom: 26px; }
@keyframes pbsRise { from { opacity: 0; transform: translateY(24px); } }

/* Top row: content + quote form */
.pbs-site .entry-content > .pbs-top { margin-top: 50px !important; margin-bottom: 20px !important; gap: 48px !important; align-items: flex-start; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-page-title { margin-bottom: 22px; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-photo { margin: 0 0 20px; overflow: hidden; border-radius: 4px; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1s var(--pbs-ease); }
.pbs-site .pbs-photo:hover img { transform: scale(1.04); }
:is(.pbs-site, .editor-styles-wrapper) .pbs-cover-title { margin-bottom: 4px; color: var(--pbs-ink); }
:is(.pbs-site, .editor-styles-wrapper) :is(.pbs-cover, .pbs-points) { margin: 6px 0 18px 20px; padding: 0; }
:is(.pbs-site, .editor-styles-wrapper) :is(.pbs-cover, .pbs-points) li { margin: 4px 0; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-points strong { color: var(--pbs-ink); }

/* Content (inner pages) */
.pbs-site .pbs-content { margin-top: 10px; margin-bottom: 10px; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-content h2 { margin-top: 34px; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-fast { color: var(--pbs-ink); margin-top: 20px; }

/* Blue band */
:is(.pbs-site, .editor-styles-wrapper) .pbs-band { background: var(--pbs-blue); color: #fff; padding: 64px 20px; margin: 40px 0 0; }
.pbs-site .pbs-band > * { width: min(var(--pbs-wide), 100%); margin-left: auto !important; margin-right: auto !important; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-band h2 { color: #fff; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-band p { color: rgba(255, 255, 255, .95); font-size: 1.04rem; }

/* Alternating rows */
.pbs-site .entry-content > .pbs-split { padding: 56px 0; margin-top: 0 !important; margin-bottom: 0 !important; gap: 50px !important; border-bottom: 1px solid #f3f3f3; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-split .pbs-photo { margin: 0; }

/* FAQ */
:is(.pbs-site, .editor-styles-wrapper) .pbs-faq { padding: 60px 0 10px; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-center { text-align: center; margin-bottom: 26px; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-faq .wp-block-details { border-bottom: 1px solid var(--pbs-line); margin: 0; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-faq .wp-block-details summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--pbs-ink); display: flex; justify-content: space-between; gap: 16px; }
.pbs-site .pbs-faq .wp-block-details summary::-webkit-details-marker { display: none; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-faq .wp-block-details summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--pbs-red); transition: transform .3s var(--pbs-ease); }
.pbs-site .pbs-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }

/* Thank you */
.pbs-site .entry-content > .pbs-thanks { text-align: center; padding: 90px 0 60px; width: min(640px, calc(100% - 40px)); }
:is(.pbs-site, .editor-styles-wrapper) .pbs-check { width: 80px; height: 80px; border-radius: 50%; background: var(--pbs-blue); color: #fff; font-size: 2.4rem; display: grid; place-items: center; margin: 0 auto 20px !important; }

/* ---------- Buttons ---------- */
:is(body.pbs-site, .editor-styles-wrapper) .wp-block-button .wp-block-button__link, .pbs-btn, body .pbs-quote .pbs-btn {
	display: inline-block; background: var(--pbs-red); color: #fff !important; font-family: "Poppins", sans-serif; font-weight: 700; text-decoration: none !important; padding: 15px 34px; border-radius: 6px; border: 0; cursor: pointer; font-size: 1.05rem; line-height: 1.3; box-shadow: 0 8px 22px rgba(227, 18, 27, .25); transition: background .25s, transform .25s var(--pbs-ease), box-shadow .25s;
}
:is(body.pbs-site, .editor-styles-wrapper) .wp-block-button .wp-block-button__link:hover, .pbs-btn:hover { background: var(--pbs-red-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(227, 18, 27, .32); }
:is(body.pbs-site, .editor-styles-wrapper) .pbs-btn-outline .wp-block-button__link { border: 2px solid #fff; text-transform: uppercase; letter-spacing: .03em; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-hero .wp-block-buttons { justify-content: center; }

/* Call button & map (shared section at the bottom of each page) */
.pbs-site .entry-content > .wp-block-buttons.pbs-cta, .pbs-site .entry-content .pbs-cta { justify-content: center; margin: 50px auto 50px !important; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-map { height: 300px; background: #f3f3f3; }
:is(.pbs-site, .editor-styles-wrapper) .pbs-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.pbs-site .entry-content > .pbs-map, .pbs-site .entry-content .pbs-map { margin-bottom: 0 !important; }

/* ---------- Quote form ---------- */
.pbs-quote { position: sticky; top: 30px; background: #fff; border: 2px solid #9fd3fb; border-radius: 14px; padding: 26px 24px 28px; box-shadow: 0 0 0 6px var(--pbs-blue-soft), 0 18px 40px rgba(11, 143, 240, .12); font-family: "Poppins", sans-serif; }
.pbs-fallback .pbs-quote { top: 104px; }
.pbs-quote-head { text-align: center; margin-bottom: 18px; }
.pbs-quote-head .pbs-big { font-family: "Oswald", Impact, "Arial Narrow Bold", sans-serif; font-weight: 700; font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.05; color: var(--pbs-ink); text-transform: uppercase; white-space: nowrap; }
.pbs-quote-head .pbs-small { font-family: "Oswald", Impact, "Arial Narrow Bold", sans-serif; font-weight: 700; font-size: 1.05rem; margin-top: 4px; color: var(--pbs-ink); text-transform: uppercase; }
.pbs-quote-head .pbs-arr { display: inline-block; color: var(--pbs-red); animation: pbsNudge 1.6s ease-in-out infinite; }
@keyframes pbsNudge { 50% { transform: translateY(3px); } }
.pbs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pbs-field { margin-bottom: 14px; }
.pbs-field label { display: block; font-size: .88rem; font-weight: 500; color: var(--pbs-ink); }
.pbs-field .pbs-req { color: var(--pbs-red); }
.pbs-quote .pbs-field :is(input, select, textarea) { width: 100%; margin-top: 5px; padding: 11px 12px; font: inherit; font-size: .95rem; color: var(--pbs-ink); background: #fff; border: 1px solid #dedede; border-radius: 6px; outline: none; box-shadow: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.pbs-quote .pbs-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.pbs-quote .pbs-field textarea { min-height: 90px; resize: vertical; }
.pbs-quote .pbs-field :is(input, select, textarea):focus { border-color: var(--pbs-blue); box-shadow: 0 0 0 3px rgba(11, 143, 240, .15); }
body .pbs-quote .pbs-btn { width: 100%; margin-top: 4px; font-size: 1.15rem; border-radius: 4px; }
.pbs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pbs-form-msg { border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: .9rem; }
.pbs-form-msg.is-error { background: #fdecec; color: #8a1016; }

/* ---------- Astra header & footer ---------- */
body.pbs-astra .ast-builder-html-element .pbs-phone { color: var(--pbs-red); font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.65rem); text-decoration: underline; text-underline-offset: 4px; letter-spacing: -0.01em; white-space: nowrap; }
body.pbs-astra .ast-builder-html-element p { margin: 0; }
body.pbs-astra .main-header-menu > .menu-item > .menu-link { color: var(--pbs-ink); font-weight: 600; position: relative; }
body.pbs-astra .main-header-menu > .menu-item > .menu-link::after { content: ""; position: absolute; left: 1em; right: 1em; bottom: 18px; height: 2px; background: var(--pbs-ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--pbs-ease); }
body.pbs-astra .main-header-menu > .menu-item:is(:hover, .current-menu-item, .current-menu-ancestor, .current-menu-parent) > .menu-link::after { transform: scaleX(1); }
body.pbs-astra .main-header-menu .sub-menu { border-radius: 10px; border: 1px solid var(--pbs-line); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); overflow: hidden; }
body.pbs-astra .main-header-menu .sub-menu .menu-link:hover { background: var(--pbs-soft); color: var(--pbs-red); }
body.pbs-astra .site-footer { background: #f3f3f3; text-align: center; }
body.pbs-astra .site-footer .pbs-footer-name { font-size: 1.6rem; font-weight: 700; color: var(--pbs-ink); margin: 0 0 6px; }
body.pbs-astra .site-footer :is(.footer-widget-area, .ast-footer-copyright) { text-align: center; }
body.pbs-astra .site-footer .menu-link { font-weight: 600; color: var(--pbs-ink); }
body.pbs-astra .site-footer .menu-link:hover { color: var(--pbs-red); }
body.pbs-astra .site-primary-footer-wrap, body.pbs-astra .site-below-footer-wrap { background: #f3f3f3; border: 0; }

/* ---------- Fallback header & footer (only when Astra is not active) ---------- */
.pbs-container { width: min(var(--pbs-wide), calc(100% - 40px)); margin: 0 auto; }
.pbs-skip { position: absolute; left: -9999px; }
.pbs-skip:focus { left: 10px; top: 10px; z-index: 1000; background: #fff; padding: 8px 14px; }
body.pbs-fallback { margin: 0; }
.pbs-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: box-shadow .3s; }
.admin-bar .pbs-header { top: 32px; }
.pbs-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.pbs-header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.pbs-header .pbs-phone { color: var(--pbs-red); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.65rem); text-decoration: underline; text-underline-offset: 4px; }
.pbs-nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.pbs-nav-links li { position: relative; list-style: none; margin: 0; }
.pbs-nav-links > li { display: flex; align-items: center; }
.pbs-nav-links a { display: block; padding: 8px 14px; color: var(--pbs-ink); text-decoration: none; font-weight: 600; font-size: .96rem; position: relative; }
.pbs-nav-links > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--pbs-ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--pbs-ease); }
.pbs-nav-links > li:is(:hover, .current-menu-item, .current-menu-parent, .current-menu-ancestor) > a::after { transform: scaleX(1); }
.pbs-sub-toggle { background: none; border: 0; cursor: pointer; padding: 6px 8px 6px 0; color: var(--pbs-ink); font-size: .85rem; }
.pbs-nav-links .sub-menu { position: absolute; top: 100%; left: 0; min-width: 230px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--pbs-line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .08); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s, transform .3s var(--pbs-ease); z-index: 10; }
.pbs-nav-links .sub-menu a { border-radius: 8px; padding: 10px 12px; font-weight: 500; }
.pbs-nav-links .sub-menu a:hover { background: var(--pbs-soft); color: var(--pbs-red); }
.pbs-nav-links li:is(:hover, :focus-within, .is-open) > .sub-menu { opacity: 1; transform: none; pointer-events: auto; }
.pbs-menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--pbs-line); border-radius: 10px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.pbs-menu-btn span { display: block; width: 18px; height: 2px; background: var(--pbs-ink); border-radius: 2px; transition: transform .3s var(--pbs-ease); }
.pbs-menu-btn.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.pbs-menu-btn.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.pbs-footer { background: #f3f3f3; text-align: center; padding: 26px 0 36px; }
.pbs-footer-name { font-size: 1.6rem; font-weight: 700; color: var(--pbs-ink); margin: 0; }
.pbs-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin: 12px 0; padding: 0; list-style: none; }
.pbs-footer-links a { text-decoration: none; font-weight: 600; color: var(--pbs-ink); font-size: .95rem; }
.pbs-copy { color: var(--pbs-muted); font-size: .82rem; margin: 12px 0 0; }

/* ---------- Scroll reveal ---------- */
.pbs-js .pbs-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--pbs-ease), transform .8s var(--pbs-ease); }
.pbs-js .pbs-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
	.pbs-quote { position: static; }
	.pbs-site .entry-content > :is(.pbs-top, .pbs-split) { gap: 28px !important; }
	.pbs-site .entry-content > .pbs-split { padding: 36px 0; }
	.pbs-site .pbs-split .pbs-photo-col { order: -1; }
}
@media (max-width: 760px) {
	.pbs-menu-btn { display: flex; }
	.pbs-nav { position: absolute; top: 80px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--pbs-line); box-shadow: 0 14px 30px rgba(0, 0, 0, .08); padding: 8px 20px 16px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .3s var(--pbs-ease); }
	.pbs-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
	.pbs-nav-links { flex-direction: column; align-items: stretch; gap: 0; }
	.pbs-nav-links > li { flex-wrap: wrap; border-bottom: 1px solid #f4f4f4; }
	.pbs-nav-links > li > a { flex: 1; padding: 12px 4px; }
	.pbs-nav-links > li > a::after { display: none; }
	.pbs-nav-links .sub-menu { position: static; width: 100%; opacity: 1; transform: none; pointer-events: auto; box-shadow: none; border: 0; padding: 0 0 8px 14px; display: none; }
	.pbs-nav-links li.is-open > .sub-menu { display: block; }
	:is(.pbs-site, .editor-styles-wrapper) .pbs-hero { min-height: 420px !important; padding: 40px 16px; }
	:is(.pbs-site, .editor-styles-wrapper) .pbs-hero-box { padding: 36px 20px; }
	:is(body.pbs-site) .wp-block-button .wp-block-button__link { padding: 14px 22px; font-size: .98rem; white-space: nowrap; }
	.pbs-form-row { grid-template-columns: 1fr; gap: 0; }
	.admin-bar .pbs-header { top: 0; }
	body.pbs-astra .ast-builder-html-element .pbs-phone { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.pbs-site *, .pbs-site *::before, .pbs-site *::after { animation: none !important; transition: none !important; }
	.pbs-js .pbs-reveal { opacity: 1; transform: none; }
}
.editor-styles-wrapper .pbs-quote-head .pbs-big { white-space: normal; }
.editor-styles-wrapper .pbs-quote { position: static; }
body.pbs-site .entry-content { font-size: 16px; line-height: 1.75; }
body.pbs-site .pbs-quote { font-size: 16px; line-height: 1.6; }

/* Keep form fields inside the form box with any theme. */
.pbs-quote, .pbs-quote *, .pbs-quote *::before, .pbs-quote *::after { box-sizing: border-box; }
.pbs-form-row > * { min-width: 0; }
