/*
Theme Name: Tema Ya Rona
Theme URI: https://www.temayarona.co.za
Author: Tema Ya Rona (Pty) Ltd
Author URI: https://www.temayarona.co.za
Description: Custom WordPress theme for Tema Ya Rona - Mining Equipment Drive Train Specialists. Features glassmorphism design, animated color-shifting elements, SEO optimization, and lead generation tools.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tema-ya-rona
Tags: custom-background, custom-logo, custom-menu, featured-images, one-column, two-columns

Tema Ya Rona - Mining Equipment Drive Train Specialists
BBBEE Level 1 | Germiston, Johannesburg
*/

/* ═══════════════════════════════════════════════════════ */
/* CSS VARIABLES & RESET                                   */
/* ═══════════════════════════════════════════════════════ */
:root {
  --copper: #B8652A;
  --copper-light: #D4920B;
  --blue: #2B5B8A;
  --blue-light: #3A7BBF;
  --dark: #0D1117;
  --dark-card: #161B22;
  --dark-surface: #1C2333;
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.1);
  --glass-hover: rgba(255,255,255,0.12);
  --text: #F0F6FC;
  --text2: #8B949E;
  --text3: #6E7681;
  --grad-c: linear-gradient(135deg, #B8652A, #D4920B);
  --grad-b: linear-gradient(135deg, #2B5B8A, #3A7BBF);
  --grad-m: linear-gradient(135deg, #B8652A, #2B5B8A);
  --font: 'Outfit', sans-serif;
  --mono: 'Space Mono', monospace;
  --r: 16px;
  --rs: 10px;
  --t: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); background: var(--dark); color: var(--text); overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--copper); border-radius: 4px; }

/* Animated Background */
.bg-mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-mesh::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184,101,42,0.12), transparent 70%);
  top: -200px; right: -200px; animation: mf 20s ease-in-out infinite;
}
.bg-mesh::after {
  content: ''; position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(43,91,138,0.1), transparent 70%);
  bottom: -150px; left: -150px; animation: mf 25s ease-in-out infinite reverse;
}
@keyframes mf {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(80px,-60px) scale(1.15); }
  66% { transform: translate(-40px,40px) scale(0.9); }
}

/* ═══════════════════════════════════════════════════════ */
/* GLASSMORPHISM                                           */
/* ═══════════════════════════════════════════════════════ */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  transition: var(--t);
}
.glass:hover {
  background: var(--glass-hover);
  border-color: rgba(184,101,42,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(184,101,42,0.1);
}

/* Color Shift Text */
.cs {
  background: var(--grad-m);
  background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: csh 4s ease-in-out infinite;
}
@keyframes csh {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ═══════════════════════════════════════════════════════ */
/* NAVIGATION                                              */
/* ═══════════════════════════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 12px 0;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--t);
}
.site-nav.scrolled { padding: 8px 0; background: rgba(13,17,23,0.95); }
.nav-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 30px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 48px; width: auto; }
.nav-logo span { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.nav-menu { display: flex; gap: 8px; align-items: center; list-style: none; }
.nav-menu li a {
  color: var(--text2); padding: 8px 16px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; transition: var(--t);
  position: relative; display: block;
}
.nav-menu li a:hover, .nav-menu li.current-menu-item a, .nav-menu li.current_page_item a {
  color: var(--text); background: var(--glass);
}
.nav-menu li.current-menu-item a::after, .nav-menu li.current_page_item a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; background: var(--copper); border-radius: 1px;
}
.nav-cta a {
  background: var(--grad-c) !important; color: #fff !important;
  font-weight: 600 !important; padding: 10px 22px !important;
  border-radius: 10px !important;
}
.nav-cta a:hover { transform: scale(1.05); box-shadow: 0 8px 30px rgba(184,101,42,0.4); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; transition: var(--t); border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════ */
/* BUTTONS                                                 */
/* ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: none;
  transition: var(--t); font-family: var(--font); color: #fff;
}
.btn-p { background: var(--grad-c); box-shadow: 0 4px 20px rgba(184,101,42,0.3); }
.btn-p:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(184,101,42,0.4); }
.btn-o { background: transparent; color: var(--text); border: 1px solid var(--glass-border); }
.btn-o:hover { background: var(--glass); border-color: var(--copper); }
.btn-b { background: var(--grad-b); }
.btn-w { background: #fff; color: var(--copper); font-weight: 700; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

/* ═══════════════════════════════════════════════════════ */
/* SECTION HEADINGS                                        */
/* ═══════════════════════════════════════════════════════ */
.sl {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--copper); margin-bottom: 16px;
}
.sl::before { content: ''; width: 30px; height: 1px; background: var(--copper); }
.st {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.01em;
}
.sd { font-size: 1.05rem; color: var(--text2); max-width: 650px; line-height: 1.7; }
.container { max-width: 1200px; margin: 0 auto; }
section, .wp-section { padding: 100px 30px; }

/* ═══════════════════════════════════════════════════════ */
/* HERO                                                    */
/* ═══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.25); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,17,23,0.6), rgba(13,17,23,0.9));
}
.hero-content {
  position: relative; z-index: 2; max-width: 1200px;
  margin: 0 auto; padding: 0 30px; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 30px;
  background: rgba(184,101,42,0.15); border: 1px solid rgba(184,101,42,0.3);
  font-size: 0.8rem; color: var(--copper-light); font-weight: 500;
  margin-bottom: 24px; animation: fiu 0.8s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px; background: var(--copper);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900;
  line-height: 1.05; margin-bottom: 24px; letter-spacing: -0.02em;
  animation: fiu 0.8s ease 0.15s both;
}
.hero p.hero-desc {
  font-size: 1.15rem; color: var(--text2); max-width: 600px;
  margin-bottom: 36px; line-height: 1.7; animation: fiu 0.8s ease 0.3s both;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fiu 0.8s ease 0.45s both; }
.hero-stats { display: flex; gap: 48px; margin-top: 60px; animation: fiu 0.8s ease 0.6s both; }
.hero-stat h3 { font-size: 2.2rem; font-weight: 800; }
.hero-stat p { font-size: 0.85rem; color: var(--text3); margin-top: 2px; }

@keyframes fiu {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════ */
/* SERVICES GRID                                           */
/* ═══════════════════════════════════════════════════════ */
.sg { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; }
.sc { padding: 32px; position: relative; overflow: hidden; }
.sc .ico {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.5rem;
}
.sc .ico.c { background: rgba(184,101,42,0.15); color: var(--copper); }
.sc .ico.b { background: rgba(43,91,138,0.15); color: var(--blue-light); }
.sc h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.sc p { font-size: 0.9rem; color: var(--text2); line-height: 1.65; }
.sc .cn {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--mono); font-size: 0.75rem; color: var(--text3); opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════ */
/* GALLERY                                                 */
/* ═══════════════════════════════════════════════════════ */
.gg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.gi { border-radius: var(--r); overflow: hidden; position: relative; aspect-ratio: 4/3; cursor: pointer; }
.gi img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.gi:hover img { transform: scale(1.08); }
.gi .ov {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,17,23,0.9) 100%);
  display: flex; align-items: flex-end; padding: 20px;
  opacity: 0; transition: opacity 0.4s;
}
.gi:hover .ov { opacity: 1; }
.gi .ov span { font-weight: 600; font-size: 0.95rem; }

/* ═══════════════════════════════════════════════════════ */
/* ABOUT                                                   */
/* ═══════════════════════════════════════════════════════ */
.as { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 48px; }
.ai { border-radius: var(--r); overflow: hidden; position: relative; }
.ai img { width: 100%; height: 400px; object-fit: cover; }
.ai .badge {
  position: absolute; bottom: 20px; left: 20px;
  padding: 10px 20px; border-radius: 10px;
  font-weight: 700; font-size: 0.85rem; background: rgba(184,101,42,0.9); color: #fff;
}
.fl { display: flex; flex-direction: column; gap: 20px; }
.fi {
  display: flex; gap: 16px; padding: 20px; border-radius: var(--rs);
  background: var(--glass); border: 1px solid var(--glass-border); transition: var(--t);
}
.fi:hover { border-color: rgba(184,101,42,0.3); transform: none; }
.fi .num {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
  background: var(--grad-c); color: #fff;
}
.fi h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.fi p { font-size: 0.85rem; color: var(--text2); }

/* Guarantees */
.gug { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.guc { padding: 36px 28px; text-align: center; }
.guc .gi2 { font-size: 2.5rem; margin-bottom: 16px; }
.guc h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.guc p { font-size: 0.88rem; color: var(--text2); }

/* ═══════════════════════════════════════════════════════ */
/* CONTACT                                                 */
/* ═══════════════════════════════════════════════════════ */
.cg { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
.ci { display: flex; gap: 16px; align-items: flex-start; }
.ci .cii {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.ci h4 { font-size: 0.95rem; font-weight: 600; }
.ci p { font-size: 0.9rem; color: var(--text2); }
.fg { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fg label { font-size: 0.85rem; color: var(--text2); font-weight: 500; }
.fg input, .fg textarea, .fg select {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--rs); padding: 12px 16px; color: var(--text);
  font-family: var(--font); font-size: 0.95rem; transition: var(--t); outline: none;
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: var(--copper); box-shadow: 0 0 0 3px rgba(184,101,42,0.15);
}
.fg textarea { min-height: 120px; resize: vertical; }
.fg select option { background: var(--dark-surface); color: var(--text); }
.fr { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ═══════════════════════════════════════════════════════ */
/* MAP & CTA BAND                                          */
/* ═══════════════════════════════════════════════════════ */
.mf { position: relative; background: var(--dark-card); border-top: 1px solid var(--glass-border); }
.mf iframe {
  width: 100%; height: 300px; border: none;
  filter: grayscale(0.8) brightness(0.6) contrast(1.2); transition: filter 0.4s;
}
.mf:hover iframe { filter: grayscale(0.3) brightness(0.7) contrast(1.1); }
.mc { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 5; }
.mc .btn { box-shadow: 0 8px 40px rgba(0,0,0,0.5); font-size: 1.05rem; padding: 16px 36px; }
.cta-band { padding: 60px 30px; text-align: center; }
.cta-band.copper { background: var(--grad-c); }
.cta-band.blue { background: var(--grad-b); }
.cta-band h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-band p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 28px; }

/* ═══════════════════════════════════════════════════════ */
/* FOOTER                                                  */
/* ═══════════════════════════════════════════════════════ */
.site-footer { padding: 60px 30px 30px; background: var(--dark-card); border-top: 1px solid var(--glass-border); }
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand img { height: 50px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; color: var(--text2); max-width: 300px; }
.site-footer h4 {
  font-size: 0.9rem; font-weight: 700; margin-bottom: 16px;
  color: var(--copper); text-transform: uppercase; letter-spacing: 0.08em;
}
.site-footer a { color: var(--text2); font-size: 0.88rem; display: block; padding: 4px 0; transition: color 0.3s; }
.site-footer a:hover { color: var(--copper); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text3);
}

/* ═══════════════════════════════════════════════════════ */
/* POPUP                                                   */
/* ═══════════════════════════════════════════════════════ */
.po {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px); z-index: 9999;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.po.show { display: flex; }
.popup {
  background: var(--dark-surface); border: 1px solid var(--glass-border);
  border-radius: 20px; max-width: 520px; width: 100%;
  padding: 40px; position: relative;
  animation: pin 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes pin { from { opacity:0; transform:scale(.9) translateY(20px); } to { opacity:1; transform:scale(1) translateY(0); } }
.px {
  position: absolute; top: 16px; right: 16px;
  background: var(--glass); border: 1px solid var(--glass-border);
  width: 36px; height: 36px; border-radius: 10px;
  color: var(--text2); font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--t);
}
.px:hover { background: rgba(255,0,0,0.1); color: #ff6b6b; }
.popup h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.popup .ps { font-size: 0.9rem; color: var(--text2); margin-bottom: 24px; }
.ptabs { display: flex; gap: 8px; margin-bottom: 24px; }
.ptab {
  padding: 8px 20px; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: var(--t);
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text2); font-family: var(--font);
}
.ptab.active { background: var(--grad-c); color: #fff; border-color: transparent; }

/* Floating buttons */
.float-cta { position: fixed; bottom: 30px; right: 30px; z-index: 900; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fb {
  width: 56px; height: 56px; border-radius: 16px; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; cursor: pointer; transition: var(--t);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3); color: #fff;
}
.fb.qb { background: var(--grad-c); }
.fb.qb:hover { transform: scale(1.1) rotate(-5deg); }
.fb.cb { background: var(--grad-b); }

/* Landing page */
.ub {
  background: var(--grad-c); padding: 12px 30px; padding-top: 90px;
  text-align: center; font-weight: 600; font-size: 0.95rem;
  animation: up 3s ease-in-out infinite;
}
@keyframes up { 0%,100% { opacity:1; } 50% { opacity:.85; } }
.landing-grid {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 2;
}
.lfc {
  background: var(--dark-surface); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 36px;
}
.lfc h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.lfc .sub { color: var(--text2); font-size: 0.9rem; margin-bottom: 24px; }
.tb { display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.tbi {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--glass-border);
}
.tbi strong { display: block; color: var(--text); font-size: 0.85rem; }
.tbi span { color: var(--text3); font-size: 0.78rem; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* WordPress admin bar fix */
body.admin-bar .site-nav { top: 32px; }

/* ═══════════════════════════════════════════════════════ */
/* RESPONSIVE                                              */
/* ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-menu {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--dark); flex-direction: column; justify-content: center;
    align-items: center; gap: 16px; list-style: none;
  }
  .nav-menu.open { display: flex; z-index: 999; }
  .nav-toggle { display: block; }
  .as, .cg, .landing-grid { grid-template-columns: 1fr; }
  .gg { grid-template-columns: 1fr 1fr; }
  .gug { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fr { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gg { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section, .wp-section { padding: 70px 20px; }
}
