/*
Theme Name: Responsive Brunxu
Template: responsive
Version: 1.0.0
Description: Child theme for brunxu.com — editorial jungle palette and typography on top of Responsive 6.5.0.
Author: Brunxu
Text Domain: responsive-brunxu
*/

/* ---------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------- */
:root {
	--bx-paper: #f4f3f0;
	--bx-paper-2: #e9e7e1;
	--bx-ink: #14231d;
	--bx-ink-2: #4a5a52;
	--bx-jungle: #0f3b2e;
	--bx-jungle-2: #164a3a;
	--bx-accent: #0a7059;
	--bx-accent-dark: #08604e;

	--bx-display: "Fraunces", Georgia, "Times New Roman", serif;
	--bx-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

	--bx-pad: clamp(20px, 4vw, 48px);
	--bx-max: 1240px;
	--bx-gap: clamp(56px, 8vw, 128px);

	--bx-step-sm: 0.9375rem;
	--bx-step-base: 1.0625rem;
	--bx-step-lead: clamp(1.125rem, 1.6vw, 1.375rem);
	--bx-step-h3: clamp(1.25rem, 1.8vw, 1.5rem);
	--bx-step-h2: clamp(1.9rem, 4vw, 3.25rem);
	--bx-step-h1: clamp(2.5rem, 6.4vw, 5.5rem);
}

/* ---------------------------------------------------------------
   2. Base
   --------------------------------------------------------------- */
html {
	-webkit-text-size-adjust: 100%;
}

body.custom-background,
body {
	background-color: var(--bx-paper) !important;
	background-image: none !important;
	color: var(--bx-ink);
	font-family: var(--bx-text);
	font-size: var(--bx-step-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.responsive-site-style-boxed .site,
body.responsive-site-style-boxed #page {
	background: transparent;
	box-shadow: none;
	border: 0;
}

h1, h2, h3, h4, h5, h6,
.featured-title,
.entry-title,
.widget-title-home h4 {
	font-family: var(--bx-display);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.04;
	color: var(--bx-ink);
	text-shadow: none;
}

p, li, dd, dt, td, th, label, input, textarea, select, button {
	text-shadow: none;
}

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

a:hover,
a:focus {
	color: var(--bx-accent-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--bx-accent);
	outline-offset: 3px;
}

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

::selection {
	background: var(--bx-jungle);
	color: var(--bx-paper);
}

/* Remove the theme's decorative leftovers */
* {
	box-shadow: none !important;
	text-shadow: none !important;
}

.rspv-site-primary-footer-wrap,
.rspv-site-below-footer-wrap,
.site-header-row-container,
.site-header-row-container-inner,
.site-header-row,
.responsive-site-primary-header-wrap,
.responsive-site-below-header-wrap,
.responsive-site-primary-mobile-header-wrap,
.responsive-site-below-mobile-header-wrap,
.site-mobile-header-wrap,
#masthead-mobile,
.site-header-upper-wrap,
.site-header-below-wrap {
	border: 0 !important;
}

.site-header .responsive-site-primary-header-wrap,
.site-header .responsive-site-below-header-wrap,
.site-header .site-header-row-container,
.site-header .site-header-row-container-inner,
.site-header .site-header-row {
	background: transparent !important;
}

/* ---------------------------------------------------------------
   3. Layout frame
   --------------------------------------------------------------- */
.container,
.site-header-inner-wrap,
.site-content,
#wrapper .content-outer,
.grid,
.col-940,
.col-460,
.col-300 {
	max-width: var(--bx-max);
	margin-left: auto;
	margin-right: auto;
}

.container,
.content-outer {
	padding-left: var(--bx-pad);
	padding-right: var(--bx-pad);
}

#wrapper.site-content {
	padding-left: 0;
	padding-right: 0;
}

/* ---------------------------------------------------------------
   4. Header
   --------------------------------------------------------------- */
.site-header,
#masthead,
#masthead-mobile {
	background: var(--bx-paper);
	border: 0;
}

.site-header-inner-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-top: 18px;
	padding-bottom: 18px;
	flex-wrap: wrap;
}

.site-header-upper-wrap,
.responsive-site-below-header-wrap,
.site-header-upper-inner-wrap,
.site-header-row-container-inner,
.site-below-header-inner-wrap {
	width: auto !important;
}

.site-primary-header-inner-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	width: 100%;
}

.site-header-purpose,
.site-below-header-inner-wrap {
	display: block;
}

.site-title {
	font-family: var(--bx-display);
	font-size: clamp(1.25rem, 1.9vw, 1.6rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
	white-space: nowrap;
}

.site-title a {
	color: var(--bx-ink);
}

.site-title a:hover {
	color: var(--bx-accent);
}

.site-description {
	display: block;
	font-family: var(--bx-text);
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	color: var(--bx-ink);
	margin-top: 6px;
}

.site-branding {
	text-align: left;
}

/* Navigation */
#site-navigation.main-navigation {
	background: transparent;
	float: none;
	width: auto;
}

#header-menu.menu {
	display: flex;
	align-items: center;
	gap: clamp(14px, 1.6vw, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
	float: none;
}

#header-menu > li {
	float: none;
	position: relative;
	margin: 0;
}

#header-menu > li > a {
	display: inline-block;
	padding: 10px 0;
	white-space: nowrap;
	font-family: var(--bx-text);
	font-size: var(--bx-step-sm);
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--bx-ink);
	background: transparent;
}

#header-menu > li > a:hover,
#header-menu > li.current-menu-item > a {
	color: var(--bx-accent);
}

#header-menu > li.current-menu-item > a {
	box-shadow: inset 0 -2px 0 var(--bx-accent) !important;
}

#header-menu .res-iconify svg {
	stroke: currentColor;
	width: 10px;
	height: 6px;
	opacity: 0.55;
}

/* Dropdowns: flat panel, no shadow, tone step */
#header-menu ul.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	min-width: 240px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: var(--bx-jungle);
	display: none;
}

#header-menu li:hover > ul.sub-menu,
#header-menu li:focus-within > ul.sub-menu {
	display: block;
}

#header-menu ul.sub-menu li {
	float: none;
	margin: 0;
}

#header-menu ul.sub-menu a {
	display: block;
	padding: 9px 20px;
	color: var(--bx-paper);
	font-size: 0.9rem;
	white-space: nowrap;
}

#header-menu ul.sub-menu a:hover {
	background: var(--bx-jungle-2);
	color: #fff;
}

#header-menu ul.sub-menu ul.sub-menu {
	top: 0;
	left: 100%;
}

/* Mobile header */
#masthead-mobile .site-header-inner-wrap {
	padding-top: 14px;
	padding-bottom: 14px;
}

#masthead-mobile .site-title {
	font-size: 1.15rem;
}

.menu-toggle svg rect {
	fill: transparent;
	stroke: var(--bx-ink);
}

.menu-toggle svg rect:nth-child(n + 2) {
	fill: var(--bx-ink);
	stroke: none;
}

#responsive-off-canvas-panel {
	background: var(--bx-jungle);
}

#off-canvas-menu a {
	color: var(--bx-paper);
	font-family: var(--bx-text);
	font-size: 1.05rem;
}

#off-canvas-menu ul.sub-menu {
	background: var(--bx-jungle-2);
}

/* ---------------------------------------------------------------
   5. Buttons
   --------------------------------------------------------------- */
.bx-btn,
.entry-content a.bx-btn,
a.bx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	border: 0;
	border-radius: 999px;
	background: var(--bx-accent);
	color: #fff;
	font-family: var(--bx-text);
	font-size: var(--bx-step-sm);
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.bx-btn:hover,
.bx-btn:focus {
	background: var(--bx-accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

.bx-btn--ghost {
	background: transparent;
	color: var(--bx-paper);
	border: 1.5px solid rgba(247, 245, 239, 0.7);
	padding: 13.5px 28.5px;
}

.bx-btn--ghost:hover,
.bx-btn--ghost:focus {
	background: var(--bx-paper);
	color: var(--bx-jungle);
}

.bx-btn--dark {
	background: var(--bx-jungle);
}

/* ---------------------------------------------------------------
   6. Home page
   --------------------------------------------------------------- */
.bx-home {
	display: block;
}

.bx-section {
	padding-top: var(--bx-gap);
	padding-bottom: var(--bx-gap);
}

.bx-wrap {
	max-width: var(--bx-max);
	margin: 0 auto;
	padding-left: var(--bx-pad);
	padding-right: var(--bx-pad);
}

.bx-eyebrow {
	display: none;
}

.bx-h2 {
	font-size: var(--bx-step-h2);
	max-width: 22ch;
	margin: 0 0 28px;
}

.bx-lead {
	font-size: var(--bx-step-lead);
	line-height: 1.55;
	color: var(--bx-ink);
	max-width: 54ch;
}

/* Hero */
.bx-hero {
	position: relative;
	min-height: min(86vh, 780px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--bx-jungle);
}

.bx-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 48%;
	filter: brightness(1.06) saturate(1.04);
}

.bx-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 35, 29, 0.05) 0%, rgba(15, 35, 29, 0.42) 55%, rgba(15, 35, 29, 0.80) 100%);
}

.bx-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--bx-max);
	margin: 0 auto;
	padding: 0 var(--bx-pad) clamp(40px, 7vw, 88px);
}

.bx-hero__title {
	font-size: var(--bx-step-h1);
	line-height: 0.98;
	letter-spacing: -0.03em;
	color: #fff;
	max-width: 16ch;
	margin: 0 0 20px;
}

.bx-hero__sub {
	font-size: var(--bx-step-lead);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
	max-width: 46ch;
	margin: 0 0 30px;
}

.bx-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* Story */
.bx-story {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}

.bx-story__media img {
	width: 100%;
	height: clamp(320px, 46vw, 560px);
	object-fit: cover;
}

.bx-story p {
	font-size: var(--bx-step-base);
	line-height: 1.7;
	color: var(--bx-ink);
	max-width: 52ch;
}

.bx-story p strong,
.bx-story p b {
	color: var(--bx-ink);
	font-weight: 600;
}

/* Apartments */
.bx-apartments {
	background: var(--bx-jungle);
	color: var(--bx-paper);
}

.bx-apartments .bx-h2,
.bx-apartments .bx-lead {
	color: var(--bx-paper);
}

.bx-apartments .bx-lead {
	color: rgba(247, 245, 239, 0.75);
}

.bx-grid-4 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 36px);
	margin-top: 52px;
}

.bx-card {
	display: flex;
	flex-direction: column;
	color: var(--bx-paper);
}

.bx-card__media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--bx-jungle-2);
}

.bx-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.bx-card:hover .bx-card__media img {
	transform: scale(1.03);
}

.bx-card__title {
	font-family: var(--bx-display);
	font-size: var(--bx-step-h3);
	color: var(--bx-paper);
	margin: 18px 0 6px;
}

.bx-card__title a {
	color: var(--bx-paper);
}

.bx-card__title a:hover {
	color: #fff;
}

.bx-card__meta {
	font-size: var(--bx-step-sm);
	color: rgba(247, 245, 239, 0.78);
	margin: 0 0 12px;
}

.bx-card__link {
	font-size: var(--bx-step-sm);
	font-weight: 600;
	color: var(--bx-paper);
	border-bottom: 1.5px solid rgba(247, 245, 239, 0.55);
	align-self: flex-start;
	padding-bottom: 2px;
}

.bx-card__link:hover {
	color: #fff;
	border-bottom-color: #fff;
}

/* Around */
.bx-around__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 24px);
	margin-top: 44px;
}

.bx-around figure {
	margin: 0;
}

.bx-around img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.bx-around figcaption {
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--bx-ink-2);
	margin-top: 12px;
	max-width: 24ch;
}

/* Practical / good to know */
.bx-practical {
	background: var(--bx-paper-2);
}

.bx-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 56px);
	margin-top: 44px;
}

.bx-note h3 {
	font-size: var(--bx-step-h3);
	line-height: 1.15;
	margin: 0 0 14px;
	max-width: 20ch;
}

.bx-note p {
	font-size: var(--bx-step-base);
	line-height: 1.7;
	color: var(--bx-ink);
	margin: 0 0 14px;
}

.bx-note a {
	font-weight: 600;
}

/* Closing band */
.bx-close {
	background: var(--bx-accent);
	color: #fff;
	padding-top: clamp(48px, 6vw, 88px);
	padding-bottom: clamp(48px, 6vw, 88px);
}

.bx-close .bx-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: end;
	gap: clamp(24px, 5vw, 72px);
}

.bx-close__text {
	max-width: 34ch;
}

.bx-close .bx-h2 {
	color: #fff;
	max-width: 16ch;
	margin-bottom: 18px;
}

.bx-close p {
	color: rgba(255, 255, 255, 0.94);
	font-size: var(--bx-step-lead);
	max-width: 46ch;
	margin: 0;
}

.bx-close__action {
	justify-self: start;
}

@media (min-width: 600px) {
	.bx-close__action {
		justify-self: end;
	}
}

.bx-close .bx-btn {
	background: var(--bx-paper);
	color: var(--bx-jungle);
}

.bx-close .bx-btn:hover {
	background: #fff;
	color: var(--bx-jungle);
}

/* ---------------------------------------------------------------
   7. Inner pages
   --------------------------------------------------------------- */
.site-content .content-outer {
	padding-top: clamp(40px, 5vw, 72px);
}

.site-content .post,
.site-content article,
.site-content .hentry,
.site-content .entry-wrap,
.site-content #content,
.site-content .content-area,
.site-content .post-inner {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.entry-content h1,
.entry-content h2 {
	font-family: var(--bx-display);
	letter-spacing: -0.02em;
}

.entry-title,
.page-title {
	font-size: clamp(2rem, 4.6vw, 3.6rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
	max-width: 20ch;
	margin: 0 0 36px;
}

.entry-content {
	font-size: var(--bx-step-base);
	line-height: 1.72;
	color: var(--bx-ink);
}

.entry-content > * {
	max-width: 70ch;
}

.entry-content h2 {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	margin-top: 1.8em;
	margin-bottom: 0.5em;
	color: var(--bx-ink);
}

.entry-content h3,
.entry-content h4 {
	font-size: var(--bx-step-h3);
	margin-top: 1.6em;
	margin-bottom: 0.4em;
	color: var(--bx-ink);
}

.entry-content p,
.entry-content li {
	color: var(--bx-ink);
}

.entry-content strong {
	color: var(--bx-ink);
	font-weight: 600;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	margin: 20px 0;
}

.entry-content blockquote {
	margin: 36px 0;
	padding: 0 0 0 28px;
	border-left: 3px solid var(--bx-accent);
	font-family: var(--bx-display);
	font-size: var(--bx-step-lead);
	color: var(--bx-ink);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--bx-step-sm);
}

.entry-content td,
.entry-content th {
	padding: 12px 14px;
	border-bottom: 1px solid var(--bx-paper-2);
	text-align: left;
}

.entry-content th {
	color: var(--bx-ink);
	font-weight: 600;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.2em;
}

.entry-content li {
	margin-bottom: 0.5em;
}

/* Featured image on inner pages */
.post-featured-image,
.featured-image {
	margin-bottom: 36px;
}

/* Sidebars */
#secondary.widget-area,
.widget-area {
	font-size: var(--bx-step-sm);
}

.widget-title,
.widget-title-home h4 {
	font-family: var(--bx-display);
	font-size: 1.2rem;
	letter-spacing: -0.02em;
}

/* ---------------------------------------------------------------
   8. Footer
   --------------------------------------------------------------- */
#footer.site-footer {
	background: var(--bx-jungle);
	color: rgba(247, 245, 239, 0.75);
	padding: clamp(40px, 5vw, 64px) 0 24px;
	font-size: var(--bx-step-sm);
}

#footer a {
	color: var(--bx-paper);
}

#footer .copyright {
	font-size: var(--bx-step-sm);
	letter-spacing: 0.01em;
}

#scroll.responsive-scroll {
	background: transparent;
	color: var(--bx-paper);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 0;
}

#scroll.responsive-scroll:hover {
	color: #fff;
}

/* ---------------------------------------------------------------
   9. Motion (added by assets/js/motion.js)
   --------------------------------------------------------------- */
.bx-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bx-reveal.is-in {
	opacity: 1;
	transform: none;
}

.bx-hero__img {
	transform: scale(1.06);
	transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.bx-hero.is-ready .bx-hero__img {
	transform: scale(1);
}

/* No JS: content is visible */
.no-js .bx-reveal,
html:not(.js) .bx-reveal {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.bx-reveal,
	.bx-hero__img,
	.bx-card__media img,
	.bx-btn {
		transition: none !important;
		transform: none !important;
		opacity: 1 !important;
	}
}

/* ---------------------------------------------------------------
   10. Responsive
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
	.site-primary-header-inner-wrap {
		flex-wrap: wrap;
		gap: 8px;
	}

	#header-menu {
		flex-wrap: wrap;
		max-width: 100%;
	}

	.site-title {
		white-space: normal;
	}
}

@media (max-width: 991px) {
	.bx-story {
		grid-template-columns: minmax(0, 1fr);
	}

	.bx-story__media {
		order: -1;
	}

	.bx-grid-3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.bx-around__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.bx-close .bx-wrap {
		grid-template-columns: minmax(0, 1fr);
	}

	.bx-close__action {
		justify-self: start;
	}
}

@media (max-width: 767px) {
	.bx-grid-4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.bx-hero {
		min-height: 74vh;
	}

	.bx-hero__title {
		max-width: 12ch;
	}

	.site-header-inner-wrap {
		gap: 12px;
	}
}

@media (max-width: 480px) {
	.bx-hero__actions .bx-btn {
		width: 100%;
	}
}
