/*
Theme Name: THEMA MATRIX
Theme URI: https://rank-matrix.com/
Author: MATRIX
Description: Lightweight, accessible and responsive WordPress and WooCommerce theme for Page Builder MATRIX. No third-party frontend frameworks.
Version: 1.1.8
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: thema-matrix
License: GPL-2.0-or-later
Tags: e-commerce, custom-logo, full-width-template, accessibility-ready, featured-images
*/
:root{--matrix-width:1200px;--matrix-text:#17181c;--matrix-muted:#667085;--matrix-border:#e5e7eb;--matrix-bg:#fff;--matrix-accent:#3659c9}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;color:var(--matrix-text);background:var(--matrix-bg);font:400 16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
img,video,svg{max-width:100%;height:auto}
a{color:var(--matrix-accent);text-underline-offset:.15em}
button,input,select,textarea{font:inherit}
:focus-visible{outline:2px solid var(--matrix-accent);outline-offset:3px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.screen-reader-text:focus{width:auto;height:auto;clip:auto;top:8px;left:8px;padding:12px;background:#fff;z-index:999999}
.matrix-shell{min-height:100vh;display:flex;flex-direction:column}
.matrix-content{width:min(var(--matrix-width),calc(100% - 40px));margin-inline:auto;padding-block:44px;flex:1;min-width:0}
.matrix-header{border-bottom:1px solid var(--matrix-border)}
.matrix-footer{border-top:1px solid var(--matrix-border);padding:20px 0}
.matrix-bar{width:min(var(--matrix-width),calc(100% - 40px));margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0}
.matrix-brand{font-size:1.25rem;font-weight:700;text-decoration:none;color:inherit}
.matrix-menu{display:flex;gap:18px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.matrix-menu ul{list-style:none}
.matrix-entry-title{font-size:clamp(2rem,4vw,3.5rem);line-height:1.12;margin:0 0 20px}
.matrix-meta{color:var(--matrix-muted);font-size:.875rem}
.matrix-list{display:grid;gap:28px}
.matrix-card{padding-bottom:24px;border-bottom:1px solid var(--matrix-border)}
.matrix-card h2{margin:0 0 8px}
.matrix-entry-content::after{content:"";display:block;clear:both}
.matrix-entry-content>:first-child{margin-top:0}
.matrix-entry-content>:last-child{margin-bottom:0}
.alignwide{max-width:var(--matrix-width);margin-inline:auto}
.alignfull{max-width:100vw;width:100vw;margin-left:calc(50% - 50vw)}
.woocommerce .matrix-content{--matrix-width:1400px}
body.matrix-builder-page .matrix-content,body.origo-pb-canvas .matrix-content,body.origo-builder-canvas .matrix-content{width:100%;max-width:none;padding:0}
@media(max-width:700px){.matrix-content,.matrix-bar{width:calc(100% - 28px)}.matrix-content{padding-block:28px}.matrix-bar{align-items:flex-start;flex-direction:column}.matrix-menu{gap:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Premium but neutral defaults; MATRIX components retain control of their own styles. */
body:not(.matrix-builder-page) .matrix-entry-content{overflow-wrap:break-word}
.matrix-header{background:#fff}
.matrix-bar{min-height:72px}
.matrix-brand{letter-spacing:-.035em;font-size:1.32rem}
.matrix-header .matrix-menu a{text-decoration:none;color:var(--matrix-text);font-weight:550;font-size:.925rem}
.matrix-header .matrix-menu a:hover,.matrix-header .current-menu-item>a{color:var(--matrix-accent)}
.matrix-footer{color:var(--matrix-muted);background:#fafbfc}
.matrix-footer .matrix-menu a{color:inherit;text-decoration:none}
.matrix-card h2{font-size:clamp(1.35rem,2vw,1.75rem);line-height:1.25}
.matrix-card h2 a{color:inherit;text-decoration:none}
.matrix-card h2 a:hover{color:var(--matrix-accent)}
.matrix-entry-content :where(p,ul,ol){max-width:80ch}
.matrix-entry-content :where(h2,h3,h4){line-height:1.25}
.matrix-entry-content :where(table){display:block;overflow-x:auto;max-width:100%;border-collapse:collapse}
.matrix-entry-content :where(th,td){padding:.65em .85em;border:1px solid var(--matrix-border)}
.matrix-entry-content :where(input:not([type=checkbox]):not([type=radio]),select,textarea){max-width:100%;border:1px solid #cfd5df;border-radius:6px;padding:.6em .75em;background:#fff}
.matrix-entry-content :where(button,input[type=submit]){border:0;border-radius:6px;background:var(--matrix-accent);color:#fff;padding:.65em 1.1em}
.matrix-entry-content :where(blockquote){border-left:3px solid var(--matrix-accent);padding-left:1.2em;margin-left:0}
.matrix-entry-content :where(.wp-block-image img){display:block}
.woocommerce .matrix-content{width:min(1400px,calc(100% - 40px))}
@media(max-width:700px){.matrix-header .matrix-menu{gap:12px}.matrix-bar{min-height:0}.woocommerce .matrix-content{width:calc(100% - 28px)}}

/* The site builder provides the visible navigation; hide the duplicate theme brand strip. */
.matrix-header{display:none}

/* Shared Rank Matrix footer for pages that do not include the Matrix footer section. */
.rmx-site-footer{flex:none;background:#f8fcfd;border-top:1px solid #e9f1f3;color:#17181c}
.rmx-site-footer__inner{width:min(1600px,calc(100% - 40px));max-width:1600px;margin:0 auto;padding:40px 42px;box-sizing:border-box}
.rmx-site-footer__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:60px;align-items:start}
.rmx-site-footer__intro p{max-width:330px;margin:13px 0 0;color:#516478;font-size:13px;line-height:20.8px}
.rmx-site-footer__group h2{margin:20px 0 27px;color:#17181c;font-size:15px;line-height:18.75px;font-weight:700}
.rmx-site-footer__group a{display:block;width:max-content;max-width:100%;margin:0 0 8px;color:#17181c;text-decoration:none;font-size:13px;line-height:20.8px}
.rmx-site-footer__group a:hover{text-decoration:underline;text-underline-offset:3px}
.rmx-site-footer__group .rmx-site-footer__emphasis{color:#0d1530;font-weight:650}
.rmx-site-footer__group .rmx-site-footer__cta{width:auto;margin:0;padding:14px 27px;border-radius:999px;background:#007f72;color:#fff;text-align:center;font-size:15px;line-height:24px;font-weight:700}
.rmx-site-footer__copyright{width:max-content;max-width:100%;margin:28px 0 0;color:#516478;font-size:12px;line-height:19.2px}
@media(max-width:900px){.rmx-site-footer__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px}}
@media(max-width:600px){.rmx-site-footer__inner{width:calc(100% - 28px);padding:32px 14px}.rmx-site-footer__grid{grid-template-columns:1fr;gap:18px}.rmx-site-footer__group h2{margin:12px 0 14px}.rmx-site-footer__intro p{margin:0}.rmx-site-footer__copyright{margin-top:24px}}

/* Keep the shared mobile menu visible on every Matrix header. */
.matrix-document .rmb-nav a,
.matrix-document .rmb-actions a,
.matrix-document .rmb-mobile-menu-inner a{font-weight:700!important}
.matrix-document .rmb-mobile-menu{display:none!important}
@media(max-width:1100px){
  .matrix-document .rmb-header-row{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:12px!important;padding:12px 18px!important}
  .matrix-document .rmb-header-row>.rmb-nav,
  .matrix-document .rmb-header-row>.rmb-actions{display:none!important}
  .matrix-document .rmb-header-row>.matrix-html:first-child{flex:1 1 auto;min-width:0}
  .matrix-document .rmb-header-row>.rmb-mobile-menu{display:block!important;position:relative!important;z-index:210!important;min-width:0!important;flex:0 0 auto}
  .matrix-document .rmb-mobile-menu>summary{display:block;cursor:pointer;list-style:none;padding:10px 15px;border:1px solid #d6e7e9;border-radius:12px;background:#f2faf7;color:#0e403b;font-size:16px;font-weight:800;white-space:nowrap}
  .matrix-document .rmb-mobile-menu>summary::-webkit-details-marker{display:none}
  .matrix-document .rmb-mobile-menu[open]>.rmb-mobile-menu-inner{display:block!important;position:absolute!important;z-index:999!important;top:calc(100% + 10px);right:0;width:min(350px,calc(100vw - 28px));max-height:75vh;overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #d8e9e9;border-radius:15px;padding:8px!important;box-shadow:0 15px 36px #c6d9dc}
  .matrix-document .rmb-mobile-menu-inner a{display:block!important;border-radius:8px;padding:10px 12px!important;color:#0d1530!important;text-decoration:none!important;font-size:15px!important;line-height:1.5!important;font-weight:700!important}
  .matrix-document .rmb-mobile-menu-inner a:hover{background:#ebfaf6}
}
/* Match the homepage footer spacing on the SEO Analyzer page. */
body.page-id-643 .matrix-id-mx-f56f27cd-51e{margin-top:-50px!important}

/* Keep the mobile Free and Pro plan cards as wide as the other homepage cards. */
@media(max-width:700px){
  .matrix-document section.matrix-id-rmh0201>.matrix-id-rmh0200{width:calc(100% - 28px)!important;max-width:1600px!important;padding-left:20px!important;padding-right:20px!important;align-items:stretch!important}
  .matrix-document .matrix-id-rmh0200>.matrix-id-rmh0190{display:grid!important;width:100%!important;min-width:0!important;max-width:none!important;align-self:stretch!important;justify-self:stretch!important;grid-template-columns:minmax(0,1fr)!important}
  .matrix-document .matrix-id-rmh0190>.matrix-id-rmh0182,
  .matrix-document .matrix-id-rmh0190>.matrix-id-rmh0189{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;justify-self:stretch!important}
}
