/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Template: generatepress
Author: Tom Usborne
Author URI: https://generatepress.com/about
Description: GeneratePress child theme for Mind Spectrum.
Version: 3.6.1.1778175694
*/

/* ────────────────────────────────────────────────────────────────────
   Mind Spectrum — design tokens
   ──────────────────────────────────────────────────────────────────── */
:root {
	--ms-navy:       #1d1d35;
	--ms-navy-deep:  #15152a;
	--ms-magenta:    #d4006a;
	--ms-magenta-soft:#fde7f0;
	--ms-bg-grey:    #eef1f6;
	--ms-bg-band:    #f5f7fb;
	--ms-text:       #3a3a4a;
	--ms-text-soft:  #5e5e72;
	--ms-border:     #e2e6ee;
	--ms-radius:     8px;
	--ms-shadow:     0 4px 24px rgba(20, 20, 50, 0.07);
}

/* ────────────────────────────────────────────────────────────────────
   GeneratePress overrides
   ──────────────────────────────────────────────────────────────────── */
.sidebar-primary,
.sidebar-secondary,
#sidebar,
.widget-area { display: none !important; }

.content-area,
#primary {
	width: 100% !important;
	float: none !important;
}

/* Strip GP container padding so our patterns control all spacing */
body.page .inside-article,
body.page .entry-content {
	padding: 0;
	margin: 0;
}
body.page .grid-container,
body.page .container { max-width: 100%; padding: 0; }

/* Header */
.site-header {
	background: #fff;
	border-bottom: 1px solid #e8e8e8;
	padding: 20px 20px!important;
}
.site-header .inside-header {
	max-width: 1140px!important;
	margin: 0 auto;
	padding: 20px 24px;
}
.main-navigation .inside-navigation {
	max-width: 1140px!important;
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
}
.main-navigation a,
.main-navigation a:visited {
	color: var(--ms-navy);
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.02em;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--ms-magenta);
}

/* Header logo width */
.site-logo {
	width: 300px;
}

/* Rainbow bar above header (rendered by functions.php) */
.ms-rainbow-bar {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1001;
	height: 6px;
	background: linear-gradient(
		90deg,
		#e91e8c 0%, #f97316 14%, #eab308 28%, #22c55e 42%,
		#06b6d4 57%, #3b82f6 71%, #8b5cf6 85%, #6366f1 100%
	);
}

/* Keep the fixed bar below the WP admin toolbar for logged-in users */
.admin-bar .ms-rainbow-bar { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .ms-rainbow-bar { top: 46px; }
}

/* Footer */
.site-footer {
	background: var(--ms-navy-deep);
	color: #888;
	padding: 0;
}
.ms-footer-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 32px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}
.ms-footer-logo img,
.ms-footer-logo .custom-logo {
	filter: brightness(0) invert(1);
	opacity: 0.85;
	width: 300px;
	height: auto;
}
.ms-footer-site-name {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.04em;
}
.ms-footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
}
.ms-footer-nav li { margin: 0; }
.ms-footer-nav a { color: #aaa; font-size: 0.85rem; text-decoration: none; }
.ms-footer-nav a:hover { color: #fff; }
.ms-footer-copyright { color: #888; font-size: 0.8rem; margin: 0; }

/* ────────────────────────────────────────────────────────────────────
   Mind Spectrum — page system
   ──────────────────────────────────────────────────────────────────── */
.ms-page {
	color: var(--ms-text);
	font-size: 1rem;
	line-height: 1.6;
}
.ms-page * { box-sizing: border-box; }

.ms-section { padding: 80px 24px; }
.ms-section--grey  { background: var(--ms-bg-grey); }
.ms-section--band  { background: var(--ms-bg-band); }
.ms-section--white { background: #fff; }
.ms-section--navy {
	background: var(--ms-navy);
	color: #fff;
	background-image:
		radial-gradient(circle at 0% 50%, rgba(212, 0, 106, 0.18) 0%, transparent 45%),
		radial-gradient(circle at 100% 50%, rgba(99, 102, 241, 0.20) 0%, transparent 45%);
}
.ms-section--navy h1,
.ms-section--navy h2,
.ms-section--navy h3,
.ms-section--navy p { color: #fff; }

.ms-container { max-width: 1140px; margin: 0 auto; }

/* Eyebrow */
.ms-eyebrow {
	color: var(--ms-magenta);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-align: center;
	margin: 0 0 14px;
}
.ms-eyebrow::after {
	content: "";
	display: block;
	width: 36px;
	height: 2px;
	background: var(--ms-magenta);
	margin: 8px auto 0;
}

.ms-h1 {
	color: var(--ms-navy);
	font-size: 2.6rem;
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 20px;
}
.ms-h2 {
	color: var(--ms-navy);
	font-size: 1.85rem;
	font-weight: 700;
	text-align: center;
	margin: 0 0 14px;
}
.ms-lead {
	color: var(--ms-text-soft);
	text-align: center;
	max-width: 640px;
	margin: 0 auto 48px;
}

/* Buttons */
.ms-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border-radius: 4px;
	transition: opacity 0.15s;
	border: 1px solid transparent;
	cursor: pointer;
}
.ms-btn:hover { opacity: 0.92; }
.ms-btn--primary       { background: var(--ms-magenta); color: #fff; }
.ms-btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.ms-btn--outline-dark  { background: transparent; color: var(--ms-navy); border-color: var(--ms-navy); }
.ms-btn svg { width: 14px; height: 14px; }

/* ── Hero ───────────────────────────────────────────────────────── */
.ms-hero { padding: 64px 24px 96px; background: #fff; }
.ms-hero__inner {
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 48px;
	align-items: center;
}
.ms-hero__visual { display: flex; justify-content: center; }
.ms-hero__visual svg { width: 100%; height: auto; max-width: 460px; }
@media (max-width: 800px) {
	.ms-hero__inner { grid-template-columns: 1fr; }
	.ms-h1 { font-size: 2rem; }
}

/* ── Card grid ──────────────────────────────────────────────────── */
.ms-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-width: 1140px;
	margin: 0 auto;
}
@media (max-width: 900px) { .ms-cards { grid-template-columns: 1fr; } }

.ms-card {
	background: #fff;
	border-radius: var(--ms-radius);
	box-shadow: var(--ms-shadow);
	padding: 32px 28px;
}
.ms-card__icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ms-magenta-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}
.ms-card__icon svg { width: 28px; height: 28px; color: var(--ms-magenta); }
.ms-card__title {
	color: var(--ms-navy);
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 16px;
}
.ms-card__list { list-style: none; padding: 0; margin: 0; }
.ms-card__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.92rem;
	color: var(--ms-text);
	padding: 5px 0;
}
.ms-card__list li::before {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 4px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.5 2.5L12 5.5'/></svg>") center/70% no-repeat,
		var(--ms-magenta);
}

.ms-globe-line {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 40px 0 0;
	color: var(--ms-text-soft);
	font-size: 0.95rem;
}
.ms-globe-line svg { width: 18px; height: 18px; color: var(--ms-navy); }

/* ── Pillars ────────────────────────────────────────────────────── */
.ms-pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	max-width: 1100px;
	margin: 0 auto;
	text-align: center;
}
@media (max-width: 900px) { 
	.ms-pillars { 
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	} 
}
@media (max-width: 600px) {
	.ms-pillars {
		grid-template-columns: 1fr;
	}
}

/* Home: force responsive collapse for inline 5-column pillar block */
@media (max-width: 900px) {
	.home .ms-pillars[style] {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 24px !important;
	}
}
@media (max-width: 600px) {
	.home .ms-pillars[style] {
		grid-template-columns: 1fr !important;
	}
}

.ms-pillar {
	padding: 28px 20px;
	border-radius: 12px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: transparent;
}
.ms-pillar:hover {
	background: var(--ms-bg-band);
	transform: translateY(-8px);
	box-shadow: 0 12px 32px rgba(212, 0, 106, 0.12);
}

.ms-pillar__icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	transition: all 0.3s ease;
	font-size: 36px;
	font-weight: 700;
}

/* Color each pillar icon differently */
.ms-pillar:nth-child(1) .ms-pillar__icon {
	background: linear-gradient(135deg, rgba(212, 0, 106, 0.15), rgba(212, 0, 106, 0.05));
	color: #d4006a;
}
.ms-pillar:nth-child(2) .ms-pillar__icon {
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.05));
	color: #a855f7;
}
.ms-pillar:nth-child(3) .ms-pillar__icon {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
	color: #3b82f6;
}
.ms-pillar:nth-child(4) .ms-pillar__icon {
	background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
	color: #22c55e;
}
.ms-pillar:nth-child(5) .ms-pillar__icon {
	background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
	color: #06b6d4;
}

.ms-pillar:hover .ms-pillar__icon {
	transform: scale(1.1);
}

.ms-pillar__icon svg { 
	width: 36px; 
	height: 36px; 
	color: inherit;
}

.ms-pillar__title {
	color: var(--ms-navy);
	font-weight: 700;
	font-size: 1rem;
	margin: 0 0 10px;
}
.ms-pillar__text {
	color: var(--ms-text);
	font-size: 0.95rem;
	max-width: 240px;
	margin: 0 auto;
	line-height: 1.5;
}

/* ── Region flags ───────────────────────────────────────────────── */
.ms-flags {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 56px;
	max-width: 900px;
	margin: 32px auto 0;
}
.ms-flag {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	font-size: 0.9rem;
	color: var(--ms-text);
	font-weight: 500;
}
.ms-flag svg { width: 44px; height: 32px; }

/* ── Big CTA ────────────────────────────────────────────────────── */
.ms-cta { padding: 72px 24px; text-align: center; }
.ms-cta__title {
	color: #fff;
	font-weight: 700;
	font-size: 1.85rem;
	margin: 0 0 12px;
}
.ms-cta__lead { color: #d8d8e8; margin: 0 0 32px; }
.ms-cta__buttons {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

/* ── Prose ──────────────────────────────────────────────────────── */
.ms-prose { max-width: 760px; margin: 0 auto; color: var(--ms-text); }
.ms-prose h2 { color: var(--ms-navy); font-weight: 700; font-size: 1.85rem; margin: 0 0 20px; }
.ms-prose h3 { color: var(--ms-navy); font-weight: 600; margin: 32px 0 12px; font-size: 1.15rem; }
.ms-prose p  { margin: 0 0 16px; line-height: 1.65; }
.ms-prose ul { margin: 0 0 16px 1.2em; padding: 0; }
.ms-prose ul li { margin: 5px 0; }
.ms-prose a  { color: var(--ms-magenta); }

/* ── Two-col split ──────────────────────────────────────────────── */
.ms-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	max-width: 1100px;
	margin: 0 auto;
	align-items: start;
}
@media (max-width: 900px) { .ms-split { grid-template-columns: 1fr; } }

.ms-stat-card {
	background: #fff;
	border-radius: var(--ms-radius);
	box-shadow: var(--ms-shadow);
	padding: 28px;
	margin-bottom: 16px;
}
.ms-stat-card__num {
	color: var(--ms-magenta);
	font-size: 2.4rem;
	font-weight: 800;
	line-height: 1;
	margin: 0 0 6px;
}
.ms-stat-card__label { color: var(--ms-navy); font-weight: 600; margin: 0; }

/* ── Service cards ──────────────────────────────────────────────── */
.ms-services {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	max-width: 1140px;
	margin: 0 auto;
}
@media (max-width: 900px) { .ms-services { grid-template-columns: 1fr; } }

.ms-service {
	background: #fff;
	border-radius: var(--ms-radius);
	box-shadow: var(--ms-shadow);
	padding: 32px;
	border-top: 4px solid var(--ms-magenta);
}
.ms-service h3 { color: var(--ms-navy); font-weight: 700; font-size: 1.1rem; margin: 0 0 8px; }
.ms-service__tag { color: var(--ms-magenta); font-style: italic; font-size: 0.92rem; margin: 0 0 18px; }
.ms-service ul { list-style: none; padding: 0; margin: 0; }
.ms-service ul li {
	font-size: 0.92rem;
	padding: 5px 0 5px 22px;
	position: relative;
	color: var(--ms-text);
}
.ms-service ul li::before {
	content: "✓";
	color: var(--ms-magenta);
	font-weight: 700;
	position: absolute;
	left: 0;
	top: 5px;
}

/* ── Contact two-col ────────────────────────────────────────────── */
.ms-contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	max-width: 1000px;
	margin: 0 auto;
}
@media (max-width: 800px) { .ms-contact { grid-template-columns: 1fr; } }

.ms-contact-card {
	background: #fff;
	border-radius: var(--ms-radius);
	box-shadow: var(--ms-shadow);
	padding: 32px;
}
.ms-contact-card h3 {
	color: var(--ms-navy);
	margin: 0 0 14px;
	font-size: 1.1rem;
	font-weight: 700;
}
.ms-contact-line {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 8px 0;
}
.ms-contact-line svg {
	width: 18px;
	height: 18px;
	color: var(--ms-magenta);
	flex-shrink: 0;
	margin-top: 3px;
}
.ms-contact-line a { color: var(--ms-text); text-decoration: none; }
.ms-contact-line a:hover { color: var(--ms-magenta); }

/* ── Inner-page hero (smaller than home hero) ───────────────────── */
.ms-page-hero {
	background: var(--ms-bg-band);
	padding: 64px 24px 56px;
	text-align: center;
}
.ms-page-hero h1 {
	color: var(--ms-navy);
	font-size: 2.4rem;
	font-weight: 800;
	margin: 0 0 14px;
}
.ms-page-hero p {
	color: var(--ms-text-soft);
	max-width: 640px;
	margin: 0 auto;
	font-size: 1.05rem;
}
