/*
Theme Name: Marigold
Theme URI: https://demo.tanvirdesign.com/
Author: creativepersonal
Author URI: https://themeforest.net/user/creativepersonal
Description: Marigold is a warm, modern block theme for personal brands, consultants, fractional CMOs, coaches and freelancers. Built for the Site Editor with theme.json, it ships with page patterns for home, about, services, work, pricing, journal and contact, three style variations, local fonts and fluid typography. Install the Marigold Core plugin for projects, testimonials, the contact form block and one-click demo import.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marigold
Tags: one-column, two-columns, three-columns, four-columns, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, block-styles, style-variations, template-editing, threaded-comments, translation-ready, wide-blocks, blog, portfolio

Marigold WordPress Theme, (C) 2026 creativepersonal.
Marigold is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   TABLE OF CONTENTS
   01. Tokens
   02. Base
   03. Typography helpers and block styles
   04. Buttons
   05. Icons
   06. Header and navigation
   07. Sections and layout helpers
   08. Hero and portrait
   09. Logo strip
   10. Lists, quote card and cards
   11. Case studies (projects)
   12. Stats and process
   13. Posts grid and post meta
   14. Call to action
   15. Footer
   16. Page hero and banners
   17. FAQ (details block)
   18. Testimonials
   19. Pricing
   20. Article (single post)
   21. Contact details
   22. 404, search and comments
   23. Scroll reveal
   24. Responsive
   ========================================================================== */

/* 01. Tokens ------------------------------------------------------------- */

:root {
	--mg-bg: var(--wp--preset--color--base);
	--mg-surface: var(--wp--preset--color--surface);
	--mg-deep: var(--wp--preset--color--deep);
	--mg-accent: var(--wp--preset--color--accent);
	--mg-accent-hover: var(--wp--preset--color--accent-hover);
	--mg-accent-soft: var(--wp--preset--color--accent-soft);
	--mg-accent-text: var(--wp--preset--color--accent-text);
	--mg-ink: var(--wp--preset--color--contrast);
	--mg-muted: var(--wp--preset--color--muted);
	--mg-line: var(--wp--custom--line);
	--mg-radius-sm: var(--wp--custom--radius--sm);
	--mg-radius-md: var(--wp--custom--radius--md);
	--mg-radius-card: var(--wp--custom--radius--card);
	--mg-radius-lg: var(--wp--custom--radius--lg);
	--mg-radius-pill: var(--wp--custom--radius--pill);
	--mg-shadow-soft: var(--wp--custom--shadow--soft);
	--mg-shadow-card: var(--wp--custom--shadow--card);
	--mg-ease: var(--wp--custom--ease);
	--mg-header-height: var(--wp--custom--header-height);
	--mg-section: var(--wp--preset--spacing--70);
	--mg-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
	--mg-i-arrow-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
	--mg-i-arrow-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E");
	--mg-i-arrow-left-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E");
	--mg-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--mg-i-check-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--mg-i-compass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m15.5 8.5-2 5-5 2 2-5z'/%3E%3C/svg%3E");
	--mg-i-compass-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m15.5 8.5-2 5-5 2 2-5z'/%3E%3C/svg%3E");
	--mg-i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m3.5 7.5 8.5 6 8.5-6'/%3E%3C/svg%3E");
	--mg-i-mail-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m3.5 7.5 8.5 6 8.5-6'/%3E%3C/svg%3E");
	--mg-i-megaphone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10v4h4l9 5V5L7 10zM19 9a4 4 0 0 1 0 6M7 14l1.5 5h3L10 15.5'/%3E%3C/svg%3E");
	--mg-i-megaphone-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10v4h4l9 5V5L7 10zM19 9a4 4 0 0 1 0 6M7 14l1.5 5h3L10 15.5'/%3E%3C/svg%3E");
	--mg-i-pen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E");
	--mg-i-pen-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E");
	--mg-i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3l2 5-2.5 1.5a11 11 0 0 0 6 6L15 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
	--mg-i-phone-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3l2 5-2.5 1.5a11 11 0 0 0 6 6L15 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
	--mg-i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
	--mg-i-pin-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
	--mg-i-quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 7c-3 .8-5 3.2-5 6.5V17h4.5v-4.5H7.2c.2-1.7 1.3-3 3.3-3.6zM19 7c-3 .8-5 3.2-5 6.5V17h4.5v-4.5h-2.3c.2-1.7 1.3-3 3.3-3.6z'/%3E%3C/svg%3E");
	--mg-i-quote-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 7c-3 .8-5 3.2-5 6.5V17h4.5v-4.5H7.2c.2-1.7 1.3-3 3.3-3.6zM19 7c-3 .8-5 3.2-5 6.5V17h4.5v-4.5h-2.3c.2-1.7 1.3-3 3.3-3.6z'/%3E%3C/svg%3E");
	--mg-i-rocket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 14.5 7 12c1.6-4.6 5.6-8.4 13-9-.6 7.4-4.4 11.4-9 13z'/%3E%3Ccircle cx='14.5' cy='9.5' r='1.6'/%3E%3Cpath d='M7 12H3.5L6 8.5h4M12 17v3.5l3.5-2.5v-4M6 18c-1 1-1.5 2.4-1.5 3.5 1.1 0 2.5-.5 3.5-1.5'/%3E%3C/svg%3E");
	--mg-i-rocket-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 14.5 7 12c1.6-4.6 5.6-8.4 13-9-.6 7.4-4.4 11.4-9 13z'/%3E%3Ccircle cx='14.5' cy='9.5' r='1.6'/%3E%3Cpath d='M7 12H3.5L6 8.5h4M12 17v3.5l3.5-2.5v-4M6 18c-1 1-1.5 2.4-1.5 3.5 1.1 0 2.5-.5 3.5-1.5'/%3E%3C/svg%3E");
	--mg-i-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c.6 4.6 2.4 6.4 7 7-4.6.6-6.4 2.4-7 7-.6-4.6-2.4-6.4-7-7 4.6-.6 6.4-2.4 7-7z'/%3E%3C/svg%3E");
	--mg-i-sparkle-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c.6 4.6 2.4 6.4 7 7-4.6.6-6.4 2.4-7 7-.6-4.6-2.4-6.4-7-7 4.6-.6 6.4-2.4 7-7z'/%3E%3C/svg%3E");
	--mg-i-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.8 6.2.8-4.5 4.4 1.1 6.2-5.6-3-5.6 3 1.1-6.2L3 9.6l6.2-.8z'/%3E%3C/svg%3E");
	--mg-i-star-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.8 6.2.8-4.5 4.4 1.1 6.2-5.6-3-5.6 3 1.1-6.2L3 9.6l6.2-.8z'/%3E%3C/svg%3E");
	--mg-i-target: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3C/svg%3E");
	--mg-i-target-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3C/svg%3E");
	--mg-i-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14.5a6.5 6.5 0 0 1 3.5 5.5'/%3E%3C/svg%3E");
	--mg-i-users-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14.5a6.5 6.5 0 0 1 3.5 5.5'/%3E%3C/svg%3E");
	--mg-i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
	--mg-i-plus-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
	--mg-i-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
	--mg-i-minus-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2925' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
	--mg-i-star-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.8 6.2.8-4.5 4.4 1.1 6.2-5.6-3-5.6 3 1.1-6.2L3 9.6l6.2-.8z'/%3E%3C/svg%3E");
}

/* 02. Base --------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--mg-header-height);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

::selection {
	background-color: var(--mg-accent-soft);
	color: var(--mg-ink);
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--mg-accent-text);
	outline-offset: 3px;
}

strong,
b {
	color: var(--mg-ink);
	font-weight: 600;
}

:where(.wp-site-blocks) > main {
	margin-block-start: 0;
}

/* Italic serif accent word inside headings: select a word and press Ctrl/Cmd + I. */
:is(h1, h2, h3, h4, .wp-block-heading, .wp-block-post-title, .wp-block-query-title) em {
	color: var(--mg-accent-text);
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
}

.has-display-font-size {
	line-height: 1.02 !important;
	letter-spacing: -0.035em;
}

/* 03. Typography helpers and block styles ------------------------------- */

.is-style-eyebrow {
	color: var(--mg-accent-text);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.is-style-lead {
	color: var(--mg-ink);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.5;
	letter-spacing: -0.01em;
}

.is-style-lead.mg-strong {
	font-weight: 600;
}

.is-style-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	padding: 12px 18px;
	border-radius: var(--mg-radius-pill);
	background-color: var(--mg-surface);
	box-shadow: var(--mg-shadow-soft);
	color: var(--mg-ink);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.3;
	white-space: nowrap;
}

.is-style-badge::before {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background-color: var(--wp--custom--success);
	box-shadow: 0 0 0 4px rgba(59, 178, 115, 0.18);
}

.mg-tag,
.wp-block-post-terms.mg-tag a,
.is-style-tag {
	display: inline-block;
	padding: 6px 12px;
	border-radius: var(--mg-radius-pill);
	background-color: var(--mg-accent-soft);
	color: var(--mg-ink);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.2;
	text-decoration: none;
}

.wp-block-post-terms.mg-tag {
	padding: 0;
	background: none;
}

.wp-block-post-terms.mg-tag .wp-block-post-terms__separator {
	display: none;
}

.wp-block-post-terms.mg-tag a + a {
	margin-left: 6px;
}

/* 04. Buttons ------------------------------------------------------------ */

.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--mg-ease);
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* Arrow icon after every button label (add the class "no-arrow" to a button to hide it). */
.wp-block-button:not(.no-arrow) .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: var(--mg-i-arrow) center / contain no-repeat;
	mask: var(--mg-i-arrow) center / contain no-repeat;
	transition: transform 0.25s var(--mg-ease);
}

.wp-block-button:not(.no-arrow) .wp-block-button__link:hover::after {
	transform: translate(2px, -2px);
}

.wp-block-button.is-style-soft .wp-block-button__link {
	background-color: var(--mg-accent-soft);
	color: var(--mg-ink);
}

.wp-block-button.is-style-soft .wp-block-button__link:hover {
	background-color: color-mix(in srgb, var(--mg-accent-soft) 55%, var(--mg-accent));
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1.5px solid currentColor;
	background-color: transparent;
	color: var(--mg-ink);
}

.wp-block-buttons.is-layout-flex {
	gap: 12px;
}

/* 05. Icons ---------------------------------------------------------------
   Add "mg-ico mg-ico--NAME" to a heading, paragraph or group to show an
   icon in an amber circle. Names: arrow, check, compass, mail, megaphone,
   pen, phone, pin, quote, rocket, sparkle, star, target, users.
   ------------------------------------------------------------------------ */

.mg-ico::before {
	content: "";
	display: block;
	flex: none;
	width: 48px;
	height: 48px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--mg-icon, none) center / 22px 22px no-repeat, var(--mg-accent);
}

.mg-ico.is-layout-flex::before,
.mg-ico.wp-block-group.is-horizontal::before {
	margin-bottom: 0;
}

.mg-ico--arrow { --mg-icon: var(--mg-i-arrow-ink); }
.mg-ico--check { --mg-icon: var(--mg-i-check-ink); }
.mg-ico--compass { --mg-icon: var(--mg-i-compass-ink); }
.mg-ico--mail { --mg-icon: var(--mg-i-mail-ink); }
.mg-ico--megaphone { --mg-icon: var(--mg-i-megaphone-ink); }
.mg-ico--pen { --mg-icon: var(--mg-i-pen-ink); }
.mg-ico--phone { --mg-icon: var(--mg-i-phone-ink); }
.mg-ico--pin { --mg-icon: var(--mg-i-pin-ink); }
.mg-ico--quote { --mg-icon: var(--mg-i-quote-ink); }
.mg-ico--rocket { --mg-icon: var(--mg-i-rocket-ink); }
.mg-ico--sparkle { --mg-icon: var(--mg-i-sparkle-ink); }
.mg-ico--star { --mg-icon: var(--mg-i-star-ink); }
.mg-ico--target { --mg-icon: var(--mg-i-target-ink); }
.mg-ico--users { --mg-icon: var(--mg-i-users-ink); }

/* 06. Header and navigation --------------------------------------------- */

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.admin-bar header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}

header.wp-block-template-part.is-scrolled {
	background-color: color-mix(in srgb, var(--mg-bg) 82%, transparent);
	box-shadow: 0 1px 0 var(--mg-line);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.mg-header {
	min-height: var(--mg-header-height);
}

.mg-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.mg-brand::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background-color: var(--mg-accent);
}

.mg-brand a {
	color: inherit;
}

.wp-block-site-logo + .mg-brand::before {
	display: none;
}

.mg-menu .wp-block-navigation-item__content {
	position: relative;
	padding-block: 6px;
	color: var(--mg-ink);
}

.mg-menu .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	border-radius: 2px;
	background-color: var(--mg-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--mg-ease);
}

.mg-menu .wp-block-navigation-item__content:hover::after,
.mg-menu .current-menu-item > .wp-block-navigation-item__content::after,
.mg-menu [aria-current="page"]::after {
	transform: scaleX(1);
}

.mg-menu .wp-block-navigation__submenu-container {
	min-width: 220px !important;
	padding: 10px !important;
	border: 0 !important;
	border-radius: var(--mg-radius-sm);
	background-color: var(--mg-surface) !important;
	box-shadow: var(--mg-shadow-soft);
}

.mg-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 12px;
	text-transform: none;
	letter-spacing: 0;
	font-size: 15px;
}

/* Hamburger toggle */
.mg-menu .wp-block-navigation__responsive-container-open,
.mg-menu .wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background-color: var(--mg-accent-soft);
	color: var(--mg-ink);
}

.mg-menu .wp-block-navigation__responsive-container-close {
	display: inline-flex;
	top: calc((var(--mg-header-height) - 46px) / 2);
	right: 0;
}

/* Mobile drawer */
.mg-menu .wp-block-navigation__responsive-container.is-menu-open {
	padding: 0 clamp(24px, 3vw, 40px) 40px;
	background-color: var(--mg-bg) !important;
	color: var(--mg-ink) !important;
}

.mg-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: calc(var(--mg-header-height) + 12px);
}

.mg-menu .is-menu-open .wp-block-navigation__container {
	width: 100%;
	gap: 0 !important;
	align-items: stretch !important;
}

.mg-menu .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--mg-line);
}

.mg-menu .is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding-block: 14px !important;
	font-size: 28px;
	font-weight: 500;
	letter-spacing: -0.02em;
	text-transform: none;
}

.mg-menu .is-menu-open .wp-block-navigation-item__content::after {
	display: none;
}

.mg-menu .is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	color: var(--mg-accent-text);
}

/* 07. Sections and layout helpers --------------------------------------- */

.mg-section {
	padding-top: var(--mg-section);
	padding-bottom: var(--mg-section);
}

.mg-section.mg-flush-top {
	padding-top: 0;
}

.mg-section.mg-flush-bottom {
	padding-bottom: 0;
}

.mg-section-head {
	margin-bottom: 56px;
}

.mg-section-head + * {
	margin-block-start: 0 !important;
}

.mg-head-title {
	max-width: 720px;
}

.mg-split {
	gap: clamp(48px, 6vw, 80px) !important;
}

.mg-grid-2,
.mg-grid-3,
.mg-grid-4 {
	display: grid !important;
	gap: 28px;
}

.mg-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.mg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.mg-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

.mg-grid-2 > *,
.mg-grid-3 > *,
.mg-grid-4 > * {
	margin: 0 !important;
}

.wp-block-group.is-style-card {
	padding: 36px;
	border-radius: var(--mg-radius-card);
}

.mg-hover-lift {
	transition: transform 0.35s var(--mg-ease), box-shadow 0.35s ease;
}

.mg-hover-lift:hover {
	box-shadow: var(--mg-shadow-card);
	transform: translateY(-4px);
}

/* 08. Hero and portrait -------------------------------------------------- */

.mg-hero {
	padding-top: 48px;
	padding-bottom: var(--mg-section);
}

.mg-hero-columns {
	gap: clamp(48px, 6vw, 88px) !important;
}

.mg-portrait-wrap {
	position: relative;
	width: 100%;
	max-width: 460px;
}

.mg-portrait-wrap .wp-block-image,
.mg-portrait-wrap .wp-block-image img {
	width: 100%;
	margin: 0;
}

.mg-portrait-wrap .wp-block-image img {
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	object-fit: cover;
}

.mg-portrait-wrap .is-style-badge {
	position: absolute;
	right: -8px;
	bottom: 36px;
	margin: 0;
}

.mg-hero-text {
	max-width: 560px;
}

.wp-block-image.is-style-bw img {
	filter: grayscale(100%);
}

.mg-portrait img {
	width: 100%;
	height: 640px;
	object-fit: cover;
}

.wp-block-image.is-style-rounded img,
.wp-block-image.is-style-circle-mask img {
	border-radius: 9999px;
}

/* 09. Logo strip --------------------------------------------------------- */

.mg-logos {
	padding-top: 48px;
	padding-bottom: 48px;
}

.mg-wordmarks {
	gap: 24px 40px !important;
}

.mg-wordmarks p {
	margin: 0;
	color: var(--mg-muted);
	line-height: 1.4;
	opacity: 0.8;
	user-select: none;
}

.mg-wm-1 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.mg-wm-2 { font-family: var(--wp--preset--font-family--serif); font-size: 32px; font-style: italic; }
.mg-wm-3 { font-size: 20px; font-weight: 600; letter-spacing: 0.22em; }
.mg-wm-4 { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; }
.mg-wm-5 { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.mg-wm-6 { font-size: 22px; font-weight: 800; letter-spacing: 0.04em; }

.mg-wordmarks .wp-block-image img {
	max-height: 40px;
	width: auto;
	border-radius: 0;
	opacity: 0.8;
}

/* 10. Lists, quote card and cards --------------------------------------- */

ul.is-style-dots,
ul.is-style-checks {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-left: 0;
	list-style: none;
}

ul.is-style-dots.has-small-font-size {
	gap: 12px;
	line-height: 1.55;
}

ul.is-style-dots > li,
ul.is-style-checks > li {
	position: relative;
	margin: 0;
	padding-left: 24px;
}

ul.is-style-dots > li::before {
	content: "";
	position: absolute;
	top: 0.68em;
	left: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--mg-accent);
}

ul.is-style-dots.has-small-font-size > li {
	padding-left: 20px;
}

ul.is-style-dots.has-small-font-size > li::before {
	top: 0.62em;
	width: 7px;
	height: 7px;
}

ul.is-style-checks > li {
	padding-left: 30px;
	color: var(--mg-ink);
}

ul.is-style-checks > li::before {
	content: "";
	position: absolute;
	top: 0.2em;
	left: 0;
	width: 18px;
	height: 18px;
	background-color: var(--mg-accent-text);
	-webkit-mask: var(--mg-i-check) center / contain no-repeat;
	mask: var(--mg-i-check) center / contain no-repeat;
}

.wp-block-quote.is-style-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
	margin: 0;
	padding: clamp(28px, 4vw, 56px);
	border: 0;
	border-radius: var(--mg-radius-lg);
	background-color: var(--mg-surface);
	font-size: clamp(30px, 3.2vw, 44px);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.wp-block-quote.is-style-card::before {
	content: "";
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--mg-i-quote-ink) center / 22px 22px no-repeat, var(--mg-accent);
}

.wp-block-quote.is-style-card p {
	margin: 0;
}

.wp-block-quote.is-style-card cite {
	color: var(--mg-muted);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.has-surface-background-color .wp-block-quote.is-style-card,
.wp-block-quote.is-style-card.has-base-background-color {
	background-color: var(--mg-bg);
}

/* 11. Case studies (projects) ------------------------------------------- */

.mg-cases .wp-block-post-template,
.wp-block-post-template.mg-cases {
	gap: 40px 28px;
}

.mg-case {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.mg-case > * {
	margin: 0 !important;
}

.mg-case .wp-block-post-featured-image,
.mg-case .wp-block-image {
	overflow: hidden;
	border-radius: var(--mg-radius-md);
}

.mg-case .wp-block-post-featured-image img,
.mg-case .wp-block-image img {
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: 0;
	object-fit: cover;
	transition: transform 0.6s var(--mg-ease);
}

.mg-case:hover .wp-block-post-featured-image img,
.mg-case:hover .wp-block-image img {
	transform: scale(1.04);
}

.mg-case-meta {
	gap: 4px !important;
}

.mg-case-company {
	color: var(--mg-accent-text);
	font-size: var(--wp--preset--font-size--small);
}

.mg-case-company p {
	margin: 0;
}

/* 12. Stats and process -------------------------------------------------- */

.mg-stats {
	margin-bottom: 56px;
}

.mg-stat {
	gap: 14px !important;
	padding-top: 24px;
	border-top: 1px solid var(--mg-line);
}

.mg-stat-value {
	color: var(--mg-ink);
	font-size: clamp(48px, 4.5vw, 60px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.04em;
}

.mg-step {
	gap: 12px !important;
	padding-top: 24px;
	border-top: 2px solid var(--mg-accent);
}

.mg-step-num {
	color: var(--mg-accent-text);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

/* 13. Posts grid and post meta ------------------------------------------ */

.mg-posts .wp-block-post-template {
	gap: 48px 28px;
}

.mg-post-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.mg-post-card > * {
	margin: 0 !important;
}

.mg-post-card .wp-block-post-featured-image {
	overflow: hidden;
	border-radius: var(--mg-radius-md);
}

.mg-post-card .wp-block-post-featured-image img {
	aspect-ratio: 3 / 2;
	border-radius: 0;
	object-fit: cover;
	transition: transform 0.5s var(--mg-ease);
}

.mg-post-card:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

.mg-post-card .wp-block-post-title a:hover {
	color: var(--mg-accent-text);
}

.mg-post-card .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.mg-post-meta {
	gap: 10px !important;
	font-size: var(--wp--preset--font-size--small);
}

.mg-post-meta > * {
	margin: 0;
}

.wp-block-query-pagination {
	gap: 12px;
	margin-top: 56px !important;
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: var(--mg-radius-pill);
	background-color: var(--mg-accent-soft);
	color: var(--mg-ink);
	text-decoration: none;
}

.wp-block-query-pagination .page-numbers.current {
	background-color: var(--mg-accent);
}

/* 14. Call to action ----------------------------------------------------- */

.mg-cta {
	gap: 40px !important;
	padding: clamp(36px, 5vw, 72px) clamp(28px, 5vw, 72px);
	border-radius: 36px;
}

.mg-cta-copy {
	flex: 1 1 420px;
	gap: 18px !important;
}

.mg-cta-copy .is-style-lead {
	max-width: 640px;
}

/* 15. Footer ------------------------------------------------------------- */

.mg-footer {
	padding-top: 80px;
	font-size: var(--wp--preset--font-size--small);
}

.mg-footer-top {
	gap: 48px !important;
	padding-bottom: 56px;
}

.mg-footer-about {
	max-width: 380px;
	gap: 18px !important;
}

.mg-footer-cols {
	gap: 48px 72px !important;
}

.mg-footer-col {
	gap: 14px !important;
}

.mg-footer-heading {
	color: var(--mg-muted) !important;
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px !important;
	font-weight: 600;
	letter-spacing: 0.08em !important;
	text-transform: uppercase;
}

.mg-footer a {
	color: var(--mg-muted);
	text-decoration: none;
}

.mg-footer a:hover {
	color: var(--mg-ink);
}

.mg-footer .mg-brand a {
	color: var(--mg-ink);
}

.mg-footer .wp-block-navigation {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.mg-footer .wp-block-navigation__container {
	gap: 14px;
}

.mg-footer-col p {
	margin: 0;
}

.mg-footer-bottom {
	gap: 12px !important;
	padding-block: 28px;
	border-top: 1px solid var(--mg-line);
}

.mg-footer-bottom p {
	margin: 0;
}

/* Social icons */
.wp-block-social-links.mg-socials {
	gap: 10px;
}

.wp-block-social-links.mg-socials .wp-social-link {
	background-color: var(--mg-accent-soft) !important;
	color: var(--mg-ink) !important;
	transition: background-color 0.2s ease;
}

.wp-block-social-links.mg-socials .wp-social-link:hover {
	background-color: var(--mg-accent) !important;
	transform: none;
}

.wp-block-social-links.mg-socials .wp-social-link a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
}

.wp-block-social-links.mg-socials .wp-social-link svg {
	width: 18px;
	height: 18px;
}

.wp-block-social-links.mg-socials.is-style-outline .wp-social-link {
	border: 1px solid var(--mg-line);
	background-color: transparent !important;
}

.wp-block-social-links.mg-socials.is-style-outline .wp-social-link:hover {
	background-color: var(--mg-accent) !important;
}

/* 16. Page hero and banners --------------------------------------------- */

.mg-page-hero {
	padding-top: 48px;
	padding-bottom: 56px;
}

.mg-page-hero-inner {
	max-width: 880px;
	gap: 20px !important;
}

.mg-banner img {
	width: 100%;
	height: 520px;
	object-fit: cover;
}

.mg-featured-cover img {
	max-height: 620px;
	object-fit: cover;
}

/* 17. FAQ (details block) ----------------------------------------------- */

.wp-block-details {
	border-bottom: 1px solid var(--mg-line);
}

.wp-block-details + .wp-block-details {
	margin-top: 0;
}

.wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 26px;
	color: var(--mg-ink);
	font-size: var(--wp--preset--font-size--h-4, 18px);
	font-weight: 600;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "";
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--mg-i-plus-ink) center / 14px 14px no-repeat, var(--mg-accent-soft);
	transition: background-color 0.25s ease;
}

.wp-block-details[open] summary::after {
	background: var(--mg-i-minus-ink) center / 14px 14px no-repeat, var(--mg-accent);
}

.wp-block-details > :not(summary) {
	max-width: 640px;
	margin-top: 0;
	padding-bottom: 28px;
}

/* 18. Testimonials ------------------------------------------------------- */

.mg-testimonial {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	height: 100%;
}

.mg-testimonial > * {
	margin: 0 !important;
}

.mg-testimonial::before {
	content: "";
	display: block;
	width: 96px;
	height: 16px;
	background-color: var(--mg-accent);
	-webkit-mask: var(--mg-i-star-fill) left center / 16px 16px space;
	mask: var(--mg-i-star-fill) left center / 16px 16px space;
}

.mg-testimonial-text,
.mg-testimonial .wp-block-post-content {
	color: var(--mg-ink);
	font-size: 20px;
	line-height: 1.45;
	letter-spacing: -0.01em;
}

.mg-testimonial .wp-block-post-content p {
	margin: 0;
}

.mg-person {
	gap: 14px !important;
}

.mg-person-name {
	color: var(--mg-ink);
	font-weight: 600;
	line-height: 1.3;
}

.mg-person-role {
	font-size: 14px;
}

.mg-person-name,
.mg-person-role,
.mg-person-role p {
	margin: 0 !important;
}

.mg-avatar,
.mg-person .wp-block-post-featured-image {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px !important;
	height: 48px;
	margin: 0 !important;
	overflow: hidden;
	border-radius: 50%;
	background-color: var(--mg-accent-soft);
	color: var(--mg-ink);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.mg-person .wp-block-post-featured-image img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

/* 19. Pricing ------------------------------------------------------------ */

.mg-plans {
	align-items: start !important;
	gap: 24px !important;
}

.mg-plan {
	gap: 22px !important;
	padding: clamp(28px, 3vw, 40px) !important;
	border: 2px solid transparent;
	border-radius: var(--mg-radius-lg) !important;
}

.mg-plan.is-layout-flex {
	align-items: stretch !important;
}

.mg-plan > * {
	margin: 0 !important;
}

.mg-plan > .wp-block-buttons > .wp-block-button {
	width: 100%;
}

.mg-plan.mg-plan--featured {
	border-color: var(--mg-accent);
}

.mg-plan-head {
	gap: 10px !important;
}

.mg-plan-badge {
	margin: 0;
	padding: 6px 12px;
	border-radius: var(--mg-radius-pill);
	background-color: var(--mg-ink);
	color: var(--wp--preset--color--white);
	font-size: 14px;
	line-height: 1.2;
}

.mg-plan-price {
	gap: 8px !important;
	align-items: baseline !important;
}

.mg-plan-amount {
	margin: 0;
	color: var(--mg-ink);
	font-size: clamp(48px, 4.5vw, 60px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.04em;
}

.mg-plan-period {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

.mg-plan .wp-block-button,
.mg-plan .wp-block-button__link {
	width: 100%;
}

.mg-plan ul.is-style-checks {
	padding-top: 24px;
	border-top: 1px solid var(--mg-line);
	font-size: var(--wp--preset--font-size--small);
}

.mg-plan ul.is-style-checks > li::before {
	top: 0.15em;
}

/* 20. Article (single post) --------------------------------------------- */

.mg-article-hero {
	padding-top: 48px;
	padding-bottom: 48px;
}

.mg-article-hero-inner {
	gap: 22px !important;
}

.mg-back-link a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--mg-ink);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.mg-back-link a::before {
	content: "";
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: var(--mg-i-arrow-left) center / contain no-repeat;
	mask: var(--mg-i-arrow-left) center / contain no-repeat;
}

.mg-back-link a:hover {
	color: var(--mg-accent-text);
}

.mg-article {
	color: var(--mg-ink);
	font-size: 19px;
	line-height: 1.7;
}

.mg-article > h2,
.mg-article > .wp-block-heading:is(h2) {
	margin-top: 48px;
	margin-bottom: 16px;
	font-size: 30px;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.mg-article > h3 {
	margin-top: 40px;
	font-size: 24px;
}

.mg-article > p + p {
	margin-top: 22px;
}

.mg-article .wp-block-quote:not(.is-style-card),
.mg-article blockquote:not([class]) {
	margin-block: 40px;
	padding-left: 24px;
	border-left: 3px solid var(--mg-accent);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 30px;
	font-style: italic;
	line-height: 1.3;
}

.mg-article a {
	color: var(--mg-accent-text);
}

.mg-author-box {
	gap: 24px !important;
	margin-top: 64px !important;
	padding-top: 32px;
	border-top: 1px solid var(--mg-line);
}

.mg-post-nav {
	max-width: 720px;
	margin: 32px auto 0 !important;
	gap: 16px 32px !important;
	font-size: var(--wp--preset--font-size--small);
}

.mg-post-nav a {
	color: var(--mg-ink);
	text-decoration: none;
}

.mg-post-nav a:hover {
	color: var(--mg-accent-text);
}

.mg-author-box .wp-block-avatar img {
	border-radius: 50%;
}

/* 21. Contact details ---------------------------------------------------- */

.mg-contact-list {
	gap: 16px !important;
}

.mg-contact-item {
	gap: 18px !important;
	padding: 24px;
	border-radius: var(--mg-radius-md);
}

.mg-contact-item > * {
	margin: 0;
}

.mg-contact-label {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

.mg-contact-value {
	margin: 0;
	color: var(--mg-ink);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
}

.mg-contact-value a {
	color: inherit;
	text-decoration: none;
}

.mg-contact-value a:hover {
	color: var(--mg-accent-text);
}

/* 22. 404, search and comments ------------------------------------------ */

.mg-error {
	padding-block: clamp(96px, 12vw, 140px);
}

.mg-error-code {
	font-size: clamp(110px, 14vw, 160px) !important;
	line-height: 1 !important;
	letter-spacing: -0.05em !important;
}

.wp-block-search__input {
	min-height: 52px;
	padding: 12px 20px;
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius-pill);
	background-color: var(--mg-surface);
	color: var(--mg-ink);
}

.wp-block-search__inside-wrapper {
	gap: 10px;
}

.wp-block-search__button {
	margin-left: 0;
}

.wp-block-comments {
	margin-top: 64px;
}

.wp-block-comment-template .wp-block-avatar img {
	border-radius: 50%;
}

.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius-sm);
	background-color: var(--mg-surface);
	color: var(--mg-ink);
	font: inherit;
}

.wp-block-post-comments-form input:focus,
.wp-block-post-comments-form textarea:focus {
	border-color: var(--mg-accent);
	outline: none;
	box-shadow: 0 0 0 4px rgba(242, 174, 28, 0.22);
}

.sticky .mg-post-card .wp-block-post-title::before {
	content: "\2605\00a0";
	color: var(--mg-accent);
}

.wp-caption-text,
.wp-element-caption {
	margin-top: 10px;
	text-align: center;
}

.alignleft {
	float: left;
	margin-right: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
}

/* 23. Scroll reveal -------------------------------------------------------
   Add the class "mg-reveal" to any block. It fades up when it scrolls into
   view. Nothing is hidden if JavaScript is off or motion is reduced.
   ------------------------------------------------------------------------ */

.mg-js .mg-reveal {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.8s var(--mg-ease), transform 0.8s var(--mg-ease);
	transition-delay: var(--mg-delay, 0s);
}

.mg-js .mg-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	.mg-js .mg-reveal {
		opacity: 1;
		transform: none;
	}
}

/* 24. Responsive --------------------------------------------------------- */

/* Use the hamburger menu up to 1199px, like the original template. */
@media (max-width: 1199px) {
	.mg-menu .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: inline-flex;
	}

	.mg-menu .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.mg-header-cta {
		display: none !important;
	}

	.mg-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.mg-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.mg-cases .wp-block-post-template,
	.wp-block-post-template.mg-cases,
	.mg-posts .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.mg-plans {
		flex-direction: column;
		max-width: 560px;
		margin-inline: auto !important;
	}

	.mg-plans > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}

	.mg-contact-grid {
		flex-direction: column;
	}

	.mg-contact-grid > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}
}

@media (min-width: 600px) and (max-width: 1199px) {
	.mg-menu .wp-block-navigation__responsive-container.is-menu-open {
		display: flex;
	}
}

@media (max-width: 809px) {
	.mg-hero {
		padding-top: 24px;
	}

	.mg-hero-columns,
	.mg-split {
		flex-direction: column;
		gap: 48px !important;
	}

	.mg-hero-columns > .wp-block-column,
	.mg-split > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}

	.mg-portrait-wrap {
		max-width: 320px;
	}

	.mg-portrait-wrap .is-style-badge {
		right: 0;
		bottom: 16px;
	}

	.mg-wordmarks {
		justify-content: center !important;
	}

	.mg-portrait img {
		height: 460px;
	}

	.mg-banner img {
		height: 300px;
	}

	.mg-grid-2,
	.mg-grid-3,
	.mg-grid-4,
	.mg-cases .wp-block-post-template,
	.wp-block-post-template.mg-cases,
	.mg-posts .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.mg-stats.mg-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 24px 20px;
	}

	.wp-block-group.is-style-card,
	.mg-plan {
		padding: 28px !important;
	}

	.mg-cta {
		border-radius: 28px;
	}

	.mg-article {
		font-size: 17px;
	}

	.mg-article > h2 {
		font-size: 24px;
	}

	.mg-article .wp-block-quote:not(.is-style-card) {
		font-size: 24px;
	}

	.mg-menu .is-menu-open .wp-block-navigation-item__content {
		font-size: 24px;
	}

	:root {
		--mg-header-height: 72px;
	}
}

@media (max-width: 539px) {
	.mg-portrait-wrap {
		max-width: 340px;
	}

	.mg-hero .wp-block-buttons > .wp-block-button {
		flex: 1 1 auto;
	}

	.mg-hero .wp-block-button__link {
		width: 100%;
	}
}

@media (max-width: 600px) {
	.admin-bar header.wp-block-template-part {
		top: 0;
	}
}

