/* ==========================================================================
   Mobio Solutions — global styles
   Loaded on every page. Page-specific styles live in assets/css/pages/{page}.css.

   1. Fonts
   2. Design tokens
   3. Reset & base
   4. Layout (container, section spacing)
   5. Typography helpers (section titles, gradients)
   6. Buttons
   7. Shared components (pills, cards, slider, tabs, forms)
   8. Utilities
   Breakpoints (same as the old Elementor kit): tablet ≤1024px, mobile ≤767px.
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
/* Weight mapping is intentionally identical to the old Elementor kit (600 → Bold file, 700 → Black file). */
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/Satoshi-Light.woff2") format("woff2"), url("../fonts/Satoshi-Light.woff") format("woff"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Satoshi-Regular.woff2") format("woff2"), url("../fonts/Satoshi-Regular.woff") format("woff"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Satoshi-Medium.woff2") format("woff2"), url("../fonts/Satoshi-Medium.woff") format("woff"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Satoshi-Bold.woff2") format("woff2"), url("../fonts/Satoshi-Bold.woff") format("woff"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Satoshi-Black.woff2") format("woff2"), url("../fonts/Satoshi-Black.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/montserrat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 2. Design tokens -------------------------------------------------------- */
:root {
	--c-primary: #824deb;        /* brand purple (buttons, accents) */
	--c-primary-alt: #6956e9;    /* mega-menu headings, icon rings */
	--c-secondary: #b5179e;      /* magenta (pill borders) */
	--c-heading: #1b1435;        /* headings */
	--c-dark: #1b1336;           /* dark sections / footer */
	--c-text: #30373f;           /* body copy */
	--c-muted: #475569;          /* secondary copy */
	--c-ink: #0b1220;            /* card titles */
	--c-light-bg: #f8f8f8;
	--c-border: rgba(0, 0, 0, 0.08);
	--c-white: #fff;
	--c-star: #fec42d;

	--g-title: linear-gradient(89.49deg, #b11aa3 47.1%, #8549e6 88.28%);
	--g-blue: linear-gradient(to right, #7c3bec, #3c83f5);
	--g-badge: linear-gradient(100deg, #7c3bec 0%, #3c83f5 99.7%);

	--font: "Satoshi", sans-serif;
	--container: 1300px;
	--gutter: 10px;
	--header-h: 80px;
	--radius: 10px;
	--radius-lg: 16px;
}

/* 3. Base ------------------------------------------------------------------
   Element resets live in base.css (theme-rendered pages only). This block is safe on
   every page, including ones still rendered by Elementor during the conversion. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	max-width: 100vw;
	overflow-x: hidden;
	font-family: var(--font);
	font-size: 18px;
	font-weight: 600;
	line-height: 27px;
	color: var(--c-text);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Theme components never rely on element defaults, so they look identical on every page.
   :where() keeps these at zero specificity — any component class overrides them. */
:where(.site-header, .mobile-menu, .site-footer, .tm) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.site-header, .mobile-menu, .site-footer, .tm) :where(h1, h2, h3, h4, h5, h6, p, figure) { margin: 0; }
:where(.site-header, .mobile-menu, .site-footer, .tm) :where(a) { color: inherit; text-decoration: none; }
:where(.site-header, .mobile-menu, .site-footer, .tm) :where(button) { padding: 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:where(.site-header, .mobile-menu, .site-footer, .tm) :where(img) { max-width: 100%; height: auto; vertical-align: middle; }
:where(.tm) :where(h1, h2, h3, h4, h5, h6) { font-family: var(--font); font-weight: 700; color: var(--c-heading); }
/* .tm = wrapper of every theme-rendered page template (e.g. <div class="tm tm-home">). */

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px; z-index: 100000;
	width: auto; height: auto;
	padding: 12px 18px;
	clip: auto; clip-path: none;
	background: var(--c-white);
	color: var(--c-heading);
	border-radius: 6px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}

/* 4. Layout --------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
@media (min-width: 1321px) {
	:root { --gutter: 0px; }
}
/* Tablet / mobile: keep content off the screen edge (10px read as "no padding"). */
@media (max-width: 1024px) {
	:root { --gutter: 15px; }
	/* Beats component defaults (".card-grid__inner { padding-inline: 10px }") and page overrides
	   (".tm-app-dev .faq__inner { padding: 0 10px }"); three-class variant rules still win. */
	body .container, body .tm .container { padding-inline: var(--gutter); }
}
.site-main { display: block; }
.section { position: relative; }
.bg-light { background-color: var(--c-light-bg); }
.bg-dark { background-color: var(--c-dark); color: var(--c-white); }

/* 5. Typography helpers --------------------------------------------------- */
.section-title {
	font-size: 48px;
	line-height: 64px;
	font-weight: 700;
	color: var(--c-heading);
}
.section-title--center { text-align: center; }
.section-title--light { color: var(--c-white); }
/* Second, smaller heading under a section title (mobio_section_head "subtitle"). */
.section-subtitle { margin: 0; padding: 26px 0 40px; font-size: 27px; font-weight: 600; line-height: 37px; text-align: center; color: var(--c-heading); }
.section-title--light + .section-subtitle { color: var(--c-white); }
@media (max-width: 767px) { .section-subtitle { padding: 12px 0 24px; font-size: 20px; line-height: 28px; } }
.text-gradient {
	background-image: var(--g-title);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.text-gradient-blue {
	display: inline-block;
	background-image: var(--g-blue);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	font-weight: 600;
}
.brand-color { color: var(--c-primary); }

@media (max-width: 767px) {
	.section-title { font-size: 32px; line-height: 48px; }
}

/* 6. Buttons -------------------------------------------------------------- */
/* Pill button with the round arrow icon (Get Started / View Case Study / Contact Us). */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 18px;
	font-family: var(--font);
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--c-white);
	background-color: var(--c-primary);
	border: 0;
	border-radius: 35px;
	transition: background-color .3s, color .3s, box-shadow .3s;
	white-space: normal;
	text-align: left;
}
.btn .icon { flex: 0 0 auto; width: 16px; height: 16px; }
.btn .icon-arrow-circle rect { fill: var(--c-white); }
.btn .icon-arrow-circle path { fill: var(--c-primary); stroke: var(--c-primary); }
.btn:hover { background-color: #6c37d6; color: var(--c-white); }

.btn--white { background-color: var(--c-white); color: var(--c-heading); }
.btn--white .icon-arrow-circle rect { fill: var(--c-primary-alt); }
.btn--white .icon-arrow-circle path { fill: var(--c-white); stroke: var(--c-white); }
.btn--white:hover { background-color: var(--c-white); color: var(--c-heading); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }

.btn--lg .icon { width: 24px; height: 24px; }

/* Hero CTA (bigger pill with solid arrow icon). */
.btn--hero {
	gap: 8px;
	padding: 14px 24px;
	font-size: 18px;
	line-height: 28px;
	border: 3px solid var(--c-primary);
	border-radius: 36px;
}
.btn--hero .icon { width: 18px; height: 18px; fill: currentColor; }

/* 7. Shared components ---------------------------------------------------- */

/* Taxonomy pills (case studies, insights). */
.pill {
	display: inline-block;
	padding: 6px 11px;
	font-size: 16px;
	font-weight: 700;
	line-height: 28px;
	color: var(--c-dark);
	border: 1px solid var(--c-secondary);
	border-radius: 10px;
	transition: color .2s;
}
.pill:hover { color: var(--c-secondary); }
.pills { display: flex; flex-wrap: wrap; gap: 0 16px; }
.pill--sm { font-size: 13px; line-height: 16px; padding: 6px 11px; }

/* Gradient badge ("Our In-House Innovation"). */
.badge-gradient {
	display: inline-flex;
	align-items: center;
	gap: 15px;
	padding: 10px 16px;
	font-size: 18px;
	font-weight: 500;
	line-height: 27px;
	color: var(--c-white);
	background-image: var(--g-badge);
	border-radius: 50px;
}
.badge-gradient .icon { width: 25px; height: 25px; }

/* Bordered icon card (Densy section, What this means). */
.icon-card {
	padding: 30px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	box-shadow: 0 0 2px 0 rgba(0, 0, 0, .05);
	background: var(--c-white);
}
.icon-card__icon { display: block; line-height: 0; }
.icon-card__icon svg { width: 50px; height: 50px; }
.icon-card__title {
	margin: 8px 0 12px;
	font-size: 22px;
	font-weight: 600;
	line-height: 32px;
	color: var(--c-ink);
}
.icon-card__text {
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
	color: var(--c-muted);
}

/* Slider (assets/js/components/slider.js). Markup:
   .slider > .slider__viewport > .slider__track > .slider__slide
   + optional .slider__prev / .slider__next / .slider__dots */
.slider {
	position: relative;
	--slider-per-view: var(--pv, 1);
	--slider-gap: var(--g, 0px);
}
@media (max-width: 1024px) {
	.slider { --slider-per-view: var(--pv-t, var(--pv, 1)); --slider-gap: var(--g-t, var(--g, 0px)); }
}
@media (max-width: 767px) {
	.slider { --slider-per-view: var(--pv-m, var(--pv-t, var(--pv, 1))); --slider-gap: var(--g-m, var(--g-t, var(--g, 0px))); }
}
.slider__viewport { overflow: hidden; padding-block: 1px; touch-action: pan-y; } /* 1px room: borders/shadows of slides are not clipped at fractional zoom (125%, 150%) */
.slider__track {
	display: flex;
	gap: var(--slider-gap, 0px);
	transition: transform .5s ease;
	will-change: transform;
}
.slider__slide {
	flex: 0 0 calc((100% - (var(--slider-per-view, 1) - 1) * var(--slider-gap, 0px)) / var(--slider-per-view, 1));
	min-width: 0;
}
.slider__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
}
/* Hide unused dot rows before JS runs (no layout shift). */
.slider[data-dots="none"] .slider__dots { display: none; }
@media (min-width: 768px) { .slider[data-dots="mobile"] .slider__dots { display: none; } }
@media (min-width: 1025px) { .slider[data-dots="mobile-tablet"] .slider__dots { display: none; } }
.slider__dot {
	width: 6px;
	height: 6px;
	padding: 0;
	border-radius: 50%;
	background: #000;
	opacity: .2;
	transition: opacity .2s, transform .2s;
}
.slider__dot[aria-current="true"] { opacity: 1; }
.slider__prev, .slider__next {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transform: translateY(-50%);
	line-height: 0;
}
.slider__prev[disabled], .slider__next[disabled] { opacity: .35; cursor: default; }
.no-js .slider__track { overflow-x: auto; scroll-snap-type: x mandatory; }

/* Forms (inc/forms) — base; colour variants below. */
.mform { position: relative; }
.mform__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; visibility: hidden; }
.mform__captcha:not(:empty) { grid-column: 1 / -1; margin: 4px 0 16px; } /* reCAPTCHA v2 box (Settings → Enquiry Settings) */
.mform__field { position: relative; margin-bottom: 20px; }
.mform input[type="text"], .mform input[type="email"], .mform select, .mform textarea {
	display: block;
	width: 100%;
	padding: 10px 15px;
	font-family: var(--font);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
	outline: 0;
	transition: border-color .2s;
}
.mform textarea { resize: vertical; min-height: 110px; }
/* Phone country picker (intl-tel-input): full width, flag + dial code in the field's own colours. */
.mform .iti { display: block; width: 100%; }
.mform .iti--separate-dial-code .iti__selected-flag,
.mform .iti--separate-dial-code .iti__flag-container:hover .iti__selected-flag { background-color: transparent; }
.mform .iti__selected-dial-code { font-size: 16px; font-weight: 500; }
.mform .iti__arrow { border-top-color: currentColor; opacity: .6; }
.mform .iti__arrow--up { border-top-color: transparent; border-bottom-color: currentColor; }
.mform .iti__country-list { z-index: 5; width: 300px; max-width: calc(100vw - 40px); font-size: 14px; line-height: 20px; color: #1b1336; white-space: normal; }
.mform__select { position: relative; }
.mform__select .icon { position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%); pointer-events: none; }
.mform__select select { padding-right: 30px; cursor: pointer; }
/* Dropdown list: styled card under the field where the browser allows it (Chrome / Edge "customizable select");
   other browsers keep their own list. */
@supports (appearance: base-select) {
	.mform__select select, .mform__select select::picker(select) { appearance: base-select; }
	.mform__select select::picker-icon { display: none; } /* the field keeps its own chevron */
	.mform__select select::picker(select) {
		margin-top: 6px;
		padding: 6px;
		max-height: 380px;
		color: var(--c-heading);
		background: var(--c-white);
		border: 1px solid rgba(27, 19, 54, .1);
		border-radius: 10px;
		box-shadow: 0 12px 32px rgba(27, 19, 54, .16);
		position-try-fallbacks: flip-block;
	}
	.mform__select option { padding: 9px 12px; font-size: 15px; font-weight: 400; line-height: 22px; color: var(--c-heading); background: transparent; border-radius: 6px; cursor: pointer; }
	.mform__select option::checkmark { display: none; }
	.mform__select option:first-child { color: #6c757d; } /* "Select …" placeholder row */
	.mform__select option:hover, .mform__select option:focus-visible { color: var(--c-primary); background: #f3eefa; outline: 0; }
	.mform__select option:checked:not(:first-child) { color: var(--c-white); background: var(--c-primary); }
	.mform--dark .mform__select select::picker(select) { color: var(--c-white); background: #282142; border-color: rgba(255, 255, 255, .15); }
	.mform--dark .mform__select option { color: rgba(255, 255, 255, .85); background: transparent; }
	.mform--dark .mform__select option:hover, .mform--dark .mform__select option:focus-visible { color: var(--c-white); background: rgba(255, 255, 255, .1); }
}
.mform__error { display: block; min-height: 0; font-size: 14px; font-weight: 500; line-height: 20px; color: #ff6b6b; }
.mform__error:empty { display: none; }
.mform__field.is-invalid input, .mform__field.is-invalid select, .mform__field.is-invalid textarea { border-color: #ff6b6b !important; }
.mform__submit {
	display: inline-block;
	padding: 12px 21px;
	font-family: var(--font);
	font-size: 16px;
	font-weight: 700;
	line-height: 26px;
	letter-spacing: .3px;
	text-transform: uppercase;
	border-radius: 6px;
	cursor: pointer;
	transition: opacity .2s;
}
.mform__submit[disabled] { opacity: .6; cursor: wait; }
.mform__status { margin-top: 12px; font-size: 16px; font-weight: 500; line-height: 24px; }
.mform__status:empty { display: none; }
.mform__status.is-error { color: #ff6b6b; }
.mform__status.is-success { color: #29d17d; }

/* Lead variant (blog sidebar "Get Updates", download popups): underlined fields, purple pill button. */
.mform--lead .mform__field { margin-bottom: 16px; }
.mform--lead input[type="text"], .mform--lead input[type="email"] { padding: 10px 0; font-size: 16px; font-weight: 400; color: var(--c-heading); background-color: transparent; border: 0; border-bottom: 1px solid rgba(61, 61, 61, .2); }
.mform--lead input::placeholder { color: #6c757d; opacity: 1; }
.mform--lead input:focus { border-bottom-color: var(--c-primary); }
.mform--lead .mform__actions { padding-top: 4px; }
.mform--lead .mform__submit { display: inline-flex; align-items: center; gap: 10px; padding: 13px 25px; font-size: 17px; font-weight: 700; line-height: 18px; letter-spacing: 0; text-transform: none; color: var(--c-white); background-color: var(--c-primary); border: 1px solid var(--c-primary); border-radius: 36px; }
.mform--lead .mform__submit .icon { width: 24px; height: 24px; }
.mform--lead .mform__submit .icon rect { fill: var(--c-white); }
.mform--lead .mform__submit .icon path { fill: var(--c-primary-alt); stroke: var(--c-primary-alt); }
.mform--lead .mform__submit:hover { color: var(--c-primary-alt); background-color: transparent; }
.mform--lead .mform__error { color: #d63638; }
.mform--lead .mform__status.is-success { color: #1a8f52; }
.mform--lead .mform__status a { color: var(--c-primary); text-decoration: underline; word-break: break-all; }

/* Dark variant (footer "Begin a Conversation" form). */
.mform--dark input[type="text"], .mform--dark input[type="email"], .mform--dark select, .mform--dark textarea {
	color: var(--c-white);
	background-color: transparent;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.mform--dark select { color: rgba(255, 255, 255, .8); font-weight: 300; background-color: #282142; }
.mform--dark select option { color: var(--c-white); background: #282142; }
.mform--dark ::placeholder { color: rgba(255, 255, 255, .45); opacity: 1; }
.mform--dark textarea::placeholder { font-weight: 600; }
.mform--dark .mform__select .icon { color: rgba(255, 255, 255, .8); }
.mform--dark .mform__submit { color: var(--c-heading); background: var(--c-white); border: 0; }
.mform--dark .mform__status.is-success { color: var(--c-white); }
.mform--dark .iti__selected-dial-code { color: #6c757d; }

/* Footer "Begin a Conversation" form — sizes as on the original: Industry + Services side by side. */
.mform--contact { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.mform--contact > * { grid-column: 1 / -1; }
.mform--contact > .mform__field--half { grid-column: auto; }
.mform--contact input[type="text"], .mform--contact input[type="email"], .mform--contact select { padding: 8px 16px; line-height: 21px; color: rgba(255, 255, 255, .6); }
.mform--contact select { padding-right: 30px; }
.mform--contact textarea { padding: 6px 12px; color: rgba(255, 255, 255, .6); font-weight: 600; }
.mform--contact .mform__submit { padding: 10px 18px; border: 3px solid var(--c-white); }
@media (max-width: 767px) {
	.mform--contact { grid-template-columns: 1fr; }
}

/* Cookie banner (CookieYes plugin) — carried over from the old theme's Additional CSS. */
.cky-btn { border-radius: 50px !important; font-size: 16px !important; font-weight: 600 !important; }
.cky-notice-des * { font-size: 16px !important; font-weight: 500 !important; }

/* Generic templates (page.php / singular.php / index.php / 404.php) */
.generic-content { padding-block: 60px 80px; }
.generic-content--center { text-align: center; }
.generic-content__header { margin-bottom: 30px; }
.generic-content__thumb { margin-bottom: 30px; line-height: 0; }
.generic-content__thumb img { width: 100%; height: auto; border-radius: var(--radius); }
.entry-content { font-size: 18px; font-weight: 400; line-height: 30px; }
.entry-content :where(h2, h3, h4) { margin: 1.4em 0 .6em; font-weight: 700; color: var(--c-heading); }
.entry-content :where(p, ul, ol) { margin: 0 0 1em; }
.entry-content :where(ul) { padding-left: 1.4em; list-style: disc; }
.entry-content :where(ol) { padding-left: 1.4em; list-style: decimal; }
.entry-content a { color: var(--c-primary); text-decoration: underline; }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.post-list__thumb { display: block; margin-bottom: 14px; line-height: 0; }
.post-list__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.post-list__title { font-size: 20px; line-height: 30px; margin-bottom: 8px; }
.post-list__excerpt { font-size: 16px; font-weight: 400; line-height: 26px; }
@media (max-width: 1024px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .post-list { grid-template-columns: 1fr; } .generic-content { padding-block: 40px 50px; } }

/* 8. Utilities ------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .hide-tablet { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
