/*
Theme Name: ReachMax Africa Theme
Theme URI: https://reachmaxafrica.com
Author: ReachMax Africa Engineering
Author URI: https://reachmaxafrica.com
Description: Customizable ReachMax Africa website and protected customer console.
Version: 1.18.1
Requires at least: 6.5
Requires PHP: 8.2
License: Proprietary
Text Domain: reachmax-theme
*/

:root {
    --rmx-primary: #0f52ba;
    --rmx-on-primary: #ffffff;
    --rmx-secondary: #16754b;
    --rmx-on-secondary: #ffffff;
    --rmx-bg: #f8fafc;
    --rmx-card: #ffffff;
    --rmx-text: #1e293b;
    --rmx-surface-text: #1e293b;
    --rmx-link: #0f52ba;
    --rmx-surface-link: #0f52ba;
    --rmx-border: #cbd5e1;
    --rmx-radius: 12px;
    --rmx-content-width: 1200px;
    --rmx-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; font-family: var(--rmx-font); color: var(--rmx-text); background: var(--rmx-bg); line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--rmx-link); text-underline-offset: .2em; overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; }
button, select { min-height: 44px; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
button, input, select, textarea { max-width: 100%; }
h1, h2, h3 { line-height: 1.18; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p, ul, ol { overflow-wrap: anywhere; }
main { min-height: 45vh; }
.rmx-container { width: min(100%, var(--rmx-content-width)); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.rmx-site-header, .rmx-footer { background: var(--rmx-card); color: var(--rmx-surface-text); }
.rmx-site-header { border-bottom: 1px solid var(--rmx-border); position: relative; z-index: 20; }
.rmx-header-sticky { position: sticky; top: 0; }
.admin-bar .rmx-header-sticky { top: 32px; }
.rmx-navbar { width: min(100%, var(--rmx-content-width)); margin: auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2rem); }
.rmx-brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--rmx-surface-link); font-size: 1.3rem; font-weight: 750; text-decoration: none; min-height: 44px; }
.rmx-brand small { display: block; color: var(--rmx-surface-text); font-size: .8rem; font-weight: 400; max-width: 28ch; }
.rmx-brand > span { min-width: 0; overflow-wrap: anywhere; }
.rmx-logo { max-width: 180px; max-height: 56px; width: auto; object-fit: contain; }
.rmx-brand-logo { display:block; width:48px; height:48px; flex:none; }
.rmx-nav-links, .rmx-menu { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.rmx-menu, .rmx-footer-menu { margin: 0; padding: 0; list-style: none; }
.rmx-menu a { color: var(--rmx-surface-link); display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .6rem; font-weight: 600; text-decoration: none; }
.rmx-menu a:hover, .rmx-menu .current-menu-item > a { text-decoration: underline; }
.rmx-menu-toggle { display: none; color: var(--rmx-surface-text); background: var(--rmx-card); border: 1px solid currentColor; border-radius: 6px; padding: .45rem .85rem; }
.rmx-mode-control { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; font-size:.85rem; }
.rmx-mode-control:has(select[hidden]) { display:none; }
.rmx-mode-control select { min-height:44px; max-width:160px; border:1px solid var(--rmx-border); border-radius:6px; padding:.4rem; background:var(--rmx-card); color:var(--rmx-surface-text); }
.rmx-mode-control select[hidden] { display:none; }
.rmx-header-compact .rmx-navbar { padding-block: .5rem; }
.rmx-header-centered .rmx-navbar { flex-direction: column; }
.rmx-btn { display: inline-flex; justify-content: center; align-items: center; gap: .4rem; min-height: 44px; padding: .65rem 1.2rem; border: 1px solid transparent; border-radius: var(--rmx-radius); font-weight: 650; text-decoration: none; text-align: center; }
.rmx-btn-primary { color: var(--rmx-on-primary); background: var(--rmx-primary); }
.rmx-btn-secondary { color: var(--rmx-on-secondary); background: var(--rmx-secondary); }
.rmx-btn:hover { text-decoration: underline; }
.rmx-hero { padding-block: clamp(3rem, 9vw, 7rem); text-align: center; border-bottom: 1px solid var(--rmx-border); }
.rmx-hero h1 { max-width: 20ch; margin: .6rem auto 1.25rem; letter-spacing: -.025em; }
.rmx-hero p { max-width: 65ch; margin-inline: auto; }
.rmx-hero > .rmx-container > p:not(.rmx-eyebrow) { font-size: clamp(1.05rem, 2vw, 1.3rem); margin-bottom: 1.75rem; }
.rmx-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 650; font-size: .8rem; }
.rmx-home-content, .rmx-page-content { padding-block: 2rem 4rem; }
.rmx-home-section { margin-top: clamp(2rem, 5vw, 4rem); }
.rmx-home-section p { max-width: 75ch; }
.rmx-preview-notice { border: 1px solid currentColor; border-left-width: 4px; border-radius: 6px; padding: .9rem 1rem; margin-bottom: 2rem; font-size: .95rem; }
.rmx-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; margin-block: 1.5rem; }
.rmx-card { background: var(--rmx-card); color: var(--rmx-surface-text); border: 1px solid var(--rmx-border); border-radius: var(--rmx-radius); padding: clamp(1.2rem, 3vw, 2rem); min-width: 0; }
.rmx-card a:not(.rmx-btn), .rmx-footer a:not(.rmx-btn), .rmx-sidebar a { color: var(--rmx-surface-link); }
.rmx-card h3 { margin-block: .9rem; }
.rmx-card > a:not(.rmx-btn) { display: inline-flex; min-height: 44px; align-items: center; }
.rmx-cta { text-align: center; }
.rmx-cta p { margin-inline: auto; }
.rmx-console-container { display: flex; width: min(100%, var(--rmx-content-width)); margin-inline: auto; }
.rmx-sidebar { flex: 0 0 260px; background: var(--rmx-card); color: var(--rmx-surface-text); border-right: 1px solid var(--rmx-border); padding: 1.5rem; }
.rmx-content-area { flex: 1; min-width: 0; padding: clamp(1rem, 3vw, 2rem); }
.rmx-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem; margin-bottom: 2rem; }
.rmx-stat-box { background: var(--rmx-card); color: var(--rmx-surface-text); padding: 1.5rem; border-radius: var(--rmx-radius); border: 1px solid var(--rmx-border); }
.rmx-stat-number { font-size: 2rem; font-weight: 700; }
.rmx-table { width: 100%; border-collapse: collapse; background: var(--rmx-card); color: var(--rmx-surface-text); border: 1px solid var(--rmx-border); }
.rmx-table th, .rmx-table td { padding: .8rem; text-align: left; border-bottom: 1px solid var(--rmx-border); }
.rmx-badge { display: inline-block; padding: .25rem .6rem; border-radius: 4px; font-size: .8rem; font-weight: 650; }
.rmx-badge-success { background: #dcfce7; color: #166534; }
.rmx-badge-warning { background: #fef3c7; color: #615129; }
.rmx-badge-danger { background: #fee2e2; color: #991b1b; }
.rmx-post + .rmx-post { margin-top: 2rem; }
.rmx-editor-content { line-height: 1.75; }
.rmx-editor-content .wp-block-table { max-width: 100%; overflow-x: auto; }
.rmx-editor-content pre { overflow-x: auto; }
.rmx-footer { border-top: 1px solid var(--rmx-border); padding-block: 2.5rem 1rem; }
.rmx-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.rmx-footer-menu a { display: inline-flex; min-height: 44px; align-items: center; }
.rmx-copyright { font-size: .85rem; }
:focus-visible { outline: 3px solid var(--rmx-text); outline-offset: 4px; }
.rmx-card :focus-visible, .rmx-site-header :focus-visible, .rmx-footer :focus-visible, .rmx-sidebar :focus-visible { outline-color: var(--rmx-surface-text); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; margin: 0; clip-path: none; white-space: normal; }
.rmx-skip-link:focus { position: fixed; z-index: 100000; top: 1rem; left: 1rem; padding: .75rem 1rem; background: #ffffff; color: #111111; }
#rmx-tenant-switcher { padding: .6rem; border: 1px solid var(--rmx-border); border-radius: 6px; background: var(--rmx-card); color: var(--rmx-surface-text); }
@media (max-width: 880px) {
    .rmx-navbar { gap: .75rem; }
    .rmx-brand { max-width: calc(100% - 90px); font-size: 1.1rem; }
    .rmx-logo { max-width: 110px; max-height: 44px; }
    .rmx-nav-links { width: 100%; align-items: stretch; flex-direction: column; }
    .rmx-menu { align-items: stretch; flex-direction: column; gap: .2rem; }
    .rmx-nav-enhanced .rmx-menu-toggle { display: inline-flex; }
    .rmx-nav-enhanced .rmx-nav-links { display: none; }
    .rmx-nav-enhanced .rmx-nav-links[data-expanded="true"] { display: flex; }
    .rmx-header-centered .rmx-navbar { flex-direction: row; }
    .rmx-console-container { flex-direction: column; }
    .rmx-sidebar { flex-basis: auto; border-right: 0; border-bottom: 1px solid var(--rmx-border); }
    .rmx-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) { .admin-bar .rmx-header-sticky { top: 46px; } }
@media (max-width: 480px) { .rmx-footer-grid { grid-template-columns: 1fr; gap: 1rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

/* Four layouts share the same content, routes and permission checks. */
.rmx-icon { width: 24px; height: 24px; flex: 0 0 auto; vertical-align: middle; }
.rmx-brand-mark { display: inline-flex; padding: .6rem; border-radius: 12px; background: var(--rmx-primary); color: var(--rmx-on-primary); }
.rmx-icon-tile { display: inline-flex; padding: .85rem; border-radius: 16px; border: 1px solid var(--rmx-border); color: var(--rmx-surface-link); }
.rmx-icon-tile .rmx-icon { width: 32px; height: 32px; }
.rmx-service-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.rmx-service-card > a { gap: .6rem; font-weight: 650; }
.rmx-service-card h3 + .rmx-project-description, .rmx-workspace-features h3 + p { margin-top: .25rem; }
.rmx-hero-copy { min-width: 0; }
.rmx-hero-art { max-width: 760px; margin: 2rem auto 0; }
.rmx-hero-art img { display: block; width: 100%; height: auto; border-radius: 24px; }
.rmx-workspace-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }
.rmx-workspace-features h3 { font-size: 1.1rem; }
.rmx-design-studio { --rmx-radius: 22px; }
.rmx-design-studio .rmx-hero { text-align: left; padding-block: clamp(2rem,6vw,5rem); }
.rmx-design-studio .rmx-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.rmx-design-studio .rmx-hero h1, .rmx-design-studio .rmx-hero p { margin-inline: 0; }
.rmx-design-studio .rmx-hero-art { margin: 0; }
.rmx-design-studio .rmx-card { box-shadow: 0 12px 32px rgb(15 23 42 / .06); }
.rmx-design-editorial { --rmx-radius: 4px; }
.rmx-design-editorial .rmx-hero { text-align: left; padding-block: clamp(2rem,5vw,4rem); }
.rmx-design-editorial .rmx-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; }
.rmx-design-editorial .rmx-hero h1 { font-family: Georgia,serif; font-weight: 500; max-width: 18ch; }
.rmx-design-editorial .rmx-hero h1, .rmx-design-editorial .rmx-hero p { margin-inline: 0; }
.rmx-design-editorial .rmx-hero-art { margin: 0; }
.rmx-design-editorial .rmx-hero-art img { border-radius: 4px; }
.rmx-design-editorial .rmx-services-grid { grid-template-columns: 1fr; }
.rmx-design-editorial .rmx-service-card { display: grid; grid-template-columns: 180px 1fr; gap: .5rem 2rem; border-width: 1px 0 0; }
.rmx-design-editorial .rmx-service-heading { grid-row: span 3; align-content: start; justify-content: start; }
.rmx-design-editorial .rmx-service-card h3, .rmx-design-editorial .rmx-service-card p { margin: 0; }
.rmx-design-minimal { --rmx-radius: 8px; }
.rmx-design-minimal .rmx-hero { padding-block: clamp(2rem,5vw,3.5rem); }
.rmx-design-minimal .rmx-hero-art { max-width: 480px; margin-top: 1.5rem; }
.rmx-design-minimal .rmx-card { box-shadow: none; }
.rmx-design-minimal .rmx-icon-tile { border: 0; padding: .25rem; }
.rmx-design-minimal .rmx-home-section { margin-top: 2rem; }
.rmx-palette-midnight .rmx-hero-art { background: #fff7ed; border-radius: 24px; }
@media (max-width: 880px) {
    .rmx-design-studio .rmx-hero-grid, .rmx-design-editorial .rmx-hero-grid { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
    .rmx-workspace-features { grid-template-columns: minmax(0,1fr); }
    .rmx-hero-art { max-width: 620px; }
}
@media (max-width: 600px) {
    .rmx-design-editorial .rmx-service-card { grid-template-columns: minmax(0,1fr); gap: 1rem; }
    .rmx-design-editorial .rmx-service-heading { grid-row: auto; }
}
