/*
Theme Name: Apx Fuels
Theme URI: https://apxfuels.com
Author: OXI Group (Pty) Ltd
Author URI: https://apxfuels.com
Description: Custom WordPress theme for Apx Fuels, a bulk fuel (Diesel, Petrol, HFO and Illuminating Paraffin) supply company serving Southern Africa, part of the O X I Group (Pty) Ltd.
Version: 1.0.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: apxfuels
*/

/* ==========================================================================
   Apx Fuels — Shared Stylesheet
   Part of the O X I Group (Pty) Ltd
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Rubik+Dirt&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400&family=Yellowtail&display=swap");

:root {
  /* Brand palette — from Apx Color Chart */
  --brown-900: #582515;
  --white-off: #f9fafa;
  --amber-grad-a: #dd7900;
  --rust-700: #b04016;
  --gold-500: #f0ca23;
  --copper-700: #b9510f;
  --amber-600: #e39415;
  --orange-500: #ed781d;
  --orange-600: #e36019;
  --black: #000000;
  --navy-900: #1a1a2e;
  --slate-500: #546d88;

  --gradient-fuel: linear-gradient(
    120deg,
    var(--gold-500) 0%,
    var(--orange-500) 45%,
    var(--rust-700) 100%
  );
  --gradient-fuel-soft: linear-gradient(
    120deg,
    rgba(240, 202, 35, 0.15) 0%,
    rgba(237, 120, 29, 0.12) 50%,
    rgba(176, 64, 22, 0.15) 100%
  );

  --text-body: var(--navy-900);
  --text-muted: #5a5a6a;

  --font-display: "Rubik Dirt", system-ui, sans-serif;
  --font-script: "Yellowtail", cursive;
  --font-body:
    "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-md: 14px;
  --radius-lg: 26px;
  --shadow-soft: 0 12px 32px rgba(26, 26, 46, 0.1);
  --shadow-card: 0 8px 24px rgba(88, 37, 21, 0.12);
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white-off);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 900;
  line-height: 1.15;
  color: var(--brown-900);
}
p {
  margin: 0 0 1em;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--orange-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-fuel);
  display: inline-block;
}

section {
  padding: 88px 0;
  position: relative;
}
.section-alt {
  background: linear-gradient(180deg, #fff, #fdf4e8 60%, #fff);
}
.section-dark {
  background: var(--navy-900);
  color: var(--white-off);
}
.section-dark h2,
.section-dark h3 {
  color: var(--white-off);
}
.section-dark .eyebrow {
  color: var(--gold-500);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section-dark .section-head p {
  color: #c8c9d8;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-fuel);
  color: #fff;
  box-shadow: 0 10px 24px rgba(237, 120, 29, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(237, 120, 29, 0.45);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}
.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn-outline-dark:hover {
  background: var(--navy-900);
  color: #fff;
  transform: translateY(-3px);
}
.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---------------- Market Ticker ---------------- */
.market-ticker {
  background-color: #1a1a2e;
  border-bottom: 2px solid transparent;
  border-image: var(--gradient-fuel) 1;
  padding: 7px 0;
}
.market-ticker-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.tv-ticker-tape-el {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Attempt to hide the TradingView attribution link below the ticker tape.
   Only works if the widget renders it in regular (light) DOM rather than
   inside its shadow root — if it's still visible after this, the widget
   is keeping it shadow-DOM protected and CSS can't reach it. */
.market-ticker a[href*="tradingview.com"] {
  display: none !important;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(26, 26, 46, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(240, 202, 35, 0.18);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 88px;
  width: auto;
  margin: -20px 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand-text span {
  color: var(--gold-500);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: #e7e7f0;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-links a:hover,
.nav-links a.active,
.nav-links li.current-menu-item a,
.nav-links li.current_page_item a {
  background: var(--gradient-fuel);
  color: #fff;
}
.nav-links li {
  display: inline-flex;
}
.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: none;
}
.nav-toggle .bars {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background: #fff;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s;
}
.nav-toggle .bars::before {
  top: -8px;
}
.nav-toggle .bars::after {
  top: 8px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-900);
  color: #c8c9d8;
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand img {
  height: 150px;
  width: auto;
  margin: -6px 0 10px -8px;
}
.footer-brand p {
  color: #a3a4b8;
  font-size: 0.92rem;
  max-width: 280px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: #c8c9d8;
  font-size: 0.94rem;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--gold-500);
}
.footer-col li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}
.footer-contact-item img {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #7f8098;
}
.footer-bottom .oxi {
  color: var(--gold-500);
  font-weight: 600;
}
.footer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7f8098;
  white-space: nowrap;
}
.footer-credit a {
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer-credit a:hover {
  opacity: 1;
}
.footer-credit-logo {
  width: 35px;
  height: 35px;
  object-fit: contain;
  vertical-align: middle;
}

/* ---------------- Hero (inner pages banner) ---------------- */
.page-hero {
  position: relative;
  padding: 150px 0 90px;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(26, 26, 46, 0.94) 20%,
    rgba(88, 37, 21, 0.75) 60%,
    rgba(176, 64, 22, 0.55) 100%
  );
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 760px;
}
.page-hero p {
  color: #dcdce8;
  font-size: 1.1rem;
  max-width: 600px;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--gold-500);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.breadcrumb a {
  color: #dcdce8;
}
.breadcrumb a:hover {
  color: var(--gold-500);
}

/* ---------------- Icon badges ---------------- */
.icon-badge {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #fdf1de);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}
.icon-badge img {
  width: 34px;
  height: 34px;
}
.icon-badge.sm {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.icon-badge.sm img {
  width: 24px;
  height: 24px;
}
.icon-badge.on-dark {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---------------- Cards / grids ---------------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(88, 37, 21, 0.06);
}
.card h3 {
  font-size: 1.2rem;
  margin: 16px 0 10px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 0;
}

/* ---------------- Utility ---------------- */
.tag-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(240, 202, 35, 0.15);
  color: var(--copper-700);
  margin-bottom: 12px;
}
.divider-wave {
  height: 60px;
  background: var(--gradient-fuel);
  -webkit-mask: url("assets/images/coming-soon-backdrop.jpg");
  mask: url("assets/images/coming-soon-backdrop.jpg");
}
.text-center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.stat-row {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}
.stat-row .stat strong {
  display: block;
  font-size: 2rem;
  color: var(--orange-600);
  font-family: var(--font-display);
  font-weight: 400;
}
.stat-row .stat span {
  color: #f0ca23;
  font-size: 0.88rem;
}
.section-dark .stat-row .stat span {
  color: #b6b7ca;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}
.whatsapp-float img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

/* ---------------- WordPress core / editor content ---------------- */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.alignleft {
  float: left;
  margin: 0 24px 16px 0;
}
.alignright {
  float: right;
  margin: 0 0 16px 24px;
}
.aligncenter {
  display: block;
  margin: 0 auto 16px;
}
.wp-caption,
.wp-block-image {
  max-width: 100%;
}
.entry-content {
  font-size: 1rem;
}
.entry-content > *:last-child {
  margin-bottom: 0;
}
.entry-content ul,
.entry-content ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
  list-style: revert;
}
.entry-content a {
  color: var(--orange-600);
  text-decoration: underline;
}
.entry-content img {
  border-radius: var(--radius-md);
}
.broadcast-content {
  max-width: 760px;
  margin: 0 auto;
}
.broadcast-content .card {
  margin-top: 24px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 840px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 24px;
    display: none;
    border-bottom: 1px solid rgba(240, 202, 35, 0.18);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 10px;
    border-radius: 8px;
  }
  .nav-links li {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-cta {
    margin-left: 0;
    margin-top: 10px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  section {
    padding: 60px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .stat-row {
    gap: 28px;
  }
  .page-hero {
    padding: 130px 0 60px;
  }
}
