:root {
  /* Gas-flame inspired palette */
  --sp-navy: #003366;         /* Dark corporate blue (footer, header accent) */
  --sp-blue: #0077ff;         /* Primary gas blue */
  --sp-cyan: #26d0ff;         /* Secondary bright cyan */
  --sp-green: #38b000;        /* Positive metric accent */

  --sp-bg: #f4f6f9;           /* Neutral background for soft sections */
  --sp-text: #1a1a1a;         /* Main body text */

  --border-soft: #e7eaee;
}

/* Base layout */
html,
body {
  height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--sp-text);
  background: #ffffff; /* keep page base white; use .soft for grey bands */
  margin: 0;
}

/* Accessibility: Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
}

.skip-link:focus {
  left: 1rem;
}

/* Links */
a {
  color: var(--sp-blue);
  text-decoration: none;
}

a:hover {
  color: var(--sp-cyan);
  text-decoration: underline;
}

/* NAVBAR */
.sp-navbar {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
}

.navbar-brand {
  padding: 0.25rem 0;
}

/* Force both logos into a flex row and align bottoms */
.navbar-brand {
  display: flex;
  align-items: flex-end;   /* bottoms aligned */
  gap: 0.5rem;
  padding: 0.25rem 0;
}

/* Navbar links coloring for light theme */
.navbar-light .navbar-nav .nav-link {
  color: rgba(0, 0, 0, 0.78);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link.show {
  color: var(--sp-blue);
}

/* Ensure toggler icon visible on white background */
.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.25);
}

/* Logos */
.brand-logo {
  height: 64px;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
}

/* Extra fine-tuning for the text logo */
.logo-safari-text {
  margin-bottom: 2px;
}

/* Hide text logo on smaller screens */
@media (max-width: 991.98px) {
  .logo-safari-text {
    display: none;
  }
}

/* HERO */
.hero {
  position: relative;
  background-size: cover;        /* Full image, responsive */
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  min-height: 420px;
}

/* Home hero background image */
.hero-home {
  background-image: url("../img/hero_image_1.png");
}

/* Hero copy – larger and brighter for readability on image */
.hero h1 {
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.85);
  color: #ffffff;
}

/* Main subtitle on hero */
.hero-subtitle {
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.55;
  font-weight: 600;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.85);
}

/* Additional hero paragraph */
.hero-subtitle-small {
  color: #f4f9ff;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

/* Unified white hero text line */
.hero-text-unified {
  color: #ffffff !important;
}

.hero h1,
.hero-subtitle,
.key-statement {
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.75),
    0 0 16px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(0, 0, 0, 0.45);
}

/* Key project statement */
.key-statement {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

/* Hero badge */
.hero-badge {
  font-size: 0.95rem !important;
  padding: 0.5rem 1rem !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
}

/* Responsive typography tuning */
@media (max-width: 575.98px) {
  .hero {
    min-height: 360px;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .key-statement {
    font-size: 1.0rem;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }
}

@media (min-width: 1200px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.45rem;
  }

  .key-statement {
    font-size: 1.15rem;
  }
}

/* IMAGE-BASED HERO VARIANTS FOR OTHER PAGES */
.hero-opportunity {
  background-image: url("../img/hero_opportunity.jpg");
}

.hero-assets {
  background-image: url("../img/hero_assets.jpg");
}

.hero-economics {
  background-image: url("../img/hero_economics.jpg");
}

.hero-resources {
  background-image: url("../img/hero_resources.jpg");
}

.hero-company {
  background-image: url("../img/hero_company.jpg");
}

/* Image-wrapper hero pattern */
.hero-img-wrapper {
  position: relative;
  overflow: hidden;
}

.hero-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-img-overlay .container {
  position: relative;
  z-index: 2;
}

/* Metric accents */
.metric-green {
  color: var(--sp-green) !important;
  font-weight: 700;
}

.metric-accent {
  color: var(--sp-blue) !important;
  font-weight: 700;
}

.text-accent {
  color: var(--sp-blue) !important;
  font-weight: 700;
}

/* Cards & stats */
.card {
  border: 1px solid var(--border-soft);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.stat {
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid var(--border-soft);
}

/* Section title */
.section-title {
  border-left: 6px solid var(--sp-blue);
  padding-left: 0.6rem;
  font-weight: 600;
}

/* Soft background sections */
.soft {
  background: var(--sp-bg);
}

/* Buttons */
.btn-primary {
  background-color: var(--sp-blue);
  border-color: var(--sp-blue);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0056c7;
  border-color: #0056c7;
}

.btn-outline-light {
  border-width: 2px;
  border-color: #ffffff;
  color: #ffffff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: #ffffff;
  color: var(--sp-navy);
}

/* Footer */
.sp-footer {
  background: var(--sp-navy);
  color: #ffffff;
}

.sp-footer h6 {
  color: #ffffff;
}

.sp-footer .small {
  color: #ffffff;
}

.footer-link {
  color: #ffffff;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Progress bars */
.progress {
  background-color: #e7eaee;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  font-size: 0.75rem;
}

/* Forms */
.form-label {
  font-weight: 500;
}

/* Utilities */
.border-accent-subtle {
  border-color: rgba(0, 119, 255, 0.35) !important;
}

/* Visually hidden */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* BACK TO TOP BUTTON */
#backToTop {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#backToTop.show {
  display: inline-flex;
}

@media (max-width: 575.98px) {
  #backToTop {
    right: 1rem;
    bottom: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* ============================================
   HERO COLOR SYSTEM — NATURAL GAS FLAME SPECTRUM
   ============================================ */

.hero-opportunity {
  background-color: #0077ff !important;
}

.hero-assets {
  background-color: #00c8ff !important;
}

.hero-economics {
  background-color: #00b3cc !important;
}

.hero-resources {
  background-color: #009688 !important;
}

.hero-company {
  background-color: #38b000 !important;
}

.hero-opportunity::before,
.hero-assets::before,
.hero-economics::before,
.hero-resources::before,
.hero-company::before {
  background: none !important;
}

/* ============================================
   HOME PAGE HERO TEXT — index.html ONLY
   ============================================ */

.hero-home .hero-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-home .hero-body {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0,0,0,0.65);
}
/* FORCE REAL H1 / H2 / H3 HIERARCHY ONLY ON THE HOME HERO */
.hero-home h1.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-home h2.hero-body {
  font-size: 1.55rem !important;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.hero-home h3.hero-body {
  font-size: 1.25rem !important;
  font-weight: 500;
  line-height: 1.3;
}