/*
Theme Name: 42Markets One Page
Theme URI: https://www.42markets.group/
Author: Andile Solutions
Description: Single-page theme for 42Markets Group, using the colours, fonts and layout of the original 42markets.group site. Sections: hero, who we are, group companies (Andile, Mesh, FXFlow), about, contact. Settings: Appearance > Customize > 42Markets Settings.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fortytwomarkets
*/

/* Colour scheme taken directly from www.42markets.group. Do not change. */
:root {
	--fm-red: #BA262B;          /* primary: buttons, active nav, red band */
	--fm-red-hover: #C92C31;    /* button hover */
	--fm-red-active: #AB1C21;   /* button pressed */
	--fm-link: #A13639;         /* links and icons */
	--fm-link-hover: #B43C3C;
	--fm-footer-hover: #E34F51;
	--fm-ink: #121417;          /* text and headings */
	--fm-muted: rgba(18, 20, 23, 0.58); /* body copy */
	--fm-border: #D6DCE1;
	--fm-check-bg: #F5FAFF;
	--fm-focus: #B6E6FC;
	--fm-dark: #212326;         /* dark section */
	--fm-white: #FFFFFF;
	--fm-font: "Poppins", Arial, Helvetica, sans-serif;
	--fm-font-2: "Montserrat", Arial, Helvetica, sans-serif;
	--fm-max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	font-family: var(--fm-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--fm-ink);
	background: var(--fm-white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fm-link); }
a:hover { color: var(--fm-link-hover); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--fm-ink); }
h1, h2 { font-weight: 300; }
h1 b, h2 b, h3 b { font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 300; }
h4 { font-family: var(--fm-font-2); font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }

.fm-container { max-width: var(--fm-max); margin: 0 auto; padding: 0 20px; }
.fm-center { text-align: center; }
.fm-muted { color: var(--fm-muted); }
.fm-muted b, .fm-muted strong { font-weight: 700; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.fm-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 8px 14px; clip: auto; width: auto; height: auto; }

/* Buttons (same as original) */
.fm-btn {
	display: inline-block;
	font-family: var(--fm-font-2); font-weight: 600; font-size: 16px;
	padding: 8px 30px; border: 2px solid var(--fm-red); border-radius: 0;
	background: var(--fm-red); color: var(--fm-white); text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.fm-btn:hover, .fm-btn:focus { background: var(--fm-red-hover); border-color: var(--fm-red-hover); color: var(--fm-white); }
.fm-btn:active { background: var(--fm-red-active); border-color: var(--fm-red-active); }

/* Header */
.fm-header { position: sticky; top: 0; z-index: 100; background: var(--fm-white); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.admin-bar .fm-header { top: 32px; }
.fm-header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.fm-brand img { height: 44px; width: auto; }
.fm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.fm-nav a {
	display: block; padding: 11px; border-radius: 4px;
	font-weight: 600; font-size: 15px; text-transform: uppercase; text-decoration: none; color: var(--fm-ink);
}
.fm-nav a:hover, .fm-nav a:focus { color: var(--fm-red-hover); }
.fm-nav a.is-active { color: var(--fm-red); }
.fm-menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.fm-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--fm-ink); margin: 5px 0; }

/* Hero */
.fm-hero {
	background-color: var(--fm-white);
	background-image: url("assets/img/cover.webp");
	background-size: cover; background-position: 50% 50%;
	padding: 80px 0 90px;
}
.fm-hero h1 { margin-bottom: .3em; }
.fm-hero__tagline { color: var(--fm-ink); margin-bottom: 64px; }
.fm-hero__tagline b { color: var(--fm-red); }
.fm-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.fm-feature svg { width: 56px; height: 56px; margin: 0 auto 18px; display: block; }
.fm-feature svg * { stroke: var(--fm-link); }
.fm-feature p { font-size: 15.5px; }
.fm-hero__cta { margin-top: 36px; text-align: center; }

/* Sections */
.fm-section { padding: 90px 0; }
.fm-label { display: block; font-size: 15px; margin-bottom: 10px; color: var(--fm-ink); }
.fm-intro { max-width: 760px; margin: 0 auto 56px; }

/* Companies */
.fm-companies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.fm-company__logo { height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.fm-company__logo img { max-height: 130px; max-width: 80%; width: auto; }
.fm-company__logo a { display: flex; align-items: center; justify-content: center; height: 100%; }
.fm-company h4 { margin-bottom: .6em; }
.fm-company p { font-size: 15.5px; }
.fm-company__link { font-weight: 600; text-decoration: none; }
.fm-company__link:hover { text-decoration: underline; }

/* About (dark section) */
.fm-dark { background: var(--fm-dark); color: var(--fm-white); }
.fm-dark h2, .fm-dark h3, .fm-dark h4 { color: var(--fm-white); }
.fm-dark p { color: rgba(255,255,255,.85); }
.fm-about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; text-align: left; }
.fm-quote { margin: 0 0 28px; font-size: 1.1rem; font-weight: 300; font-style: italic; color: var(--fm-white); }
.fm-quote cite { display: block; margin-top: 6px; font-size: .9rem; font-style: normal; font-weight: 600; }
.fm-formula { border: 2px solid var(--fm-red); padding: 40px 28px; text-align: center; }
.fm-formula__eq { font-size: clamp(2.6rem, 6vw, 3.8rem); font-weight: 700; line-height: 1.1; color: var(--fm-white); }
.fm-formula__eq span { color: var(--fm-red-hover); }
.fm-formula__eq sup { font-size: .5em; }
.fm-formula p { margin: 14px 0 0; }

/* Contact */
.fm-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.fm-offices { list-style: none; padding: 0; margin: 24px 0; }
.fm-offices li { padding: 12px 0; border-bottom: 1px solid var(--fm-border); }
.fm-offices strong { display: block; }
.fm-offices span { color: var(--fm-muted); font-size: 14px; }
.fm-form label { display: block; font-size: 15px; margin-bottom: 6px; }
.fm-form label .req { color: var(--fm-red); }
.fm-form input[type=text], .fm-form input[type=email], .fm-form textarea {
	width: 100%; padding: 10px 16px; margin-bottom: 18px;
	font: inherit; color: var(--fm-ink); background: transparent;
	border: 1px solid var(--fm-border); border-radius: 4px;
}
.fm-form input::placeholder, .fm-form textarea::placeholder { color: rgba(18,20,23,.45); }
.fm-form input:focus, .fm-form textarea:focus { outline: 3px solid var(--fm-focus); outline-offset: 0; }
.fm-form textarea { min-height: 120px; resize: vertical; }
.fm-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; font-size: 15px; }
.fm-check input { margin-top: 5px; accent-color: var(--fm-link); width: 16px; height: 16px; }
.fm-check label { margin: 0; }
.fm-hp { position: absolute; left: -9999px; }
.fm-notice { padding: 12px 16px; margin-bottom: 18px; border-left: 4px solid var(--fm-red); background: var(--fm-check-bg); }

/* Red band */
.fm-band { background: var(--fm-red); color: var(--fm-white); padding: 40px 0; text-align: center; }
.fm-band h3 { color: var(--fm-white); margin: 0; }

/* Footer */
.fm-footer { background: var(--fm-white); padding: 36px 0 28px; }
.fm-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.fm-footer__logo img { height: 40px; width: auto; }
.fm-footer__links { display: flex; flex-wrap: wrap; gap: 8px 32px; list-style: none; margin: 0; padding: 0; }
.fm-footer__links a { font-weight: 600; font-size: 14px; text-transform: uppercase; text-decoration: none; color: var(--fm-ink); }
.fm-footer__links a:hover { color: var(--fm-footer-hover); }
.fm-copy { margin-top: 22px; font-size: 14px; color: var(--fm-muted); }

/* Basic page (Privacy Policy) */
.fm-page { padding: 72px 0 96px; }
.fm-page .fm-container { max-width: 820px; }

/* Responsive */
@media (max-width: 960px) {
	.fm-features, .fm-companies { grid-template-columns: 1fr; gap: 48px; }
	.fm-about, .fm-contact { grid-template-columns: 1fr; gap: 40px; }
	.fm-company { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 860px) {
	.fm-menu-toggle { display: block; }
	.fm-nav { position: absolute; top: 84px; left: 0; right: 0; background: var(--fm-white); box-shadow: 0 8px 16px rgba(0,0,0,.08); display: none; }
	.fm-nav.is-open { display: block; }
	.fm-nav ul { flex-direction: column; padding: 8px 20px 18px; gap: 0; }
	.fm-brand img { height: 38px; }
	.fm-section { padding: 64px 0; }
	.fm-hero { padding: 56px 0 64px; }
}
@media (max-width: 782px) { .admin-bar .fm-header { top: 46px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
