/* ==========================================================================
   V8 Global Communications — WordPress integration layer
   --------------------------------------------------------------------------
   assets/css/main.css is the original design system, untouched. This file
   only bridges the gap between that class-based design and the markup the
   block editor produces, so every page renders identically to the original
   static site while staying fully editable as native blocks.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Group inner-container flattening.
   Some WordPress builds wrap a group block's children in an extra
   ".wp-block-group__inner-container" div. That extra box would become the only
   grid/flex item and collapse every multi-column layout. display:contents
   removes the wrapper box from layout so the REAL children participate in the
   grid/flex again — exactly like the original static markup. Harmless (the
   selector simply doesn't match) on builds that omit the wrapper.
   -------------------------------------------------------------------------- */
.wp-block-group__inner-container {
	display: contents;
}

/* --------------------------------------------------------------------------
   Hero ambient glow. The original used a decorative empty <div class="hero-bg">;
   as an empty block that reads as a confusing "select a layout" prompt to
   editors, so the gradient now lives on the hero itself. Same faint result.
   -------------------------------------------------------------------------- */
.hero::before,
.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 70% 55% at 75% 25%, rgba(194, 168, 120, 0.07), transparent 65%),
		radial-gradient(ellipse 55% 45% at 15% 85%, rgba(194, 168, 120, 0.04), transparent 60%);
}

/* --------------------------------------------------------------------------
   Navigation CTA — "Start a Conversation".
   WordPress puts a menu item's CSS class on the <li>, and v8_nav_link_attributes()
   also puts it on the <a> (which is what the original design styles). Both would
   draw the bordered box, giving a box-inside-a-box. Only the <a> should render it.
   -------------------------------------------------------------------------- */
.nav-links li.nav-cta,
.nav-links li.nav-cta:hover {
	border: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

/* --------------------------------------------------------------------------
   Italic emphasis in hero/heading — the original used <em class="serif-em">.
   Style plain <em> too, so the gold italic accent survives even if an editor
   re-italicises a phrase (the block editor writes a bare <em>).
   -------------------------------------------------------------------------- */
.page-hero h1 em {
	font-style: italic;
	color: var(--accent);
}

.section-head h2 em,
.cta-band h2 em,
.founder h2 em {
	font-style: italic;
	color: var(--accent);
}

/* --------------------------------------------------------------------------
   Buttons — core button blocks styled to match the original .btn / .btn--solid.
   Targeting the wrapper class (preserved across client edits) rather than a
   class on the <a> (which the editor would regenerate away).
   -------------------------------------------------------------------------- */
.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	font-family: var(--sans);
	font-size: 0.76rem;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	padding: 1.05rem 2.1rem;
	border: 1px solid var(--line-strong);
	border-radius: 0;
	background: transparent;
	color: var(--paper);
	text-decoration: none;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* Sheen sweep on hover */
.wp-block-button .wp-block-button__link::before {
	content: "";
	position: absolute;
	top: 0;
	left: -70%;
	width: 45%;
	height: 100%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.16), transparent);
	transform: skewX(-20deg);
	transition: left 0.6s ease;
	pointer-events: none;
}

.wp-block-button .wp-block-button__link:hover::before {
	left: 130%;
}

/* Animated arrow (replaces the original <span class="arrow">→</span>) */
.wp-block-button .wp-block-button__link::after {
	content: "\2192";
	display: inline-block;
	transition: transform 0.35s ease;
}

.wp-block-button .wp-block-button__link:hover {
	border-color: var(--accent);
}

.wp-block-button .wp-block-button__link:hover::after {
	transform: translateX(5px);
}

.wp-block-button .wp-block-button__link:focus-visible {
	outline: 1px solid var(--accent);
	outline-offset: 4px;
}

/* Solid (gold) variant — the "Solid" block style */
.wp-block-button.is-style-solid .wp-block-button__link {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--ink);
}

.wp-block-button.is-style-solid .wp-block-button__link:hover {
	background: var(--accent-deep);
	border-color: var(--accent-deep);
}

/* On the cream band, an outline button needs a darker edge to read */
.section--cream .wp-block-button .wp-block-button__link {
	border-color: rgba(21, 21, 26, 0.28);
	color: var(--cream-ink);
}

/* --------------------------------------------------------------------------
   Images — the block editor wraps images in <figure class="wp-block-image">;
   keep the decorative brand art positioned exactly as before.
   -------------------------------------------------------------------------- */
.wp-block-image.hero-art,
.wp-block-image.discipline-shot {
	margin: 0;
}

.wp-block-image.hero-art,
.wp-block-image.brand-art,
.wp-block-image.discipline-shot {
	display: block;
	padding: 0;
}

.wp-block-image.hero-art img,
.wp-block-image.brand-art img {
	width: 100%;
	height: auto;
}

.discipline-art .wp-block-image {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Service number — in the original this was a <span>; as a block it is a <p>,
   which the more specific ".service-cell p" / ".service-row p" rules would
   otherwise override. Re-assert with higher specificity.
   -------------------------------------------------------------------------- */
.service-cell .service-num,
.service-row-title .service-num {
	font-size: 0.68rem;
	letter-spacing: 0.22em;
	color: var(--paper-faint);
	display: block;
	font-variant-numeric: tabular-nums;
	line-height: 1.7;
	max-width: none;
}

.service-cell .service-num {
	margin-bottom: 2.5rem;
}

.service-row-title .service-num {
	margin-bottom: 0;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Markets list — original used <ul><li> with a CSS counter. As blocks each
   row is a .market-item group; reproduce the grid, counter and hover.
   -------------------------------------------------------------------------- */
.markets-list .market-item {
	counter-increment: market;
	border-bottom: 1px solid var(--line);
	display: grid;
	grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 2rem;
	align-items: baseline;
	padding: 1.6rem 0;
	transition: padding-left 0.35s ease;
}

.markets-list .market-item:hover {
	padding-left: 0.85rem;
}

.markets-list .market-item::before {
	content: counter(market, decimal-leading-zero);
	font-size: 0.7rem;
	letter-spacing: 0.22em;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}

.markets-list .market-item:hover .market-name {
	color: var(--accent);
}

@media (max-width: 760px) {
	.markets-list .market-item {
		grid-template-columns: 3rem 1fr;
	}
	.markets-list .market-item .market-note {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Newsroom strip — original spans; now paragraphs (.newsroom).
   -------------------------------------------------------------------------- */
.newsrooms .newsroom {
	font-family: var(--serif);
	font-size: clamp(1.05rem, 1.75vw, 1.3rem);
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--paper-dim);
}

/* --------------------------------------------------------------------------
   Founder meta — original <dl><dt><dd>; now paragraphs (.meta-dt/.meta-dd).
   -------------------------------------------------------------------------- */
.founder-meta .meta-dt {
	font-size: 0.68rem;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 0.5rem;
}

.founder-meta .meta-dd {
	font-family: var(--serif);
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Positioning statement — original <blockquote>; now a paragraph
   (.statement-quote) so it edits cleanly as a native block.
   -------------------------------------------------------------------------- */
.statement .statement-quote {
	font-family: var(--serif);
	font-size: clamp(1.6rem, 3.4vw, 2.6rem);
	font-weight: 500;
	line-height: 1.45;
	max-width: 28ch;
	margin: 0 auto;
}

.statement .statement-quote em {
	font-style: italic;
	color: var(--accent);
}

.section--cream .statement-quote {
	color: var(--cream-ink);
}

.section--cream .statement-quote em {
	color: var(--bronze);
}

/* --------------------------------------------------------------------------
   Contact form (WPForms) styled to match the original form fields.
   -------------------------------------------------------------------------- */
.wpforms-container .wpforms-form .wpforms-field {
	padding: 0 0 1.75rem;
}

/* Two-column field grid, matching the original .form-grid (message full width).
   The hidden honeypot field is display:none and takes no grid cell. */
.wpforms-container .wpforms-form .wpforms-field-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 1.75rem;
}

.wpforms-container .wpforms-form .wpforms-field-container > .wpforms-field-textarea {
	grid-column: 1 / -1;
}

@media (max-width: 560px) {
	.wpforms-container .wpforms-form .wpforms-field-container {
		grid-template-columns: 1fr;
	}
}

.wpforms-container .wpforms-form .wpforms-field-label {
	display: block;
	font-size: 0.68rem;
	font-weight: 400;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--paper-faint);
	margin-bottom: 0.6rem;
}

.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form select,
.wpforms-container .wpforms-form textarea {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(242, 239, 233, 0.4);
	color: var(--paper);
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 300;
	padding: 0.65rem 0;
	border-radius: 0;
	box-shadow: none;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpforms-container .wpforms-form select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23c2a878' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.25rem center;
	cursor: pointer;
}

.wpforms-container .wpforms-form select option {
	background: var(--ink-2);
	color: var(--paper);
}

.wpforms-container .wpforms-form textarea {
	resize: none;
	min-height: 8rem;
}

.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form select:focus,
.wpforms-container .wpforms-form textarea:focus {
	outline: none;
	border-bottom-color: var(--accent);
	box-shadow: 0 1px 0 var(--accent);
}

.wpforms-container .wpforms-form .wpforms-required-label {
	color: var(--accent);
}

/* Submit button — reuse the solid gold button look. WPForms sets its own
   button colours via an equally-specific selector loaded after this file, so
   the colour declarations use !important to win reliably. */
.wpforms-container .wpforms-form button[type="submit"],
.wpforms-container .wpforms-form .wpforms-submit {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	font-family: var(--sans);
	font-size: 0.76rem;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	padding: 1.05rem 2.1rem;
	border: 1px solid var(--accent) !important;
	border-radius: 0 !important;
	background-color: var(--accent) !important;
	color: var(--ink) !important;
	cursor: pointer;
	margin-top: 1rem;
	box-shadow: none !important;
	transition: background-color 0.35s ease, border-color 0.35s ease;
}

.wpforms-container .wpforms-form button[type="submit"]::after,
.wpforms-container .wpforms-form .wpforms-submit::after {
	content: "\2192";
	display: inline-block;
	transition: transform 0.35s ease;
}

.wpforms-container .wpforms-form button[type="submit"]:hover,
.wpforms-container .wpforms-form .wpforms-submit:hover {
	background-color: var(--accent-deep) !important;
	border-color: var(--accent-deep) !important;
}

.wpforms-container .wpforms-form .wpforms-submit:hover::after {
	transform: translateX(5px);
}

/* Neutralise WPForms' button colour CSS variables too, for good measure. */
.wpforms-container {
	--wpforms-button-background-color: #c2a878;
	--wpforms-button-text-color: #0b0b0d;
	--wpforms-button-border-color: #c2a878;
}

.wpforms-container .wpforms-form .wpforms-field-description,
.wpforms-container .wpforms-confirmation-container-full {
	font-size: 0.85rem;
	color: var(--paper-faint);
}
