﻿/*
Theme Name: Extra-Mile Oil and Petrochemicals
Theme URI: https://www.extramileoil.co.za
Author: Extra-Mile Oil and Petrochemicals Pty Ltd
Author URI: https://www.extramileoil.co.za
Description: A custom one-page business website theme for Extra-Mile Oil and Petrochemicals Pty Ltd.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: extra-mile-oil
*/

:root {
  --green: #006f4f;
  --green-deep: #034533;
  --gold: #f2a000;
  --gold-deep: #c77c00;
  --ink: #172027;
  --muted: #5f6b72;
  --line: #dbe2e0;
  --paper: #ffffff;
  --soft: #f6f8f5;
  --steel: #26323b;
  --shadow: 0 18px 48px rgba(20, 32, 38, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.site-shell {
  overflow: hidden;
}

.wrap {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--steel);
  color: #fff;
  font-size: 0.88rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
}

.topbar a {
  text-decoration: none;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(219, 226, 224, 0.85);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 330px;
  max-height: 68px;
  object-fit: contain;
  display: block;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  content: "";
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--steel);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--green);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
  background: var(--green-deep);
  box-shadow: 0 12px 28px rgba(0, 111, 79, 0.22);
}

.button--gold {
  background: var(--gold);
  color: #1c1d1f;
}

.button--gold:hover,
.button--gold:focus {
  background: var(--gold-deep);
  color: #fff;
}

.button--outline {
  border-color: rgba(255, 255, 255, 0.62);
  background: transparent;
}

.button--outline:hover,
.button--outline:focus {
  background: #fff;
  color: var(--green-deep);
}

.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(4, 48, 38, 0.98) 0%, rgba(5, 76, 58, 0.96) 54%, rgba(9, 41, 37, 0.98) 100%),
    linear-gradient(90deg, var(--green), var(--gold));
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  align-items: center;
  gap: 58px;
  padding: 72px 0 78px;
}

.hero__copy {
  color: #fff;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: 3.85rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 560px;
  margin-top: 42px;
}

.proof-item {
  border-left: 3px solid var(--gold);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
}

.proof-item strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.proof-item span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
}

.hero__logo-panel {
  justify-self: end;
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.hero__logo-panel img {
  display: block;
  width: 100%;
}

.section {
  padding: 72px 0;
}

.section--soft {
  background: var(--soft);
}

.section--dark {
  background: var(--steel);
  color: #fff;
}

.section__head {
  max-width: 780px;
  margin-bottom: 30px;
}

.section__head--center,
.contact-heading {
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section__head--center p,
.contact-heading p {
  margin-right: auto;
  margin-left: auto;
}

.section__head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.62rem;
  line-height: 1.06;
}

.section--dark .section__head h2,
.section--dark .eyebrow {
  color: #fff;
}

.section__head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section--dark .section__head p {
  color: rgba(255, 255, 255, 0.78);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.visual-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 39, 0.08);
}

.visual-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.visual-frame--operations img {
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
}

.visual-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 13px 15px;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(17, 25, 30, 0.86);
  color: #fff;
  font-weight: 800;
  line-height: 1.35;
}

.intro-copy p {
  margin: 0 0 18px;
  color: #374149;
  font-size: 1.02rem;
}

.fact-grid,
.service-grid,
.values-grid,
.leadership-grid {
  display: grid;
  gap: 16px;
}

.fact-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 30px;
}

.fact {
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.fact strong {
  display: block;
  color: var(--green);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.fact span {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 800;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service {
  min-height: 214px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.service:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(23, 32, 39, 0.1);
}

.service__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green), var(--gold));
  color: #fff;
  font-weight: 900;
}

.service h3,
.value h3,
.leader h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.25;
}

.service p,
.value p,
.leader p {
  margin: 12px 0 0;
  color: var(--muted);
}

.partner-band {
  margin-top: 22px;
  padding: 24px;
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  background: var(--steel);
  color: #fff;
}

.partner-band p {
  max-width: 900px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.values-grid {
  grid-template-columns: repeat(3, 1fr);
}

.value {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.value h3 {
  color: #fff;
}

.value p {
  color: rgba(255, 255, 255, 0.76);
}

.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sector {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--steel);
  font-weight: 800;
  font-size: 0.92rem;
}

.process {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  height: 100%;
}

.process-step {
  position: relative;
  padding: 20px;
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  background: #fff;
}

.process-step strong {
  color: var(--gold-deep);
  font-size: 0.86rem;
}

.process-step h3 {
  margin: 10px 0 8px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
}

.leadership-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.leader {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 32, 39, 0.07);
}

.leader__photo {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 111, 79, 0.12), rgba(242, 160, 0, 0.14));
}

.leader__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.leader__body {
  padding: 20px;
}

.leader span {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-weight: 800;
  line-height: 1.35;
}

.contact-section {
  padding: 72px 0;
  background:
    linear-gradient(90deg, rgba(6, 54, 43, 0.95), rgba(6, 54, 43, 0.86)),
    linear-gradient(135deg, var(--green), var(--gold));
  color: #fff;
}

.contact-stack {
  display: grid;
  gap: 28px;
}

.contact-heading h2 {
  margin: 0;
  font-size: 2.72rem;
  line-height: 1.05;
}

.image-feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: stretch;
}

.image-feature__content .section__head {
  margin-bottom: 24px;
}

.image-feature__content {
  display: flex;
  flex-direction: column;
}

.contact-heading p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 28px;
  align-items: stretch;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.contact-item {
  min-height: 74px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.contact-item strong {
  display: block;
  color: #fff;
}

.contact-item a,
.contact-item span {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.contact-panel {
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-panel h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.contact-panel p {
  margin: 0 0 20px;
  color: var(--muted);
}

.contact-panel label {
  display: block;
  margin: 10px 0 6px;
  color: var(--steel);
  font-weight: 800;
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit;
}

.contact-panel textarea {
  min-height: 108px;
  resize: vertical;
}

.site-footer {
  padding: 34px 0;
  background: #11191e;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo img {
  width: 118px;
  display: block;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 980px) {
  .topbar__inner,
  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header__inner {
    min-height: 0;
    padding: 16px 0;
  }

  .nav-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-top: 1px solid var(--line);
    padding: 12px 0;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(135deg, rgba(4, 48, 38, 0.98) 0%, rgba(5, 76, 58, 0.96) 54%, rgba(9, 41, 37, 0.98) 100%);
  }

  .hero__inner,
  .split,
  .contact-layout,
  .image-feature {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 720px;
    font-size: 3.65rem;
  }

  .section__head h2,
  .contact-heading h2 {
    font-size: 2.25rem;
  }

  .hero__logo-panel {
    justify-self: start;
    width: min(420px, 100%);
  }

  .fact-grid,
  .service-grid,
  .values-grid,
  .process,
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1140px);
  }

  .brand img {
    width: 232px;
    max-height: 58px;
  }

  .hero__inner {
    padding: 52px 0 64px;
  }

  .hero__proof,
  .fact-grid,
  .service-grid,
  .values-grid,
  .process,
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .contact-section {
    padding: 54px 0;
  }

  .hero h1 {
    font-size: 2.65rem;
    line-height: 1.06;
  }

  .section__head h2,
  .contact-heading h2 {
    font-size: 1.9rem;
  }

  .leader {
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: stretch;
  }

  .leader__photo img {
    height: 100%;
    min-height: 168px;
  }

  .leader__body {
    padding: 16px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

