/*
Theme Name: w88
Theme URI: http://localhost/pbfaonline.com/
Author: Palm Beach Financial Advisors
Description: Giao diện Palm Beach Financial Advisors, dựng lại từ bản lưu ngày 26 tháng 3 năm 2023.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: w88
*/

:root {
	--navy: #223a4e;
	--ink: #111111;
	--body: #666666;
	--link: #032f60;
	--link-hover: #206b8f;
	--blue: #2981b2;
	--blue-hover: #368ebf;
	--dropdown: #206b8f;
	--green: #53c658;
	--band: #e8eef1;
	--topbar: #222222;
	--muted: #c1c1c1;
	--footer-heading: #d8d8d6;
	--sidebar: #f8f8f5;
	--container: 1170px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #fff;
	color: var(--body);
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.43;
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
}

a {
	color: var(--link);
}

a:hover {
	color: var(--link-hover);
}

h1,
h2,
h3,
h4 {
	font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 700;
	color: var(--navy);
}

p {
	margin: 0 0 16px;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 15px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -40px;
	z-index: 100;
	background: var(--blue);
	color: #fff;
	padding: 8px 12px;
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
}

/* Top bar */
.top-bar {
	background: var(--topbar);
	height: 40px;
}

.top-bar-inner {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	height: 40px;
}

.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
}

.header-phone:hover {
	color: #fff;
}

.header-phone svg {
	display: block;
}

/* Header */
.site-header {
	background: #fff;
	padding: 26px 0;
	position: relative;
	z-index: 30;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 124px;
}

.logo {
	display: block;
	flex: 0 0 auto;
	line-height: 0;
}

.logo img {
	display: block;
	width: 351px;
	height: auto;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ink);
	position: relative;
}

.nav-toggle .bar::before,
.nav-toggle .bar::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle .bar::before {
	top: -7px;
}

.nav-toggle .bar::after {
	top: 7px;
}

.site-nav > ul {
	display: flex;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav > ul > li {
	position: relative;
}

.site-nav > ul > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 84px;
	padding: 32px 25px;
	color: var(--ink);
	font-size: 16px;
	line-height: 20px;
	text-decoration: none;
	white-space: nowrap;
}

.site-nav > ul > li > a:hover,
.site-nav > ul > li:hover > a,
.site-nav > ul > li:focus-within > a {
	background: var(--blue-hover);
	color: #fff;
}

.site-nav > ul > li.current-menu-item > a,
.site-nav > ul > li.current-menu-ancestor > a,
.site-nav > ul > li.current_page_item > a,
.site-nav > ul > li.current_page_ancestor > a {
	background: var(--blue);
	color: #fff;
}

.site-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 40;
	min-width: 280px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--dropdown);
}

.site-nav > ul > li:nth-last-child(-n + 3) > .sub-menu {
	left: auto;
	right: 0;
}

.site-nav .sub-menu a {
	display: block;
	padding: 11px 18px;
	color: #fff;
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
}

.site-nav .sub-menu a:hover,
.site-nav .sub-menu .current-menu-item > a {
	background: rgba(54, 142, 191, 0.95);
	color: #fff;
}

.submenu-toggle {
	display: none;
}

@media (min-width: 992px) {
	.site-nav li:hover > .sub-menu,
	.site-nav li:focus-within > .sub-menu {
		display: block;
	}
}

/* Homepage */
.intro {
	background: #fff;
	padding: 48px 0 72px;
}

.intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 36px;
	align-items: center;
}

.intro-grid > *,
.cards > *,
.footer-grid > *,
.page-layout > *,
.resource-grid > * {
	min-width: 0;
}

.intro h2,
.commitment h2,
.card h2,
.page-title {
	margin: 0 0 18px;
	color: var(--navy);
	font-size: 45px;
	font-weight: 700;
	line-height: 1.1;
}

.intro p {
	margin: 0 0 18px;
	color: var(--body);
	font-size: 16px;
	line-height: 1.43;
}

.intro-photo img {
	display: block;
	width: 100%;
	height: auto;
}

.btn {
	display: inline-block;
	padding: 15px 22px;
	border: 1px solid var(--green);
	background: var(--green);
	color: #fff;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.btn:hover,
.btn:focus {
	background: var(--link-hover);
	border-color: var(--link-hover);
	color: #fff;
}

.btn-soft {
	border-color: transparent;
	background: rgba(83, 198, 88, 0.7);
}

.band {
	background: var(--band);
}

.commitment {
	padding: 52px 0 6px;
	text-align: center;
}

.commitment p {
	margin: 0;
	color: var(--body);
	font-size: 16px;
	line-height: 1.45;
}

.cards-wrap {
	padding: 34px 0 48px;
}

.cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 22px;
}

.card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 25px 18px 8px;
	text-align: center;
}

.card img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 18px;
}

.card a {
	text-decoration: none;
}

.card h2 {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 3.3em;
	margin: 0 0 12px;
}

.card p {
	min-height: 2.9em;
	margin: 0 0 18px;
	color: var(--body);
	font-size: 16px;
	line-height: 1.43;
}

.card .btn {
	min-width: 148px;
}

/* Footer */
.site-footer {
	background: var(--topbar);
	color: #fff;
	padding: 30px 0 24px;
	font-size: 14px;
	line-height: 1.45;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 7fr);
	gap: 28px;
}

.site-footer h4 {
	margin: 0 0 8px;
	color: var(--footer-heading);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
}

.site-footer p {
	margin: 0 0 3px;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--footer-heading);
}

.contact-email {
	margin-top: 8px;
}

.contact-email a {
	text-decoration: underline;
}

.quick-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.quick-links li {
	margin: 0 0 3px;
}

.footer-note p {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.45;
}

.footer-note a {
	text-decoration: underline;
}

/* Floating utilities */
.broker-check {
	position: fixed;
	right: 72px;
	bottom: 0;
	z-index: 25;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 205px;
	height: 40px;
	background: rgba(246, 246, 246, 0.85);
}

.broker-check img {
	width: 150px;
	height: 21px;
}

.back-to-top {
	position: fixed;
	right: 14px;
	bottom: 14px;
	z-index: 26;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: rgba(54, 142, 191, 0.75);
	color: #fff;
	text-decoration: none;
}

.back-to-top:hover {
	background: var(--link-hover);
	color: #fff;
}

/* Inner pages */
.page-main,
.site-main {
	background: #fff;
}

.page-layout {
	display: grid;
	grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
	gap: 40px;
	padding: 48px 0 72px;
}

.page-layout.no-sidebar {
	grid-template-columns: minmax(0, 1fr);
}

.page-sidebar {
	background: var(--sidebar);
	padding: 12px 0;
	align-self: start;
}

.page-sidebar a {
	display: block;
	padding: 9px 18px;
	color: var(--link);
	font-size: 15px;
	line-height: 1.35;
	text-decoration: none;
}

.page-sidebar a:hover,
.page-sidebar a.is-active {
	color: #61a4d8;
}

.page-title {
	margin-top: 0;
}

.entry-content {
	color: var(--body);
	font-size: 16px;
	line-height: 1.55;
}

.entry-content h2,
.entry-content h3 {
	margin: 28px 0 10px;
	line-height: 1.2;
}

.entry-content h2 {
	font-size: 32px;
}

.entry-content h3 {
	font-size: 24px;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 16px;
	padding-left: 22px;
}

.entry-content li {
	margin: 0 0 8px;
}

.entry-content h3 {
	font-size: 22px;
}

.team-member {
	margin: 0 0 28px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e4e4e4;
}

.team-member h2 {
	margin: 0 0 4px;
	font-size: 28px;
}

.team-role {
	margin: 0 0 8px;
	color: var(--navy);
	font-weight: 700;
}

.resource-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
}

.resource-grid a {
	display: block;
	padding: 20px;
	background: var(--band);
	color: var(--body);
	text-decoration: none;
}

.resource-grid h3 {
	margin: 0 0 8px;
}

.resource-grid a:hover h3 {
	color: var(--link-hover);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

.contact-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 48px;
	align-items: start;
}

.contact-card p {
	margin: 0 0 6px;
}

.contact-form label {
	display: block;
	margin: 0 0 14px;
	color: var(--navy);
	font-size: 14px;
	font-weight: 700;
}

.contact-form input,
.contact-form textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid #d8d8d6;
	color: #333;
	font: inherit;
	font-weight: 400;
}

.contact-form textarea {
	min-height: 140px;
	resize: vertical;
}

.form-note {
	padding: 12px 14px;
	margin: 0 0 16px;
	background: var(--band);
	color: var(--navy);
}

.posts-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.posts-list li {
	margin: 0 0 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #e6e6e6;
}

.posts-list h2 {
	margin: 0 0 6px;
	font-size: 28px;
}

.posts-list h2 a {
	color: var(--navy);
	text-decoration: none;
}

.posts-list h2 a:hover {
	color: var(--link-hover);
}

.not-found {
	padding: 64px 0 80px;
}

@media (max-width: 1200px) {
	.logo img {
		width: 280px;
	}

	.site-nav > ul > li > a {
		padding: 28px 16px;
	}
}

@media (max-width: 991px) {
	.nav-toggle {
		display: flex;
	}

	.header-inner {
		flex-wrap: wrap;
		min-height: 0;
	}

	.site-nav {
		display: none;
		width: 100%;
		flex: 1 0 100%;
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav > ul {
		flex-direction: column;
		border-top: 1px solid #e5e5e5;
	}

	.site-nav > ul > li > a {
		justify-content: space-between;
		min-height: 0;
		padding: 14px 8px;
	}

	.site-nav .sub-menu {
		position: static;
		min-width: 0;
		background: var(--dropdown);
	}

	.site-nav li.is-open > .sub-menu {
		display: block;
	}

	.menu-item-has-children {
		position: relative;
	}

	.submenu-toggle {
		display: block;
		position: absolute;
		top: 6px;
		right: 0;
		width: 40px;
		height: 36px;
		border: 0;
		background: transparent;
		cursor: pointer;
	}

	.submenu-toggle span,
	.submenu-toggle span::before,
	.submenu-toggle span::after {
		display: none;
	}

	.submenu-toggle::before {
		content: "";
		display: block;
		width: 8px;
		height: 8px;
		margin: 10px auto 0;
		border-right: 2px solid var(--ink);
		border-bottom: 2px solid var(--ink);
		transform: rotate(45deg);
	}

	.intro-grid,
	.cards,
	.footer-grid,
	.page-layout,
	.contact-grid,
	.resource-grid {
		grid-template-columns: 1fr;
	}

	.logo img {
		width: 220px;
	}

	.intro h2,
	.commitment h2,
	.card h2,
	.page-title {
		font-size: 32px;
	}

	.intro {
		padding: 32px 0 40px;
	}

	.broker-check {
		right: 12px;
		bottom: 64px;
	}
}
