/*
Theme Name: Cambras
Theme URI: https://cambras.org
Author: Cambras
Author URI: https://cambras.org
Description: Custom WordPress block theme for the Cambras business chamber website.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cambras
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, wide-blocks, block-styles
*/

a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

.more-link {
	display: block;
}

:where(pre) {
	overflow-x: auto;
}

/* Hero gradient background with noise texture */
.cambras-hero-gradient {
	position: relative;
	overflow: hidden;
}

.cambras-hero-gradient > * {
	position: relative;
	z-index: 1;
}

.cambras-hero-gradient::before {
	content: '';
	position: absolute;
	inset: -20% -10%;
	width: 120%;
	height: 140%;
	background:
		radial-gradient(ellipse 70% 50% at 65% 15%, rgba(158,209,205,0.35) 0%, transparent 70%),
		radial-gradient(ellipse 50% 70% at 20% 55%, rgba(0,112,140,0.1) 0%, transparent 60%),
		radial-gradient(ellipse 80% 40% at 85% 70%, rgba(55,172,201,0.18) 0%, transparent 55%),
		radial-gradient(ellipse 40% 60% at 45% 30%, rgba(211,235,97,0.06) 0%, transparent 50%);
	z-index: 0;
	pointer-events: none;
	filter: blur(60px);
}

.cambras-hero-gradient::after {
	content: '';
	position: absolute;
	inset: 0;
	opacity: 0.06;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 300px 300px;
	z-index: 0;
	pointer-events: none;
}

/* Footer background overlay — subtle cool tint from Figma */
.cambras-footer {
	position: relative;
}

.cambras-footer::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(234,251,255,0.19);
	pointer-events: none;
	z-index: 0;
}

.cambras-footer > * {
	position: relative;
	z-index: 1;
}

/* Footer link styling — force white, WP core sets color:inherit on nav links which picks up the global link color */
.cambras-footer a,
.cambras-footer .wp-block-navigation-item__content {
	color: #ffffff !important;
	text-decoration: none !important;
}

.cambras-footer a:hover,
.cambras-footer .wp-block-navigation-item__content:hover {
	color: rgba(255,255,255,0.7) !important;
}

/* Footer logo — white tint via CSS mask */
.cambras-logo-white {
	display: block;
	background-color: #ffffff;
	-webkit-mask-image: url('cambras-logo.svg');
	mask-image: url('cambras-logo.svg');
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: left center;
	mask-position: left center;
}

/* Footer email submit button — square aspect ratio */
.cambras-footer-submit {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
