/*
Theme Name:   Expert Wealth
Template:     kadence
Description:  Expert Wealth brand layer on Kadence: fonts, colours, header and footer. Page content is edited as normal blocks.
Version:      0.5.0
Text Domain:  expertwealth
*/

:root {
	--ew-cyan: #00c9ec;
	--ew-cyan-dark: #00b3d2;
	--ew-blue: #55bbeb;
	--ew-ink: #434345;
	--ew-body: #505d69;
	--ew-grey-bg: #f4f4f4;
	--ew-footer: #697077;
	--ew-rule: #d9d9d9;
	--ew-wrap: 1170px;
	--ew-head: "open-sans", "Open Sans", Helvetica, Arial, sans-serif;
	--ew-thin: "Roboto", Helvetica, Arial, sans-serif;
}

/* ---------- Base (sizes/weights measured from expertwealth.com.au) ---------- */
body {
	font-family: var(--ew-head);
	color: var(--ew-ink);
	background: #fff;
}
.entry-content p,
.entry-content li {
	font-family: var(--ew-head);
	font-weight: 300;
	font-size: 16px;
	line-height: 24px;
	color: var(--ew-ink);
}
/* Some sections on the old home page use thin Roboto in slate. */
.entry-content .ew-thin p,
.entry-content p.ew-thin { font-family: var(--ew-thin); font-weight: 100; color: var(--ew-body); }
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5 {
	font-family: var(--ew-head);
	font-weight: 300;
	color: var(--ew-ink);
	letter-spacing: 0;
}
.entry-content h1 { font-size: 40.5px; line-height: 1.5; }
.entry-content h2 { font-size: 35px; line-height: 1.24; }
.entry-content h3 { font-size: 29px; line-height: 1.35; }
.entry-content h4 { font-size: 24px; line-height: 1.25; }
.entry-content h5 { font-size: 21px; line-height: 1.36; }
.entry-content h1 strong,
.entry-content h2 strong,
.entry-content h3 strong,
.entry-content h4 strong,
.entry-content h5 strong { font-weight: 600; }
.entry-content .ew-tracked strong { letter-spacing: 1.5px; }
.entry-content p strong { font-weight: 600; }
.entry-content a { color: var(--ew-cyan); text-decoration: none; }
.entry-content a:hover { color: var(--ew-cyan-dark); }

.ew-wrap {
	max-width: var(--ew-wrap);
	margin: 0 auto;
	padding: 0 20px;
}

/* Kadence wraps content; let our sections run edge to edge. */
.content-container.site-container { max-width: none; padding: 0; }
.entry-content > .wp-block-group { margin-top: 0; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.ew-btn,
.entry-content .wp-block-button__link {
	display: inline-block;
	font-family: var(--ew-head);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.84px;
	text-transform: uppercase;
	color: #fff;
	background: var(--ew-cyan);
	border: 2px solid var(--ew-cyan);
	border-radius: 7px;
	padding: 4px 12px;
	line-height: 28px;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}
.ew-btn:hover,
.entry-content .wp-block-button__link:hover {
	background: var(--ew-cyan-dark);
	border-color: var(--ew-cyan-dark);
	color: #fff;
}
.ew-btn--outline,
.entry-content .is-style-outline .wp-block-button__link,
.entry-content .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	background: transparent;
	color: var(--ew-cyan);
	border-color: var(--ew-cyan);
}
.ew-btn--outline:hover,
.entry-content .is-style-outline .wp-block-button__link:hover {
	background: var(--ew-cyan);
	color: #fff;
}

/* Link buttons inside page content keep button colours (content links are cyan). */
.entry-content a.ew-btn { color: #fff; }
.entry-content a.ew-btn--outline { color: var(--ew-cyan); }
.entry-content a.ew-btn--outline:hover { color: #fff; }

/* ---------- Header ---------- */
.ew-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	transition: box-shadow 0.2s;
}
.admin-bar .ew-header { top: 32px; }
.ew-header.is-scrolled { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }
.ew-header__inner {
	max-width: 1300px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 74px;
}
.ew-logo img { display: block; height: 32px; width: auto; }
.ew-nav { display: flex; align-items: center; flex: 1; justify-content: flex-end; gap: 40px; }
.ew-nav__list {
	display: flex;
	gap: 37px;
	list-style: none;
	margin: 0 auto;
	padding: 0;
}
.ew-nav__list a {
	font-family: var(--ew-head);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #212121;
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}
.ew-nav__list .current-menu-item > a,
.ew-nav__list a:hover { border-bottom-color: var(--ew-blue); }
.ew-nav__cta { display: flex; gap: 22px; }
.ew-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.ew-burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ew-ink); }

@media (max-width: 1024px) {
	.ew-burger { display: block; }
	.ew-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		background: #fff;
		padding: 20px;
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
	}
	.ew-header.is-open .ew-nav { display: flex; }
	.ew-nav__list { flex-direction: column; gap: 14px; margin: 0; }
}

/* ---------- Sections (block classes used in page content) ---------- */
.ew-section { padding: 100px 20px; }
.ew-section > * { max-width: var(--ew-wrap); margin-left: auto; margin-right: auto; }
.ew-section--grey { background: #f6f6f6; }
.ew-section--soft { background: #f5f5f5; }
.ew-rule.wp-block-separator {
	width: 40px;
	border: 0;
	border-top: 2px solid var(--ew-rule);
	margin: 22px 0 32px;
	opacity: 1;
}
.has-text-align-center + .ew-rule.wp-block-separator,
.ew-center .ew-rule.wp-block-separator { margin-left: auto; margin-right: auto; }

/* ---------- Scroll reveals (the old site's fadeInLeftS / RightS / UpLight / fadeIn) ---------- */
@keyframes ewInLeft { from { opacity: 0; transform: translate3d(-5%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes ewInRight { from { opacity: 0; transform: translate3d(5%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes ewInUp { from { opacity: 0; transform: translate3d(0, 5%, 0); } to { opacity: 1; transform: none; } }
@keyframes ewFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ewUpDown { 0%, 100% { transform: translate3d(0, 10%, 0); } 50% { transform: translate3d(0, 20%, 0); } }

/* Hidden only once the script runs, so the editor and no-JS visitors see everything. */
.ew-js .ew-in-left,
.ew-js .ew-in-right,
.ew-js .ew-in-up,
.ew-js .ew-in-fade { opacity: 0; }
.ew-js .ew-shown { animation: 1s ease 0.4s both; }
.ew-js .ew-in-left.ew-shown { animation-name: ewInLeft; }
.ew-js .ew-in-right.ew-shown { animation-name: ewInRight; }
.ew-js .ew-in-up.ew-shown { animation-name: ewInUp; animation-delay: 0.6s; }
.ew-js .ew-in-fade.ew-shown { animation-name: ewFade; }
.ew-js .ew-hero .ew-in-left.ew-shown { animation-delay: 2s; }
@media (prefers-reduced-motion: reduce) {
	.ew-js .ew-in-left,
	.ew-js .ew-in-right,
	.ew-js .ew-in-up,
	.ew-js .ew-in-fade { opacity: 1; animation: none; }
}

/* Embedded animated graphics (their original SVGator files). */
.ew-object { display: block; width: 100%; }

/* ---------- Hero ---------- */
.ew-hero {
	position: relative;
	min-height: calc(100vh - 74px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	padding: 41px 20px;
}
.ew-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}
.ew-hero__bg object { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; }
/* Classic-theme groups wrap content in an inner container; keep it static so the
   background positions against the hero itself. */
.ew-hero > .wp-block-group__inner-container { position: static; width: 100%; }
.ew-hero h1,
.ew-hero .ew-hero__arrow { position: relative; z-index: 1; }
.entry-content .ew-hero h1 { line-height: 1.5; margin-bottom: 0; }
.ew-hero__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin: 18px auto 0;
	border: 2px solid var(--ew-cyan);
	border-radius: 50%;
	color: var(--ew-cyan);
	font-size: 26px;
	animation: ewUpDown 3s infinite;
	transition: background 0.3s, color 0.3s;
}
.entry-content .ew-hero__arrow:hover { color: #fff; background: #00e0fa; }

/* ---------- Sections ---------- */
.ew-section--coffee { position: relative; padding-top: 110px; padding-bottom: 98px; overflow: hidden; }
.ew-coffee__loop { position: absolute; left: 0; top: 120px; width: 100%; z-index: 0; pointer-events: none; }
.ew-section--coffee > .wp-block-columns { position: relative; z-index: 1; }

.ew-section--tall { padding-top: 98px; padding-bottom: 98px; }

/* Photo cards: image as a rounded 250px tile, like the old background-image cards. */
.ew-photo-card .wp-block-image img { border-radius: 8px; width: 100%; height: 250px; object-fit: cover; }
.entry-content .ew-photo-card h5 { margin: 20px 0 8px; }
.entry-content .ew-photo-card p a { color: #00e0fa; }

/* Waves between sections */
.ew-wave { display: block; width: 100%; height: auto; margin: 0; line-height: 0; }
.ew-wave svg { display: block; width: 100%; height: auto; }

/* Process: their animated 01/02/03 rings, text fades in as each ring draws. */
.ew-point object { width: 100%; max-width: 330px; margin: 0 auto; display: block; }
.entry-content .ew-point__text { padding: 0 20px; text-align: center; }
.ew-js .ew-point__text { opacity: 0; transition: opacity 1s; }
.ew-js .ew-point__text.ew-shown { opacity: 1; animation: none; }

/* Parallax water banner */
.ew-banner { min-height: 482px; }
.entry-content .ew-banner h1,
.entry-content .ew-banner p { color: #fff; }
.ew-banner .wp-block-cover__inner-container { max-width: var(--ew-wrap); margin: 0 auto; }
.ew-banner .wp-block-cover__inner-container > * { max-width: 585px; }

/* Cards */
.ew-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
	padding: 40px 30px;
	height: 100%;
}

/* Pricing */
.ew-price { text-align: center; }
.ew-price .ew-icon { font-size: 34px; color: var(--ew-cyan); }
.entry-content .ew-price h3 { font-weight: 700; margin: 14px 0; }
.entry-content .ew-price p { font-size: 12px; line-height: 18px; }
.entry-content .ew-price .ew-price__blurb { min-height: 92px; }
.entry-content .ew-price .ew-price__amount { font-family: var(--ew-head); font-size: 36px; line-height: 1.2; font-weight: 700; color: var(--ew-ink); margin: 30px 0; min-height: 44px; }
.entry-content .ew-price .ew-price__amount--small { font-size: 18px; line-height: 44px; }
.ew-price .wp-block-buttons { justify-content: center; }
.entry-content ul.ew-checks { list-style: none; padding: 0; margin: 40px 0 0 30px; text-align: left; }
.entry-content ul.ew-checks li { font-size: 12px; line-height: 18px; padding: 7px 0 7px 30px; position: relative; }
.entry-content ul.ew-checks li::before {
	position: absolute;
	left: 0;
	font-family: "Font Awesome 6 Pro";
	font-weight: 300;
	content: "\f00c";
	color: #2e9e4f;
}
.entry-content ul.ew-checks li.ew-no::before { content: "\f00d"; color: #8a8a8a; }
.ew-addons { margin: 18px 0 0 30px; text-align: left; font-size: 12px; position: relative; }
.ew-addons .fa-plus { color: var(--ew-blue); margin-right: 14px; }
.ew-addons__tip { position: relative; cursor: help; margin-left: 6px; }
.ew-addons__tip span {
	display: none;
	position: absolute;
	bottom: 130%;
	left: 50%;
	transform: translateX(-50%);
	background: var(--ew-ink);
	color: #fff;
	border-radius: 4px;
	padding: 6px 10px;
	white-space: nowrap;
	font-family: var(--ew-head);
}
.ew-addons__tip:hover span,
.ew-addons__tip:focus span { display: block; }
.entry-content .ew-footnote { font-size: 12px; text-align: center; margin-top: 40px; }

/* Services */
.ew-service { display: flex; gap: 20px; }
.ew-service .ew-icon { font-size: 40px; color: var(--ew-cyan); line-height: 1; flex: none; }
.entry-content .ew-service h4 { margin: 4px 0 16px; }
.entry-content .ew-service p a { color: #00bbfa; }

/* Get started: person with the logo centre-piece behind */
.ew-person-col { position: relative; }
.ew-person-col .wp-block-image { position: relative; z-index: 1; width: 80%; }
.ew-person-col .ew-centrepiece { position: absolute; top: -40px; right: -20px; width: 70%; z-index: 0; }

/* ---------- Footer ---------- */
.ew-footer { background: var(--ew-footer); color: #fff; padding: 40px 0 30px; font-family: var(--ew-head); }
.ew-footer a { color: #fff; text-decoration: none; }
.ew-footer__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding-bottom: 50px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.4);
	flex-wrap: wrap;
}
.ew-footer__logo { height: 34px; width: auto; }
.ew-subscribe { display: flex; background: #fff; border-radius: 4px; overflow: hidden; width: 470px; max-width: 100%; }
.ew-subscribe__icon { color: #434345; padding: 12px 14px; border-right: 1px solid #ddd; }
.ew-subscribe input { flex: 1; border: 0; padding: 10px; font-size: 15px; outline: none; }
.ew-subscribe button {
	background: var(--ew-blue);
	color: #fff;
	border: 0;
	padding: 0 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}
.ew-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	padding: 60px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.ew-footer h4 {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 20px;
}
.ew-footer__list { list-style: none; margin: 0; padding: 0; }
.ew-footer__list li { padding: 4px 0 4px 15px; position: relative; font-size: 14px; }
.ew-footer__list li::before { content: "\2022"; position: absolute; left: 0; color: var(--ew-blue); }
.ew-footer__loc p { font-size: 14px; margin: 0 0 14px; line-height: 1.5; }
.ew-footer__loc span,
.ew-footer__loc p a { color: #b3b8bd; }
.ew-footer__loc hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); margin: 20px 0; }
.ew-insights { list-style: none; margin: 0; padding: 0; }
.ew-insights li { margin-bottom: 14px; font-size: 14px; }
.ew-insights span { display: block; font-size: 12px; color: #b3b8bd; }
.ew-insights span::before { content: "\2192\00a0"; color: var(--ew-blue); }
.ew-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding-top: 26px;
	font-size: 12px;
	flex-wrap: wrap;
}
.ew-footer__bottom p { margin: 0; }
.ew-social { display: flex; gap: 16px; font-size: 22px; }
.ew-footer__legal { display: flex; gap: 24px; }

@media (max-width: 900px) {
	.ew-footer__cols { grid-template-columns: 1fr 1fr; }
	.ew-section { padding: 60px 16px; }
	.entry-content .ew-hero h1 { font-size: 32px; }
}
@media (max-width: 560px) {
	.ew-footer__cols { grid-template-columns: 1fr; }
}
