/*
 * Homepage styles: service cards with their icons, the Recent projects band
 * and the closing Get in touch line.
 * Loaded on the front page only. Icons are inline SVG data, so they need no
 * extra request and sit outside the page content, which stays editable.
 */

/* Each service is a card on the light surface colour. */
.opeoluwa-service {
	padding: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--surface);
	border-radius: 8px;
}

/* The card's heading sits close to its text. */
.opeoluwa-service > h3 {
	margin-top: 0;
}

/* Decorative icon above each card's heading. Screen readers ignore it. */
.opeoluwa-service::before {
	content: "";
	display: block;
	width: 48px;
	height: 48px;
	margin-bottom: var(--wp--preset--spacing--30);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

/* Climate risk: a cloud with rain. */
.opeoluwa-service--climate::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' width='48' height='48' fill='none' stroke='%23330099' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 30h20a8 8 0 0 0 0-16h-1.2A11 11 0 0 0 12 17.5 6.5 6.5 0 0 0 14 30Z' fill='%2387D1F6' fill-opacity='.35'/%3E%3Cpath d='M17 35l-2 5M25 35l-2 5M33 35l-2 5' stroke='%230072F1'/%3E%3C/svg%3E");
}

/* Drone surveys: a four-rotor drone seen from above. */
.opeoluwa-service--drone::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' width='48' height='48' fill='none' stroke='%23330099' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='19' y='19' width='10' height='10' rx='2' fill='%2387D1F6' fill-opacity='.35'/%3E%3Cpath d='M19 19l-4.5-4.5M29 19l4.5-4.5M19 29l-4.5 4.5M29 29l4.5 4.5'/%3E%3Ccircle cx='11' cy='11' r='5' stroke='%230072F1'/%3E%3Ccircle cx='37' cy='11' r='5' stroke='%230072F1'/%3E%3Ccircle cx='11' cy='37' r='5' stroke='%230072F1'/%3E%3Ccircle cx='37' cy='37' r='5' stroke='%230072F1'/%3E%3C/svg%3E");
}

/* Spatial analysis: a folded map with a location pin. */
.opeoluwa-service--spatial::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' width='48' height='48' fill='none' stroke='%23330099' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 14l11-5 14 5 11-5v25l-11 5-14-5-11 5Z' fill='%2387D1F6' fill-opacity='.35'/%3E%3Cpath d='M17 9v25M31 14v25'/%3E%3Cpath d='M24 30s-6-5.5-6-10a6 6 0 0 1 12 0c0 4.5-6 10-6 10Z' fill='%23FFFFFF' stroke='%230072F1'/%3E%3Ccircle cx='24' cy='20' r='2' stroke='%230072F1'/%3E%3C/svg%3E");
}

/* WebGIS and software: a screen showing map layers. */
.opeoluwa-service--webgis::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' width='48' height='48' fill='none' stroke='%23330099' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='8' width='38' height='26' rx='3'/%3E%3Cpath d='M17 40h14M24 34v6'/%3E%3Cpath d='M24 14l10 5-10 5-10-5Z' fill='%2387D1F6' fill-opacity='.35' stroke='%230072F1'/%3E%3Cpath d='M14 23l10 5 10-5' stroke='%230072F1'/%3E%3C/svg%3E");
}

/*
 * Recent projects sits on a light blue band across the full screen width.
 * The shadow paints the colour out to both edges, and clip-path stops it
 * spilling above or below, so the content keeps the wide width.
 */
.opeoluwa-band {
	padding-block: var(--wp--preset--spacing--60);
	background-color: var(--wp--preset--color--surface);
	box-shadow: 0 0 0 100vmax var(--wp--preset--color--surface);
	clip-path: inset(0 -100vmax);
}

/* The band's heading starts at the band's own top padding. */
.opeoluwa-band > h2 {
	margin-top: 0;
}

/* The closing Get in touch heading and line are centred. */
.opeoluwa-cta {
	text-align: center;
}
