/*
Theme Name: REA Japan
Theme URI: https://rea-japan.com
Author: REA Japan LLC
Description: Custom WordPress theme for REA Japan LLC, a success-fee real estate investment brokerage connecting overseas investors with the Japanese property market.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rea-japan
*/

/* -----------------------------------------------------------
   1. Design tokens
----------------------------------------------------------- */
:root {
	--c-navy: #03162B;
	--c-navy-light: #0A2038;
	--c-navy-alt: #051D38;
	--c-navy-darkest: #020D1A;
	--c-cream: #F7F4EC;
	--c-cream-soft: #E8E6DF;
	--c-cream-softer: #E9E4D8;
	--c-gold: #D4AF37;
	--c-gold-light: #F6D37A;
	--c-gold-dark: #8C6B1F;
	--c-border: #3a3220;
	--c-border-soft: #2a2418;
	--c-error: #B5533F;
	--c-error-light: #C77A66;

	--font-serif: 'Cormorant Garamond', Georgia, serif;
	--font-sans: 'Work Sans', Helvetica, Arial, sans-serif;
	--font-serif-jp: 'Shippori Mincho', serif;
	--font-sans-jp: 'Noto Sans JP', 'Work Sans', Helvetica, sans-serif;

	--container-max: 1440px;
	--header-height: 92px;
}

/* -----------------------------------------------------------
   2. Reset
----------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
	margin: 0;
	background: var(--c-navy);
	color: var(--c-cream-soft);
	font-family: var(--font-sans);
	font-weight: 300;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: var(--c-gold);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--c-gold-light);
}

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

button {
	font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-serif);
	font-weight: 600;
	color: var(--c-cream);
	margin: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 8px;
	top: -60px;
	background: var(--c-gold);
	color: var(--c-navy);
	padding: 10px 16px;
	z-index: 10000;
	transition: top 0.2s ease;
}

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

/* -----------------------------------------------------------
   3. Layout helpers
----------------------------------------------------------- */
.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 64px;
}

/* Horizontal padding grows on wide viewports so inner content never
   exceeds --container-max, while the section box (and any background)
   still spans full width. */
.section {
	padding: 100px max(64px, calc((100% - var(--container-max)) / 2));
	border-top: 1px solid var(--c-border);
}

/* .section-narrow {
	max-width: 820px;
	margin: 0 auto;
} */

.section-eyebrow-mark {
	display: inline-block;
	width: 36px;
	height: 1px;
	background: var(--c-gold-dark);
	margin-bottom: 16px;
}

.section-eyebrow {
	display: block;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--c-gold-dark);
}

.section-title {
	font-size: 38px;
	margin-top: 14px;
}

.section-heading {
	text-align: center;
	margin-bottom: 64px;
}

/* Standard page-title band used by Company Profile, Business Introduction,
   News archive, and generic fallback pages — self-contained, do not combine
   with .section (paddings/border would conflict). */
.page-heading {
	padding: 88px max(64px, calc((100% - var(--container-max)) / 2)) 48px;
	border-bottom: 1px solid var(--c-border);
}

.page-heading__title {
	font-size: 46px;
	margin: 14px 0 0;
}

.page-heading__subtitle {
	font-size: 16px;
	color: rgba(233, 228, 216, 0.75);
	line-height: 1.7;
	max-width: 640px;
	margin: 20px 0 0;
}

/* Global CTA band, injected in footer.php above the site footer on every page. */
.cta-band {
	background: var(--c-navy-light);
	text-align: center;
	padding-top: 96px;
	padding-bottom: 96px;
}

/* -----------------------------------------------------------
   4. Buttons
----------------------------------------------------------- */
.btn {
	display: inline-block;
	padding: 16px 40px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	border-radius: 0;
	cursor: pointer;
	border: none;
	text-align: center;
}

.btn-solid {
	background: var(--c-gold);
	color: var(--c-navy);
}

.btn-solid:hover {
	background: var(--c-gold-light);
	color: var(--c-navy);
}

.btn-cream {
	background: var(--c-navy);
	color: #fff;
	border: 1px solid var(--c-gold);
}

.btn-cream:hover {
	background: var(--c-navy-light);
	color: #fff;
	border-color: var(--c-gold-light);
}

.btn-outline {
	background: transparent;
	color: var(--c-gold-light);
	border: 1px solid var(--c-gold-dark);
}

.btn-outline:hover {
	color: var(--c-gold);
	border-color: var(--c-gold);
}

.link-arrow {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--c-gold-light);
	border-bottom: 1px solid var(--c-gold);
	padding-bottom: 3px;
}

/* -----------------------------------------------------------
   5. Header / primary nav
----------------------------------------------------------- */
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 64px;
	height: var(--header-height);
	background: var(--c-navy);
	border-bottom: 1px solid var(--c-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Keep the sticky header below the WP admin toolbar instead of under it. */
body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

.site-header__logo img {
	height: 52px;
	width: auto;
}

.site-header__nav-wrap {
	display: flex;
	align-items: center;
	gap: 44px;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 44px;
}

.main-nav a {
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--c-cream-softer);
}

.main-nav a:hover {
	color: var(--c-gold-light);
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
	color: var(--c-gold-light);
	border-bottom: 1px solid var(--c-gold);
	padding-bottom: 4px;
}

.nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--c-border);
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	color: var(--c-cream);
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.nav-toggle:hover {
	border-color: var(--c-gold-dark);
}

.nav-toggle__bars {
	position: relative;
	width: 18px;
	height: 12px;
	display: inline-block;
}

.nav-toggle__bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1px;
	background: var(--c-cream);
	transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.nav-toggle__bars span:nth-child(1) {
	top: 0;
}

.nav-toggle__bars span:nth-child(2) {
	top: 5.5px;
}

.nav-toggle__bars span:nth-child(3) {
	top: 11px;
}

.nav-toggle.is-open .nav-toggle__bars span:nth-child(1) {
	top: 5.5px;
	transform: rotate(45deg);
	background: var(--c-gold-light);
}

.nav-toggle.is-open .nav-toggle__bars span:nth-child(2) {
	opacity: 0;
}

.nav-toggle.is-open .nav-toggle__bars span:nth-child(3) {
	top: 5.5px;
	transform: rotate(-45deg);
	background: var(--c-gold-light);
}

/* -----------------------------------------------------------
   6. Footer
----------------------------------------------------------- */
.site-footer {
	padding: 48px 64px;
	background: var(--c-navy);
	color: rgba(233, 228, 216, 0.6);
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--c-border);
	flex-wrap: wrap;
	gap: 20px;
}

.site-footer__logo {
	font-family: var(--font-serif);
	font-size: 19px;
	font-weight: 600;
	color: var(--c-gold);
}

.site-footer__logo img {
	height: 30px;
	width: auto;
}

.footer-nav {
	display: flex;
	gap: 32px;
	font-size: 13px;
	flex-wrap: wrap;
}

.footer-nav a {
	color: inherit;
}

.footer-nav a:hover {
	color: var(--c-gold-light);
}

/* -----------------------------------------------------------
   7. Cards & grids
----------------------------------------------------------- */
.card {
	background: var(--c-navy-light);
	border: 1px solid var(--c-border);
	padding: 44px 32px;
}

.card-icon {
	width: 52px;
	height: 52px;
	border: 1px solid var(--c-gold-dark);
	border-radius: 50%;
	margin: 0 auto 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.card-icon span {
	width: 10px;
	height: 10px;
	background: var(--c-gold);
	border-radius: 50%;
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

/* FAQ accordion — shared by the Home page and the News listing (template-parts/faq-section.php) */
.faq-group {
	margin-bottom: 48px;
}

.faq-group:last-child {
	margin-bottom: 0;
}

.faq-group__title {
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-gold-dark);
	font-family: var(--font-sans);
	font-weight: 600;
	margin: 0 0 16px;
	padding: 0 16px;
}

.faq-list {
	display: flex;
	flex-direction: column;
}

.faq-item {
	border-bottom: 1px solid var(--c-border);
}

.faq-item:nth-child(odd) {
	background: var(--c-navy-light);
}

.faq-item__question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 16px;
	cursor: pointer;
	background: transparent;
	border: none;
	color: var(--c-cream);
	font-size: 16px;
	font-weight: 500;
	font-family: inherit;
	text-align: left;
}

.faq-item__icon {
	font-size: 19px;
	color: var(--c-gold);
	flex-shrink: 0;
}

.faq-item__answer {
	padding: 0 16px 24px;
}

.faq-item__answer p {
	font-size: 14px;
	color: rgba(233, 228, 216, 0.75);
	line-height: 1.75;
	margin: 0 0 14px;
}

.faq-item__answer p:last-child {
	margin-bottom: 0;
}

.faq-item__list {
	margin: 0;
	padding-left: 20px;
	list-style: decimal;
}

.faq-item__list li {
	font-size: 14px;
	color: rgba(233, 228, 216, 0.75);
	line-height: 1.7;
	margin-bottom: 8px;
}

.faq-item__list li:last-child {
	margin-bottom: 0;
}

/* Numbered process steps — shared by the Home and Business Introduction pages */
.process {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	position: relative;
	flex-wrap: wrap;
	gap: 32px 0;
}

.process__line {
	position: absolute;
	top: 24px;
	left: 40px;
	right: 40px;
	height: 1px;
	background: var(--c-border);
	z-index: 0;
}

.process__step {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 180px;
	text-align: center;
}

.process__num {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--c-navy);
	border: 1px solid var(--c-gold);
	color: var(--c-gold-light);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-serif);
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 20px;
}

.process__title {
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--c-cream);
	margin: 0 0 10px;
}

.process__tag {
	font-size: 10.5px;
	font-weight: 500;
	color: var(--c-gold-light);
	border: 1px solid var(--c-gold-dark);
	padding: 4px 10px;
	border-radius: 12px;
	margin-bottom: 10px;
	display: inline-block;
}

.process__desc {
	font-size: 12px;
	color: rgba(233, 228, 216, 0.65);
	line-height: 1.6;
	margin: 0;
}

/* Coverage / focus-area regions — shared by the Home and Business Introduction pages */
.focus-area {
	display: grid;
	grid-template-columns: 0.85fr 1fr;
	gap: 72px;
	align-items: start;
}

.focus-area__p {
	font-size: 15px;
	color: rgba(233, 228, 216, 0.82);
	line-height: 1.85;
	margin: 0 0 18px;
}

.focus-area__note {
	font-size: 13px;
	color: var(--c-gold);
	line-height: 1.7;
	margin: 0;
	font-style: italic;
}

.focus-area__map {
	position: relative;
	margin-top: 32px;
	aspect-ratio: 1091 / 705;
	border: 1px solid var(--c-border);
	overflow: hidden;
}

.focus-area__map img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.focus-area__map-pin {
	position: absolute;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
	white-space: nowrap;
	pointer-events: none;
}

.focus-area__map-pin::before {
	content: '';
	width: 6px;
	height: 6px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--c-gold-light);
	box-shadow: 0 0 6px 2px rgba(246, 211, 122, 0.6);
}

.focus-area__list {
	border-top: 1px solid var(--c-border);
}

.focus-area__item {
	display: flex;
	gap: 24px;
	padding: 26px 4px;
	border-bottom: 1px solid var(--c-border);
}

.focus-area__item-num {
	font-family: var(--font-serif);
	font-size: 15px;
	color: var(--c-gold);
	padding-top: 2px;
	min-width: 24px;
}

.focus-area__item-title {
	font-size: 19px;
	margin: 0 0 8px;
}

.focus-area__item-desc {
	font-size: 14px;
	color: rgba(233, 228, 216, 0.75);
	line-height: 1.7;
	margin: 0;
}

.section-subtext {
	font-size: 13px;
	color: rgba(233, 228, 216, 0.5);
	text-align: center;
	margin: 0 0 64px;
}

.section-lead {
	font-size: 15px;
	color: rgba(233, 228, 216, 0.8);
	line-height: 1.8;
	margin: 0 0 48px;
	max-width: 720px;
}

/* Baseline typography for plain WP page/post content (page.php, index.php) */
.generic-content {
	font-size: 16px;
	color: rgba(233, 228, 216, 0.85);
	line-height: 1.9;
}

.generic-content p {
	margin: 0 0 20px;
}

.generic-content h2,
.generic-content h3,
.generic-content h4 {
	margin: 40px 0 18px;
}

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

.generic-content ul {
	list-style: disc;
}

.generic-content ol {
	list-style: decimal;
}

.generic-content li {
	margin-bottom: 8px;
}

.generic-content img {
	border: 1px solid var(--c-border);
	margin: 12px 0 28px;
}

.generic-content a {
	text-decoration: underline;
}

.generic-content blockquote {
	margin: 0 0 20px;
	padding-left: 20px;
	border-left: 2px solid var(--c-gold);
	color: var(--c-cream);
	font-style: italic;
}

/* -----------------------------------------------------------
   8. Responsive
----------------------------------------------------------- */
@media (max-width: 960px) {
	:root {
		--header-height: 64px;
	}

	.container,
	.section,
	.site-header,
	.site-footer {
		padding-left: 28px;
		padding-right: 28px;
	}

	.section {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.grid-3,
	.grid-2 {
		grid-template-columns: 1fr;
	}

	.nav-toggle {
		display: flex;
	}

	.site-header__logo img {
		height: 36px;
	}

	.site-header__nav-wrap {
		position: fixed;
		inset: var(--header-height) 0 0 0;
		background: var(--c-navy-alt);
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: stretch;
		gap: 0;
		padding: 8px 28px 28px;
		overflow-y: auto;
		transform: translateY(-16px);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.25s ease, transform 0.25s ease;
		border-top: 1px solid var(--c-border);
	}

	.site-header__nav-wrap.is-open {
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
	}

	.main-nav {
		order: 1;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.main-nav li {
		opacity: 0;
		transform: translateY(8px);
		transition: opacity 0.3s ease, transform 0.3s ease;
	}

	.site-header__nav-wrap.is-open .main-nav li {
		opacity: 1;
		transform: translateY(0);
	}

	.site-header__nav-wrap.is-open .main-nav li:nth-child(1) { transition-delay: 0.05s; }
	.site-header__nav-wrap.is-open .main-nav li:nth-child(2) { transition-delay: 0.1s; }
	.site-header__nav-wrap.is-open .main-nav li:nth-child(3) { transition-delay: 0.15s; }
	.site-header__nav-wrap.is-open .main-nav li:nth-child(4) { transition-delay: 0.2s; }
	.site-header__nav-wrap.is-open .main-nav li:nth-child(5) { transition-delay: 0.25s; }

	.main-nav a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 18px 2px;
		border-bottom: 1px solid var(--c-border);
		font-size: 15px;
	}

	.main-nav a::after {
		content: '\2192';
		color: var(--c-gold-dark);
		opacity: 0;
		transform: translateX(-4px);
		transition: opacity 0.2s ease, transform 0.2s ease;
	}

	.main-nav a:hover::after,
	.main-nav .current-menu-item > a::after,
	.main-nav .current_page_item > a::after {
		opacity: 1;
		transform: translateX(0);
	}

	.site-header__nav-wrap .btn {
		order: 2;
		text-align: center;
		margin-top: 32px;
	}

	.main-nav .current-menu-item > a,
	.main-nav .current_page_item > a {
		padding-bottom: 18px;
	}

	.site-footer {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 600px) {
	h1 {
		font-size: 32px !important;
	}
}

body.nav-open {
	overflow: hidden;
}

/* Push the mobile nav dropdown below the admin toolbar too. */
@media screen and (max-width: 960px) {
	body.admin-bar .site-header__nav-wrap {
		top: calc(var(--header-height) + 32px);
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header__nav-wrap {
		top: calc(var(--header-height) + 46px);
	}
}
