/*
 * ISOBAL theme styles. Tokens (colours, fonts, sizes) live in theme.json; this file
 * holds layout and component styles from the design's component library.
 * Logical properties (inline/block) keep the layout RTL-ready.
 */

:root {
	--isobal-rule: rgba(27, 42, 74, 0.14);
	--isobal-rule-strong: rgba(27, 42, 74, 0.25);
	--isobal-radius: 2px;
	--isobal-wide: 1180px;
	--isobal-gutter: var(--wp--style--root--padding-left, 28px);
}

/* ---------- Base ---------- */

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}

::selection {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}

.isobal-main {
	padding-block: 56px 72px;
}

/* ---------- Tokens and labels ---------- */

.isobal-token {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875em;
	color: var(--wp--preset--color--navy);
	background: rgba(201, 162, 74, 0.22);
	padding: 2px 6px;
	border-radius: var(--isobal-radius);
	white-space: nowrap;
}

.is-style-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--green);
}

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

.wp-block-button__link {
	min-height: 44px;
}

.isobal-button--small .wp-block-button__link {
	padding: 10px 18px;
	font-size: 13px;
}

.wp-block-button.is-style-gold .wp-block-button__link {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
}

.wp-block-button.is-style-gold .wp-block-button__link:hover {
	background: var(--wp--preset--color--off-white);
	color: var(--wp--preset--color--navy);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid rgba(27, 42, 74, 0.3);
	color: var(--wp--preset--color--navy);
	font-weight: 400;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: transparent;
	border-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
}

.wp-block-button.is-style-outline-green .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--wp--preset--color--green);
	color: var(--wp--preset--color--green);
	font-weight: 500;
}

.wp-block-button.is-style-outline-green .wp-block-button__link:hover {
	background: var(--wp--preset--color--green);
	color: var(--wp--preset--color--off-white);
}

.wp-block-button.is-style-outline-light .wp-block-button__link {
	background: transparent;
	border: 1px solid rgba(247, 246, 242, 0.4);
	color: var(--wp--preset--color--off-white);
	font-weight: 400;
}

.wp-block-button.is-style-outline-light .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--gold);
}

/* ---------- Brand ---------- */

.isobal-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

.isobal-brand svg {
	display: block;
	flex: none;
}

.isobal-brand__name {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 22px;
	letter-spacing: 0.08em;
	line-height: 1;
}

.isobal-brand:hover {
	color: var(--wp--preset--color--navy);
}

.isobal-brand--light,
.isobal-brand--light:hover {
	color: var(--wp--preset--color--off-white);
}

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

.isobal-site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(247, 246, 242, 0.94);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-block-end: 1px solid rgba(27, 42, 74, 0.12);
}

body.admin-bar .isobal-site-header {
	top: 32px;
}

.isobal-header {
	max-width: var(--isobal-wide);
	margin-inline: auto;
	padding: 14px var(--isobal-gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.isobal-header > * {
	margin-block: 0;
}

.isobal-header__nav {
	font-size: 14px;
	font-weight: 500;
}

.isobal-header__nav .wp-block-navigation__container {
	gap: 20px;
}

.isobal-header__nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--navy);
	padding-block: 10px;
}

.isobal-header__nav .wp-block-navigation-item__content:hover,
.isobal-header__nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--gold);
}

.isobal-header__actions {
	margin-inline-start: auto;
}

/* Mobile: logo and Book on the first row, the four links as a scrollable chip row below. */
@media (max-width: 781px) {
	body.admin-bar .isobal-site-header {
		top: 46px;
	}

	.isobal-header {
		padding-block: 10px;
	}

	.isobal-header__nav {
		order: 3;
		flex: 1 0 100%;
		min-width: 0;
	}

	.isobal-header__nav .wp-block-navigation__container {
		gap: 8px;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		padding-block-end: 2px;
	}

	.isobal-header__nav .wp-block-navigation__container::-webkit-scrollbar {
		display: none;
	}

	.isobal-header__nav .wp-block-navigation-item__content {
		display: inline-flex;
		align-items: center;
		min-height: 40px;
		padding: 8px 13px;
		border: 1px solid rgba(27, 42, 74, 0.22);
		border-radius: var(--isobal-radius);
		font-size: 13px;
		white-space: nowrap;
	}
}

@media (max-width: 600px) {
	body.admin-bar .isobal-site-header {
		top: 0;
	}

	.isobal-header {
		column-gap: 10px;
	}

	.isobal-header .isobal-brand {
		gap: 8px;
	}

	.isobal-header .isobal-brand svg {
		width: 26px;
		height: 26px;
	}

	.isobal-header .isobal-brand__name {
		font-size: 19px;
	}

	.isobal-header .isobal-button--small .wp-block-button__link {
		padding: 8px 12px;
		font-size: 12px;
	}

	/* Keep the last footer line clear of the floating WhatsApp button. */
	.isobal-footer__legal {
		padding-block-end: 84px;
	}
}

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

.isobal-site-footer {
	background: var(--wp--preset--color--navy-deep);
	color: rgba(247, 246, 242, 0.75);
	font-size: 14px;
}

.isobal-footer__grid {
	max-width: var(--isobal-wide);
	margin-inline: auto;
	padding: 44px var(--isobal-gutter);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 28px;
}

.isobal-footer__grid > * {
	margin-block: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.isobal-footer__grid > * > * {
	margin-block: 0;
}

.isobal-footer__brand p {
	max-width: 34ch;
	line-height: 1.6;
}

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

.isobal-site-footer a:hover {
	color: var(--wp--preset--color--gold);
}

.isobal-footer__label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(247, 246, 242, 0.45);
}

.isobal-footer__links,
.isobal-contact-details {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.isobal-footer__links a {
	display: inline-block;
	padding-block: 2px;
}

.isobal-site-footer .isobal-contact-details {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
}

.isobal-site-footer .isobal-token {
	color: var(--wp--preset--color--off-white);
	background: rgba(201, 162, 74, 0.28);
}

.isobal-footer__legal {
	border-block-start: 1px solid rgba(255, 255, 255, 0.1);
	padding: 16px var(--isobal-gutter);
	text-align: center;
	font-size: 12px;
	color: rgba(247, 246, 242, 0.45);
}

.isobal-footer__legal p {
	margin: 4px 0;
}

/* ---------- QR ---------- */

.isobal-qr img {
	display: block;
	background: #fff;
}

.isobal-qr-placeholder {
	display: grid;
	place-items: center;
	border: 1px dashed rgba(27, 42, 74, 0.35);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	color: var(--wp--preset--color--muted);
}

.isobal-site-footer .isobal-qr-placeholder {
	border-color: rgba(247, 246, 242, 0.35);
	color: rgba(247, 246, 242, 0.55);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
