/*
Theme Name: Cohesion Crafted
Theme URI: https://cohesioncrafted.com/
Author: Cohesion Crafted
Description: Block theme for cohesioncrafted.com. Design only: colors, type, spacing, templates, header and footer. Page text lives in WordPress, not here. Master copy: Cohesion-Crafted/cohesioncrafted-site.
Version: 0.2.0
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: cohesion-crafted
*/

/* Header call to action: the last menu item renders as a button. */
.wp-block-navigation .cc-nav-cta > a {
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
	padding: 0.625rem 1.375rem;
	border-radius: 4px;
	font-weight: 600;
}
.wp-block-navigation .cc-nav-cta > a:hover {
	background: var(--wp--preset--color--navy-mid);
}

/* Hexagon brand system, from the March 2026 brand preview: honeycomb texture on every
   full-width navy section, the hexagon cluster in the front page hero (desktop),
   and the hexagon mark beside the site title. */
.wp-site-blocks .has-navy-background-color.alignfull {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23235da2' stroke-opacity='0.22' stroke-width='1'/%3E%3C/svg%3E");
	background-repeat: repeat;
	background-size: 56px 100px;
	position: relative;
	overflow: hidden;
}
/* Front page hero: hexagon cluster on the right, desktop only. */
@media (min-width: 1100px) {
	.home .wp-block-post-content > .has-navy-background-color.alignfull:first-child {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cpolygon points='260.0,190.0 320.6,225.0 320.6,295.0 260.0,330.0 199.4,295.0 199.4,225.0' fill='%23235da2' fill-opacity='0.18' stroke='%23235da2' stroke-width='2.5'/%3E%3Cpolygon points='260.0,212.0 301.6,236.0 301.6,284.0 260.0,308.0 218.4,284.0 218.4,236.0' fill='none' stroke='%23235da2' stroke-width='1' stroke-dasharray='3 3' stroke-opacity='0.7'/%3E%3Ccircle cx='260' cy='260' r='7' fill='%23235da2'/%3E%3Cpolygon points='319.0,101.8 367.5,129.8 367.5,185.8 319.0,213.8 270.5,185.8 270.5,129.8' fill='%23235da2' fill-opacity='0.08' stroke='%23235da2' stroke-width='1.5' stroke-dasharray='5 4'/%3E%3Cline x1='290.4' y1='207.3' x2='294.6' y2='200.0' stroke='%23235da2' stroke-width='1' stroke-dasharray='2 3'/%3E%3Cpolygon points='378.0,204.0 426.5,232.0 426.5,288.0 378.0,316.0 329.5,288.0 329.5,232.0' fill='%23235da2' fill-opacity='0.08' stroke='%23235da2' stroke-width='1.5' stroke-dasharray='5 4'/%3E%3Cline x1='320.9' y1='260.0' x2='329.3' y2='260.0' stroke='%23235da2' stroke-width='1' stroke-dasharray='2 3'/%3E%3Cpolygon points='319.0,306.2 367.5,334.2 367.5,390.2 319.0,418.2 270.5,390.2 270.5,334.2' fill='%23235da2' fill-opacity='0.08' stroke='%23235da2' stroke-width='1.5' stroke-dasharray='5 4'/%3E%3Cline x1='290.4' y1='312.7' x2='294.6' y2='320.0' stroke='%23235da2' stroke-width='1' stroke-dasharray='2 3'/%3E%3Cpolygon points='201.0,306.2 249.5,334.2 249.5,390.2 201.0,418.2 152.5,390.2 152.5,334.2' fill='%23235da2' fill-opacity='0.08' stroke='%23235da2' stroke-width='1.5' stroke-dasharray='5 4'/%3E%3Cline x1='229.6' y1='312.7' x2='225.4' y2='320.0' stroke='%23235da2' stroke-width='1' stroke-dasharray='2 3'/%3E%3Cpolygon points='142.0,204.0 190.5,232.0 190.5,288.0 142.0,316.0 93.5,288.0 93.5,232.0' fill='%23235da2' fill-opacity='0.08' stroke='%23235da2' stroke-width='1.5' stroke-dasharray='5 4'/%3E%3Cline x1='199.1' y1='260.0' x2='190.7' y2='260.0' stroke='%23235da2' stroke-width='1' stroke-dasharray='2 3'/%3E%3Cpolygon points='201.0,101.8 249.5,129.8 249.5,185.8 201.0,213.8 152.5,185.8 152.5,129.8' fill='%23235da2' fill-opacity='0.08' stroke='%23235da2' stroke-width='1.5' stroke-dasharray='5 4'/%3E%3Cline x1='229.5' y1='207.3' x2='225.4' y2='200.0' stroke='%23235da2' stroke-width='1' stroke-dasharray='2 3'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23235da2' stroke-opacity='0.22' stroke-width='1'/%3E%3C/svg%3E");
		background-repeat: no-repeat, repeat;
		background-size: 440px 440px, 56px 100px;
		background-position: calc(50% + 360px) center, 0 0;
	}
	.home .wp-block-post-content > .has-navy-background-color.alignfull:first-child > * {
		margin-left: max(var(--wp--style--root--padding-left), calc((100% - 1120px) / 2)) !important;
		margin-right: auto !important;
		max-width: 640px;
	}
}
/* Brand mark beside the site title. */
.cc-brand { display: flex; align-items: center; gap: 0.75rem; }
.cc-brand svg { flex: none; display: block; }

/* Full-width sections sit flush against each other (no root block gap between them). */
.wp-block-post-content > .alignfull { margin-block-start: 0; }
main.wp-block-group { margin-block-start: 0; }
