/* ==========================================================================
   Sibanye Five Star Group — main stylesheet
   Plain CSS, no build step. Custom properties drive the whole palette,
   so re-theming the site is a find-and-replace in the :root block below.
   ========================================================================== */

:root {
  --bg: #000000;
  --bg-elevated: #0d0e10;
  --bg-elevated-2: #141517;
  --border: #232426;

  --text: #ffffff;
  --text-muted: #b7b8ba;
  --text-faint: #808184;

  --accent: #e65100;
  --accent-hover: #ff6a00;
  --accent-soft: rgba(230, 81, 0, 0.12);

  --font-heading: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --container: 1240px;
  --gutter: 24px;

  --section-pad: 96px;
}

@media (max-width: 1024px) {
  :root { --section-pad: 72px; }
}
@media (max-width: 767px) {
  :root { --section-pad: 56px; }
}

/* ---- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}
h2 { font-weight: 400; }
.text-accent { color: var(--accent); }
.contact-label { color: var(--accent); font-weight: 700; }
p { margin: 0 0 16px; color: var(--text-muted); }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: 12px;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:hover {
  box-shadow: 0 0 18px 3px rgba(230, 81, 0, 0.55), 0 0 38px 10px rgba(230, 81, 0, 0.25);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent-soft); }

.btn-block { width: 100%; }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 132px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #fff;
}
.brand img { height: 108px; width: auto; }
.brand .brand-flame { color: var(--accent); }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 56px;
}
.primary-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
  transition: color .15s ease, text-shadow .15s ease;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: #fff;
  text-shadow: 0 0 10px rgba(230, 81, 0, 0.85), 0 0 22px rgba(230, 81, 0, 0.55);
}

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding-block: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .primary-nav {
    position: absolute;
    top: 132px;
    left: 0;
    right: 0;
    background: #000;
    border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .primary-nav a { display: block; padding: 12px 0; width: 100%; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 400px) {
  .header-cta .btn { padding: 10px 16px; font-size: 13px; white-space: nowrap; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  padding-block: var(--section-pad);
  background: radial-gradient(120% 140% at 15% 20%, #120a05 0%, #000 55%);
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 64px;
}
.hero-copy { flex: 1 1 55%; min-width: 0; }
.hero-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  color: #fff;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-media {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 40%;
}
.hero-media img,
.hero-media video {
  display: block;
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}

@media (max-width: 900px) {
  .hero .container { flex-direction: column; align-items: flex-start; gap: 40px; }
  .hero-media { max-width: 100%; width: 100%; }
}

/* ---- Section shell ------------------------------------------------------ */
.section { padding-block: var(--section-pad); }
.section-alt { background: var(--bg-elevated); }
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.section-head p { font-size: 17px; margin-bottom: 0; }

/* ---- Services grid -------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.service-icon {
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
}
.service-icon svg { width: 52px; height: 52px; color: var(--accent); }
.service-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.service-card h3 { font-size: 19px; color: #fff; margin-bottom: 10px; }
.service-card p { font-size: 15px; margin-bottom: 18px; }
.service-card .card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .card-link svg { width: 14px; height: 14px; }

/* ---- Two-column lists (products / solutions) ------------------------------ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}
.list-panel h2 {
  font-size: 22px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}
.list-panel h3.sub {
  font-size: 14px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.tick-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: #fff;
  font-size: 15px;
}
.tick-list li:last-child { border-bottom: none; }
.tick-list svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
.tick-list img { flex: none; width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  font-size: 14px;
  color: var(--text-muted);
}
.chip-list img {
  flex: none;
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 50%;
}

/* ---- Why partner ---------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.why-item h3 {
  font-size: 17px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.why-item .why-icon {
  color: var(--accent);
  margin-bottom: 16px;
}
.why-item .why-icon svg { width: 30px; height: 30px; }
.why-item p { font-size: 15px; margin-bottom: 0; }

/* ---- Testimonials ----------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.testimonial blockquote {
  margin: 0 0 20px;
  font-size: 17px;
  color: #fff;
  font-style: italic;
  line-height: 1.5;
}
.testimonial cite {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

/* ---- CTA band ------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, #1a0d03, #000 70%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { font-size: 17px; max-width: 52ch; margin-inline: auto; margin-bottom: 32px; }

/* ---- Footer ------------------------------------------------------------------------ */
.site-footer {
  background: var(--bg);
  padding-top: 72px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand img { height: 64px; }
.footer-brand p { font-size: 14px; max-width: 34ch; }
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 12px; font-size: 14px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--accent); }
.footer-col address { font-style: normal; color: var(--text-muted); font-size: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 24px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---- Simple inner-page layout (about/services/contact) --------------------------- */
.page-hero {
  padding-block: 64px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.breadcrumb { font-size: 14px; color: var(--text-faint); }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--accent); }

.placeholder-note {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 32px;
}

.form-status {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.form-status.success {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: #fff;
}
.form-status.error {
  border: 1px solid #7a2a1f;
  background: rgba(200, 60, 40, 0.12);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-size: 14px; font-weight: 600; color: #fff; }
.form-row input,
.form-row textarea {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font: inherit;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
