/* ==========================================================================
   Makarios — design tokens + base styles
   Per-section styles live in assets/css/sections/*.css
   ========================================================================== */

:root {
	--ink: #1a1a18;
	--cream: #f5f1eb;
	--gold: #c9a96e;
	--gold-dim: rgba(201, 169, 110, 0.12);
	--gold-border: rgba(201, 169, 110, 0.35);
	--cream-dim: rgba(245, 241, 235, 0.58);
	--ink-dim: rgba(26, 26, 24, 0.55);
	--dark-card: #2a2722;
	--border-dark: rgba(245, 241, 235, 0.14);
	--border-light: rgba(26, 26, 24, 0.12);
	--emerald: #2f5d4f;
	--terracotta: #9c5a3c;

	--font-serif: 'Neue June', sans-serif;
	--font-sans: 'Neue June', sans-serif;
	--font-mono: 'Neue June', sans-serif;

	--page-width: 1728px;
	--inner-padding: 80px;

	--header-height: 92px;
	--mobile-bar-height: 64px;

	/* Header / hero design tokens (2026-07-13 header + hero refresh) */
	--color-primary: #D39B10;
	--color-primary-text: #191919;
	--color-accent: #C9A96E;
	--color-text-light: #F5F1EB;
	--color-background-dark: #1a1a18;
	--font-primary: 'Neue June', sans-serif;
	--btn-height: 44px;
	--btn-font-size: 12px;
	--btn-padding-x: 20px;
	--container-max-width: 1920px;
	--container-padding-x: 100px;
}

/* Reset ------------------------------------------------------------------ */

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-primary);
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}

/* Universal font lock (2026-07-13 typography pass): guarantees no element
   can render in anything other than Neue June, regardless of any other
   font-family declaration elsewhere in the codebase. */
body, * {
	font-family: 'Neue June', sans-serif;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; background: none; border: 0; padding: 0; appearance: none; -webkit-appearance: none; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-serif);
	margin: 0 0 0.5em;
	line-height: 1.15;
	font-weight: 500;
}

p { margin: 0 0 1em; }

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

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--ink);
	color: var(--cream);
	padding: 12px 20px;
	z-index: 1000;
}
.skip-link:focus { top: 0; }

/* Layout ------------------------------------------------------------------ */

.container {
	max-width: var(--page-width);
	margin: 0 auto;
	padding-left: var(--inner-padding);
	padding-right: var(--inner-padding);
}

.site-main.container { padding-top: calc(var(--header-height) + 60px); padding-bottom: 80px; }

@media (max-width: 1024px) {
	:root { --inner-padding: 40px; }
}
@media (max-width: 640px) {
	:root { --inner-padding: 16px; --container-padding-x: 16px; }
}

/* Buttons ------------------------------------------------------------------ */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 32px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.02em;
	border-radius: 2px;
	border: 1px solid transparent;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.button:active { transform: translateY(1px); }

.button--gold {
	background: var(--gold);
	color: var(--ink);
}
.button--gold:hover { background: #d9bd8b; }

.button--outline {
	background: transparent;
	color: var(--cream);
	border-color: var(--gold-border);
}
.button--outline:hover { background: var(--gold-dim); }

.button--outline-dark {
	background: transparent;
	color: var(--ink);
	border-color: var(--border-light);
}
.button--outline-dark:hover { background: rgba(26,26,24,0.05); }

/* .btn — header + hero button spec (2026-07-13). Kept separate from the
   .button family above so the rest of the site's buttons are untouched. */

.btn,
.btn--primary {
	height: var(--btn-height);
	background: var(--color-primary);
	color: var(--color-primary-text);
	font-family: var(--font-primary);
	font-size: var(--btn-font-size);
	font-weight: 500;
	letter-spacing: 1.92px;
	text-transform: uppercase;
	padding-left: var(--btn-padding-x);
	padding-right: var(--btn-padding-x);
	padding-top: 0;
	padding-bottom: 0;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}
.btn:hover,
.btn--primary:hover { opacity: 0.88; }

.btn--secondary {
	background: transparent;
	color: #ffffff;
	border: 1px solid #ffffff;
}
.btn--secondary:hover { background: rgba(255, 255, 255, 0.08); }

.btn--primary,
.btn--secondary {
	font-weight: 500;
}

.btn--tertiary {
	height: 44px;
	background: transparent;
	color: #1E1E1E;
	border: 1px solid #1E1E1E;
	font-family: 'Neue June', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1.92px;
	text-transform: uppercase;
	padding-left: 20px;
	padding-right: 20px;
	padding-top: 0;
	padding-bottom: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}
.btn--tertiary:hover { background: rgba(30, 30, 30, 0.06); }

/* Section header (shared component) -----------------------------------------
   Used across home sections: eyebrow + headline (in a left column when paired
   with .section-header__right, or standalone). Headline font-size is set once
   here via clamp() and inherited by every section — do not re-declare it
   per-section. Eyebrow colour is context-aware: dark backgrounds keep the
   shared gold default below, light backgrounds override to the terracotta
   #794332 per-section. */

.section-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 60px;
}

.section-header__left { flex: 1; font-size: inherit; color: inherit; }
.section-header__right { flex: 1; display: flex; align-items: center; }

.section-header__eyebrow {
	font-family: var(--font-primary);
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2.42px;
	margin-bottom: 20px;
	display: block;
	color: var(--gold);
}

.section-header__headline {
	font-family: var(--font-primary);
	font-size: clamp(34px, 4.5vw, 56px);
	text-transform: uppercase;
	font-style: normal;
	width: 100%;
	margin: 0;
}

.section-header__headline-accent { color: #C9A96E; }

.section-header__copy {
	font-family: var(--font-primary);
	font-size: 15px;
	line-height: 1.7;
	color: #1E1E1E;
	margin: 0;
}

@media (max-width: 768px) {
	.section-header { flex-direction: column; align-items: flex-start; }
}

/* Check badge (shared component) -------------------------------------------
   Gold circular checkmark used for benefit/bullet lists across sections
   (own-remotely, investment, investment-pack). */

.own-remotely__check {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--gold);
	color: #171717;
}
.own-remotely__check svg { width: 11px; height: 11px; }

/* Header ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-height);
	background: var(--color-background-dark);
	border-bottom: 1px solid rgba(245, 241, 235, 0.1);
	/* NOTE: don't add transform/will-change:transform/filter here — .mobile-menu
	   (position:fixed) is a DOM child of .site-header, and any of those
	   properties on an ancestor turns it into the containing block for fixed
	   descendants, collapsing .mobile-menu's inset:0 to this header's own
	   box instead of the viewport. The compositing-layer fix for the
	   hamburger paint bug is applied to the button itself instead, below.
	*/
}

.site-header__inner {
	max-width: var(--container-max-width);
	margin: 0 auto;
	height: 100%;
	padding: 0 var(--container-padding-x);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 32px;
	width: 100%;
}

.site-header__logo { justify-self: start; }
.site-header__logo-img { display: block; height: 40px; width: auto; }

.site-header__nav { justify-self: center; display: flex; }

.site-header__menu { display: flex; gap: 32px; }

/* Nav links ----------------------------------------------------------------
   .nav-link is applied via nav_menu_link_attributes (real WP menus) and
   directly in the fallback menu markup (helpers.php). Flex-column lets the
   active dot (::after) sit centred beneath the link text. */
.nav-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-family: var(--font-primary);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--color-text-light);
	text-decoration: none;
	transition: color 0.2s ease;
}
.nav-link:hover { color: var(--color-accent); }
.nav-link.active { color: var(--color-accent); }
.nav-link.active::after {
	content: '';
	display: block;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--color-accent);
	margin: 4px auto 0;
}

.site-header__actions { justify-self: end; display: flex; align-items: center; gap: 20px; }

.site-header__phone {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	line-height: 1.2;
	color: var(--cream);
	font-size: 13px;
	text-align: right;
}
.site-header__phone-label { color: #A3A3A3; font-size: 9px; font-family: var(--font-primary); text-transform: uppercase; letter-spacing: 0.08em; }
.site-header__phone-number { font-size: 12px; color: var(--color-text-light); font-weight: 500; }

.site-header__hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 28px;
	/* Forces its own GPU compositing layer — works around a real-device
	   WebKit/Blink bug where a sticky header's child stays hit-testable
	   (taps register) but never actually paints. Safe here specifically
	   because the button has no position:fixed descendants (unlike
	   .site-header itself, see the note above it). Paired with an explicit
	   opacity/stacking-context override: some real devices still failed to
	   paint it after the transform fix alone, so this pins it above
	   .mobile-menu (z-index 99, a sibling of .site-header__inner within the
	   same .site-header stacking context) and guards against any
	   inherited/stuck opacity. */
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	position: relative;
	z-index: 101;
	opacity: 1;
}
/* width:100% is explicit, not relied on via flex stretch — iOS/Safari
   WebKit doesn't reliably stretch flex children of a <button> element, so
   without it these spans can collapse to zero width and disappear (the
   button's own hit-box still renders and still receives taps, so the bug
   only shows up as an invisible icon, not a broken toggle). */
.site-header__hamburger span { display: block; width: 100%; height: 2px; background: var(--cream); border-radius: 1px; transition: transform 0.2s ease, opacity 0.2s ease; }
.site-header__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
	position: fixed;
	inset: 0;
	top: var(--header-height);
	background: var(--ink);
	z-index: 99;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 40px;
	transform: translateY(-8px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu__list { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.mobile-menu__list a { color: var(--cream); font-family: var(--font-serif); font-size: 24px; }

@media (max-width: 1024px) {
	.site-header__inner { display: flex; justify-content: space-between; }
	.site-header__nav, .site-header__actions { display: none; }
	.site-header__hamburger { display: flex; }
}
@media (max-width: 640px) {
	.site-header { height: auto; padding: 16px 0; }

	.mobile-menu { top: 73px; padding: 40px 16px; align-items: flex-start; justify-content: flex-start; }
	.mobile-menu > nav { width: 100%; }
	.mobile-menu__list { align-items: flex-start; width: 100%; }
	.mobile-menu__list li { width: 100%; }
	.mobile-menu__list a { font-size: 28px; flex-direction: row; align-items: center; gap: 10px; width: 100%; }
	.mobile-menu .nav-link.active::after { order: -1; margin: 0; }
	.mobile-menu__cta { width: 100%; }
}

/* Footer ------------------------------------------------------------------ */

.site-footer { background: var(--ink); color: var(--cream); padding: 80px 0 0; }
.site-footer__inner {
	max-width: var(--page-width);
	margin: 0 auto;
	padding: 0 var(--inner-padding) 60px;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 60px;
}
.site-footer__logo-img { display: block; height: 55px; width: auto; }
.site-footer__desc { color: var(--cream-dim); font-size: 14px; line-height: 1.7; margin: 20px 0 0; max-width: 340px; }
.site-footer__tagline { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 20px; }

.footer-widget__title { display: block; color: var(--cream-dim); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px; }
.site-footer__links { display: flex; flex-direction: column; gap: 14px; }
.site-footer__links a { color: var(--cream); font-size: 15px; }
.site-footer__links a:hover { color: var(--gold); }

.site-footer__contact { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.site-footer__contact a { color: var(--cream); font-size: 15px; }
.site-footer__contact a:hover { color: var(--gold); }

.site-footer__bottom {
	border-top: 1px solid var(--border-dark);
	padding: 24px var(--inner-padding);
	display: flex;
	justify-content: space-between;
	color: var(--cream-dim);
	font-size: 13px;
	max-width: var(--page-width);
	margin: 0 auto;
}
.site-footer__social { display: flex; gap: 24px; }
.site-footer__social a { color: var(--cream-dim); text-transform: uppercase; letter-spacing: 0.05em; font-size: 13px; }
.site-footer__social a:hover { color: var(--gold); }

@media (max-width: 900px) {
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
	.site-footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 640px) {
	.site-footer__inner { grid-template-columns: 1fr; }
}

/* WhatsApp floating button ------------------------------------------------- */

.whatsapp-float {
	position: fixed;
	right: 28px;
	bottom: 28px;
	width: 56px; height: 56px;
	background: #25D366;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(0,0,0,0.25);
	z-index: 80;
	transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* Hidden on mobile — the sticky mobile bar already surfaces WhatsApp there,
   so showing both would duplicate the same CTA on small screens. */
@media (max-width: 1024px) {
	.whatsapp-float { display: none; }
}

/* Mobile sticky bar --------------------------------------------------------- */

.mobile-bar {
	display: none;
	position: fixed;
	left: 0; right: 0; bottom: 0;
	height: var(--mobile-bar-height);
	background: var(--ink);
	border-top: 1px solid var(--border-dark);
	z-index: 90;
}
@media (max-width: 1024px) {
	.mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); }
	.site-main.container { padding-bottom: calc(80px + var(--mobile-bar-height)); }
	.site-footer { padding-bottom: calc(var(--mobile-bar-height) + 24px); }
}
.mobile-bar__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: var(--cream-dim);
	font-size: 11px;
}
.mobile-bar__item svg { width: 20px; height: 20px; }
.mobile-bar__item--cta { color: var(--gold); }

/* 404 ------------------------------------------------------------------ */
.error-404 { text-align: center; padding: 120px 0; }
.error-404 h1 { font-size: 48px; }
