/*
Theme Name: William Bullock
Theme URI: https://williambullock.com.au
Author: William Bullock Hypnotherapy
Description: A plain, large-type block theme for William Bullock Hypnotherapy. Four page patterns (Home, Services, Info, Contact) and reusable section patterns. No page builder and no plugins required.
Version: 1.0.3
Requires at least: 6.5
Tested up to: 6.8
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: williambullock
*/

:root {
	--wb-grey: #808080;
	--wb-ink: #0A0A0A;
	--wb-paper: #F2F2F0;
	--wb-muted: #141414;
	--wb-line: #595959;
	--wb-gutter: clamp(16px, 4vw, 32px);
	/* Size scale. Change these to resize the whole site. */
	--wb-width: 1120px;
	--wb-text: 17px;
	--wb-lead: 19px;
	--wb-big: 20px;
	--wb-h1: clamp(38px, 5.8vw, 84px);
	--wb-h1-md: clamp(38px, 5.4vw, 76px);
	--wb-h2: clamp(28px, 3.6vw, 52px);
	--wb-h2-xl: clamp(30px, 4vw, 60px);
	--wb-h2-side: clamp(24px, 2.4vw, 34px);
	--wb-row: clamp(22px, 2.8vw, 36px);
	--wb-stat: clamp(34px, 3.8vw, 52px);
	--wb-pad: clamp(48px, 6vw, 80px);
	--wb-display: Archivo, Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wb-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
body { background: var(--wb-grey); color: var(--wb-ink); font-family: var(--wb-body); font-size: var(--wb-text); line-height: 1.6; margin: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--wb-ink); outline-offset: 4px; }

/* ---------- header and footer ---------- */
.wb-header { border-bottom: 1px solid var(--wb-line); }
.wb-header-row { max-width: calc(var(--wb-width) + 2 * var(--wb-gutter)); margin: 0 auto; padding: 12px var(--wb-gutter); box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 40px; }
.wb-header .wp-block-site-title { margin: 0; font-family: var(--wb-display); font-weight: 700; font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; }
.wb-header .wp-block-site-title a { text-decoration: none; padding: 14px 0; display: inline-block; }
.wb-nav { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.wb-nav .wp-block-navigation__container { gap: 0 32px; }
.wb-nav .wp-block-navigation-item__content { text-decoration: none; padding: 14px 0; color: var(--wb-muted); }
.wb-nav .wp-block-navigation-item__content:hover { color: #000; }
.wb-nav .current-menu-item > .wp-block-navigation-item__content { color: #000; box-shadow: inset 0 -1px 0 #000; }
.wb-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--wb-grey); color: var(--wb-ink); }
.wb-footer { border-top: 1px solid var(--wb-line); }
.wb-footer-row { max-width: calc(var(--wb-width) + 2 * var(--wb-gutter)); margin: 0 auto; padding: 28px var(--wb-gutter); box-sizing: border-box; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: 13px; color: var(--wb-muted); }
.wb-footer-row p { margin: 0; }

/* ---------- sections ---------- */
.wb-main { display: block; }
.wb-sec { padding: var(--wb-pad) var(--wb-gutter); border-top: 1px solid var(--wb-line); box-sizing: border-box; }
.wb-sec.wb-hero { border-top: 0; padding-top: clamp(56px, 7vw, 88px); }
.wb-sec.wb-tight { padding-block: 56px; }
.wb-sec.wb-cta { padding-block: clamp(56px, 7vw, 88px); }
.wb-in { max-width: var(--wb-width); margin-inline: auto; }
.wb-in { display: flex; flex-direction: column; gap: 28px; }
.wb-in > * { margin-block: 0; }
.wb-light { background: var(--wb-paper); color: var(--wb-ink); }
.wb-light .wb-lab { color: #5A5A56; }
.wb-light .wb-body, .wb-light .wb-sub { color: #3A3A37; }
.wb-light .wb-body .wb-big { color: var(--wb-ink); }

.wb-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.wb-stack > * { margin: 0; }
.wb-side { gap: 20px; }
.wb-body { color: var(--wb-muted); }

.wb-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 72px; align-items: start; }
@media (min-width: 900px) { .wb-two { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.wb-in > .wb-two ~ * { margin-top: 0; }
.wb-hero .wb-in, .wb-cta .wb-in { display: flex; flex-direction: column; gap: 40px; }
.wb-hero .wb-in { gap: clamp(24px, 3vw, 32px); }
.wb-hero-row { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; }
.wb-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wb-cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px 80px; align-items: start; }
.wb-cols2 > * { margin: 0; }
.wb-ctarow { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; }
.wb-ctarow h2 { max-width: 640px; }

/* ---------- type ---------- */
.wb-h1, .wb-h2 { font-family: var(--wb-display); font-weight: 600; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.98; margin: 0; text-wrap: balance; }
.wb-h1 { font-size: var(--wb-h1); max-width: 960px; }
.wb-h1--md { font-size: var(--wb-h1-md); max-width: none; }
.wb-h2 { font-size: var(--wb-h2); line-height: 1; letter-spacing: -0.025em; }
.wb-h2--xl { font-size: var(--wb-h2-xl); max-width: 840px; }
.wb-h2--side { font-size: var(--wb-h2-side); line-height: 1.05; }
.wb-lab { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--wb-muted); margin: 0; }
.wb-lead { font-size: var(--wb-lead); color: var(--wb-muted); max-width: 640px; margin: 0; }
.wb-sub { color: var(--wb-muted); max-width: 560px; margin: 0; }
.wb-big { font-size: var(--wb-big); color: var(--wb-ink); margin: 0; }
.wb-small { font-size: 13px; color: var(--wb-muted); margin: 0; }
.wb-hero-row .wb-lead { max-width: 520px; }

/* ---------- buttons ---------- */
.wb-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.wp-block-button__link.wp-element-button { display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px; box-sizing: border-box; border-radius: 0; border: 1px solid var(--wb-paper); background: var(--wb-paper); color: var(--wb-ink); font-family: var(--wb-body); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; line-height: 1.2; }
.wp-block-button__link.wp-element-button:hover { background: #fff; border-color: #fff; color: var(--wb-ink); }
.is-style-outline > .wp-block-button__link.wp-element-button { background: transparent; border: 1px solid var(--wb-ink); color: var(--wb-ink); }
.is-style-outline > .wp-block-button__link.wp-element-button:hover { background: var(--wb-ink); color: var(--wb-paper); }
.wb-callbox { display: inline-flex; align-items: center; gap: 14px; min-height: 46px; padding: 0 20px; border: 1px solid var(--wb-ink); box-sizing: border-box; }
.wb-callbox > * { margin: 0; }

/* ---------- images ---------- */
.wp-block-image { margin: 0; }
.wb-phone img { display: block; height: 17px; width: auto; max-width: 100%; }
.wb-phone--lg img { height: clamp(26px, 3vw, 38px); }
.wb-about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 72px; align-items: center; }
@media (min-width: 900px) { .wb-about-grid { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); } }
.wb-photo { max-width: 380px; }
.wb-photo img { display: block; width: 100%; height: auto; }
.wb-logos { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.wb-logo { margin: 0; }
.wb-logo a { background: #fff; padding: 10px 16px; display: inline-flex; }
.wb-logo img { display: block; height: 40px; width: auto; max-width: 100%; }

/* ---------- home bits ---------- */
.wb-rows { gap: 0; }
.wb-row { margin: 0; }
.wb-row a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; border-top: 1px solid var(--wb-line); text-decoration: none; font-family: var(--wb-display); font-weight: 600; font-size: var(--wb-row); letter-spacing: -0.02em; text-transform: uppercase; line-height: 1.05; transition: padding-left .2s; }
.wb-row a::after { content: "View"; font-family: var(--wb-body); font-weight: 600; font-size: 12px; letter-spacing: 0.18em; color: var(--wb-muted); flex: none; }
.wb-row a:hover { padding-left: 12px; color: #000; }
.wb-row:last-child a { border-bottom: 1px solid var(--wb-line); }

/* breathing exercise */
.wb-breath-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 72px; align-items: center; }
@media (min-width: 900px) { .wb-breath-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.wb-breath { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.wb-breath-ring { position: relative; width: 220px; height: 220px; max-width: 100%; border: 1px solid var(--wb-ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.wb-breath-dot { width: 204px; height: 204px; max-width: 94%; border-radius: 50%; background: var(--wb-ink); animation: wb-breathe 12s ease-in-out infinite; }
.wb-breath-words { position: relative; height: 30px; width: 100%; font-family: var(--wb-display); font-weight: 600; font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; }
.wb-bw { position: absolute; left: 0; right: 0; opacity: 0; }
.wb-bw-in { animation: wb-in 12s linear infinite; }
.wb-bw-hold { animation: wb-hold 12s linear infinite; }
.wb-bw-out { animation: wb-out 12s linear infinite; }
@keyframes wb-breathe { 0% { transform: scale(.45); } 33% { transform: scale(1); } 50% { transform: scale(1); } 100% { transform: scale(.45); } }
@keyframes wb-in { 0% { opacity: 1; } 31% { opacity: 1; } 34% { opacity: 0; } 100% { opacity: 0; } }
@keyframes wb-hold { 0% { opacity: 0; } 33% { opacity: 0; } 35% { opacity: 1; } 48% { opacity: 1; } 51% { opacity: 0; } 100% { opacity: 0; } }
@keyframes wb-out { 0% { opacity: 0; } 49% { opacity: 0; } 52% { opacity: 1; } 97% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.wb-breath-dot, .wb-bw { animation: none; }
	.wb-breath-dot { transform: scale(.8); }
	.wb-breath-words { height: auto; display: flex; flex-direction: column; gap: 4px; }
	.wb-bw { position: static; opacity: 1; }
	.wb-row a { transition: none; }
}

/* ---------- services and info ---------- */
.wb-checklist { list-style: none; margin: 8px 0 0; padding: 0; columns: 2 220px; column-gap: 40px; }
.wb-checklist li { padding: 11px 0; border-top: 1px solid var(--wb-line); break-inside: avoid; color: var(--wb-ink); }
.wb-faq { display: flex; flex-direction: column; border-bottom: 1px solid var(--wb-line); min-width: 0; }
.wb-faq .wp-block-details { margin: 0; border-top: 1px solid var(--wb-line); padding: 20px 0; }
.wb-faq .wp-block-details summary { list-style: none; cursor: pointer; font-family: var(--wb-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; padding-right: 40px; position: relative; color: var(--wb-ink); }
.wb-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.wb-faq .wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 24px; line-height: 1; }
.wb-faq .wp-block-details[open] summary::after { content: "\2212"; }
.wb-faq .wp-block-details p { margin: 16px 0 0; max-width: 680px; color: var(--wb-muted); }
.wb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px; }
.wb-stat { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--wb-line); padding-top: 20px; min-width: 0; }
.wb-stat > * { margin: 0; }
.wb-stat-n { font-family: var(--wb-display); font-weight: 600; font-size: var(--wb-stat); line-height: 1; letter-spacing: -0.03em; color: var(--wb-ink); }
.wb-facts-gap { margin-top: 56px; }

/* ---------- contact ---------- */
.wb-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 72px; align-items: start; }
@media (min-width: 900px) { .wb-contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.wb-note { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--wb-line); padding-top: 24px; max-width: 480px; color: var(--wb-muted); }
.wb-note > * { margin: 0; }
.wb-form-slot input[type="text"], .wb-form-slot input[type="email"], .wb-form-slot input[type="tel"], .wb-form-slot textarea,
.wb-form-slot .ff-el-form-control { font: inherit; font-size: 16px; color: var(--wb-ink); background: var(--wb-paper); border: 1px solid var(--wb-ink); border-radius: 0; padding: 12px 14px; min-height: 46px; box-sizing: border-box; width: 100%; }
.wb-form-slot textarea { min-height: 140px; }
.wb-form-slot label, .wb-form-slot .ff-el-input--label label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wb-muted); }
.wb-form-slot .ff-btn-submit, .wb-form-slot button[type="submit"] { min-height: 46px; padding: 0 28px; background: var(--wb-paper); color: var(--wb-ink); border: 1px solid var(--wb-paper); border-radius: 0; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.wb-form-slot input:focus, .wb-form-slot textarea:focus { outline: 2px solid var(--wb-ink); outline-offset: 2px; }
