/* PracticeMarketer Kinetic: main stylesheet */

:root {
	--blue: #1e73be;
	--blue-deep: #155a96;
	--green: #99d255;
	--green-soft: #eef8e3;
	--yellow: #ffcc00;
	--yellow-soft: #fff7d6;
	--sky: #eaf4fc;
	--ink: #14304f;
	--muted: #4f6278;
	--line: #dbe7f2;
	--white: #fff;
	--radius: 26px;
	--radius-sm: 16px;
	--shadow: 0 18px 50px -18px rgba(20, 48, 79, .28);
	--shadow-sm: 0 8px 24px -12px rgba(20, 48, 79, .25);
	--ease: cubic-bezier(.22, 1, .36, 1);
	--serif: "Fraunces", Georgia, serif;
	--sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { --wrap: 780px; }
.center { text-align: center; justify-content: center; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: 24px 0 clamp(56px, 8vw, 96px); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--muted); }

.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(153, 210, 85, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(153, 210, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(153, 210, 85, 0); } }

/* Buttons */
.btn { --bg: var(--sky); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s; white-space: nowrap; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-lg { padding: 18px 32px; font-size: 1.08rem; }
.btn-primary { --bg: var(--yellow); --fg: var(--ink); box-shadow: 0 10px 24px -10px rgba(255, 170, 0, .75); }
.btn-primary:hover { --bg: #ffd633; }
.btn-ghost { --bg: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-dark { --bg: var(--ink); --fg: #fff; }
.btn-outline-dark { --bg: transparent; --fg: var(--ink); border-color: rgba(20, 48, 79, .35); }
.btn-outline-dark:hover { border-color: var(--ink); }
.btn-lift:hover, .btn-primary:hover, .btn-dark:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -12px rgba(20, 48, 79, .4); }
.btn-lift:active, .btn-primary:active { transform: translateY(-1px); }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(20, 48, 79, .4); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand img, .custom-logo { width: 200px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; position: relative; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-phone { font-weight: 700; color: var(--blue); text-decoration: none; font-size: .95rem; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle .bar { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow)); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); background: linear-gradient(180deg, #f6fbff 0%, #fff 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.blob-a { width: 520px; height: 520px; background: #cfe6fa; top: -160px; right: -120px; }
.blob-b { width: 380px; height: 380px; background: #e1f3c9; bottom: -120px; left: -120px; animation-delay: -6s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.kinetic { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 26px; }
.kinetic-static { display: block; }
.kinetic .w { display: inline-block; white-space: nowrap; }
.kinetic-static .ch { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(6deg); animation: chIn .8s var(--ease) forwards; animation-delay: calc(var(--i) * 28ms); }
@keyframes chIn { to { opacity: 1; transform: none; } }
.kinetic-rotator { display: block; position: relative; font-family: var(--sans); font-style: normal; font-weight: 800; color: var(--blue); letter-spacing: -.035em; min-height: 2.1em; }
.kinetic-word { position: relative; display: inline; background-image: linear-gradient(transparent 68%, rgba(255, 204, 0, .55) 68%, rgba(255, 204, 0, .55) 92%, transparent 92%); background-size: var(--hl, 100%) 100%; background-repeat: no-repeat; transition: background-size .7s var(--ease) .25s; }
.kinetic-word .ch { display: inline-block; }
.kinetic-word.is-out .ch { animation: chOut .45s var(--ease) forwards; animation-delay: calc(var(--i) * 14ms); }
.kinetic-word.is-in .ch { opacity: 0; transform: translateY(.7em); animation: chIn .7s var(--ease) forwards; animation-delay: calc(var(--i) * 22ms); }
@keyframes chOut { to { opacity: 0; transform: translateY(-.6em) rotate(-4deg); } }
.hero-sub { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.hero-proof strong { color: var(--ink); font-size: 1.15rem; }
.hero-proof li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }

.hero-art { position: relative; height: clamp(420px, 46vw, 600px); }
.hero-photo { position: absolute; overflow: hidden; border-radius: 34px; box-shadow: var(--shadow); background: var(--sky); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main { inset: 0 8% 6% 18%; border-radius: 200px 200px 34px 34px; }
.hero-photo-sm { width: 40%; aspect-ratio: 1; left: 0; bottom: 0; border: 6px solid #fff; }
.hero-photo-xs { width: 26%; aspect-ratio: 7/8; right: 0; top: 10%; border: 6px solid #fff; border-radius: 999px; }
.hero-chip { position: absolute; display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 10px 18px 10px 10px; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm); }
.chip-a { left: 6%; top: 18%; }
.chip-b { right: 2%; bottom: 20%; }
.chip-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); }
.chip-icon-green { background: var(--green); color: #fff; }
.float-a { animation: floatA 7s ease-in-out infinite; }
.float-b { animation: floatB 8s ease-in-out infinite; }
@keyframes floatA { 50% { transform: translateY(-14px); } }
@keyframes floatB { 50% { transform: translateY(12px); } }
.tilt { transition: transform .6s var(--ease); will-change: transform; }

/* Stats ticker */
.stats { background: var(--ink); color: #fff; padding: 64px 0 0; overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-bottom: 52px; }
.stat { border-left: 3px solid var(--green); padding-left: 20px; }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.stat-text { font-family: var(--sans); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: .02em; line-height: 1.3; padding-top: .55em; color: #fff; }
.stat-label { color: #b9cde0; font-size: .95rem; }
.ticker { background: var(--blue); padding: 18px 0; white-space: nowrap; overflow: hidden; transform: rotate(-1.2deg) scale(1.03); margin-bottom: 14px; }
.ticker-track { display: inline-flex; align-items: center; gap: 28px; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick-item { font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.tick-dot { color: var(--yellow); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Interactive feature cards */
.filter-tabs { display: flex; justify-content: center; gap: 8px; margin: -16px 0 40px; }
.filter-tab { border: 2px solid var(--line); background: #fff; color: var(--ink); padding: 9px 22px; border-radius: 999px; font-weight: 700; transition: all .3s var(--ease); }
.filter-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.fcard { --accent: var(--blue); --tint: var(--sky); perspective: 900px; transition: opacity .4s, transform .4s var(--ease); }
.fcard.tone-green { --accent: #6fae2c; --tint: var(--green-soft); }
.fcard.tone-yellow { --accent: #c99a00; --tint: var(--yellow-soft); }
.fcard.is-hidden { display: none; }
.fcard-inner { all: unset; box-sizing: border-box; display: flex; flex-direction: column; height: 100%; width: 100%; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; cursor: pointer; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; transform-style: preserve-3d; }
.fcard-inner:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.fcard-inner:hover, .fcard.is-open .fcard-inner { box-shadow: var(--shadow); border-color: transparent; }
.fcard-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--tint); }
.fcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.fcard-inner:hover .fcard-media img { transform: scale(1.07); }
.fcard-tag { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--ink); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.fcard-body { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; flex: 1; background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--tint) 100%); }
.fcard-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; padding-right: 40px; }
.fcard-blurb { color: var(--muted); }
.fcard-more { display: block; opacity: 0; color: var(--ink); font-weight: 600; border-left: 3px solid var(--accent); padding-left: 14px; transition: max-height .55s var(--ease), opacity .4s, margin .4s; overflow: hidden; max-height: 0; }
.fcard.is-open .fcard-more { opacity: 1; max-height: 240px; margin-top: 4px; }
.fcard-plus { position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent); font-size: 1.4rem; font-weight: 700; transition: transform .45s var(--ease), background .3s, color .3s; }
.fcard.is-open .fcard-plus { transform: rotate(135deg); background: var(--accent); color: #fff; }

/* Mosaic */
.mosaic-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 18px; }
.mosaic-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--sky); }
.mosaic-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.mosaic-grid figure:hover img { transform: scale(1.06); }
.m1 { grid-column: 1 / 6; grid-row: span 3; }
.m2 { grid-column: 6 / 9; grid-row: span 3; border-radius: 200px 200px var(--radius) var(--radius) !important; }
.m3 { grid-column: 9 / 13; grid-row: span 3; }
.m4 { grid-column: 1 / 5; grid-row: span 2; }
.m5 { grid-column: 5 / 8; grid-row: span 2; }
.m6 { grid-column: 8 / 13; grid-row: span 2; }
.mosaic-quote { background: var(--yellow-soft); border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; justify-content: space-between; }
.big-quote { font-family: var(--sans); font-style: normal; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.link-arrow { all: unset; cursor: pointer; font-weight: 800; color: var(--blue); }
.link-arrow:hover { text-decoration: underline; }

/* Story */
.story { background: var(--sky); }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.story-photo { position: relative; }
.story-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.story-badge { position: absolute; right: -18px; bottom: 28px; width: 128px; height: 128px; border-radius: 50%; background: var(--yellow); display: grid; place-content: center; text-align: center; font-weight: 700; box-shadow: var(--shadow-sm); animation: floatB 8s ease-in-out infinite; }
.story-badge span { font-family: var(--serif); font-size: 2.8rem; line-height: 1; }
.timeline { list-style: none; margin: 30px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 47px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--blue), var(--green)); }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 12px 0; align-items: start; }
.t-year { position: relative; z-index: 1; background: #fff; color: var(--blue); font-weight: 800; border-radius: 999px; padding: 6px 0; text-align: center; box-shadow: var(--shadow-sm); }
.timeline p { margin: 6px 0 0; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num { display: inline-block; font-family: var(--serif); font-size: 2.4rem; font-weight: 600; line-height: 1; color: var(--blue); margin-bottom: 16px; }
.step:nth-child(2) .step-num { color: #6fae2c; }
.step:nth-child(3) .step-num { color: #c99a00; }
.step p { color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--yellow) 0%, #ffe066 55%, var(--green) 130%); padding: clamp(64px, 8vw, 104px) 0; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.cta-copy p { font-size: 1.15rem; max-width: 520px; }
.cta-photos { position: relative; height: 340px; }
.cta-photos img { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; border: 6px solid #fff; }
.cta-photos img:first-child { width: 72%; height: 70%; top: 0; right: 0; }
.cta-photos img:last-child { width: 60%; height: 56%; bottom: 0; left: 0; }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card-link { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.post-card-link:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card-media img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.post-card-body time { font-size: .82rem; font-weight: 700; color: var(--blue); }
.post-card-excerpt { color: var(--muted); font-size: .96rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.faq-photo { border-radius: var(--radius); margin-top: 28px; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; object-fit: cover; object-position: 50% 25%; width: 100%; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 22px 0; font-weight: 700; font-size: 1.12rem; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sky); position: relative; transition: transform .4s var(--ease), background .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--blue); transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(135deg); background: var(--yellow); }
.faq-a { color: var(--muted); padding: 0 40px 18px 0; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } }

/* Footer */
.site-footer { background: var(--ink); color: #c8d7e6; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 340px; margin: 18px 0 22px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-links, .site-footer .nav-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #c8d7e6; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .nav-list a { color: #c8d7e6; font-weight: 500; }
.site-footer .nav-list a::after { display: none; }
.footer-nap { font-style: normal; line-height: 1.8; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 22px; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* Floating CTA (mobile) */
.float-cta { position: fixed; right: 18px; bottom: 18px; z-index: 40; transform: translateY(140%); transition: transform .5s var(--ease); display: none; }
.float-cta.is-visible { transform: none; }
.float-dot { width: 8px; height: 8px; border-radius: 50%; background: #2a9d3a; animation: pulse 2s infinite; }

/* Booking modal */
.book-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.book-modal[hidden] { display: none; }
.book-backdrop { position: absolute; inset: 0; background: rgba(20, 48, 79, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.book-panel { position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); display: grid; grid-template-columns: 340px 1fr; background: #fff; border-radius: 30px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.book-modal.is-open .book-backdrop { opacity: 1; }
.book-modal.is-open .book-panel { opacity: 1; transform: none; }
.book-side { position: relative; background: var(--sky); }
.book-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-side-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; color: #fff; background: linear-gradient(transparent, rgba(20, 48, 79, .92)); }
.book-side-kicker { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .78rem; padding: 5px 12px; border-radius: 999px; }
.book-side-quote { font-family: var(--sans); font-style: normal; font-size: 1.2rem; line-height: 1.35; font-weight: 700; margin: 0; }
.book-main { position: relative; padding: 38px 40px 32px; overflow-y: auto; }
.book-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--sky); font-size: 1.6rem; line-height: 1; color: var(--ink); transition: transform .35s var(--ease), background .2s; }
.book-close:hover { transform: rotate(90deg); background: var(--yellow); }
.book-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); padding-right: 46px; }
.book-progress { height: 8px; border-radius: 99px; background: var(--sky); overflow: hidden; }
.book-progress span { display: block; height: 100%; width: var(--w, 25%); border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--green)); transition: width .6s var(--ease); }
.book-step-label { font-size: .85rem; color: var(--muted); font-weight: 600; margin: 8px 0 18px; }
.book-step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.book-step.is-active { display: block; animation: stepIn .5s var(--ease); }
.book-step.is-back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(26px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-26px); } }
.book-step legend { font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; padding: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice-row { grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.choice, .chip { position: relative; cursor: pointer; }
.choice input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 2px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; transition: all .25s var(--ease); }
.choice span::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); transition: all .25s; }
.choice input:checked + span { border-color: var(--blue); background: var(--sky); }
.choice input:checked + span::before { border: 6px solid var(--blue); }
.choice input:focus-visible + span, .chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice:hover span { transform: translateY(-2px); }
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; font-size: .95rem; transition: all .25s var(--ease); }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: var(--ink); transform: scale(1.04); }
.chip input:checked + span::before { content: "✓"; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 700; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea { font: inherit; font-weight: 500; color: var(--ink); padding: 13px 16px; border: 2px solid var(--line); border-radius: 14px; background: #fbfdff; transition: border-color .2s, box-shadow .2s; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 115, 190, .15); }
.field input[aria-invalid="true"] { border-color: #d64545; }
.field-error { color: #b42323; font-weight: 700; font-size: .9rem; margin: 12px 0 0; }
.book-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.book-nav [data-next], .book-nav [data-submit] { margin-left: auto; }
.book-nav .is-loading { opacity: .7; pointer-events: none; }
.book-done { text-align: center; }
.done-badge { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2.2rem; font-weight: 800; display: grid; place-items: center; animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.12); } }
.calendly-slot iframe { width: 100%; height: 560px; border: 0; border-radius: var(--radius-sm); background: var(--sky); margin-top: 8px; }
.calendly-alt { margin: 12px 0 0; font-weight: 700; font-size: .92rem; }
.book-modal.is-done .book-nav { display: none; }
body.modal-open { overflow: hidden; }

/* Inner pages */
.page-main { padding-top: 56px; }
.page-head { margin-bottom: 36px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.entry-hero img { border-radius: var(--radius); margin-bottom: 36px; }
.entry-content { font-size: 1.1rem; }
.entry-content h2 { font-size: 1.8rem; margin-top: 1.6em; }
.entry-cta { margin-top: 56px; padding: 40px; border-radius: var(--radius); background: var(--yellow-soft); text-align: center; }
.entry-cta h2 { font-size: 1.6rem; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
	.nav-phone { display: none; }
	.card-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 12px 20px 28px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .35s var(--ease); }
	.primary-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
	.nav-list a::after { display: none; }
	.nav-phone { display: block; padding-top: 16px; }
	.hero-grid, .story-grid, .faq-grid, .cta-grid { grid-template-columns: 1fr; }
	.hero-art { height: 440px; max-width: 520px; width: 100%; margin-inline: auto; }
	.story-photo { max-width: 520px; }
	.story-badge { right: 12px; }
	.cta-photos { display: none; }
	.mosaic-grid { grid-auto-rows: 100px; }
	.m1 { grid-column: 1 / 8; } .m2 { grid-column: 8 / 13; } .m3 { grid-column: 1 / 13; grid-row: span 2; }
	.m4 { grid-column: 1 / 7; } .m5 { grid-column: 7 / 13; } .m6 { grid-column: 1 / 13; }
	.book-panel { grid-template-columns: 1fr; }
	.book-side { display: none; }
	.float-cta { display: inline-flex; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.header-actions .btn-sm { display: none; }
	.brand img, .custom-logo { width: 168px; }
	.card-grid, .post-grid, .steps, .field-grid, .choice-grid { grid-template-columns: 1fr; }
	.choice-row { grid-template-columns: repeat(3, 1fr); }
	.choice-row .choice span { justify-content: center; padding: 14px 8px; }
	.choice-row .choice span::before { display: none; }
	.stats-grid { gap: 26px 16px; }
	.hero-ctas .btn { width: 100%; }
	.hero-art { height: 360px; }
	.hero-chip { font-size: .8rem; }
	.book-modal { padding: 0; align-items: end; }
	.book-panel { border-radius: 26px 26px 0 0; max-height: 94vh; max-height: 94dvh; }
	.book-main { padding: 30px 22px 24px; }
	.footer-grid { grid-template-columns: 1fr; }
	.timeline li { grid-template-columns: 76px 1fr; }
	.timeline::before { left: 37px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
	.ticker-track { animation: none; }
}

/* ===================== Inner pages: block patterns ===================== */
.pm-page { overflow-x: clip; }
.pm-blocks > .wp-block-group, .pm-blocks > section, .pm-blocks > .cta-band { margin: 0; }
.pm-blocks .wp-block-group { margin-block-start: 0; }
.pm-blocks > .wp-block-shortcode, .pm-blocks > p:empty { margin: 0; }

.pm-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 16px; }
.pm-eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }

/* Hero */
.pm-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); background: linear-gradient(180deg, #f6fbff 0%, #fff 100%); }
.pm-hero::before, .pm-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.pm-hero::before { width: 460px; height: 460px; background: #cfe6fa; top: -150px; right: -120px; }
.pm-hero::after { width: 340px; height: 340px; background: #e1f3c9; bottom: -140px; left: -120px; animation-delay: -6s; }
.wp-block-columns.pm-hero-cols { position: relative; z-index: 1; width: min(100% - 40px, var(--wrap)); margin: 0 auto; gap: 56px; align-items: center !important; flex-wrap: nowrap; }
.pm-hero-copy { flex: 1.1 1 0 !important; }
.pm-hero-media { flex: .9 1 0 !important; }
.pm-h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 22px; }
.pm-h1 .ch { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(6deg); animation: chIn .8s var(--ease) forwards; animation-delay: calc(var(--i) * 22ms); }
.pm-h1 .w { display: inline-block; white-space: nowrap; }
.pm-lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 560px; }
.pm-lead a { font-weight: 700; }
.wp-block-image.pm-hero-img { margin: 0; position: relative; }
.wp-block-image.pm-hero-img img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: 180px 34px 34px 34px; box-shadow: var(--shadow); animation: floatA 9s ease-in-out infinite; }
.wp-block-image.pm-hero-img::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--yellow); left: -26px; bottom: -26px; z-index: -1; }
.wp-block-image.pm-hero-img::before { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 22px; background: var(--green); right: -18px; top: 18%; z-index: -1; transform: rotate(18deg); }

/* Buttons from the core Button block */
.wp-block-buttons.pm-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px; border-radius: 999px; font-weight: 700; font-size: 1.04rem; text-decoration: none; border: 2px solid transparent; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s; background: var(--ink); color: #fff; }
.wp-block-button.pm-btn-primary .wp-block-button__link { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(255, 170, 0, .75); }
.wp-block-button.pm-btn-primary .wp-block-button__link::after { content: "→"; transition: transform .35s var(--ease); }
.wp-block-button.pm-btn-primary .wp-block-button__link:hover::after { transform: translateX(4px); }
.wp-block-button.pm-btn-ghost .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--line); }
.wp-block-button.pm-btn-ghost .wp-block-button__link:hover { border-color: var(--blue); color: var(--blue); }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -12px rgba(20, 48, 79, .4); }

/* Sections */
.pm-section { padding: clamp(56px, 8vw, 104px) 0; }
.pm-section > * { width: min(100% - 40px, var(--wrap)); margin-left: auto !important; margin-right: auto !important; }
.pm-section.is-tint { background: var(--sky); }
.pm-section + .pm-section:not(.is-tint) { padding-top: 0; }
.pm-section.is-tint + .pm-section, .pm-hero + .pm-section { padding-top: clamp(56px, 8vw, 104px); }
.pm-head { max-width: 720px; margin-bottom: 40px !important; }
.pm-head.is-center { text-align: center; }
.pm-head.is-center .pm-eyebrow { justify-content: center; }
.pm-head h2 { margin-bottom: .35em; }
.pm-intro { color: var(--muted); font-size: 1.1rem; }
.pm-section > .wp-block-details { max-width: 860px; }

/* Cards (core Columns turned into a grid) */
.wp-block-columns.pm-cards { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.wp-block-columns.pm-cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 980px; }
.wp-block-columns.pm-cards-3 { grid-template-columns: repeat(3, 1fr); }
.pm-cards > .wp-block-column.pm-card { margin: 0 !important; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.pm-cards > .pm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pm-card > :not(figure) { margin-left: 26px; margin-right: 26px; }
.pm-card > h3 { margin-top: 24px; margin-bottom: 8px; font-size: 1.22rem; }
.pm-card > h3 a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--yellow), var(--yellow)); background-size: 0 35%; background-position: 0 90%; background-repeat: no-repeat; transition: background-size .45s var(--ease); }
.pm-card:hover > h3 a { background-size: 100% 35%; }
.pm-card > h3 a::after { content: ""; position: absolute; inset: 0; }
.pm-card { position: relative; }
.pm-card > p { color: var(--muted); margin-bottom: 26px; }
.pm-card .wp-block-image.pm-card-img { margin: 0; overflow: hidden; aspect-ratio: 16/10; background: var(--sky); }
.pm-card .pm-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pm-card:hover .pm-card-img img { transform: scale(1.07); }
.pm-cards-plain .pm-card { border-top: 4px solid var(--blue); }
.pm-cards-plain .pm-card:nth-child(3n+2) { border-top-color: var(--green); }
.pm-cards-plain .pm-card:nth-child(3n) { border-top-color: var(--yellow); }
.is-tint .pm-card { border-color: transparent; }
.pm-plan .pm-price { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.pm-plan.is-featured { border: 2px solid var(--blue) !important; }
.pm-plan > ul { margin-left: 26px; margin-bottom: 26px; }

/* Split */
.wp-block-columns.pm-split { gap: clamp(32px, 6vw, 72px); align-items: center !important; }
.pm-split-media .wp-block-image { margin: 0; }
.pm-split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.pm-split-copy > p { color: var(--muted); font-size: 1.06rem; }
.wp-block-list.pm-checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.wp-block-list.pm-checks li { position: relative; padding-left: 34px; font-weight: 600; }
.wp-block-list.pm-checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft); color: #4f8a1d; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.is-tint .wp-block-list.pm-checks li::before { background: #fff; }

/* Steps */
.wp-block-columns.pm-steps { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.pm-steps > .pm-step { margin: 0 !important; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.pm-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pm-step-num { font-family: var(--serif); font-size: 2.3rem; line-height: 1; color: var(--blue); margin-bottom: 14px; }
.pm-step:nth-child(2) .pm-step-num { color: #6fae2c; }
.pm-step:nth-child(3) .pm-step-num { color: #c99a00; }
.pm-step p:last-child { color: var(--muted); margin: 0; }

/* Galleries */
.wp-block-columns.pm-gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.pm-gallery > .pm-gal-item { margin: 0 !important; }
.pm-gallery .wp-block-image { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.pm-gallery .wp-block-image:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); }
.pm-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pm-logos { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; }
.pm-logos .wp-block-image { aspect-ratio: 3/2; display: grid; place-items: center; padding: 18px; }
.pm-logos img { object-fit: contain; max-height: 110px; }
.pm-print .wp-block-image { aspect-ratio: 36/31; }
.pm-social { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important; }
.pm-social .wp-block-image { aspect-ratio: 1; }

/* FAQ (core Details block) */
.wp-block-details.pm-faq { border-bottom: 1px solid var(--line); padding: 0; margin: 0 auto !important; }
.wp-block-details.pm-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 0; font-weight: 700; font-size: 1.12rem; cursor: pointer; }
.wp-block-details.pm-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.pm-faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-size: 1.3rem; transition: transform .4s var(--ease), background .3s; }
.wp-block-details.pm-faq[open] summary::after { transform: rotate(135deg); background: var(--yellow); }
.wp-block-details.pm-faq p { color: var(--muted); padding-bottom: 18px; margin: 0; animation: fadeUp .45s var(--ease); }

/* CTA band inside pages */
.cta-band-inline { margin: 0; }

/* Portfolio */
.pm-portfolio { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.pm-port-item { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pm-port-item:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pm-port-browser { display: flex; gap: 6px; padding: 10px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.pm-port-browser span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.pm-port-browser span:nth-child(1) { background: #ff8a80; } .pm-port-browser span:nth-child(2) { background: var(--yellow); } .pm-port-browser span:nth-child(3) { background: var(--green); }
.pm-port-shot { display: block; aspect-ratio: 16/10; overflow: hidden; }
.pm-port-shot img { width: 100%; height: auto; transition: transform 3.5s ease; }
.pm-port-item:hover .pm-port-shot img { transform: translateY(-12%); }
.pm-port-meta { display: flex; flex-direction: column; padding: 18px 20px 20px; }
.pm-port-meta strong { font-size: 1.1rem; }
.pm-port-meta span { color: var(--muted); font-size: .92rem; }

/* Testimonials rail */
.pm-quotes { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); width: 100% !important; max-width: none !important; }
.pm-quotes-track { display: flex; gap: 22px; width: max-content; animation: ticker 60s linear infinite; padding: 8px 0 18px; }
.pm-quotes:hover .pm-quotes-track { animation-play-state: paused; }
.pm-quote { margin: 0; width: 380px; flex: none; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--blue); display: flex; flex-direction: column; }
.pm-quote.tone-green { border-top-color: var(--green); } .pm-quote.tone-yellow { border-top-color: var(--yellow); }
.pm-stars { color: #f5b400; letter-spacing: 2px; }
.pm-quote blockquote { margin: 12px 0 16px; flex: 1; }
.pm-quote blockquote p { margin: 0; font-size: .98rem; line-height: 1.6; }
.pm-quote figcaption { font-weight: 800; }

/* Forms + embeds */
.pm-form-frame { max-width: 860px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(10px, 2vw, 22px); }
.pm-form-frame iframe { display: block; width: 100%; min-height: 700px; border: 0; border-radius: var(--radius-sm); }
.pm-calendly iframe { min-height: 720px; }
.pm-report iframe { min-height: 1100px; }
.pm-form-fallback { text-align: center; font-size: .9rem; margin: 12px 0 0; }

/* Contact card */
.pm-contact-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pm-contact-card > div { background: var(--sky); border-radius: var(--radius); padding: 28px; line-height: 1.8; }
.pm-ci { display: block; font-size: 1.6rem; margin-bottom: 6px; }

/* ===================== Header dropdowns ===================== */
.primary-nav .nav-list > li { position: relative; }
.primary-nav .menu-item-has-children > a { padding-right: 16px; }
.primary-nav .menu-item-has-children > a::before { content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.primary-nav .sub-menu { position: absolute; top: calc(100% + 18px); left: -18px; min-width: 250px; list-style: none; margin: 0; padding: 10px; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(20, 48, 79, .35); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .3s var(--ease); z-index: 60; }
.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .93rem; }
.primary-nav .sub-menu a::after { display: none; }
.primary-nav .sub-menu a:hover { background: var(--sky); color: var(--blue); }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--blue); }
.sub-toggle { display: none; }

/* Footer client resources */
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.site-footer .footer-links, .site-footer .footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

@media (max-width: 1080px) {
	.wp-block-columns.pm-cards-3 { grid-template-columns: repeat(2, 1fr); }
	.nav-list { gap: 18px; }
}
@media (max-width: 900px) {
	.wp-block-columns.pm-hero-cols, .wp-block-columns.pm-split { flex-wrap: wrap !important; }
	.wp-block-columns.pm-hero-cols > .wp-block-column, .wp-block-columns.pm-split > .wp-block-column { flex-basis: 100% !important; }
	.pm-hero-media { max-width: 560px; }
	.primary-nav { max-height: calc(100vh - 76px); overflow-y: auto; }
	.primary-nav .nav-list > li { position: relative; }
	.primary-nav .menu-item-has-children > a::before { display: none; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0; display: none; border-radius: 0; }
	.primary-nav li.is-sub-open > .sub-menu { display: block; }
	.primary-nav .sub-menu a { padding: 10px 4px; border-bottom: 0; font-size: .98rem; }
	.sub-toggle { display: grid; place-items: center; position: absolute; right: 0; top: 6px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sky); color: var(--ink); font-size: 1.2rem; transition: transform .3s var(--ease); }
	li.is-sub-open > .sub-toggle { transform: rotate(45deg); background: var(--yellow); }
	.pm-contact-card { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.wp-block-columns.pm-cards-3 { grid-template-columns: 1fr; }
	.pm-portfolio { grid-template-columns: 1fr; }
	.pm-quote { width: 300px; }
	.wp-block-buttons.pm-ctas .wp-block-button { width: 100%; }
	.wp-block-buttons.pm-ctas .wp-block-button__link { width: 100%; }
	.pm-form-frame iframe { min-height: 820px; }
	.footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.pm-quotes-track { animation: none; flex-wrap: wrap; width: auto; }
	.pm-h1 .ch { opacity: 1; transform: none; }
}
.fcard { display: flex; flex-direction: column; }
.fcard-inner { flex: 1; }
.fcard-link { display: inline-block; margin: 12px 6px 0; font-weight: 800; font-size: .95rem; color: var(--blue); text-decoration: none; }
.fcard-link:hover { text-decoration: underline; }
.testimonials { background: var(--sky); padding-bottom: clamp(56px, 7vw, 96px); }
.port-teaser { padding-top: 0; }
/* Google Partner badge */
.pm-partner { display: inline-block; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-sm); }
.pm-partner img { display: block; width: 100%; height: auto; }
.pm-partner.is-footer { display: block; width: 170px; margin-top: 22px; }
.pm-partner.is-large { width: 300px; padding: 18px 22px; }
.pm-partner-wrap { text-align: center; }
.wp-block-buttons.is-center { justify-content: center; }
.footer-social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 20px 0 0; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background .3s, transform .3s var(--ease); }
.footer-social a:hover { background: var(--yellow); color: var(--ink); transform: translateY(-3px); }
/* Mobile: push the menu button to the right edge */
@media (max-width: 900px) {
	.header-actions { margin-left: auto; }
}
/* Mobile tap-to-call in the header bar */
.header-call { display: none; }
@media (max-width: 900px) {
	.header-call { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .88rem; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(255, 170, 0, .8); }
	.header-call:active { transform: translateY(1px); }
}
@media (max-width: 400px) {
	.brand img, .custom-logo { width: 140px; }
	.header-call { padding: 9px 11px; font-size: .82rem; }
}
@media (max-width: 340px) {
	.header-call span { display: none; }
}
/* Mosaic photo framing */
.m2 img { object-position: 50% 30%; }
.m5 img { object-position: 45% 30%; }

/* Editable work gallery (Social examples): hidden until media is added */
body.page .pm-work-section:not(:has(img, video, iframe)) { display: none; }
.pm-work-section .wp-block-gallery.pm-work { gap: 18px; }
.pm-work-section .wp-block-gallery.pm-work .wp-block-image { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.pm-work-section .wp-block-gallery.pm-work .wp-block-image img { aspect-ratio: 1; object-fit: cover; }
.pm-work-section .wp-block-video video, .pm-work-section .wp-block-embed iframe { border-radius: var(--radius-sm); }
