/*
Theme Name: EuroLaunch
Theme URI: https://eurolaunch.co.uk/
Author: EuroLaunch
Author URI: https://eurolaunch.co.uk/
Description: Block theme for EuroLaunch — European market entry, localisation and go-to-market support. Navy and orange brand palette, Montserrat type, and ready-made patterns for the home, about, markets, pricing, blog and contact pages.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.4.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eurolaunch
Tags: block-patterns, full-site-editing, one-column, wide-blocks, custom-colors, editor-style, blog
*/


/*
 * Colours, type, spacing, the card and section styles all live in theme.json
 * and styles/*.json. This file only covers what those can't express: hover
 * and focus states, list markers, and a few layout fixes for specific patterns.
 */

/* ---------------------------------------------------------------------------
 * Page background: a soft orange glow behind the header and first section
 * ------------------------------------------------------------------------ */

body {
	background:
		radial-gradient(ellipse at top right, color-mix(in oklab, var(--wp--preset--color--accent) 14%, transparent), transparent 60%) no-repeat top / 100% 900px,
		var(--wp--preset--color--surface);
}

/* ---------------------------------------------------------------------------
 * Section styles (defined in styles/sections/): borders and the glow panel
 * ------------------------------------------------------------------------ */

/* Full-width bands are separated by thin rules rather than background colour. */
.wp-block-group.is-style-grey.alignfull,
.wp-block-group.is-style-light-grey.alignfull {
	border-block: 1px solid var(--wp--preset--color--line);
}

/* Full-width sections sit flush against each other inside page content
   (the normal block gap would leave a strip between two bands' rules). */
.wp-block-post-content > .alignfull {
	margin-block: 0;
}

/* Where two bordered bands meet, draw one rule rather than two. */
.wp-block-group.alignfull:is(.is-style-grey, .is-style-light-grey, .is-style-navy)
	+ .wp-block-group.alignfull:is(.is-style-grey, .is-style-light-grey, .is-style-navy) {
	border-top: 0;
}

/* The footer draws its own top rule, so the last band doesn't need one —
   whether it ends a template (main) or a page's content. */
:is(main, .wp-block-post-content) > .wp-block-group.alignfull:is(.is-style-grey, .is-style-light-grey, .is-style-navy):last-child {
	border-bottom: 0;
}

/* Glow panel: full-width sections get the orange glow; smaller panels a border. */
.wp-block-group.is-style-navy.alignfull {
	background:
		radial-gradient(ellipse at top right, color-mix(in oklab, var(--wp--preset--color--accent) 12%, transparent), transparent 65%),
		var(--wp--preset--color--base);
	border-block: 1px solid var(--wp--preset--color--line);
}
.wp-block-group.is-style-navy:not(.alignfull) {
	border: 1px solid var(--wp--preset--color--line);
}
/* ...except a price card's header, which only needs a rule underneath. */
.eurolaunch-price-card > .is-style-navy:not(.alignfull) {
	border-width: 0 0 1px;
}

/* Line icons sit in an orange-tint circle, and keep their size beside text. */
.eurolaunch-icon {
	flex-shrink: 0;
}
.eurolaunch-icon img {
	box-sizing: border-box;
	width: 64px !important;
	height: 64px;
	padding: 12px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-tint);
}

/* ---------------------------------------------------------------------------
 * Focus and inline marks
 * ------------------------------------------------------------------------ */

.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible,
a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* Two-tone headings use <mark> for the orange word. The editor writes an
   inline transparent background, but WordPress strips it when someone without
   the unfiltered_html capability saves the page — so don't rely on it. */
mark.has-inline-color {
	background-color: transparent;
}

/* ---------------------------------------------------------------------------
 * Button styles (registered in functions.php)
 * ------------------------------------------------------------------------ */

.wp-element-button,
.wp-block-button__link {
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

/* Secondary, e.g. "Book a consultation": a navy outline. (Registered under
   the slug "navy", which existing content uses, so the slug stays.) */
.wp-block-button.is-style-navy .wp-block-button__link {
	background: var(--wp--preset--color--base);
	border: 2px solid color-mix(in srgb, var(--wp--preset--color--navy) 20%, transparent);
	color: var(--wp--preset--color--navy);
	box-shadow: none;
}
.wp-block-button.is-style-navy .wp-block-button__link:hover {
	background: color-mix(in srgb, var(--wp--preset--color--navy) 5%, var(--wp--preset--color--base));
	border-color: color-mix(in srgb, var(--wp--preset--color--navy) 40%, transparent);
}

/* Outline, e.g. "Coming soon". */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid color-mix(in srgb, var(--wp--preset--color--navy) 25%, transparent);
	color: var(--wp--preset--color--navy);
	box-shadow: none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--navy) 50%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--navy) 5%, transparent);
}

/* Text link, e.g. "Read the article →". */
.wp-block-button.is-style-text-link .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--accent-ink);
	box-shadow: none;
	padding: 0;
}
.wp-block-button.is-style-text-link .wp-block-button__link:hover {
	color: var(--wp--preset--color--navy);
	background: transparent;
}

/* Button links without a URL ("Coming soon") aren't clickable, so don't look it.
   (Links only: form submit buttons are <button>s and must stay full strength.) */
a.wp-block-button__link:not([href]) {
	cursor: default;
	opacity: 0.7;
}

/* ---------------------------------------------------------------------------
 * List styles (registered in functions.php)
 * ------------------------------------------------------------------------ */

.is-style-arrow-list,
.is-style-tick-list {
	list-style: none;
	padding-left: 0;
}
.is-style-arrow-list li,
.is-style-tick-list li {
	position: relative;
	padding-left: 1.4em;
	margin-block: 0.3em;
}
.is-style-arrow-list li::before,
.is-style-tick-list li::before {
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--accent);
	font-weight: 800;
}
.is-style-arrow-list li::before {
	content: "→";
}
.is-style-tick-list li::before {
	content: "✓";
}

/* ---------------------------------------------------------------------------
 * Header and footer
 * ------------------------------------------------------------------------ */

.eurolaunch-header .wp-block-navigation .wp-block-navigation-item__content {
	padding-block: 0.25em;
}
.eurolaunch-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.eurolaunch-footer .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent-ink);
	font-weight: 700;
}

/* ---------------------------------------------------------------------------
 * Pattern-specific layout
 * ------------------------------------------------------------------------ */

/* Home service steps: faded arrows between the columns. Hidden once the
   columns stack, where they'd point sideways at nothing. */
.eurolaunch-steps .eurolaunch-step-arrow {
	padding-top: 1.25rem;
	align-self: flex-start;
}
.eurolaunch-steps .eurolaunch-step-arrow img {
	width: 100%;
	height: auto;
}
@media (max-width: 781px) {
	.eurolaunch-steps .eurolaunch-step-arrow,
	.eurolaunch-steps .eurolaunch-step-path {
		display: none;
	}
}

/* Pricing cards: the navy header is clipped to the card's rounded corners,
   and the buttons sit at the bottom so they line up across the row. */
.eurolaunch-price-card {
	overflow: hidden;
}
.eurolaunch-price-card > .wp-block-group:last-child {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}
.eurolaunch-price-card .wp-block-buttons {
	margin-top: auto;
	/* margin-top: auto replaces the usual block gap, so restore it as padding. */
	padding-top: var(--wp--preset--spacing--30);
}
/* A card without a footnote under its button reserves the same space, so its
   button lines up with its neighbours'. */
@media (min-width: 782px) {
	.eurolaunch-price-card .wp-block-buttons:last-child {
		margin-bottom: calc(var(--wp--preset--font-size--x-small) * 1.6 + var(--wp--preset--spacing--30));
	}
}

/* Pricing figures. accent-display (#e64a19) clears 3:1 for large text. */
.eurolaunch-price {
	display: inline-block;
	margin-top: 0.25rem;
	font-size: clamp(2.25rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--accent-display);
}

/* Articles: a size up from the body text on wider screens, so the column
   reads comfortably (about 70 characters a line) rather than looking thin. */
@media (min-width: 782px) {
	.eurolaunch-article {
		font-size: 1.125rem;
		line-height: 1.7;
	}
}

/* Blog list: rounded thumbnails, and no empty column when a post has none. */
.eurolaunch-post-card .wp-block-post-featured-image img {
	border-radius: 10px;
}
.eurolaunch-post-card > .wp-block-column:first-child:not(:has(img)) {
	display: none;
}

/* Core's cover block makes headings inherit the cover's text colour (black on
   a light cover), which overrides the theme's navy heading colour. */
.eurolaunch-hero .wp-block-cover__inner-container :where(h1, h2, h3):not(.has-text-color) {
	color: var(--wp--preset--color--navy);
}

/* ---------------------------------------------------------------------------
 * Graphics from the original site
 * ------------------------------------------------------------------------ */

/* "Step circle" paragraph style: a number in a pale orange circle. */
.is-style-step-circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	margin-inline: auto;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-tint);
	color: var(--wp--preset--color--accent-ink);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	line-height: 1;
}

/* Bands with a faint city skyline along the bottom edge. The artwork is navy;
   it's faded on a layer behind the content, as on the original site. */
.eurolaunch-skyline-london,
.eurolaunch-skyline-paris {
	position: relative;
	isolation: isolate;
}
.eurolaunch-skyline-london::before,
.eurolaunch-skyline-paris::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-repeat: no-repeat;
	background-position: right bottom;
	opacity: 0.1;
}
.eurolaunch-skyline-london::before {
	background-image: url(assets/graphics/skyline-london.png);
	background-size: min(75%, 960px) auto;
}
.eurolaunch-skyline-paris::before {
	background-image: url(assets/graphics/skyline-paris.png);
	background-size: min(55%, 640px) auto;
}

/* Columns separated by a thin orange rule on the left, as on the France page. */
.eurolaunch-ruled > .wp-block-column {
	border-left: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent);
	padding-left: var(--wp--preset--spacing--30);
}

/* Landmark icons on the Markets page: a larger orange-tint circle, a shade
   stronger than the usual tint so it still shows on the page's orange glow. */
.eurolaunch-landmark img {
	box-sizing: border-box;
	width: 132px !important;
	height: 132px;
	padding: 28px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--accent) 11%, var(--wp--preset--color--base));
}

/* Small round flags beside the UK ⇄ Europe headings (pages built before
   1.4.3; the pattern now uses line icons). */
.eurolaunch-flag img {
	width: 36px;
	height: 36px;
}

/* Connectors between step circles: a straight arrow or a dotted path. */
.eurolaunch-steps .eurolaunch-step-path img {
	width: 100%;
	max-height: 90px;
	object-fit: contain;
}

/* "Example report" card: a static copy of the readiness app's results preview. */
.eurolaunch-report {
	box-sizing: border-box;
	width: 100%;
	max-width: 24rem;
	margin-inline: auto;
	padding: 1.5rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 1rem;
	background: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--card);
	font-size: 0.75rem;
	line-height: 1.4;
}
.eurolaunch-report p {
	margin: 0;
}
.eurolaunch-report__label {
	color: #a1a1aa;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.eurolaunch-report__head {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-top: 1rem;
}
.eurolaunch-report__ring {
	position: relative;
	flex-shrink: 0;
	width: 7rem;
	height: 7rem;
}
.eurolaunch-report__ring svg {
	width: 100%;
	height: 100%;
}
.eurolaunch-report__ring span {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #171717;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.eurolaunch-report__ring small {
	color: #71717a;
	font-size: 0.75rem;
	font-weight: 500;
}
.eurolaunch-report__title {
	color: var(--wp--preset--color--navy);
	font-size: 0.875rem;
	font-weight: 600;
}
.eurolaunch-report__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin-top: 0.5rem;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: color-mix(in srgb, #fab219 18%, transparent);
	color: #171717;
	font-weight: 500;
}
.eurolaunch-report__chip i {
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 999px;
	background: #fab219;
}
.eurolaunch-report__bars {
	display: grid;
	gap: 1rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}
.eurolaunch-report__bars li {
	display: grid;
	grid-template-columns: 2rem 1fr auto;
	column-gap: 0.75rem;
	align-items: center;
}
.eurolaunch-report__icon {
	grid-row: span 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--c) 15%, transparent);
	color: var(--c);
}
.eurolaunch-report__icon svg {
	width: 1rem;
	height: 1rem;
}
.eurolaunch-report__name {
	color: #3f3f46;
	font-weight: 500;
}
.eurolaunch-report__value {
	color: #71717a;
}
.eurolaunch-report__bar {
	grid-column: 2 / 4;
	height: 0.375rem;
	margin-top: 0.375rem;
	border-radius: 999px;
	background: linear-gradient(var(--c), var(--c)) no-repeat 0 0 / var(--v) 100%, #f4f4f5;
}
.eurolaunch-report__fix {
	margin-top: 1.5rem !important;
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	background: var(--wp--preset--color--surface);
	color: #52525b;
}
.eurolaunch-report__fix strong {
	color: var(--wp--preset--color--navy);
	font-weight: 600;
}

/* Readiness panel on the Markets page: roomier than a standard card. */
.eurolaunch-panel {
	padding: var(--wp--preset--spacing--50) !important;
}

/* About banner: no off-white panel over the map (it hid the page's orange
   glow and left a hard edge under the header). The map fades itself out
   towards the text instead. Below laptop width the text spans the map, so
   the map is muted right down. */
.eurolaunch-hero .has-left-fade-gradient-background {
	background: none !important;
}
.eurolaunch-hero:has(.has-left-fade-gradient-background) .wp-block-cover__image-background {
	opacity: 0.75;
	-webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 62%);
	mask-image: linear-gradient(90deg, transparent 38%, #000 62%);
}
@media (max-width: 1099px) {
	.eurolaunch-hero:has(.has-left-fade-gradient-background) .wp-block-cover__image-background {
		opacity: 0.15;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

/* Home banner: once the text spans the photo, wash the whole photo out. */
@media (max-width: 781px) {
	.eurolaunch-hero .has-hero-fade-gradient-background {
		background: rgba(250, 250, 250, 0.9) !important;
	}
}

/* Short pages (404, search): keep the footer at the bottom of the window. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}
.wp-site-blocks > main {
	flex: 1 0 auto;
}
