/*
Theme Name:     Eco Scope (Foxiz child)
Template:       foxiz
Theme URI:      https://ecoscope.co.ke
Author:         Eco Scope redesign
Description:    Eco Scope brand re-skin on the Foxiz child theme. Brand colours, fonts, header, footer and category colours driven in code.
Version:        2.0
License:        Themeforest Licence
License URI:    https://themeforest.net/licenses/standard
*/

:root{
	--es-accent:#02DE9C; --es-accent-600:#02b27d; --es-accent-700:#018e64;
	--es-header-bg:#151515; --es-footer-bg:#0f0f11;
	--es-on-dark:#f5f7f6; --es-on-dark-muted:#aeb6b3; --es-focus-ring:#02DE9C;
}

/* 1. ACCENT — links */
a:hover, .entry-title a:hover, .post-title a:hover{ color:var(--es-accent-600); }
::selection{ background:var(--es-accent); color:#06251c; }
.rb-search-submit, .is-btn, button.is-btn{ background-color:var(--es-accent); border-color:var(--es-accent); }
.rb-search-submit:hover, .is-btn:hover{ background-color:var(--es-accent-600); border-color:var(--es-accent-600); }

/* 4. CARD typography touch */
.entry-title{ letter-spacing:-0.01em; }

/* 7. ACCESSIBILITY — focus states */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, .menu-item > a:focus-visible{
	outline:2px solid var(--es-focus-ring); outline-offset:2px; border-radius:2px; }

/* 8. CUSTOM FOOTER (child footer.php) — 3 columns */
.es-footer{ background:var(--es-footer-bg); color:#9aa39e; }
.es-footer-inner{ max-width:1240px; margin:0 auto; padding:54px 24px 30px;
	display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; }
.es-footer img.custom-logo, .es-footer .custom-logo{ height:26px !important; width:auto !important; margin-bottom:14px; }
.es-flogo{ color:#fff; font-weight:700; font-size:20px; display:inline-block; margin-bottom:14px; }
.es-fbrand p{ font-size:14px; line-height:1.6; max-width:320px; margin:0 0 12px; }
.es-fli{ color:var(--es-accent); font-weight:600; font-size:14px; }
.es-footer h5{ color:#e8ece9; font-size:13px; letter-spacing:.5px; text-transform:uppercase; margin:0 0 14px; }
.es-footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.es-footer a{ color:#9aa39e; text-decoration:none; }
.es-footer a:hover{ color:var(--es-accent); }
.es-fbar{ border-top:1px solid #20211f; max-width:1240px; margin:0 auto; padding:18px 24px;
	display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; font-size:12.5px; }
@media (max-width:880px){ .es-footer-inner{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .es-footer-inner{ grid-template-columns:1fr; } }

/* 9. DARK HEADER (CSS only) — bg lives on .navbar-wrap, so target the chain */
.header-wrap, .header-wrap .navbar-outer, .header-wrap .navbar-wrap, .header-wrap .navbar-inner,
.rb-sticky-section.header-wrap, .rb-sticky-section .navbar-wrap{ background:#151515 !important; }
/* menu label is in a <span> inside the <a> — colour both */
.header-wrap .main-menu > .menu-item > a,
.header-wrap .main-menu > .menu-item > a span{ color:#f5f7f6 !important; }
.header-wrap .main-menu > .current-menu-item > a,
.header-wrap .main-menu > .current-menu-item > a span,
.header-wrap .main-menu > .menu-item > a:hover,
.header-wrap .main-menu > .menu-item > a:hover span{ color:var(--es-accent) !important; }
/* accent underline on hover/active */
.header-wrap .main-menu > .menu-item > a{ position:relative; }
.header-wrap .main-menu > .menu-item > a::after{ content:""; position:absolute; left:0; right:0; bottom:-2px;
	height:2px; background:var(--es-accent); transform:scaleX(0); transform-origin:left; transition:transform .18s; }
.header-wrap .main-menu > .menu-item > a:hover::after,
.header-wrap .main-menu > .current-menu-item > a::after{ transform:scaleX(1); }
/* header tools (search, dark-mode toggle) light on dark */
.header-wrap .navbar-right a, .header-wrap .navbar-right .rb-icon,
.header-wrap .toggle-search, .header-wrap .rb-darkmode-switcher,
.header-wrap .navbar-right span:not(.es-pill){ color:#f5f7f6 !important; }
/* LOGO — was a 2559x640 image with no height limit; constrain it */
.header-wrap .custom-logo, .logo-wrap .custom-logo{ height:34px !important; width:auto !important; }
.mobile-logo-wrap .custom-logo{ height:28px !important; width:auto !important; }

/* 10. FONT STANDARDISATION — DM Sans site-wide (Foxiz routes type via these vars; icons use 'ruby-icon', untouched) */
:root{
	--body-family:'DM Sans',sans-serif !important; --menu-family:'DM Sans',sans-serif !important;
	--submenu-family:'DM Sans',sans-serif !important; --meta-family:'DM Sans',sans-serif !important;
	--meta-b-family:'DM Sans',sans-serif !important; --cat-family:'DM Sans',sans-serif !important;
	--btn-family:'DM Sans',sans-serif !important; --input-family:'DM Sans',sans-serif !important;
	--tagline-family:'DM Sans',sans-serif !important; --dwidgets-family:'DM Sans',sans-serif !important;
	--product-family:'DM Sans',sans-serif !important;
	--h1-family:'DM Sans',sans-serif !important; --h2-family:'DM Sans',sans-serif !important;
	--h3-family:'DM Sans',sans-serif !important; --h4-family:'DM Sans',sans-serif !important;
	--h5-family:'DM Sans',sans-serif !important; --h6-family:'DM Sans',sans-serif !important;
	--heading-family:'DM Sans',sans-serif !important;
}
body, button, input, select, textarea, h1,h2,h3,h4,h5,h6,
.entry-title, .post-title, .widget-title, .es-home, .es-footer{ font-family:'DM Sans',sans-serif !important; }

/* 11. PER-CATEGORY COLOURS
   Now generated in functions.php from the live taxonomy, so every category —
   including any added later — is coloured everywhere the theme prints a label,
   and archive tags get a neutral pill. Nothing hardcoded here. */
