/*
 * Small Is Beautiful — main stylesheet (v3).
 *
 * Bump the filename (e.g. v3.css → v4.css) and update
 * smallisbeautiful_main_stylesheet_file() in functions.php to hard-bust caches.
 *
 * style.css is kept as a near-empty file purely for WordPress theme metadata.
 */

/* Atkinson Hyperlegible — files in Web Fonts/woff2/ (ofl, see Braille Institute / Google Fonts) */
@font-face {
	font-family: "Atkinson Hyperlegible";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/woff2/AtkinsonHyperlegible-Regular.woff2") format("woff2");
}

@font-face {
	font-family: "Atkinson Hyperlegible";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/woff2/AtkinsonHyperlegible-Italic.woff2") format("woff2");
}

@font-face {
	font-family: "Atkinson Hyperlegible";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/woff2/AtkinsonHyperlegible-Bold.woff2") format("woff2");
}

@font-face {
	font-family: "Atkinson Hyperlegible";
	font-style: italic;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514/Web Fonts/woff2/AtkinsonHyperlegible-BoldItalic.woff2") format("woff2");
}

/* Resolid Serif 2 — used for all titles/headings */
@font-face {
	font-family: "Resolid Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/resolid-serif2.otf") format("opentype");
}

:root {
	--color-bg: #faf9f7;
	--color-text: #1a1a1a;
	--color-accent: #2c5530;
	--font-sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Resolid Serif", Georgia, "Times New Roman", serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.entry-title {
	font-family: var(--font-display);
}

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

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg);
}

button,
input,
select,
textarea {
	font: inherit;
}

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

.site {
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 1.25rem 2rem;
}

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

/* Header bar */
.site-header {
	position: relative;
	z-index: 30;
	padding-top: 1rem;
	margin-bottom: 1.5rem;
}

.site-header__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(26, 26, 26, 0.12);
}

.site-title {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
}

.site-title a {
	text-decoration: none;
	color: inherit;
}

.site-title--logo {
	font-size: 0;
	line-height: 0;
}

.site-title__link {
	display: inline-flex;
	align-items: center;
	transition: opacity 0.15s ease;
}

.site-title__link:hover,
.site-title__link:focus-visible {
	opacity: 0.8;
	outline: none;
}

.site-title__image {
	display: block;
	height: 2.5rem;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.site-title__image[hidden] {
	display: none !important;
}

@media (min-width: 640px) {
	.site-title__image {
		height: 3rem;
	}
}

@media (min-width: 992px) {
	.site-title__image {
		height: 3.5rem;
	}
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* Language switcher */
.lang-switch {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.lang-switch__btn {
	font: inherit;
	cursor: pointer;
	text-decoration: none;
	color: var(--color-text);
	opacity: 0.55;
	padding: 0.25rem 0.45rem;
	border-radius: 4px;
	border: none;
	background: transparent;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

.lang-switch__btn:hover,
.lang-switch__btn:focus-visible {
	opacity: 0.9;
	background-color: rgba(44, 85, 48, 0.08);
	outline: none;
}

.lang-switch__btn.is-active {
	opacity: 1;
	color: var(--color-accent);
	box-shadow: inset 0 0 0 1px rgba(44, 85, 48, 0.35);
}

.lang-switch__sep {
	opacity: 0.35;
	user-select: none;
}

/* Hamburger (all breakpoints — menu is off-canvas) */
.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(26, 26, 26, 0.15);
	border-radius: 8px;
	background: var(--color-bg);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
	background: rgba(44, 85, 48, 0.06);
	border-color: var(--color-accent);
	outline: none;
}

.menu-toggle__icon {
	position: relative;
	display: block;
	width: 1.25rem;
	height: 2px;
	background: var(--color-text);
	border-radius: 1px;
	transition: background-color 0.2s ease;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--color-text);
	border-radius: 1px;
	transition: transform 0.2s ease, top 0.2s ease;
}

.menu-toggle__icon::before {
	top: -7px;
}

.menu-toggle__icon::after {
	top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
	top: 0;
	transform: rotate(-45deg);
}

.primary-nav--bilingual .menu-lang-panel[hidden] {
	display: none !important;
}

.primary-nav--bilingual .menu-lang-panel:not([hidden]) {
	display: block;
}

/* Nav lists (drawer layout applied below) */
.primary-nav .nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.75rem;
}

.primary-nav .nav-menu a {
	text-decoration: none;
	color: var(--color-text);
	font-weight: 500;
	padding: 0.35rem 0;
	border-bottom: 2px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.primary-nav .nav-menu a:hover,
.primary-nav .nav-menu a:focus-visible {
	color: var(--color-accent);
	outline: none;
}

.primary-nav .nav-menu .current-menu-item > a,
.primary-nav .nav-menu .current_page_item > a {
	border-bottom-color: var(--color-accent);
	color: var(--color-accent);
}

.primary-nav .sub-menu {
	list-style: none;
	margin: 0.35rem 0 0;
	padding: 0 0 0 1rem;
	border-left: 2px solid rgba(44, 85, 48, 0.25);
}

.primary-nav .sub-menu a {
	font-weight: 400;
	font-size: 0.95rem;
}

/* Off-canvas menu: phone, tablet, desktop */
.menu-toggle {
	position: relative;
	z-index: 60;
}

.nav-backdrop {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: rgba(26, 26, 26, 0.35);
	backdrop-filter: blur(2px);
}

body.nav-drawer-open {
	overflow: hidden;
}

.primary-nav {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	z-index: 50;
	width: min(100vw - 2.5rem, 22rem);
	height: auto;
	min-height: 0;
	max-height: none;
	overflow-x: hidden;
	overflow-y: auto;
	padding: calc(0.65rem + env(safe-area-inset-top, 0px)) 1.25rem max(1rem, env(safe-area-inset-bottom, 12px));
	background: var(--color-bg);
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.28s ease, visibility 0.28s ease;
}

.primary-nav__topbar {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(26, 26, 26, 0.12);
	flex-shrink: 0;
}

.primary-nav__topbar--solo {
	justify-content: flex-start;
}

.drawer-close {
	position: relative;
	display: block;
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(26, 26, 26, 0.15);
	border-radius: 8px;
	background: var(--color-bg);
	cursor: pointer;
	color: var(--color-text);
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.drawer-close::before,
.drawer-close::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1.125rem;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	pointer-events: none;
	transform-origin: center;
}

.drawer-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.drawer-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.drawer-close:hover,
.drawer-close:focus-visible {
	background: rgba(44, 85, 48, 0.06);
	border-color: var(--color-accent);
	outline: none;
}

.primary-nav .lang-switch--drawer {
	margin: 0;
	padding: 0;
	border: none;
	justify-content: flex-end;
	flex: 1;
	min-width: 0;
	font-size: 0.9375rem;
	gap: 0.35rem;
}

body.nav-drawer-open .menu-toggle {
	visibility: hidden;
	pointer-events: none;
}

body.admin-bar .primary-nav {
	top: 32px;
	padding-top: 0.75rem;
}

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

.primary-nav.is-open {
	transform: translateX(0);
	visibility: visible;
}

.primary-nav .nav-menu {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.primary-nav .nav-menu li {
	border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.primary-nav .nav-menu a {
	display: block;
	padding: 0.85rem 0;
	border-bottom: none;
}

.primary-nav .nav-menu .current-menu-item > a,
.primary-nav .nav-menu .current_page_item > a {
	border-bottom: none;
	border-left: 3px solid var(--color-accent);
	padding-left: 0.65rem;
	margin-left: -0.65rem;
}

.primary-nav .sub-menu {
	border-left: none;
	padding-left: 0;
	margin: 0 0 0.5rem;
}

.primary-nav .sub-menu li {
	border-bottom: none;
}

.primary-nav .sub-menu a {
	padding: 0.5rem 0;
	opacity: 0.85;
}

@media (min-width: 992px) {
	.primary-nav {
		width: min(100vw - 3rem, 26rem);
	}
}

/* Content column */
.site-main {
	max-width: 42rem;
	margin-left: auto;
	margin-right: auto;
}

/* Front page — landscape tile grid (2× wider than tall) */
.site-main--home {
	max-width: 84rem;
}

/* Hard hide the inactive language panel — beats any other rule. */
.home-tiles-panel[hidden],
[data-lang-panel][hidden] {
	display: none !important;
}

.home-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 720px) {
	.home-tiles {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.25rem;
	}
}

@media (min-width: 1200px) {
	.home-tiles {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
}

.home-tile {
	margin: 0;
	padding: 0;
}

.home-tile__link {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 12px;
	background: rgba(44, 85, 48, 0.08);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.home-tile__link:hover,
.home-tile__link:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(26, 26, 26, 0.16);
	outline: none;
}

.home-tile__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.home-tile__link:hover .home-tile__image,
.home-tile__link:focus-visible .home-tile__image {
	transform: scale(1.04);
}

.home-tile__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(20, 18, 16, 0.78) 0%,
		rgba(20, 18, 16, 0.35) 45%,
		rgba(20, 18, 16, 0) 70%
	);
	pointer-events: none;
}

.home-tile__title {
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.75rem;
	font-family: var(--font-display);
	font-size: clamp(1rem, 1.5vw, 1.35rem);
	line-height: 1.2;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
	pointer-events: none;
	word-break: break-word;
	hyphens: auto;
}

.home-tile__link:not(:has(.home-tile__image)) .home-tile__overlay {
	background: linear-gradient(
		135deg,
		rgba(44, 85, 48, 0.92),
		rgba(44, 85, 48, 0.65)
	);
}

.home-tile__link:not(:has(.home-tile__image)) .home-tile__title {
	text-shadow: none;
}

.home-tiles__empty {
	margin: 2rem auto;
	max-width: 36rem;
	padding: 1.25rem 1.5rem;
	border: 1px dashed rgba(26, 26, 26, 0.25);
	border-radius: 8px;
	color: rgba(26, 26, 26, 0.7);
	text-align: center;
	font-size: 0.95rem;
}

.entry-title {
	font-size: 1.35rem;
	margin: 1.5rem 0 0.5rem;
}

.entry-title.entry-title--page {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	line-height: 1.2;
	margin-top: 0;
}

.entry-header {
	margin-bottom: 1.5rem;
}

.entry-content {
	margin-bottom: 2rem;
}

.page-links {
	margin-top: 2rem;
	font-size: 0.9375rem;
}

.page-links a {
	margin-left: 0.35rem;
}

.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(26, 26, 26, 0.12);
}

/* 360° image-sequence viewer */
.photo-360-viewer {
	position: relative;
	width: 100%;
	max-width: 720px;
	margin: 0 auto 1.75rem;
	aspect-ratio: 1 / 1;
	background: transparent;
	overflow: hidden;
	border-radius: 8px;
}

.photo-360-viewer--empty {
	display: none;
}

.photo-360-viewer__stage {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	cursor: grab;
	user-select: none;
	touch-action: none;
	-webkit-user-select: none;
}

.photo-360-viewer__stage:active {
	cursor: grabbing;
}

.photo-360-viewer__image,
.photo-360-viewer__canvas {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: transparent;
	transition: transform 0.1s ease-out;
	-webkit-user-drag: none;
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
}

.photo-360-viewer__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.55);
	z-index: 2;
	pointer-events: auto;
}

.photo-360-viewer__loading.is-hidden {
	display: none;
}

.photo-360-viewer__loading-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.photo-360-viewer__percent {
	font-family: var(--font-sans);
	font-size: 1.125rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: #fff;
	letter-spacing: 0.02em;
}

.photo-360-viewer__spinner {
	width: 3.25rem;
	height: 3.25rem;
	border: 4px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: photo-360-spin 0.8s linear infinite;
}

@keyframes photo-360-spin {
	to { transform: rotate(360deg); }
}

/* Footer */
.site-footer {
	margin-top: 4rem;
	padding-top: 2.25rem;
	border-top: 1px solid rgba(26, 26, 26, 0.12);
	color: var(--color-text);
	text-align: center;
}

.site-footer__credits {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.site-footer__panel[hidden] {
	display: none !important;
}

.site-footer__panel {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 1.5rem 3rem;
	width: 100%;
	max-width: 64rem;
}

.site-footer__group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
	flex: 0 1 auto;
	min-width: 0;
}

.site-footer__heading {
	margin: 0;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: rgba(26, 26, 26, 0.75);
}

.site-footer__logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1.5rem 2.5rem;
}

.site-footer__logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	transition: opacity 0.15s ease;
}

.site-footer__logo-link:hover,
.site-footer__logo-link:focus-visible {
	opacity: 0.75;
	outline: none;
}

.site-footer__logo {
	display: block;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

.site-footer__logo--jcdecaux {
	height: 2.25rem;
	width: auto;
}

.site-footer__logo--lrt {
	height: 1.75rem;
	width: auto;
}

.site-footer__logo--lndm {
	height: 2.25rem;
	width: auto;
}

.site-footer__copy {
	margin: 2rem 0 0;
	font-size: 0.8125rem;
	color: rgba(26, 26, 26, 0.6);
}

@media (min-width: 640px) {
	.site-footer__logo--jcdecaux { height: 2.75rem; }
	.site-footer__logo--lrt { height: 2rem; }
	.site-footer__logo--lndm { height: 2.75rem; }
}
