/*
Theme Name:   M3 Cloud
Theme URI:    https://m3cloudservices.com
Description:  M3 Cloud Services company theme. Child theme of Hello Elementor — pairs with the "M3 Home" Elementor template. Includes the integration map and contact form shortcodes.
Author:       M3 Cloud Services
Template:     hello-elementor
Version:      2.0.0
Text Domain:  m3-cloud
*/

/* ===== Brand tokens (from the M3 logo) ===== */
:root {
	--m3-ink: #0B1B3F;
	--m3-navy: #113368;
	--m3-blue: #1A64D4;
	--m3-blue-2: #1A4FA8;
	--m3-sky: #8FB4F5;
	--m3-mist: #C3D1EA;
	--m3-muted: #44526E;
	--m3-dim: #5D6A82;
	--m3-line: #DCE4EF;
	--m3-line-2: #C9D5E6;
	--m3-soft: #E6EEFB;
	--m3-ground: #F6F8FC;
	--m3-grad: linear-gradient(120deg, #113368 0%, #1A64D4 100%);
	--m3-sans: 'Lexend', system-ui, sans-serif;
	--m3-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ===== Page basics ===== */
body.m3 {
	background: var(--m3-ground);
	color: var(--m3-ink);
	font-family: var(--m3-sans);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }
body.m3 [id] { scroll-margin-top: 24px; }
body.m3 a { color: inherit; text-decoration: none; }
body.m3 .elementor-widget-text-editor p { margin: 0; }
body.m3 .elementor-widget-text-editor p + p { margin-top: 12px; }

/* Typography inside the design (beats Elementor's global defaults) */
body.m3 .elementor-heading-title,
body.m3 .elementor-widget-text-editor,
body.m3 .elementor-button { font-family: var(--m3-sans) !important; }
body.m3 .elementor-heading-title { color: var(--m3-ink) !important; }
body.m3 .elementor-widget-text-editor { color: var(--m3-muted); }

body.m3 .m3-h1 .elementor-heading-title { font-size: clamp(40px, 6.2vw, 82px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 700; }
body.m3 .m3-h2 .elementor-heading-title { font-size: clamp(32px, 4.5vw, 54px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
body.m3 .m3-h2-sm .elementor-heading-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
body.m3 .m3-h3 .elementor-heading-title { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
body.m3 .m3-h4 .elementor-heading-title { font-size: 18px; line-height: 1.3; font-weight: 600; }
body.m3 .m3-grad {
	background: linear-gradient(110deg, #113368 0%, #1A64D4 70%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
body.m3 .m3-lead { font-size: 20px; line-height: 1.6; font-weight: 300; color: var(--m3-muted); max-width: 680px; }
body.m3 .m3-body { font-size: 16px; line-height: 1.6; font-weight: 300; color: var(--m3-muted); }
body.m3 .m3-small { font-size: 14px; line-height: 1.5; font-weight: 300; color: var(--m3-dim); }
body.m3 .m3-eyebrow { font-family: var(--m3-mono) !important; font-size: 13px; color: var(--m3-blue-2); }
body.m3 .m3-mono { font-family: var(--m3-mono) !important; font-size: 13px; color: var(--m3-dim); }
body.m3 .m3-pill-in {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--m3-mono); font-size: 13px; color: var(--m3-blue-2);
	background: var(--m3-soft); border: 1px solid #C9D9F5; padding: 8px 14px; border-radius: 999px;
}
body.m3 .m3-pill-in::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--m3-blue); }

body.m3 .m3-side-note { max-width: 400px; }
body.m3 .m3-narrow { max-width: 640px; }
body.m3 .m3-center-text { text-align: center; }
body.m3 .m3-center-text .elementor-heading-title { max-width: 760px; margin: 0 auto; }

/* ===== Buttons ===== */
body.m3 .m3-btn .elementor-button {
	border-radius: 12px; padding: 17px 28px; min-height: 48px; font-size: 16px; line-height: 1;
	display: inline-flex; align-items: center; border: 1px solid transparent;
	transition: filter .15s, border-color .15s, color .15s;
}
body.m3 .m3-btn-grad .elementor-button { background: var(--m3-grad) !important; color: #FFFFFF !important; font-weight: 600; }
body.m3 .m3-btn-grad .elementor-button:hover { filter: brightness(1.12); }
body.m3 .m3-btn-light .elementor-button { background: #FFFFFF !important; color: var(--m3-ink) !important; border-color: var(--m3-line-2); font-weight: 500; }
body.m3 .m3-btn-light .elementor-button:hover { border-color: var(--m3-blue); color: var(--m3-blue) !important; }
body.m3 .m3-btn-sm .elementor-button { padding: 13px 22px; font-size: 15px; border-radius: 10px; min-height: 44px; }

/* ===== Sections ===== */
body.m3 .m3-sec.e-con { --padding-left: 24px; --padding-right: 24px; }
body.m3 .m3-flat.e-con { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; }

body.m3 .m3-header.e-con { background: #FFFFFF; border-bottom: 1px solid var(--m3-line); --padding-top: 18px; --padding-bottom: 18px; }
body.m3 .m3-nav { display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: 15px; font-weight: 500; }
body.m3 .m3-nav a { padding: 10px 0; color: var(--m3-ink); }
body.m3 .m3-nav a:hover { color: var(--m3-blue); }

body.m3 .m3-hero.e-con {
	background-color: var(--m3-ground);
	background-image: linear-gradient(rgba(17,51,104,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(17,51,104,0.06) 1px, transparent 1px);
	background-size: 48px 48px;
	--padding-top: 96px; --padding-bottom: 110px;
	text-align: center;
}
body.m3 .m3-hero .m3-lead, body.m3 .m3-center-text { margin-left: auto; margin-right: auto; }
body.m3 .m3-hero .m3-h1 { max-width: 940px; }
body.m3 .m3-platforms-head.e-con { --margin-top: 110px; margin-top: 110px; }
body.m3 .m3-map-wrap { width: 100%; margin-top: 16px; text-align: left; }

body.m3 .m3-strip.e-con { background: #FFFFFF; border-top: 1px solid var(--m3-line); border-bottom: 1px solid var(--m3-line); --padding-top: 26px; --padding-bottom: 26px; }
body.m3 .m3-platform-names p { display: flex; flex-wrap: wrap; gap: 12px 30px; font-size: 16px; font-weight: 600; color: #33415C; }

body.m3 .m3-pad-lg.e-con { --padding-top: 112px; --padding-bottom: 48px; }
body.m3 .m3-pad-md.e-con { --padding-top: 100px; --padding-bottom: 40px; }
body.m3 .m3-pad-sm.e-con { --padding-top: 80px; --padding-bottom: 100px; }

/* ===== Grids ===== */
body.m3 .m3-grid.e-con { display: grid !important; gap: 20px; }
body.m3 .m3-grid-svc.e-con { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
body.m3 .m3-grid-ind.e-con { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
body.m3 .m3-grid-plan.e-con { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
body.m3 .m3-grid-steps.e-con { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; }
body.m3 .m3-grid-stats.e-con { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
body.m3 .m3-grid > .e-con { width: auto !important; --width: auto; }

/* Flexible columns inside rows */
body.m3 .m3-col.e-con { flex: 1 1 340px !important; width: auto !important; --width: auto; min-width: 0; }
body.m3 .m3-col-wide.e-con { flex: 999 1 560px !important; width: auto !important; --width: auto; min-width: 0; }

/* ===== Cards ===== */
body.m3 .m3-card.e-con {
	background: #FBFCFE; border: 1px solid var(--m3-line); border-radius: 16px;
	--padding-top: 30px; --padding-bottom: 30px; --padding-left: 28px; --padding-right: 28px; --gap: 14px; --row-gap: 14px;
	min-height: 240px; transition: box-shadow .2s, background-color .2s;
}
body.m3 .m3-card.e-con:hover { background: #FFFFFF; box-shadow: 0 18px 40px -24px rgba(17,51,104,0.45); }
body.m3 .m3-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--m3-soft); color: var(--m3-blue); display: inline-flex; align-items: center; justify-content: center; }
body.m3 .m3-card .m3-body { font-size: 15px; }

body.m3 .m3-ind.e-con { background: #FFFFFF; border: 1px solid var(--m3-line); border-radius: 14px; --padding-top: 22px; --padding-bottom: 22px; --padding-left: 24px; --padding-right: 24px; --gap: 6px; --row-gap: 6px; }

body.m3 .m3-plan.e-con { background: #FFFFFF; border: 1px solid var(--m3-line); border-radius: 18px; --padding-top: 34px; --padding-bottom: 34px; --padding-left: 30px; --padding-right: 30px; --gap: 14px; --row-gap: 14px; }
body.m3 .m3-plan-dark.e-con { background: linear-gradient(135deg, #0B1B3F 0%, #113368 60%, #1A4FA8 100%); border-color: transparent; }
body.m3 .m3-plan-dark .elementor-heading-title { color: #FFFFFF !important; }
body.m3 .m3-plan-dark .m3-body { color: var(--m3-mist); }
body.m3 .m3-plan-dark .m3-eyebrow { color: var(--m3-sky); }

body.m3 .m3-step.e-con { border-top: 3px solid var(--m3-line-2); --padding-top: 24px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --gap: 10px; --row-gap: 10px; }
body.m3 .m3-step-on.e-con { border-top-color: var(--m3-blue); }

/* ===== Stats band ===== */
body.m3 .m3-stats.e-con { background: linear-gradient(120deg, #0B1B3F 0%, #113368 55%, #1A4FA8 100%); --padding-top: 0px; --padding-bottom: 0px; margin-top: 64px; }
body.m3 .m3-stat.e-con { --padding-top: 44px; --padding-bottom: 44px; --padding-left: 0px; --padding-right: 24px; --gap: 10px; --row-gap: 10px; }
body.m3 .m3-stat .elementor-heading-title { color: #FFFFFF !important; font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
body.m3 .m3-stat .elementor-widget-text-editor { color: var(--m3-mist); font-size: 15px; font-weight: 300; }

/* ===== Contact ===== */
body.m3 .m3-contact.e-con {
	background-color: var(--m3-ink);
	background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
	background-size: 48px 48px; color: #FFFFFF;
	--padding-top: 104px; --padding-bottom: 104px;
}
body.m3 .m3-contact .elementor-heading-title { color: #FFFFFF !important; }
body.m3 .m3-contact .m3-body { color: var(--m3-mist); font-size: 17px; max-width: 420px; }
body.m3 .m3-contact .m3-eyebrow { color: var(--m3-sky); }
body.m3 .m3-next ol { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: m3; display: flex; flex-direction: column; gap: 16px; }
body.m3 .m3-next li { counter-increment: m3; color: #E3EAF6; display: flex; gap: 14px; align-items: baseline; }
body.m3 .m3-next li::before { content: counter(m3, decimal-leading-zero); font-family: var(--m3-mono); font-size: 13px; color: var(--m3-sky); }
body.m3 .m3-form-col.e-con { flex: 1.4 1 420px !important; width: auto !important; --width: auto; min-width: 0; }
body.m3 #m3-contact-form { color: #FFFFFF; }
body.m3 #m3-contact-form label { color: #FFFFFF; display: block; }
body.m3 #m3-contact-form input:focus, body.m3 #m3-contact-form textarea:focus { outline: 3px solid var(--m3-sky); outline-offset: 1px; }
body.m3 #m3-contact-form [aria-invalid="true"] { border-color: #FF9B8F !important; }
body.m3 #m3-contact-form button { transition: filter .15s; }
body.m3 #m3-contact-form button:hover, body.m3 #m3-contact-form button:focus { background: var(--m3-blue) !important; color: #FFFFFF !important; filter: brightness(1.12); }
body.m3 #m3-contact-form button:disabled { opacity: .6; cursor: wait; }
.m3-err { margin: 0; font-size: 13px; color: #FF9B8F; font-family: var(--m3-sans); }
.m3-err:empty { display: none; }
.m3-status { margin: 16px 0 0; font-size: 15px; }
.m3-status:empty { display: none; }
.m3-status.ok { color: var(--m3-sky); }
.m3-status.bad { color: #FF9B8F; }
.m3-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Footer ===== */
body.m3 .m3-footer.e-con { background: #071230; --padding-top: 64px; --padding-bottom: 0px; }
body.m3 .m3-footer .elementor-widget-text-editor { color: #A9BBDA; }
body.m3 .m3-foot-links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
body.m3 .m3-foot-links strong { color: #FFFFFF; font-weight: 600; margin-bottom: 6px; }
body.m3 .m3-foot-links a { color: #A9BBDA; }
body.m3 .m3-foot-links a:hover { color: #FFFFFF; }
body.m3 .m3-foot-bottom.e-con { border-top: 1px solid rgba(255,255,255,0.1); --padding-top: 22px; --padding-bottom: 36px; margin-top: 40px; }
body.m3 .m3-foot-bottom .elementor-widget-text-editor { font-size: 13px; }

/* ===== Integration map ===== */
.m3d-tabs button { transition: background-color .15s, color .15s, border-color .15s; }
.m3d-tabs button:hover { border-color: #1A64D4 !important; }
.m3d-tabs button:focus-visible { outline: 2px solid #1A64D4; outline-offset: 3px; }
.m3d-node { transition: box-shadow .2s; }
.m3d-node:hover { box-shadow: 0 16px 30px -18px rgba(17,51,104,0.6) !important; }
.m3d[hidden] { display: none !important; }

/* ===== Mobile ===== */
@media (max-width: 900px) {
	.m3d { height: auto !important; display: flex; flex-direction: column; gap: 22px; margin-top: 28px !important; }
	.m3d-line, .m3d-dot { display: none !important; }
	.m3d-hub { position: static !important; transform: none !important; width: auto !important; order: -1; }
	.m3d-col { position: static !important; display: flex; flex-direction: column; gap: 10px; }
	.m3d-node { position: static !important; transform: none !important; max-width: none !important; width: auto !important; }
	.m3d-label { position: static !important; margin: 6px 0 2px; }
	.m3d-left { order: 1; } .m3d-right { order: 2; }
}
@media (max-width: 767px) {
	body.m3 .m3-hero.e-con { --padding-top: 64px; --padding-bottom: 72px; }
	body.m3 .m3-platforms-head.e-con { margin-top: 72px; }
	body.m3 .m3-pad-lg.e-con, body.m3 .m3-pad-md.e-con { --padding-top: 72px; }
	body.m3 .m3-contact.e-con { --padding-top: 64px; --padding-bottom: 64px; }
	body.m3 #m3-contact-form { padding: 22px !important; }
	body.m3 .m3-lead { font-size: 18px; }
}
