/**
 * Site-wide touches that theme.json cannot express — primarily the header
 * navigation's embedded CTA button (lives inside the synced nav entity so it
 * automatically appears inside the mobile overlay menu instead of crowding
 * the mobile header bar).
 */

/**
 * Mobile section rhythm — theme.json's "lg" spacing token (used for nearly
 * every section's top/bottom padding) is tuned for desktop editorial
 * breathing room; stacked back-to-back on a small phone screen it reads as
 * oversized gaps between short sections. Scale it down site-wide below
 * 600px rather than touching every pattern individually.
 */
@media (max-width: 600px) {
	:root {
		--wp--preset--spacing--lg: 2.25rem;
		--wp--preset--spacing--xl: 2.75rem;
	}

	h1.wp-block-heading,
	.wp-block-heading:first-child {
		margin-top: 0;
	}

	.wp-block-group > .wp-block-heading + .wp-block-paragraph {
		margin-top: var(--wp--preset--spacing--xs);
	}
}

.almagzal-nav-cta {
	margin: 0;
}

@media (min-width: 601px) {
	.almagzal-nav-cta {
		margin-inline-start: var(--wp--preset--spacing--sm);
	}
}

@media (max-width: 600px) {
	.almagzal-nav-cta {
		margin-top: var(--wp--preset--spacing--sm);
	}

	.almagzal-nav-cta .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}

/**
 * The reserved media-placeholder pattern (used on Home and About, and
 * anywhere else a real photo is still pending) — decorative swatch
 * geometry standing in for future photography.
 */
.almagzal-media-placeholder__inner {
	position: relative;
	width: 220px;
	height: 180px;
}

.almagzal-media-placeholder__swatch {
	position: absolute;
	border: 1px solid var(--wp--preset--color--border);
}

.almagzal-media-placeholder__swatch--a {
	top: 0;
	right: 0;
	width: 150px;
	height: 120px;
	background-color: var(--wp--preset--color--sage);
	transform: rotate(-5deg);
}

.almagzal-media-placeholder__swatch--b {
	bottom: 0;
	left: 0;
	width: 130px;
	height: 100px;
	background-color: var(--wp--preset--color--dusty-blue);
	transform: rotate(4deg);
}

/* Footer contact links — subtle affordance on a solid terracotta
   background: underline on hover, a clearly visible focus outline (the
   link already inherits the footer's off-white text color). */
.almagzal-footer-contact a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(244, 239, 236, 0.4);
	text-underline-offset: 2px;
	transition: text-decoration-color 0.2s ease;
}

.almagzal-footer-contact a:hover {
	text-decoration-color: currentColor;
}

.almagzal-footer-contact a:focus-visible {
	outline: 2px solid var(--wp--preset--color--background);
	outline-offset: 2px;
	border-radius: 2px;
}

.almagzal-media-placeholder__swatch--c {
	top: 45px;
	left: 25px;
	width: 90px;
	height: 90px;
	background-color: var(--wp--preset--color--terracotta);
	opacity: 0.35;
	transform: rotate(-2deg);
}
